Upgrade 1.2.4. stuck spawning background process

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

Moderators: Moderators, Developers

Post Reply
Author
Message
optimist
Posts: 7
Joined: Tue Jun 11, 2019 10:55 am

Upgrade 1.2.4. stuck spawning background process

#1 Post by optimist » Tue Jun 11, 2019 11:12 am

Hello,

my webgui upgrade of cacti v1.2.0 to v1.2.4 stuck at this:

Code: Select all

Installing Cacti Server v1.2.4
Your Cacti Server is now installing

Refresh in	 	ProgressLast updated: 17:46:50
 	
0 %
11.06.2019 17:46:50 - INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php' 1560268010.0849 
11.06.2019 17:21:49 - INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php' 1560266509.8817 
11.06.2019 16:40:36 - INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php' 1560264036.2562 
11.06.2019 16:11:47 - INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php' 1560262307.8949 
11.06.2019 15:46:46 - INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php' 1560260806.935 
11.06.2019 15:21:45 - INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php' 1560259305.2364 
Machine:
Linux 4.9.0-9-686-pae #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) i686 GNU/Linux

PHP:
PHP 7.0.33-0+deb9u3

MySQL:
Server version: 10.1.38-MariaDB-0+deb9u1 Debian 9.8

Until this, everythink worked fine.
Can anyone help me?
Many thanks!

zuku
Posts: 8
Joined: Thu Jun 09, 2016 2:11 am

Re: Upgrade 1.2.4. stuck spawning background process

#2 Post by zuku » Thu Jun 13, 2019 3:48 pm

I have the same issue with 1.2.4 on debian, even if I start again from the beginning by create again /usr/share/cacti/site/
it starts from the same error:

Code: Select all

INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php'
Why installation progress is remember even if I create new cacti site? how to start from scratch?

optimist
Posts: 7
Joined: Tue Jun 11, 2019 10:55 am

Re: Upgrade 1.2.4. stuck spawning background process

#3 Post by optimist » Fri Jun 14, 2019 9:30 am

zuku wrote:I have the same issue with 1.2.4 on debian, even if I start again from the beginning by create again /usr/share/cacti/site/
it starts from the same error:

Code: Select all

INSTALL: always: Spawning background process: /usr/bin/php '/usr/share/cacti/site/install/background.php'
Why installation progress is remember even if I create new cacti site? how to start from scratch?

Hello Zuku,

are you upgrading or installing cacti? If upgrading from what version?

zuku
Posts: 8
Joined: Thu Jun 09, 2016 2:11 am

Re: Upgrade 1.2.4. stuck spawning background process

#4 Post by zuku » Fri Jun 14, 2019 10:36 am

upgrade from 1.1.3

optimist
Posts: 7
Joined: Tue Jun 11, 2019 10:55 am

Re: Upgrade 1.2.4. stuck spawning background process

#5 Post by optimist » Fri Jun 14, 2019 10:46 am

zuku wrote:upgrade from 1.1.3
Did you run this script?

sudo -u cacti php -q cli/upgrade_database.php --forcever=1.1.38

IMPORTANT
When using source or by downloading the code directly from the repository, it is important to run the database upgrade script if you experience any errors referring to missing tables or columns in the database.

Changes to the database are committed to the cacti.sql file which is used for new installations and committed to the installer database upgrade for existing installations. Because the version number does not change until release in the develop branch, which will result in the database upgrade not running, it is important to either use the database upgrade script to force the current version or update the version in the database.

Running Database Upgrade Script
sudo -u cacti php -q cli/upgrade_database.php --forcever=`cat include/cacti_version`
Updating Cacti Version in Database
update version set cacti = '1.1.38';
Note: Change the above version to the correct version or risk the installer upgrading from a previous version.

netniV
Cacti Guru User
Posts: 2808
Joined: Sun Aug 27, 2017 12:05 am

Re: Upgrade 1.2.4. stuck spawning background process

#6 Post by netniV » Thu Jun 20, 2019 7:00 pm

You should not update the version table directly, as the upgrade scripts do that for you.

Post Reply