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
[SOLVED] Cacti is Down
Moderators: Developers, Moderators
Tried repairing the database yet?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Else, see http://docs.cacti.net/node/426
Reinhard
Reinhard
RE: Cacti is Down
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
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
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
do you have backups (using mysqlhotcopy / mysqldump) of the Cacti database ?
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]
[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]
RE: Cacti Down
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.
The upgrade guide, http://www.cacti.net/downloads/docs/html/upgrade.html, gives you the pointers of what things to backup.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 3 guests