Patches broke everything.

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

Moderators: Developers, Moderators

Post Reply
pheezy
Cacti User
Posts: 61
Joined: Thu Oct 26, 2006 5:30 pm

Patches broke everything.

Post by pheezy »

Hello,

I attempted to patch my 0.8.6j cacti installation as some of my thumbnails were not showing up. So I patched everything. However now nothing appears to show up. In debug mode, there are no errors, but there are no graphs and I can't even see the RRDtool command. Also my tree was wiped out, but I can rebuild that.

Here is what I'm running.

rhel 4.5
rrdtool 1.2.23
php 5.1.6
cacti 0.8.6.j-1
mysql 5.0.46

Here are the only error messages I can find, in the apache error logs. Cacti reports no errors. Please help, I broke it. :(

Error when trying to view graph in debug mode:

Code: Select all

[Tue Sep 04 10:40:30 2007] [error] [client 10.1.2.91] PHP Warning:  include_once(./lib/html_tree.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: Permission denied in /var/www/cacti/graphs.php on line 33, referer: http://10.1.1.165/cacti/graphs.php
[Tue Sep 04 10:40:30 2007] [error] [client 10.1.2.91] PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening './lib/html_tree.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/cacti/graphs.php on line 33, referer: http://10.1.1.165/cacti/graphs.php
[Tue Sep 04 10:40:30 2007] [error] [client 10.1.2.91] PHP Warning:  include_once(./lib/rrd.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: Permission denied in /var/www/cacti/graphs.php on line 35, referer: http://10.1.1.165/cacti/graphs.php
[Tue Sep 04 10:40:30 2007] [error] [client 10.1.2.91] PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening './lib/rrd.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/cacti/graphs.php on line 35, referer: http://10.1.1.165/cacti/graphs.php
[Tue Sep 04 10:40:31 2007] [error] [client 10.1.2.91] PHP Fatal error:  Call to undefined function rrdtool_function_graph() in /var/www/cacti/graphs.php on line 942, referer: http://10.1.1.165/cacti/graphs.php
[Tue Sep 04 10:40:31 2007] [error] [client 10.1.2.91] PHP Warning:  include_once(./lib/rrd.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: Permission denied in /var/www/cacti/graph_image.php on line 33, referer: http://10.1.1.165/cacti/graphs.php?action=graph_edit&id=9
[Tue Sep 04 10:40:31 2007] [error] [client 10.1.2.91] PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening './lib/rrd.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/cacti/graph_image.php on line 33, referer: http://10.1.1.165/cacti/graphs.php?action=graph_edit&id=9
[Tue Sep 04 10:40:31 2007] [error] [client 10.1.2.91] PHP Fatal error:  Call to undefined function rrdtool_function_graph() in /var/www/cacti/graph_image.php on line 83, referer: http://10.1.1.165/cacti/graphs.php?action=graph_edit&id=9
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Looks like the permissions on the newly patches files has needs to be reset.
pheezy
Cacti User
Posts: 61
Joined: Thu Oct 26, 2006 5:30 pm

Post by pheezy »

I thought that was the issue but the permissions remain the same.

Code: Select all

...
-rw-r--r--   1 cacti cacti  10572 Jan 17  2007 graph.php
...
-rw-r--r--   1 cacti cacti 48069 Sep  4 10:28 rrd.php
...
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

The permissions may be the same, but the accounts that have access to said files has changed. I know this from experience. re-apply the permissions on all the files, and you should be back in business.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
pheezy
Cacti User
Posts: 61
Joined: Thu Oct 26, 2006 5:30 pm

Post by pheezy »

Sorry, I reset the permissions per the docs like so

Code: Select all

chown -R cacti.cacti rra/ log/
however the issue remains. I'm guessing I will just have to roll back to a backup and try from there again. :(
harr2969
Posts: 1
Joined: Wed Sep 05, 2007 11:48 am

patch

Post by harr2969 »

I had the same problem on windows. Fresh install of cacti, JUST got it mostly working, applied all patches, poof, lost all my graphs. I re-installed the DB and the codebase AGAIN. (argh) I tried to rollback the individual file by extracting from zip but couldn't manage to make it work.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

harr2969: I know for a fact that you have NTFS permission problems. Read http://forums.cacti.net/viewtopic.php?t=11747

pheezy: Not sure about yours since I'm not a Linux person. Moving to the linux forum instead.
ejames
Posts: 6
Joined: Tue Dec 19, 2006 12:50 pm
Location: Monterey, CA

Post by ejames »

I ran into this problem after migrating from Windows to Linux. Man, I spent a long time researching, undoing, chmod'ing, chown'ing, copying original files back, nothing seemed to help.
Finally ran across the following forum and fixed the issue.
http://forums.cacti.net/about8698.html

Basically, I disable selinux kernel security and everything worked.

in /etc/sysconfig/selinux I changed SELINUX=enforcing to SELINUX=disabled

this seems to only happen when I use the patch method. The problem originated when I ran...
patch -p1 -N < tree_console_missing_hosts.patch
patch -p1 -N < thumbnail_graphs_not_working.patch
patch -p1 -N < graph_debug_lockup_fix.patch
patch -p1 -N < snmpwalk_fix.patch

So I decided to re-install because I couldn't figure it out.

The first time I installed cacti, everything went smooth. When I installed the plugin architecture, I copied the files manually, and it worked. Then I ran the cacti patches, and it all went to somewhere in a hand basket.

But this second time, I used the patch method for the plugin architecture and it broke everything. This was before I patched Cacti. So I'm guessing it may have something to do with the patch method, but it doesn't make sense, and I'm not that knowledgeable.

Hope this post helps someone in the future save a day of time troubleshooting.
Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - CMD.php
Server Info - Linux 2.6.21-1.3194.fc7
Web Server - Apache/2.2.4 (Fedora)
PHP - 5.2.4
MySQL - 5.0.45
RRDTool - 1.2.23
SNMP - 5.4
Plugins
  • Global Plugin Settings (settings - v0.2)
    Host Info (hostinfo - v0.1)
    Thresholds (thold - v0.3.5.2)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests