DB Error

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

Moderators: Developers, Moderators

Post Reply
capboy118
Posts: 18
Joined: Mon Dec 13, 2004 10:09 am

DB Error

Post by capboy118 »

I am running Cacti on a FC3 box and I just recently installed all the FC3 updates via yum. Everything seem to be working so then I download the patches for Cacti locally and copied them over to the Cacti server. I ran all the patches and now I can't connect to the webserver. Here is the error I get when I try to connect.

Fatal error: Call to undefined function: db_connect() in /www/htdocs/cacti/lib/database.php on line 110

Can I undo the patches? Can I backup the RRA and the log and just wipe the cacti directory out? Then install Cacti fresh and move the data over? Thanks for your help.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

If I may ask, what patches, can you list the rpm names?

You are not the only person having this problem.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
capboy118
Posts: 18
Joined: Mon Dec 13, 2004 10:09 am

All Patches

Post by capboy118 »

I installed all the official patches for Cacti 8.6.c. The server was running fine and I should have left it along but I just installed 144 FC3 patches and everything seem to work. I shouldn't have pushed my luck. I am running Cactid with 8 thread and 1 process.

I see that other people are having the problem, but I have yet to see a solution for it. Getting Cacti on FC3 isn't fun but if I have to rebuild it, I can in a couple of hours.
User avatar
_pre[PL]
Posts: 12
Joined: Mon Dec 29, 2003 5:25 pm
Location: Poland, Gdynia
Contact:

Post by _pre[PL] »

I believe you must remove config.php patch....
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I don't think that will make a difference.

The include order was change to include the functions before the database connect was attempted. The database include was always before the connect. I don't think removing that patch will have any merit.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
capboy118
Posts: 18
Joined: Mon Dec 13, 2004 10:09 am

Good to go

Post by capboy118 »

Reinstalled Fresh. Installed FC3 (no GUI) applied all needed OS pacthes and downloaded all the new needed software
PHP-4.3.10
Apache-2.0.53
Net-Snmp-5.2.1
phpMyAdmin-2.6.1-patchlevel3
MySQL 4.1.10a
Newest Cacti and Cactid

Imported my old RRA and Logs, cleared the fresh CactiDb and imported my old data table. Working like new.

03/24/2005 04:10:04 PM - SYSTEM STATS: Time: 2.1289 s, Method: cactid, Processes: 1, Threads: 9, Hosts: 9, Hosts/Process: 9

Must of been one of the newest patches...since I haven't ran those. Just FYI
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

It was one of the new patches, it has been removed from the patch list and I'm reviewing it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests