[SOLVED] Cacti is Down

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
packet7
Posts: 30
Joined: Thu Mar 29, 2007 9:10 am

[SOLVED] Cacti is Down

Post by packet7 »

Hello,

Our Cacti box has been running for a few months without issue. This morning, we are unable to login. We have the following error:

Error

You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:

mysql -u cactiuser -p cacti < cacti.sql

This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.

I tried that command, but we had no success. Any advice? Thank you!

Rgds,

John
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Tried repairing the database yet?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

packet7
Posts: 30
Joined: Thu Mar 29, 2007 9:10 am

RE: Cacti is Down

Post by packet7 »

Hi,

I tried to edit my.cnf, but I got an error upon entering vi "Error, recovery impossible".

E297: Write error in swap file
"my.cnf" 15L, 313C
Hit ENTER or type command to continue


[mysqld]
datadir=/srv/mysql
socket=/srv/mysql/mysql.sock
# To use old password old password format for compatibility with mysql 3.x
# clients, uncomment following line.
# old_passwords=1


[mysql.server]
user=mysql
basedir=/srv/mysql

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
~
Any ideas? Thank you.

John
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

do you have backups (using mysqlhotcopy / mysqldump) of the Cacti database ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
packet7
Posts: 30
Joined: Thu Mar 29, 2007 9:10 am

RE: Cacti Down

Post by packet7 »

No, but I was able to recover by reverting to the snapshot image. I try to take periodic snapshots using VMware, so I guess I got lucky. Could you point me in the right direction regarding how to backup the cacti box (Gui + SQL DB)? Thank you.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The upgrade guide, http://www.cacti.net/downloads/docs/html/upgrade.html, gives you the pointers of what things to backup.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests