The process "'vendor/bin/phpunit' '--colors=always'" exceeded the timeout of 3600 seconds

Hello I am attempting to run Test Units for a new OS before making a PR. Following Test Units - LibreNMS Docs step 9.

Running lnms dev:check unit --db --snmpsim times out with error lower in the thread.

  • Steps to reproduce an issue.
    • Set the .env file options for DEV and the test DB.
    • Run lnms dev:check unit --db --snmpsim or lnms dev:check unit --db
    • Wait…
  • What I have tried.
    • copying the db librenms to the test db

The output of ./validate.php

Note: This is a development box I expect to see some WARN and FAIL around git and the scheduler.

librenms@LibreNMS-DEV:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 24.9.0 (2024-10-11T12:34:51+00:00)
DB Schema | 2024_10_06_002633_ports_vlans_table_add_port_id_index (301)
PHP       | 8.1.2-1ubuntu2.19
Python    | 3.10.12
Database  | MariaDB 10.6.18-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

[OK]    Composer Version: 2.8.1
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[WARN]  Debug enabled.  This is a security risk.
[WARN]  You have no devices.                                                                                                                                        [FIX]:
        Consider adding a device such as localhost: /addhost
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
[WARN]  PHP version 8.2 is the minimum supported version as of October, 2024. We recommend you update PHP to a supported version (8.3 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[OK]    Locks are functional
[OK]    Python wrapper cron entry is not present
[OK]    Redis is unavailable
[OK]    rrdtool version ok
[OK]    Connected to rrdcached
[FAIL]  Scheduler is not running
        [FIX]:                                                                                                                                                      sudo cp /opt/librenms/dist/librenms-scheduler.service /opt/librenms/dist/librenms-scheduler.timer /etc/systemd/system/
        sudo systemctl enable librenms-scheduler.timer
        sudo systemctl start librenms-scheduler.timer
[WARN]  Your install is over 24 hours out of date, last update: Fri, 11 Oct 2024 12:34:51 +0000                                                                     [FIX]:
        Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN]  Your local git branch is not master, this will prevent automatic updates.                                                                                   [FIX]:
        You can switch back to master with git checkout master

Error:

............................................................. 1464 / 3267 ( 44%)
............................................................. 1525 / 3267 ( 46%)
............................................................. 1586 / 3267 ( 48%)
............................................................. 1647 / 3267 ( 50%)
............................................................. 1708 / 3267 ( 52%)
............................................................. 1769 / 3267 ( 54%)
............................................................. 1830 / 3267 ( 56%)
............................................................. 1891 / 3267 ( 57%)
............................................................. 1952 / 3267 ( 59%)
............................................................. 2013 / 3267 ( 61%)
............................................................. 2074 / 3267 ( 63%)
............................................................. 2135 / 3267 ( 65%)
......^.........^............................................ 2196 / 3267 ( 67%)
............................................................. 2257 / 3267 ( 69%)
............................................................. 2318 / 3267 ( 70%)
............................................................. 2379 / 3267 ( 72%)
..........................................................
   Symfony\Component\Process\Exception\ProcessTimedOutException

  The process "'vendor/bin/phpunit' '--colors=always'" exceeded the timeout of 3600 seconds.

  at vendor/symfony/process/Process.php:1163
    1159▕
    1160▕         if (null !== $this->idleTimeout && $this->idleTimeout < microtime(true) - $this->lastOutputTime) {
    1161▕             $this->stop(0);
    1162▕
  ➜ 1163▕             throw new ProcessTimedOutException($this, ProcessTimedOutException::TYPE_IDLE);
    1164▕         }
    1165▕     }
    1166▕
    1167▕     /**

      +2 vendor frames

  3   LibreNMS/Util/CiHelper.php:397
      Symfony\Component\Process\Process::run()

  4   LibreNMS/Util/CiHelper.php:210
      LibreNMS\Util\CiHelper::execute()

Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.