View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Jan 23, 2007 7:02 pm 
Offline
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location: Winnipeg - Canada
So, I've done an auto-upgrade on my backend system. It was previously running R5D1, and the upgrade appears to have gone through properly. All my recordings are intact, and scheduled recordings have continued to record. No hiccups that I've detected, all went well.....

I load up my backend IP in a browser, authenticate myself, and click the RRDTOOL link only to see a bunch of blank graphs. Nothing is filled in at all. The graphs are updating though, if I leave things sit for a while and then refresh the page the timeline does move along, just no data is populating.

The next thing I did was go into /var/lib/rrd and created a backup directory, and moved *.rrd into this directory (thought maybe the old .rrd files from when I had things working under R5D1 were present and somehow monkeying with the process. So I took them out of the equation, ran the /etc/cron.hourly/rrd_km script and it did succesfully re-create the .rrd files under /var/lib/rrd, it also recreated the png files (which I also deletd from /var/www/rrdtool/) but again I'm getting just blank graphs.

Should I have to do anything at all to get rrdtool working with r5e50? or is it completely built in and turned on straight out of the box? My frontend system is running R5E50 as well, and was reinstalled fresh (not an upgrade like my backend, but an auto-install) and is experiencing the same thing.

I've followed the posts here regarding RRD stuff and it seems that most people just seem to have it working, I don't see much discussion specific to R5350. I did follow the wiki directions when I was running R5D1 and had no troubles getting it online. There is a note on that page saying Please skip to the bottom for notes about RE50, but all I see when I scroll down is notes indicating that some graphs may be empty after a re-install of R5E50, but it doesn't go into any details as to why. I'm running HDA not SDA so I don't need to worry about any of those changes, and was running fine with mbmon rather than lmsensors previously, so again I don't see what I would need to edit regarding that.

Anyone have any thoughts?

_________________
Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)


Last edited by rando on Tue Jan 23, 2007 10:22 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 7:34 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Please see Known Issue #6 here http://www.mysettopbox.tv/phpBB2/viewtopic.php?t=13108


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 8:28 pm 
Offline
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location: Winnipeg - Canada
I'm more than willing to fuss with my cronjobs to get this working if that is where the problem lies. I am thinking perhaps that this isn't my issue. The timestamp on my .png files is updating on it's own, so I do think that the cronjob is running my scripts. If I run the rrd_km file manually should I not see the graphs populating?

_________________
Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 9:06 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
There are other issues covered in that thread involving permissions and ownership that need to be corrected.

In particular I remember that the /var/www/rrdtool*, /var/www/rrdtool/* and /var/lib/rrd/ (and contents) need to be checked. They should all belong to www-data:www-data and be world readable.

Hmmm... That link seems to be broken for some reason, wonder if it's an artifact of the forums problems tha occured over the weekend... :?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 9:45 pm 
Offline
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location: Winnipeg - Canada
I'll dig up the link (the hard way) and give it a go, just wanted to make sure that what I thought I was seeing wasn't an indication of a different problem.


Thanks for the push in the right direction.


=)

_________________
Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 10:18 pm 
Offline
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location: Winnipeg - Canada
tjc wrote:
In particular I remember that the /var/www/rrdtool*, /var/www/rrdtool/* and /var/lib/rrd/ (and contents) need to be checked. They should all belong to www-data:www-data and be world readable.


Code:
root@backend:/var/www# pwd
/var/www
root@backend:/var/www# ls -al | grep rrdtool
drwxr-xr-x  3 www-data www-data  4096 Jan 23 18:50 rrdtool
-rw-r--r--  1 www-data www-data  2606 Dec  6 17:53 rrdtool_daily.html
-rw-r--r--  1 www-data www-data  2616 Dec  6 17:54 rrdtool_monthly.html
-rw-r--r--  1 www-data www-data  2609 Dec  6 17:55 rrdtool_weekly.html
-rw-r--r--  1 www-data www-data  2609 Dec  6 17:56 rrdtool_yearly.html
root@backend:/var/www#


So far so good.....

Lets take a look inside /var/www/rrdtool

Code:
root@backend:/var/www/rrdtool# ls -al
total 752
drwxr-xr-x 3 www-data www-data  4096 Jan 23 18:50 .
drwxr-xr-x 6 root     root      4096 Dec 20 16:10 ..
-rw-r--r-- 1 root     root     14081 Jan 23 22:00 ambtemp-day.png
-rw-r--r-- 1 root     root     14038 Jan 23 21:55 ambtemp-month.png
-rw-r--r-- 1 root     root     14716 Jan 23 21:55 ambtemp-week.png
-rw-r--r-- 1 root     root     13813 Jan 23 18:50 ambtemp-year.png
-rw-r--r-- 1 root     root     22311 Jan 23 22:00 cpu-day.png
-rw-r--r-- 1 root     root     21921 Jan 23 21:55 cpu-month.png
-rw-r--r-- 1 root     root     22698 Jan 23 21:55 cpu-week.png
-rw-r--r-- 1 root     root     21262 Jan 23 18:50 cpu-year.png
-rw-r--r-- 1 root     root     14290 Jan 23 22:00 cputemp-day.png
-rw-r--r-- 1 root     root     13965 Jan 23 21:55 cputemp-month.png
-rw-r--r-- 1 root     root     14683 Jan 23 21:55 cputemp-week.png
-rw-r--r-- 1 root     root     13770 Jan 23 18:50 cputemp-year.png
-rw-r--r-- 1 root     root     19244 Jan 23 22:00 disk-day.png
-rw-r--r-- 1 root     root     20084 Jan 23 21:55 disk-month.png
-rw-r--r-- 1 root     root     20808 Jan 23 21:55 disk-week.png
-rw-r--r-- 1 root     root     19442 Jan 23 18:50 disk-year.png
-rw-r--r-- 1 root     root     21352 Jan 23 22:00 eth0-day.png
-rw-r--r-- 1 root     root     21793 Jan 23 21:55 eth0-month.png
-rw-r--r-- 1 root     root     22686 Jan 23 21:55 eth0-week.png
-rw-r--r-- 1 root     root     21286 Jan 23 18:50 eth0-year.png
-rw-r--r-- 1 root     root     14682 Jan 23 22:00 hda-day.png
-rw-r--r-- 1 root     root     14728 Jan 23 21:55 hda-month.png
-rw-r--r-- 1 root     root     15408 Jan 23 21:55 hda-week.png
-rw-r--r-- 1 root     root     14497 Jan 23 18:50 hda-year.png
-rw-r--r-- 1 root     root     14191 Jan 23 22:00 mbtemp-day.png
-rw-r--r-- 1 root     root     14274 Jan 23 21:55 mbtemp-month.png
-rw-r--r-- 1 root     root     14944 Jan 23 21:55 mbtemp-week.png
-rw-r--r-- 1 root     root     14044 Jan 23 18:50 mbtemp-year.png
-rw-r--r-- 1 root     root     32423 Jan 23 22:00 memory-day.png
-rw-r--r-- 1 root     root     28758 Jan 23 21:55 memory-month.png
-rw-r--r-- 1 root     root     29650 Jan 23 21:55 memory-week.png
-rw-r--r-- 1 root     root     28109 Jan 23 18:50 memory-year.png
-rw-r--r-- 1 root     root     20983 Jan 23 22:00 swap-day.png
-rw-r--r-- 1 root     root     18761 Jan 23 21:55 swap-month.png
-rw-r--r-- 1 root     root     19400 Jan 23 21:55 swap-week.png
-rw-r--r-- 1 root     root     18153 Jan 23 18:50 swap-year.png
root@backend:/var/www/rrdtool#


This is perhaps where my problem is.....
Here's what I did to correct this

Code:
root@backend:/var/www/rrdtool# chown www-data.www-data *


Now I get www-data as owner when checking here again:

Code:
root@backend:/var/www/rrdtool# ls -al
total 756
drwxr-xr-x 3 www-data www-data  4096 Jan 23 18:50 .
drwxr-xr-x 6 root     root      4096 Dec 20 16:10 ..
-rw-r--r-- 1 www-data www-data 14770 Jan 23 22:10 ambtemp-day.png
-rw-r--r-- 1 www-data www-data 14038 Jan 23 21:55 ambtemp-month.png
-rw-r--r-- 1 www-data www-data 14716 Jan 23 21:55 ambtemp-week.png
-rw-r--r-- 1 www-data www-data 13813 Jan 23 18:50 ambtemp-year.png
drwxr-xr-x 2 www-data www-data  4096 Jan 23 18:49 backup
-rw-r--r-- 1 www-data www-data 23481 Jan 23 22:10 cpu-day.png
-rw-r--r-- 1 www-data www-data 21921 Jan 23 21:55 cpu-month.png
-rw-r--r-- 1 www-data www-data 22698 Jan 23 21:55 cpu-week.png
-rw-r--r-- 1 www-data www-data 21262 Jan 23 18:50 cpu-year.png
-rw-r--r-- 1 www-data www-data 14912 Jan 23 22:10 cputemp-day.png
-rw-r--r-- 1 www-data www-data 13965 Jan 23 21:55 cputemp-month.png
-rw-r--r-- 1 www-data www-data 14683 Jan 23 21:55 cputemp-week.png
-rw-r--r-- 1 www-data www-data 13770 Jan 23 18:50 cputemp-year.png
-rw-r--r-- 1 www-data www-data 20429 Jan 23 22:10 disk-day.png
-rw-r--r-- 1 www-data www-data 20084 Jan 23 21:55 disk-month.png
-rw-r--r-- 1 www-data www-data 20808 Jan 23 21:55 disk-week.png
-rw-r--r-- 1 www-data www-data 19442 Jan 23 18:50 disk-year.png
-rw-r--r-- 1 www-data www-data 25218 Jan 23 22:10 eth0-day.png
-rw-r--r-- 1 www-data www-data 21793 Jan 23 21:55 eth0-month.png
-rw-r--r-- 1 www-data www-data 22686 Jan 23 21:55 eth0-week.png
-rw-r--r-- 1 www-data www-data 21286 Jan 23 18:50 eth0-year.png
-rw-r--r-- 1 www-data www-data 15940 Jan 23 22:10 hda-day.png
-rw-r--r-- 1 www-data www-data 14728 Jan 23 21:55 hda-month.png
-rw-r--r-- 1 www-data www-data 15408 Jan 23 21:55 hda-week.png
-rw-r--r-- 1 www-data www-data 14497 Jan 23 18:50 hda-year.png
-rw-r--r-- 1 www-data www-data 15451 Jan 23 22:10 mbtemp-day.png
-rw-r--r-- 1 www-data www-data 14274 Jan 23 21:55 mbtemp-month.png
-rw-r--r-- 1 www-data www-data 14944 Jan 23 21:55 mbtemp-week.png
-rw-r--r-- 1 www-data www-data 14044 Jan 23 18:50 mbtemp-year.png
-rw-r--r-- 1 www-data www-data 32319 Jan 23 22:10 memory-day.png
-rw-r--r-- 1 www-data www-data 28758 Jan 23 21:55 memory-month.png
-rw-r--r-- 1 www-data www-data 29650 Jan 23 21:55 memory-week.png
-rw-r--r-- 1 www-data www-data 28109 Jan 23 18:50 memory-year.png
-rw-r--r-- 1 www-data www-data 20596 Jan 23 22:10 swap-day.png
-rw-r--r-- 1 www-data www-data 18761 Jan 23 21:55 swap-month.png
-rw-r--r-- 1 www-data www-data 19400 Jan 23 21:55 swap-week.png
-rw-r--r-- 1 www-data www-data 18153 Jan 23 18:50 swap-year.png


Now to check the /var/lib/rrd/ directory...

Code:
root@backend:/var/lib/rrd# ls -al
total 708
drwxr-xr-x  3 root root   4096 Jan 23 18:50 .
drwxr-xr-x 35 root root   4096 Dec 20 10:54 ..
-rw-r--r--  1 root root  28640 Jan 23 22:05 ambtemp.rrd
-rw-r--r--  1 root root  84784 Jan 23 22:05 cpu.rrd
-rw-r--r--  1 root root  84784 Jan 23 18:17 cpu.rrd.bak
-rw-r--r--  1 root root  28640 Jan 23 22:05 cputemp.rrd
-rw-r--r--  1 root root  28640 Jan 23 18:17 cputemp.rrd.bak
-rw-r--r--  1 root root  56712 Jan 23 22:05 disk.rrd
-rw-r--r--  1 root root  56712 Jan 23 18:39 disk.rrd.bak
-rw-r--r--  1 root root  56712 Jan 23 22:05 eth0.rrd
-rw-r--r--  1 root root  28640 Jan 23 22:05 hda.rrd
-rw-r--r--  1 root root  28640 Jan 23 22:05 mbtemp.rrd
-rw-r--r--  1 root root 197072 Jan 23 22:05 mem.rrd


Same deal here, all owned by root.

To fix I did the same thing again....

Code:
root@backend:/var/lib/rrd# chown www-data.www-data *


Things look better here now....

Code:

root@backend:/var/lib/rrd# ls -al
total 708
drwxr-xr-x  3 www-data www-data   4096 Jan 23 18:50 .
drwxr-xr-x 35 root     root       4096 Dec 20 10:54 ..
-rw-r--r--  1 www-data www-data  28640 Jan 23 22:15 ambtemp.rrd
drwxr-xr-x  2 www-data www-data   4096 Jan 23 18:50 backup
-rw-r--r--  1 www-data www-data  84784 Jan 23 22:15 cpu.rrd
-rw-r--r--  1 www-data www-data  84784 Jan 23 18:17 cpu.rrd.bak
-rw-r--r--  1 www-data www-data  28640 Jan 23 22:15 cputemp.rrd
-rw-r--r--  1 www-data www-data  28640 Jan 23 18:17 cputemp.rrd.bak
-rw-r--r--  1 www-data www-data  56712 Jan 23 22:15 disk.rrd
-rw-r--r--  1 www-data www-data  56712 Jan 23 18:39 disk.rrd.bak
-rw-r--r--  1 www-data www-data  56712 Jan 23 22:15 eth0.rrd
-rw-r--r--  1 www-data www-data  28640 Jan 23 22:15 hda.rrd
-rw-r--r--  1 www-data www-data  28640 Jan 23 22:15 mbtemp.rrd
-rw-r--r--  1 www-data www-data 197072 Jan 23 22:15 mem.rrd


There, again the files have all been moved over to www-data, looking much better. Lets give www-data the actual rrd directory.

Code:
root@backend:/var/lib# chown www-data.www-data rrd/


There, now /var/lib/rrd/ is owned by www-data and so are all of it's innards.





TJC thanks muchly for the insight here, as I've typed/copied/pasted and wandered through these steps I've had two successful intervals update on my graphs. Everything appears to be on track.

_________________
Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 10:27 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Updated the hints to include this...


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu