Pages: [1]   Go Down
Author Topic: Major failure after upgrade to 4.0  (Read 415 times)
0 Members and 1 Guest are viewing this topic.
Christer
Jr. Member
**

Karma: 0
Offline Offline

Posts: 14


View Profile
« on: October 03, 2011, 03:46:49 PM »

Upgrade went fine and everything, until I restarted the server some hours after that.
All of a sudden pandora_server could not start.

pandora_server.error said:

DBD::mysql::db do failed: Failed to read auto-increment value from storage engine at /usr/lib/perl5/PandoraFMS/DB.pm line 556.

Thankfully the machine is in VMware and I could return to a snapshot I did before I began the upgrade.
Logged

Christer
Jr. Member
**

Karma: 0
Offline Offline

Posts: 14


View Profile
« Reply #1 on: October 05, 2011, 07:40:10 AM »

I managed to recreate the failure.
I installed a new machine in our Vshpere with help of the VMware image you guys also provide, which is nice.

Did mysql dump on the 3.2.1 pandora server and exported it into the new one.
Stopped pandora_server and injected the backuped up sql.

Then ran /srv/www/htdocs/pandora_console/extras/pandoradb_migrate_v3.2_to_v4.0.sql

Started Pandora, server ran fine and stuff.
Tried a restart of the server to see if the problem would appear again, and sure it did.
Have made sure the mysql password for pandora user is correct in the conf and stuff.
Even added $config["dbtype"]="mysql"; to <pandora_console_path>/include/config.php as per upgrade major version in the online documentation. None of it has helped.

Btw the new VMware harddisk wasent as easy as the 3.2.1 version. The server wouldnt load the disk. Googled on the issue and learned that i had to run vmfkstool to import the disk because it was of the wrong version or something.
Logged

Bty
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« Reply #2 on: October 05, 2011, 04:00:17 PM »

Upgrade went fine and everything, until I restarted the server some hours after that.
All of a sudden pandora_server could not start.

pandora_server.error said:

DBD::mysql::db do failed: Failed to read auto-increment value from storage engine at /usr/lib/perl5/PandoraFMS/DB.pm line 556.

Thankfully the machine is in VMware and I could return to a snapshot I did before I began the upgrade.

Same problem here. The web console is working fine, but I can't start pandora_server. When I do it manually I get the same error.

2011-10-05 16:52:12 - nadzor Starting Pandora FMS Server. Error logging activated.
DBD::mysql::db do failed: Failed to read auto-increment value from storage engine at /usr/lib/perl5/PandoraFMS/DB.pm line 556.
DBD::mysql::db do failed: Failed to read auto-increment value from storage engine at /usr/lib/perl5/PandoraFMS/DB.pm line 556.
Logged

tpalacios
Administrator
Sr. Member
*****

Karma: 8
Offline Offline

Posts: 190


The Game


View Profile
« Reply #3 on: October 06, 2011, 12:31:41 PM »

Please insert this into your Pandora database:

Code:
ALTER TABLE tsesion AUTO_INCREMENT = 1;

And let me know if it worked.

Regards.
Logged

Bty
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« Reply #4 on: October 06, 2011, 01:29:36 PM »

Yap, working like a charm.

Thank you for your support.

Logged

Bty
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« Reply #5 on: October 06, 2011, 02:55:46 PM »

Found another bug. When I try to create or modify a module I receive an error.


* Capture.JPG (66.99 KB, 860x555 - viewed 12 times.)
Logged

Christer
Jr. Member
**

Karma: 0
Offline Offline

Posts: 14


View Profile
« Reply #6 on: October 06, 2011, 07:05:42 PM »

Yap, working like a charm.

Thank you for your support.




Worked for me as well. Thank you.
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST