Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

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

Moderators: Moderators, Developers

Author
Message
stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#1 Post by stormonts » Fri Sep 06, 2019 12:16 pm

Whether we try to upgrade from 1.2.4 to 1.2.5 or 1.2.6 we get the behavior below.

Go to cacti-st-01/cacti and receive a prompt for login credentials. Login, and then this screen is shown (we do have JavaScript enabled):
screen1.png
screen1.png (10.45 KiB) Viewed 175 times
The progress bar goes all the way across the top of the screen and then we see this page with no buttons.
Attachments
screen2.png
screen2.png (6.83 KiB) Viewed 175 times


stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#3 Post by stormonts » Sat Sep 07, 2019 2:43 pm

I do not see any. Now we are seeing a different issue after the server was rebooted and we try and go from 1.2.4 to 1.2.6. This is the first screen
1st.png
1st.png (10.72 KiB) Viewed 164 times
And then it goes to the screen below. Clicking the "Get Started" button just loops back to the same screen.
2nd.png
2nd.png (22.05 KiB) Viewed 164 times

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

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#4 Post by netniV » Sat Sep 07, 2019 3:45 pm

OK, do this in mysql

Code: Select all

DELETE FROM Settings WHERE name like 'install_%';

stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#5 Post by stormonts » Sat Sep 07, 2019 4:09 pm

I executed that command (turns out it had to be settings with a lowercase "s").

Code: Select all

mysql> DELETE FROM settings WHERE name like 'install_%';
Query OK, 41 rows affected (0.21 sec)
Unfortunately, now we are back to the very first set of images where the first page shows up and then goes to the blank second page. Still no console errors.

stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#6 Post by stormonts » Tue Sep 10, 2019 11:01 am

I did find this in the cacti.error.log

Code: Select all

[Tue Sep 10 11:58:43.341035 2019] [proxy_fcgi:error] [pid 34557] [client w.x.y.z:49881] AH01071: Got error 'PHP message: PHP Notice:  Undefined property: Installer::$automationRange in /usr/local/cacti-1.2.4/lib/installer.php on line 883\nPHP message: PHP Stack trace:\nPHP message: PHP   1. {main}() /usr/local/cacti-1.2.4/install/step_json.php:0\nPHP message: PHP   2. Installer->__construct() /usr/local/cacti-1.2.4/install/step_json.php:65\nPHP message: PHP   3. Installer->setDefaults() /usr/local/cacti-1.2.4/lib/installer.php:169\nPHP message: PHP   4. Installer->setAutomationRange() /usr/local/cacti-1.2.4/lib/installer.php:340\n', referer: http://cacti-st-01/cacti/install/install.php
[Tue Sep 10 11:58:46.842358 2019] [proxy_fcgi:error] [pid 34557] [client w.x.y.z:49881] AH01071: Got error 'PHP message: PHP Notice:  Undefined property: Installer::$automationRange in /usr/local/cacti-1.2.4/lib/installer.php on line 883\nPHP message: PHP Stack trace:\nPHP message: PHP   1. {main}() /usr/local/cacti-1.2.4/install/step_json.php:0\nPHP message: PHP   2. Installer->__construct() /usr/local/cacti-1.2.4/install/step_json.php:65\nPHP message: PHP   3. Installer->setDefaults() /usr/local/cacti-1.2.4/lib/installer.php:169\nPHP message: PHP   4. Installer->setAutomationRange() /usr/local/cacti-1.2.4/lib/installer.php:340\n', referer: http://cacti-st-01/cacti/install/install.php?data={%22Step%22:%221%22,%22Eula%22:false}
[Tue Sep 10 11:58:50.142778 2019] [proxy_fcgi:error] [pid 34557] [client w.x.y.z:49881] AH01071: Got error 'PHP message: PHP Notice:  Undefined property: Installer::$automationRange in /usr/local/cacti-1.2.4/lib/installer.php on line 883\nPHP message: PHP Stack trace:\nPHP message: PHP   1. {main}() /usr/local/cacti-1.2.4/install/step_json.php:0\nPHP message: PHP   2. Installer->__construct() /usr/local/cacti-1.2.4/install/step_json.php:65\nPHP message: PHP   3. Installer->setDefaults() /usr/local/cacti-1.2.4/lib/installer.php:169\nPHP message: PHP   4. Installer->setAutomationRange() /usr/local/cacti-1.2.4/lib/installer.php:340\n', referer: http://cacti-st-01/cacti/install/install.php?data={%22Step%22:%221%22,%22Eula%22:true,%22Theme%22:%22paw%22,%22Language%22:%22en-US%22}
[Tue Sep 10 11:58:51.442566 2019] [proxy_fcgi:error] [pid 25472] [client w.x.y.z:49886] AH01071: Got error 'PHP message: PHP Notice:  Undefined property: Installer::$automationRange in /usr/local/cacti-1.2.4/lib/installer.php on line 883\nPHP message: PHP Stack trace:\nPHP message: PHP   1. {main}() /usr/local/cacti-1.2.4/install/step_json.php:0\nPHP message: PHP   2. Installer->__construct() /usr/local/cacti-1.2.4/install/step_json.php:65\nPHP message: PHP   3. Installer->setDefaults() /usr/local/cacti-1.2.4/lib/installer.php:169\nPHP message: PHP   4. Installer->setAutomationRange() /usr/local/cacti-1.2.4/lib/installer.php:340\n', referer: http://cacti-st-01/cacti/install/install.php?data={%22Step%22:%221%22,%22Eula%22:true,%22Theme%22:%22paw%22,%22Language%22:%22en-US%22}

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

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#7 Post by netniV » Wed Sep 11, 2019 4:40 am

Did you put 1.2.5/1.2.6 into the 1.2.4 folder? If not, that error suggests it is trying to run the 1.2.4 code...

stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#8 Post by stormonts » Wed Sep 11, 2019 5:49 am

No, we are not doing that. What we are doing is what we have always done.

The apache.conf file points to /usr/local/cacti. The new version is extracted to /usr/local/cacti/1.2.6. There is a symlink that was pointed to /usr/local/cacti-1.2.4 and it is updated to point to /usr/local/1-2.6. Then we go to the standard URL http://cacti-st-01/cacti and the upgrade would run.

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

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#9 Post by netniV » Wed Sep 11, 2019 10:04 am

Due to issues in the past, there is a lot of use of realpath() in cacti which means that the symlink folders are likely getting resolved into the full paths. Check your settings table for any version specific paths.

stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#10 Post by stormonts » Wed Sep 11, 2019 10:08 am

This is what I see.

Code: Select all

mysql> SELECT * FROM settings where value like '/usr/local/cacti%';
+---------------------------+---------------------------------------+
| name                      | value                                 |
+---------------------------+---------------------------------------+
| boost_png_cache_directory | /usr/local/cacti/cache/boost/         |
| path_cactilog             | /usr/local/cacti/log/cacti.log        |
| path_stderrlog            | /usr/local/cacti/log/cacti_stderr.log |
| path_stderrrlog           | /usr/local/cacti/log/cacti_stderr.log |
| path_webroot              | /usr/local/cacti-1.2.4                |
| realtime_cache_path       | /usr/local/cacti/cache/realtime/      |
| spikekill_backupdir       | /usr/local/cacti/cache/spikekill/     |
+---------------------------+---------------------------------------+
7 rows in set (0.00 sec)
Are you saying that I should switch the path_webroot to /usr/local/cacti-1.2.6?


stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#12 Post by stormonts » Wed Sep 11, 2019 10:18 am

That then got me to this screen. Definitely still something off given the references to both 1.2.4 and 1.2.6. When I click in the box to accept the agreement, I get a spinner and then it just comes back to the same page with the box unchecked.
cacti-1.png
cacti-1.png (40.34 KiB) Viewed 130 times

stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#13 Post by stormonts » Wed Sep 11, 2019 2:33 pm

I am totally out of ideas on this one. Where we are now:

httpd.conf points to /usr/local/cacti

symlink = /usr/local/cacti-1.2.4 -> /usr/local/cacti
path_webroot = /usr/local/cacti-1.2.4
Cacti 1.2.4 WORKS

symlink = /usr/local/cacti-1.2.4 -> /usr/local/cacti
path_webroot = /usr/local/cacti
Cacti 1.2.4 WORKS

symlink = /usr/local/cacti-1.2.6 -> /usr/local/cacti
path_webroot = /usr/local/cacti-1.2.6
White screen with spinner, white screen

symlink = /usr/local/cacti-1.2.6 -> /usr/local/cacti
path_webroot = /usr/local/cacti
White screen with spinner, white screen
cacti-1.2.6-01.png
cacti-1.2.6-01.png (27.93 KiB) Viewed 126 times
cacti-1.2.6-02.png
cacti-1.2.6-02.png (8.2 KiB) Viewed 126 times

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

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#14 Post by netniV » Thu Sep 12, 2019 2:49 am

Yes, this definitely sounds like a path issue. Do you have any errors in your apache, php or cacti logs?

stormonts
Cacti User
Posts: 299
Joined: Tue Mar 31, 2009 10:05 am

Re: Unable to upgrade from 1.2.4 to either 1.2.5 or 1.2.6

#15 Post by stormonts » Thu Sep 12, 2019 1:41 pm

Turns out that php-fpm was the problem. Once restarted, the installation continued as normal.

Post Reply