Upgrade Issues?

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

Moderators: Developers, Moderators

Post Reply
luckenbach
Posts: 31
Joined: Thu May 07, 2009 9:21 am

Upgrade Issues?

Post by luckenbach »

Moving from 0.8.7d to the latest and greatest,

after moving I get this error

Code: Select all

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 am running this in tandem, so it is attempting to access the same Database my production Cacti instances Database, and I have verified that I am able to login and I see it access the db inside of the Query Logging in mysql

Code: Select all

100902 16:46:32	    226 Init DB     cacti
I have checked and configured both the global and conf and both are setup correct.


I followed this guide BTW

http://www.cacti.net/downloads/docs/html/upgrade.html
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see lib/database.php in SVN/0.8.7 as a fix (I suppose it's not yet available as a patch)
R.
luckenbach
Posts: 31
Joined: Thu May 07, 2009 9:21 am

Post by luckenbach »

As usual, you are the man! this resolved my issue :)
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

gandalf wrote:Please see lib/database.php in SVN/0.8.7 as a fix (I suppose it's not yet available as a patch)
R.
Ill check with Tony again. He was prepping but may have run out of time. Spine patches are out though.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
dukpeters
Posts: 4
Joined: Mon May 29, 2006 4:42 am

Post by dukpeters »

Can you please elaborate a bit on this patch?
I have the same issue after installation, but replacing the "database.php" with the latest one in the SVN just results in another error message:

"Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/cacti-0.8.7g/lib/database.php:359) in /srv/www/htdocs/cacti-0.8.7g/include/auth.php on line 29"

thanks
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I have no idea.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests