Upgrade 1.2.4. stuck spawning background process

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

Moderators: Developers, Moderators

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

Upgrade 1.2.4. stuck spawning background process

Post by optimist »

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

Post by zuku »

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

Post by optimist »

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

Post by zuku »

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

Post by optimist »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Upgrade 1.2.4. stuck spawning background process

Post by netniV »

You should not update the version table directly, as the upgrade scripts do that for you.
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 1 guest