DB Error
Moderators: Developers, Moderators
DB Error
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
If I may ask, what patches, can you list the rpm names?
You are not the only person having this problem.
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]
[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]
All Patches
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
Good to go
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Please refer to post http://forums.cacti.net/viewtopic.php?t=6936
[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]
[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]
Who is online
Users browsing this forum: No registered users and 6 guests