Upgrade script 0.4.9 to 0.5.0 seems not to work

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
User avatar
Hipska
Posts: 48
Joined: Tue Oct 09, 2012 2:51 am
Location: Belgium

Upgrade script 0.4.9 to 0.5.0 seems not to work

Post by Hipska »

I'm testing the upgrade script to go from 0.4.9 to 0.5.0, but it seems to hang.
Even if I have no configured tholds, its taking forever to complete without any user feedback.

I want to run queries manually if I know what the DB differences between 0.4.9 and 0.5.0 are, but database.php looks so messy I could not find it out.

Somebody care to help?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Upgrade script 0.4.9 to 0.5.0 seems not to work

Post by cigamit »

There have been no database changes since 0.4.7
User avatar
Hipska
Posts: 48
Joined: Tue Oct 09, 2012 2:51 am
Location: Belgium

Re: Upgrade script 0.4.9 to 0.5.0 seems not to work

Post by Hipska »

Then why is the upgrade script trying to do these changes?
alkman82
Cacti User
Posts: 50
Joined: Tue Dec 15, 2009 7:32 am
Location: Athens

Re: Upgrade script 0.4.9 to 0.5.0 seems not to work

Post by alkman82 »

I had the same problem. That was because the upgrade script was unable to find out the correct version of the old plugin (0.4.9) so it was trying to do some changes in the database as if I had 0.4.4.

What we did was to add in file cacti/plugins/thold/includes/database.php after line:

Code: Select all

$oldv = read_config_option('plugin_thold_version');
the line:

Code: Select all

$oldv = '0.4.9';
And the problem solved with this workaround.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests