Page 9 of 23

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 8:54 am
by rhavern
Negative, numbers are still the same as the first post.

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 9:12 am
by smoking2000
The numbers in the script output, i.e. those used in the rrdupdate, or just the numbers in the graph? That the numbers in the graph haven't updated is to be expected, the script has run yet as far as I can tell, the last update still says 07:16:49.

Why was the 08:40 cronjob not run? Verify the permissions of the eoc-data files to make sure they're writable.

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 9:21 am
by rhavern
I'm referring to the numbers to the left of the graph, under the User Information heading.

Here are the existing permissions:

Code: Select all

drwxrwxr-x 10 root www-data  4096 2009-04-12 13:04 client-data

rick@linux-1:/var/www/fci/eoc-data$ ls -l
total 540
-rw-r--r-- 1 rick rick     24769 2009-04-21 07:16 rhavern-14-Overall_Rank-1day.png
-rw-r--r-- 1 rick rick     22676 2009-04-21 07:16 rhavern-14-Overall_Rank-1month.png
-rw-r--r-- 1 rick rick     23875 2009-04-21 07:16 rhavern-14-Overall_Rank-1week.png
-rw-r--r-- 1 rick rick     20259 2009-04-21 07:16 rhavern-14-Overall_Rank-1year.png
-rw-r--r-- 1 rick rick     21369 2009-04-21 07:16 rhavern-14-Points-1day.png
-rw-r--r-- 1 rick rick     19589 2009-04-21 07:16 rhavern-14-Points-1month.png
-rw-r--r-- 1 rick rick     20801 2009-04-21 07:16 rhavern-14-Points-1week.png
-rw-r--r-- 1 rick rick     17193 2009-04-21 07:16 rhavern-14-Points-1year.png
-rw-r--r-- 1 rick rick     24852 2009-04-21 07:16 rhavern-14-Points_24hr_Avg-1day.png
-rw-r--r-- 1 rick rick     10933 2009-04-21 07:16 rhavern-14-Points_24hr_Avg-1day-small.png
-rw-r--r-- 1 rick rick     22748 2009-04-21 07:16 rhavern-14-Points_24hr_Avg-1month.png
-rw-r--r-- 1 rick rick     24049 2009-04-21 07:16 rhavern-14-Points_24hr_Avg-1week.png
-rw-r--r-- 1 rick rick     20364 2009-04-21 07:16 rhavern-14-Points_24hr_Avg-1year.png
-rw-r--r-- 1 rick rick     56864 2009-04-21 07:16 rhavern-14.rrd
-rw-r--r-- 1 rick rick     23562 2009-04-21 07:16 rhavern-14-Team_Rank-1day.png
-rw-r--r-- 1 rick rick     21559 2009-04-21 07:16 rhavern-14-Team_Rank-1month.png
-rw-r--r-- 1 rick rick     22730 2009-04-21 07:16 rhavern-14-Team_Rank-1week.png
-rw-r--r-- 1 rick rick     19150 2009-04-21 07:16 rhavern-14-Team_Rank-1year.png
-rw-r--r-- 1 rick rick     23162 2009-04-21 07:16 rhavern-14-WUs-1day.png
-rw-r--r-- 1 rick rick     21062 2009-04-21 07:16 rhavern-14-WUs-1month.png
-rw-r--r-- 1 rick rick     22369 2009-04-21 07:16 rhavern-14-WUs-1week.png
-rw-r--r-- 1 rick rick     18785 2009-04-21 07:16 rhavern-14-WUs-1year.png
-rw-r--r-- 1 root www-data  1079 2009-04-17 08:40 rhavern-14.xml

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 9:28 am
by smoking2000
Aha:

Code: Select all

-rw-r--r-- 1 root www-data  1079 2009-04-17 08:40 rhavern-14.xml
You don't have permission to overwrite the rhavern-14.xml file, which stores the downloaded EOC XML.
Either make the file group writeable using `chmod g+w rhavern-14.xml` to allow you to write the file via your membership of the www-data group, or make your user the owner instead of root using `chown rick rhavern-14.xml`.

This would explain the data not updating, you don't have permission to save the file. Although update-eoc-stats.pl should complain about this, but I assume you ran this as root too?

Your EOC XML file still uses: <Last_Update>20090417000000</Last_Update>

Whereas the last update uses: <Last_Update>20090421030000</Last_Update>

I suggest to remove the png and rrd files in the eoc-data directory and to start fresh.

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 9:57 am
by rhavern
I ran the update-eoc-stats.pl as rick, not root. It may be that my SysAdmin friend ran the script initially as root. I've modified ownership accordingly.

I've removed the .rrd and .png files as suggested and will wait for the next update to verify.

Thanks!

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 10:20 am
by smoking2000
FWIW, there was a bug in the error handling of the save_file() routine in fci-update-eoc-stats.pl which caused the code which ran save_file() on the downloaded XML data not to report the error if it failed due to permission issues. This has just been fixed in my development tree for FCI v1.5.1.

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 10:21 am
by rhavern
Well, at least something useful resulted from this ;-)

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 1:53 pm
by rhavern
I think that my SA friend has executed all the crontab scripts as root and has made a mess of the permissions. Do I need to do a chown rick on a group of things to make this work properly? Or perhaps move my crontab from rick to root?

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 6:22 pm
by smoking2000
Don't move the fci script to crontab of root, that's unnecessary.

Your regular user account (rick) needs to be a member of the www-data group, so you can share write permissions of the files apache creates (e.g. uploaded client-data). The easiest way to set the permissions is to run `chmod -R rick:www-data /var/www/fci/` as root. Since your on Ubuntu running `sudo chmod -R rick:www-data /var/www/fci/` should be sufficient (assuming you have sudo privs)

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Tue Apr 21, 2009 8:16 pm
by rhavern
Okay, I wasn't sure if the entire directory should be set with that ownership (I assume you meant chown instead of chmod). I've made the changes, hopefully it will all be fine in the morning :-)

Thanks.

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Wed Apr 22, 2009 6:23 am
by rhavern
It appears to all be working now. Sorry for all the questions and thank you for your patience and time.

Rick

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Fri Apr 24, 2009 7:49 am
by smoking2000
Good to hear it's working for you now, rhavern. Now all I wonder about is why Shadowtesters FCI install is not showing any RRD graphs.

But that is not the reason of this post. That is for a small service announcement regarding FCI development & maintenance. I won't be able to do as much development as I'd like for the next couple of weeks because I broke my collarbone during a bicycle accident om my way from work yesterday. So I can only use one hand for the next week or so. I need to make an appointment for surgery next week.

I did get an cool printout from the X-ray they made yesterday :D
Image

Apologies for the bad quality, it's a GSM photo of the Carestream client screenshot printout I got, that I couldn't scan because a bad scanner driver update reintroduced a bug which blew up the motor sometime ago.

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Fri Apr 24, 2009 8:44 am
by rhavern
I think we will all understand your lack of typing for the foreseeable future :-)

Take it easy and heal, we'll wait.

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Fri Apr 24, 2009 6:22 pm
by Shadowtester
Sorry to hear about the accident and injury and I completely understand your problem I went though elbow surgery last summer and was limited to one hand for about 8 to 12 weeks before I was able to use both for anything including typing. And yest one handed typing really blows chucks at best especially when your used to being a two handed touch typist doing 40 to 45 words a minute the hunt and peck bit is hard to handle. I hope you get well soon and do not require extensive surgery and rehab.

As to RRD graphs I had not ever seen them so I did not know they were even missing now you know I am running the server on Debian ETCH and one SMP client is also on that server another SMP client is on a Mepis 8 Linux and the GPU2 client is running in Mepis 8 Linux using Wine so its not a typical gpu2 client install. If there is any logs or such that I can provide to help let me know and as I said no rush at all but if you are like me after a few days of doing nothing you will start to go bonkers looking for something to do to help pass the time.

Re: FCI: Folding@Home Client Info (Web based client monitor)

Posted: Fri Apr 24, 2009 6:39 pm
by smoking2000
As always, the first thing you want to do when troubleshooting FCI issues is to run the script in question with --verbose to see what it's doing. In your case this would be fci-update-eoc-stats.pl. I think you didn't install the librrds-perl package, or this may be broken.