1.2.20 upgrade progress stops 0% spawning bg process

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
voytek
Posts: 46
Joined: Tue Sep 04, 2012 8:20 pm

1.2.20 upgrade progress stops 0% spawning bg process

Post by voytek »

have a hobby install on Centos, after doing 'yum update' got a cacti upgrade.
going to http;//localhost/cacti got the normal screens update screen, after the last screen, got 'click to upgrade', and, it's not progressing stuck on 0%:

url:
http://192.168.1.8/cacti/install/instal ... 22:%221%22}
------------------------
Cacti Server v1.2.20 - Installation Wizard
Installing Cacti Server v1.2.20
Your Cacti Server is now installing

Refresh in ProgressLast updated: 11:37:54

0 %
2022-04-24 11:37:54 - INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650764274.5287
----------------------

what should I do ?

# tail cacti.log
2022-04-24 11:40:15 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2022-04-24 11:40:15 - ERROR PHP PARSE: syntax error, unexpected '[' in file: /usr/share/cacti/lib/api_device.php on line: 1214
2022-04-24 11:40:15 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2022-04-24 11:40:15 - SYSTEM DSSTATS STATS: Time:0.14 Type:HOURLY
2022-04-24 11:45:14 - SYSTEM STATS: Time:12.6685 Method:spine Processes:1 Threads:1 Hosts:16 HostsPerProcess:16 DataSources:272 RRDsProcessed:149
2022-04-24 11:45:14 - ERROR PHP PARSE: syntax error, unexpected '[' in file: /usr/share/cacti/lib/api_device.php on line: 1214
2022-04-24 11:45:14 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2022-04-24 11:45:14 - ERROR PHP PARSE: syntax error, unexpected '[' in file: /usr/share/cacti/lib/api_device.php on line: 1214
2022-04-24 11:45:14 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2022-04-24 11:45:14 - SYSTEM DSSTATS STATS: Time:0.15 Type:HOURLY

# tail install-complete.log
[2021-11-18 10:45:47] [ global always ] Finished INSTALL Process for v1.2.19
[2021-11-18 10:45:48] [ sync always ] No Remote Data Collectors found for full syncronization
[2021-11-18 10:45:48] [ global always ] Installation was started at 2021-11-18 10:42:05, completed at 2021-11-18 10:45:48
[2022-04-23 23:01:39] [ global always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650718899.9742
[2022-04-23 23:26:41] [ global always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650720401.874
[2022-04-23 23:51:43] [ global always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650721903.8748
[2022-04-24 00:16:44] [ global always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650723404.8848
[2022-04-24 00:41:45] [ global always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650724905.8979
[2022-04-24 01:06:46] [ global always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650726406.9036
[2022-04-24 11:37:54] [ global always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650764274.5287

# tail install-general.log
[2021-11-18 10:45:47] [ always ] Generating RSA Key Pair
[2021-11-18 10:45:47] [ always ] Finished INSTALL Process for v1.2.19
[2021-11-18 10:45:48] [ always ] Installation was started at 2021-11-18 10:42:05, completed at 2021-11-18 10:45:48
[2022-04-23 23:01:39] [ always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650718899.9742
[2022-04-23 23:26:41] [ always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650720401.874
[2022-04-23 23:51:43] [ always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650721903.8748
[2022-04-24 00:16:44] [ always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650723404.8848
[2022-04-24 00:41:45] [ always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650724905.8979
[2022-04-24 01:06:46] [ always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650726406.9036
[2022-04-24 11:37:54] [ always ] Spawning background process: /usr/bin/php '/usr/share/cacti/install/background.php' 1650764274.5287

Linux 3.10.0-1160.59.1.el7.centos.plus.x86_64 #1 SMP Wed Feb 23 17:40:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: 1.2.20 upgrade progress stops 0% spawning bg process

Post by netniV »

It's possible you are hitting one of a few bugss in the library files that cause syntax errors. Especially if you are on PHP 5.4. Check the github issue trackers for more info
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
voytek
Posts: 46
Joined: Tue Sep 04, 2012 8:20 pm

Re: 1.2.20 upgrade progress stops 0% spawning bg process

Post by voytek »

thanks

http://192.168.1.9/p.php
PHP Version 7.3.33
System Linux 3.10.0-1160.53.1.el7.x86_64 #1 SMP Fri Jan 14 13:59:45 UTC 2022 x86_64
Build Date Nov 16 2021 11:18:28
Build System Red Hat Enterprise Linux Server release 7.9 (Maipo)
Build Provider Remi's RPM repository <https://rpms.remirepo.net/>
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/opt/remi/php73
Loaded Configuration File /etc/opt/remi/php73/php.ini
Scan this dir for additional .ini files /etc/opt/remi/php73/php.d

got same issue on another unit

I'll try github issue trackers. though not sure what I'm looking for
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: 1.2.20 upgrade progress stops 0% spawning bg process

Post by netniV »

Check for lib/api_device.php as you won't have the PHP 5.4 issue, but there was one for a bad character in there. 1.2.21 will likely be released by the weekend.
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
voytek
Posts: 46
Joined: Tue Sep 04, 2012 8:20 pm

Re: 1.2.20 upgrade progress stops 0% spawning bg process

Post by voytek »

thanks, I guess I'll wait for the updated build (as I'm a little out of my depth)

/usr/share/cacti/lib
# ls -al api*
..
-rw-r--r-- 1 root root 52237 Apr 5 23:48 api_device.php
..
voytek
Posts: 46
Joined: Tue Sep 04, 2012 8:20 pm

Re: 1.2.20 upgrade progress stops 0% spawning bg process

Post by voytek »

just updated to 1.21, issue resolved, thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests