Upgrade to 1.2.13 stalls after spawning background process

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Upgrade to 1.2.13 stalls after spawning background process

Post by gdsotirov »

I just found the time to upgrade my Cacti 1.2.12 installation to 1.2.13, but the process stalls on the last step. I tried re-starting it unsuccessfully:

Code: Select all

2020/07/20 14:43:46 - INSTALL: always: Background was already started at 2020-07-20 11:36:25.414700, this attempt at 2020-07-20 14:43:46.000000 was skipped
2020/07/20 14:43:46 - INSTALL: Checking arguments
2020/07/20 14:41:47 - INSTALL: always: no parameters passed
2020/07/20 14:41:47 - INSTALL: Checking arguments
2020/07/20 14:36:25 - INSTALL: always: Spawning background process: /usr/bin/php '/var/www/htdocs/stats/cacti/install/background.php' 1595244985.4147
I do not find this background process. I guess it's something specific to my installation, because I found no other reports of such problem, but what exactly?

Update: I find only PHP warnings in the web server error log:

Code: Select all

# tail -1000 /var/log/httpd/error_log | grep 'Jul 20' | grep 'cacti/'
[Mon Jul 20 14:54:53.647485 2020] [-:error] [pid 2240:tid 139768427964160] [client 192.168.79.1:1124] PHP Warning:  include_once(./lib/ldap.php): failed to open stream: No such file or directory in /var/www/htdocs/stats/cacti/auth_login.php on line 26
[Mon Jul 20 14:54:53.647501 2020] [-:error] [pid 2240:tid 139768427964160] [client 192.168.79.1:1124] PHP Warning:  include_once(): Failed opening './lib/ldap.php' for inclusion (include_path='.:/usr/lib64/php') in /var/www/htdocs/stats/cacti/auth_login.php on line 26
[Mon Jul 20 14:54:54.045658 2020] [-:error] [pid 2240:tid 139768335644416] [client 192.168.79.1:1124] PHP Warning:  include_once(./lib/ldap.php): failed to open stream: No such file or directory in /var/www/htdocs/stats/cacti/auth_login.php on line 26, referer /stats/cacti/install/install.php
[Mon Jul 20 14:54:54.045676 2020] [-:error] [pid 2240:tid 139768335644416] [client 192.168.79.1:1124] PHP Warning:  include_once(): Failed opening './lib/ldap.php' for inclusion (include_path='.:/usr/lib64/php') in /var/www/htdocs/stats/cacti/auth_login.php on line 26, referer /stats/cacti/install/install.php
[Mon Jul 20 14:55:08.177349 2020] [-:error] [pid 2240:tid 139768436356864] [client 192.168.79.1:1124] PHP Warning:  include_once(./lib/ldap.php): failed to open stream: No such file or directory in /var/www/htdocs/stats/cacti/auth_login.php on line 26, referer /stats/cacti/install/install.php?csrf_timeout=true
[Mon Jul 20 14:55:08.177365 2020] [-:error] [pid 2240:tid 139768436356864] [client 192.168.79.1:1124] PHP Warning:  include_once(): Failed opening './lib/ldap.php' for inclusion (include_path='.:/usr/lib64/php') in /var/www/htdocs/stats/cacti/auth_login.php on line 26, referer /stats/cacti/install/install.php?csrf_timeout=true
[Mon Jul 20 14:55:13.790875 2020] [-:error] [pid 27322:tid 139768377607936] [client 192.168.79.1:1191] PHP Warning:  include_once(./lib/ldap.php): failed to open stream: No such file or directory in /var/www/htdocs/stats/cacti/auth_login.php on line 26, referer /stats/cacti/install/install.php
[Mon Jul 20 14:55:13.790891 2020] [-:error] [pid 27322:tid 139768377607936] [client 192.168.79.1:1191] PHP Warning:  include_once(): Failed opening './lib/ldap.php' for inclusion (include_path='.:/usr/lib64/php') in /var/www/htdocs/stats/cacti/auth_login.php on line 26, referer /stats/cacti/install/install.php
But there are two httpd processes using 100% CPU and one of them seems to be on "POST /stats/cacti/install/step_json.php".
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Re: Upgrade to 1.2.13 stalls after spawning background process

Post by gdsotirov »

After two unsuccessful attempts, I manged to complete the upgrade by restarting the web server, clearing cookies and navigating to Cacti's URL in the web browser...
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Upgrade to 1.2.13 stalls after spawning background process

Post by netniV »

The interesting part of that error was the use of ./lib/ldap.php as I was sure this was converted to a proper __DIR__ version. Likely an unintended regression so I would post that as an issue on GitHub.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests