cacti 0.8.7e to 0.8.7g upgrade - 'new database' error

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

Moderators: Developers, Moderators

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

Post by TheWitness »

Need the cacti.log to figure this one out.
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?
wzzrd
Posts: 1
Joined: Thu Jul 15, 2010 2:46 am

Post by wzzrd »

Same problem with upgrading from 0.8.7e to 0.8.7g on a RHEL4 box.

I'm a bit new to cacti, but this code below in auth.php seems to trigger the install page showing up. The install page only mentions running an sql file to *create a database*, and didn't seem to provide a way to update it. That said, I already downgraded to 0.8.7e again, so I can't really test this anymore.

Code: Select all

/* check to see if this is a new installation */
if (db_fetch_cell("select cacti from version") != $config["cacti_version"]) {
    header ("Location: install/");
    exit;   
}
cluckduck
Posts: 5
Joined: Sat Dec 08, 2007 5:39 pm
Location: Canberra AU

Post by cluckduck »

[I'm the OP]

Yeah, I'm running Red Hat AS4 update 8, so (I forget the exact versions) but I'm on PHP 4.x.

I've since gone back to 087e as well. I'm about to go on holidays but if this still isn't sorted in a few weeks I'll try to post some useful info about package versions etc.

I don't recall seeing anything obvious come up in cacti.log when 087g was active.

cheers.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I'm running 087g fine on CentOS4.8 BTW. It was a new install however. So, it has something to do with process. I wish you the best of luck. Enjoy your time off first 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?
remsad
Posts: 11
Joined: Mon Jun 21, 2010 8:23 pm

Post by remsad »

I upgraded Centos 4 with Php5 and 0.8.7g works for now.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yea, I forgot to mention that I'm using CentOS plus which includes PHP5.1.6 and MySQL5.0.x

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?
Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

Post by Deviloper »

I guess from the information provided here, that cacti 0.8.7g might have an compatibility issue using old releases of MySQL. I would recommend 5.1.43 or better, especially if you are working with boost and memory-tables.

my experience are that early 5.0 MySQL Community-Server has big issues (with memory tables and a lot of other things).
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

TheWitness wrote:Need the cacti.log to figure this one out.
I second that request. Without it (and perhaps an httpd's error_log) we won't get any further.
R.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I'm confused. If you can not connect, this is not a Cacti issue. More than likely it's a MySQL or a PHP issue. I guess I'm confused. Need more information to help you with your problem.

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?
jmoseley
Posts: 6
Joined: Mon Oct 29, 2007 11:03 am

Post by jmoseley »

I'm running into the same issue on a RHEL/CentOS 3.x box. Unfortunately, the logs don't contain any errors to help debug.

PHP version: 4.3.2
mysql version: 3.23.58
Net-SMMP: 5.0.9

These are latest versions available via the standard yum repos and worked fine with 0.8.7e.

Not expecting a fix, but just wanted to let folks know that upgrading Cacti on RHEL 3.x will break if using yum packages from the standard RHEL/CentOS repos.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try the latest lib/database.php in our SVN. This might bring joy. I'm working with Tony to get another batch of patches out this weekend that should fix the remaining version issues related to PHP.

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?
jmoseley
Posts: 6
Joined: Mon Oct 29, 2007 11:03 am

Post by jmoseley »

Thanks.
jmoseley
Posts: 6
Joined: Mon Oct 29, 2007 11:03 am

Post by jmoseley »

TheWitness wrote:Try the latest lib/database.php in our SVN. This might bring joy. I'm working with Tony to get another batch of patches out this weekend that should fix the remaining version issues related to PHP.

TheWitness
Were the PHP patches released? I see two more patches listed on the patches page than were available a month ago, but nothing that stands out as PHP fixes.

Thanks.
each
Posts: 8
Joined: Mon Sep 13, 2010 9:57 am

Post by each »

Looks like it was wrapped up in the polling interval patch. I was experiencing the same issue and installing all the available patches worked for me.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks like Tony did not get the latest patches out. You need, from SVN branches/0.8.7/lib/database.php and branches/0.8.7/poller.php from the root path.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests