Upgrade from 1.2.10 to 1.2.11 blocked

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 from 1.2.10 to 1.2.11 blocked

Post by gdsotirov »

About 20 minutes ago I started upgrade from 1.2.10 to 1.2.11, but it still hasn't finished. In the log there is the following:

Code: Select all

2020/04/07 09:08:20 - INSTALL: always: About to import Package #4 'Local_Linux_Machine.xml.gz'.
2020/04/07 09:08:20 - INSTALL: always: Import of Package #3 'Generic_SNMP_Device.xml.gz' under Profile '1' succeeded
2020/04/07 09:08:16 - INSTALL: always: About to import Package #3 'Generic_SNMP_Device.xml.gz'.
2020/04/07 09:08:16 - INSTALL: always: Import of Package #2 'Cisco_Router.xml.gz' under Profile '1' succeeded
2020/04/07 09:07:58 - INSTALL: always: About to import Package #2 'Cisco_Router.xml.gz'.
2020/04/07 09:07:58 - INSTALL: always: Import of Package #1 'Cacti_Stats.xml.gz' under Profile '1' succeeded
2020/04/07 09:06:39 - INSTALL: always: About to import Package #1 'Cacti_Stats.xml.gz'.
2020/04/07 09:06:39 - INSTALL: always: Found 6 templates to install
2020/04/07 09:06:38 - INSTALL: always: Upgrading from v1.2.10 (DB 1.2.11 (DB: 1.2.10)) to v1.2.11
2020/04/07 09:06:38 - INSTALL: always: NOTE: Using temporary file for db cache: /tmp/cdugTHLnM
2020/04/07 09:06:38 - INSTALL: always: Switched from to /tmp/cdugTHLnM
2020/04/07 09:06:38 - INSTALL: always: No tables where found or selected for conversion
2020/04/07 09:06:35 - INSTALL: always: Starting UPGRADE Process for v1.2.11
2020/04/07 09:06:32 - INSTALL: always: Setting PHP Option memory_limit = -1
2020/04/07 09:06:32 - INSTALL: always: Setting PHP Option max_execution_time = 0
2020/04/07 09:06:32 - INSTALL: Checking arguments
2020/04/07 09:06:32 - INSTALL: always: Spawning background process: /usr/bin/php '/var/www/htdocs/stats/cacti/install/background.php' 1586239592.7606 
And nothing more gets printed. I noticed that two httpd processes are running high CPU on the server, but I find no errors in the logs. What could be the problem? I'm not sure why this version decided to import device templates...
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by Osiris »

Okay, first restart Apache, then execute the following command from MySQL:

DELETE FROM settings WHERE name LIKE "install%";

Next, navigate to. cacti/index.php and this time don't pick the templates. This was tested multiple times. Not sure why it hanging for you. Tell us a bit about you pho and Apache and OS versions.
Last edited by Osiris on Tue Apr 07, 2020 1:37 am, edited 1 time in total.
Before history, there was a paradise, now dust.
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by gdsotirov »

I restarted Apache and after few minutes the installation finished with the following addition to the log:

Code: Select all

2020/04/07 09:33:35 - INSTALL: always: Installation was started at 2020-04-07 06:33:33, completed at 2020-04-07 06:33:35
2020/04/07 09:33:34 - INSTALL: always: Finished INSTALL Process for v1.2.11
2020/04/07 09:33:34 - INSTALL: always: No tables where found or selected for conversion
2020/04/07 09:33:34 - INSTALL: always: Starting INSTALL Process for v1.2.11
2020/04/07 09:33:33 - INSTALL: always: Setting PHP Option memory_limit = -1
2020/04/07 09:33:33 - INSTALL: always: Setting PHP Option max_execution_time = 0
2020/04/07 09:33:33 - INSTALL: Checking arguments
2020/04/07 09:33:33 - INSTALL: always: Spawning background process: /usr/bin/php '/var/www/htdocs/stats/cacti/install/background.php' 1586241213.1184 
Why this upgrade took so long?
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by Osiris »

Really, no idea. See my other post. Upload the install logs.
Before history, there was a paradise, now dust.
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by gdsotirov »

Osiris wrote: Tue Apr 07, 2020 1:36 am Next, navigate to. cacti/index.php and this time don't pick the templates. This was tested multiple times. Not sure why it hanging for you. Tell us a bit about you pho and Apache and OS versions.
Ups... I wrote meantime. Well, the templates were pre-selected, so I left it like this as I didn't expect problems. Anyway I'm on Slackware 14.2, Apache 2.4.43 and PHP 5.6.40, but it's the first time I get this problem on upgrading Cacti. I'll make sure I deselect templates if I get this on next upgrade.
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by gdsotirov »

Osiris wrote: Tue Apr 07, 2020 1:38 am Really, no idea. See my other post. Upload the install logs.
What other logs you need?
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by gdsotirov »

Argh... now that I manged to upgrade the first issue I face is that most of my devices are not visible in Management -> Devices, which should be related to the new filter by location... :-(

P.S. Just registered it as issue 3424.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by Osiris »

Yea, odd. I saw it. Is there no "All" drop-down? That should be the default.
Before history, there was a paradise, now dust.
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by gdsotirov »

Osiris wrote: Tue Apr 07, 2020 2:27 am Yea, odd. I saw it. Is there no "All" drop-down? That should be the default.
No, the blank value was selected by default without the possibility to select anything else in the filter.
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by gdsotirov »

:cry: This update of the templates already cost me the whole morning... some of my modified data queries were wiped out and I'm still restoring... please, be ware NOT to select the installation of templates during upgrade. I'm really not sure why I got this option displayed.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by TheWitness »

There was a fix for the location issue. But can you be specific on what was "wiped out"?
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by netniV »

gdsotirov wrote: Tue Apr 07, 2020 6:11 am :cry: This update of the templates already cost me the whole morning... some of my modified data queries were wiped out and I'm still restoring... please, be ware NOT to select the installation of templates during upgrade. I'm really not sure why I got this option displayed.
That should only happen if you are modifying the base templates rather than duplicating them and then modifying the duplicates.
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
User avatar
gdsotirov
Posts: 45
Joined: Fri Sep 19, 2014 3:33 am
Location: Sofia, Bulgaraia
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by gdsotirov »

Yes, that's the case. I've modified the base templates years ago and I didn't expect they would be rewritten by upgrades :-)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade from 1.2.10 to 1.2.11 blocked

Post by TheWitness »

Template version control, or the lack there of, has been a problem since the beginning. It's something, that god willing will be addressed very soon.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest