1.2.11 - Cacti Upgrade hangs at 42%

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

Moderators: Developers, Moderators

User avatar
Jeeves
Cacti User
Posts: 91
Joined: Wed Jun 12, 2013 6:25 pm

1.2.11 - Cacti Upgrade hangs at 42%

Post by Jeeves »

On two different CentOS 7 systems the installer hangs at 42%.
It keeps refreshing, but no progress is made.

The seems to be caused by importing template packages (which I can find no other way to import);

Code: Select all

[2020-04-06 20:58:16] [ always  ] Found 6 templates to install
[2020-04-06 20:58:16] [ always  ] About to import Package #1 'Cacti_Stats.xml.gz'.
[2020-04-06 20:58:18] [ always  ] Import of Package #1 'Cacti_Stats.xml.gz' under Profile '1' succeeded
[2020-04-06 20:58:18] [ always  ] About to import Package #2 'Cisco_Router.xml.gz'.
Eventually, I reboot the server. The Install runs through converting the tables again;

Code: Select all

[2020-04-06 20:58:16] [ always  ] Switched from  to /tmp/cduF1KTV7
[2020-04-06 20:58:16] [ always  ] NOTE: Using temporary file for db cache: /tmp/cduF1KTV7
[2020-04-06 20:58:16] [ always  ] Upgrading from v1.2.10 (DB 1.2.11 (DB: 1.2.10)) to v1.2.11
[2020-04-06 20:58:16] [ always  ] Found 6 templates to install
[2020-04-06 20:58:16] [ always  ] About to import Package #1 'Cacti_Stats.xml.gz'.
[2020-04-06 20:58:18] [ always  ] Import of Package #1 'Cacti_Stats.xml.gz' under Profile '1' succeeded
[2020-04-06 20:58:18] [ always  ] About to import Package #2 'Cisco_Router.xml.gz'.
-- Reboot here --
[2020-04-06 21:23:21] [ always  ] Spawning background process: /bin/php '/usr/share/cacti/install/background.php' 1586229801.2444
[2020-04-06 21:23:21] [ always  ] Setting PHP Option max_execution_time = 0
[2020-04-06 21:23:21] [ always  ] Setting PHP Option memory_limit = -1
[2020-04-06 21:23:22] [ always  ] Starting INSTALL Process for v1.2.11
[2020-04-06 21:23:22] [ always  ] Found 196 tables to convert
[2020-04-06 21:23:22] [ always  ] Converting Table #1 'aggregate_graphs'
[2020-04-06 21:23:22] [ always  ] Converting Table #2 'aggregate_graphs_graph_item'
[2020-04-06 21:23:22] [ always  ] Converting Table #3 'aggregate_graphs_items'
[2020-04-06 21:23:22] [ always  ] Converting Table #4 'aggregate_graph_templates'
This time it succeeds as the import is not performed at the end of the process.
It should also be noted that the timestamps are in local time, and the Installation started/completed times are seemingly in UTC:

Code: Select all

[2020-04-06 21:23:51] [ always  ] Converting Table #194 'weathermap_groups'
[2020-04-06 21:23:51] [ always  ] Converting Table #195 'weathermap_maps'
[2020-04-06 21:23:52] [ always  ] Converting Table #196 'weathermap_settings'
[2020-04-06 21:23:52] [ always  ] Finished INSTALL Process for v1.2.11
[2020-04-06 21:23:52] [ always  ] Installation was started at 2020-04-07 03:23:21, completed at 2020-04-07 03:23:52
mrscary
Cacti User
Posts: 149
Joined: Tue Aug 26, 2014 2:58 pm

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by mrscary »

im running on windows. i followed the upgrade instructions for CACTI, and I am also stuck at 42% (my other install was a fresh install from a week ago. Mine is at 42% showing me "about to import package #2 'Cisco_Router.xml.gz'.
so far, been at this screen for 8 minutes and counting.
mrscary
Cacti User
Posts: 149
Joined: Tue Aug 26, 2014 2:58 pm

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by mrscary »

i let mine go, eventually got a time out screen. took me to a logon screen.
wont let me login.i put in my username\pw.. just takes me back to the logon screen.


im going to restore my 1.2.9 db and cacti folder and see if i can get back up and running.
mrscary
Cacti User
Posts: 149
Joined: Tue Aug 26, 2014 2:58 pm

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by mrscary »

i dropped and deleted my 1.2.11 database.
I imported my backup of my 1.2.9 database from minutes before my upgrade attempt.
stopped my web server
renamed cacti folder to cacti 1211
renamed cacti.old folder to cacti
restarted my web server.
im back in to where i was before my attempt. if anyone finds out why the hang up happens at 42%, ill attempt a new backup and upgrade.
User avatar
Jeeves
Cacti User
Posts: 91
Joined: Wed Jun 12, 2013 6:25 pm

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by Jeeves »

I have opened an issue on Github related to this.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by netniV »

Thanks, this issue seems to be something to do with the package event not properly notifying that it's complete, or not being handle properly. I personally haven't experienced it on my systems so it suggests that there may be something environmental, ie in the database or speed or software based that is creating the issue, but trying to reproduce it is the fun part!
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
phantom984
Posts: 1
Joined: Fri Jun 21, 2013 10:11 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by phantom984 »

Hi

It happened same to me, after upgrade 1.2.10 to 1.2.11 stuck in 42%

I have cacti installed over windows server 2016 Datacenter
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by TheWitness »

Some of this looks cookie domain related.
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?
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by Rno »

Rhaa great !
So I clean my coockie, on my cacti log the last status of the upgrade is:
21/04/2020 13:07:55 - IMPORT Importing XML Data for Cisco_Router.xml

so I'm sure the upgrade didn't finish, what can I do ?
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by Rno »

Great again!
Following the remark on the github about the cookie domain, now I'm stuck and not able to login again !
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by Rno »

Hello,
Beside the cookie issue that only let you login, what is the next step to finish the install after it was stuck to 42% ?
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by Rno »

Whooo one more things,
Since the upgrade didn't go further than 42%, and I didn't have any solution,cacti is not calling any hook !!

So great, anyone able to give anything to finish this install ?
Without having to re-install everything
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by patrickr »

I have had the same issue on a machine running CentOS 7. After seeing the progress bar not move, I rebooted the machine. Unfortunately I am unable to login and keep getting a loop back to the login page.
I then installed 1.2.11 on a new CentOS machine and can't log in with the default credentials of admin/admin. There definitely appears to be issues with 1.2.11 that need to be addressed.
swainstm1
Posts: 15
Joined: Wed Apr 22, 2020 10:50 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by swainstm1 »

In another thread someone referred me to :-
https://github.com/Cacti/cacti/issues/3436

I there, there is likely to be an answer for me to the login issue (and hopefully the 42% issue). From there :-

"Okay, this is interesting. Are any of you guys copying the config.php.dist to config.php? If so, comment out the $cacti_cookie_domain line. This was supposed to be commented out, but for some reason (likely late night), it was not commented out."

So I commented "$cacti_cookie_domain" line out in config.php, and then I could login for my new install. I have not seen the 42% issue, so can't comment on that.

So for me that seems to be the fix at least for a new install.

Good luck.
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: 1.2.11 - Cacti Upgrade hangs at 42%

Post by patrickr »

swainstm1 wrote: Fri Apr 24, 2020 9:28 pm In another thread someone referred me to :-
https://github.com/Cacti/cacti/issues/3436

I there, there is likely to be an answer for me to the login issue (and hopefully the 42% issue). From there :-

"Okay, this is interesting. Are any of you guys copying the config.php.dist to config.php? If so, comment out the $cacti_cookie_domain line. This was supposed to be commented out, but for some reason (likely late night), it was not commented out."

So I commented "$cacti_cookie_domain" line out in config.php, and then I could login for my new install. I have not seen the 42% issue, so can't comment on that.

So for me that seems to be the fix at least for a new install.

Good luck.
That worked for me initially. However when I closed my browser and reopened it, I couldn't log in anymore. I haven't been able to log in since.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests