Thanks, that solved the 'php' binary resolving issue. Now I can see the cron is working, although the stats are still not showing on the page.
Also I see there are ajax extensions in the code, but can the dashboard be set to dynamically update as the stats are being pulled from the minerd binary?
I would suggest that while you create the RPi image, which would definitely help a lot of folks out there to be able to appreciate this awesome setup better, but do retain the manual install method which might help those who would rather stick to the raspbian wheezy barebones image or even use this on Ubuntu.
Thanks for your excellent support!
Please can you explain what stats are not showing up? Do you mean the graphs?
Can you check this url:
http:///minera/index.php/app/stored_stats
This should show you the stored stats generated by the cron task if it's empty there's still some problems with the cron task.
Ajax Auto-refresh is on the way, only few hours/days to release it.
And yes, the manual install procedure will stay in place for people who wanna install it in their own environments.
Sorry for not being clear. Yes, I meant the graphical stats are not showing up. stored_stats url returns with
[]
I can see cron running:
May 7 16:30:01 raspberrypi /USR/SBIN/CRON[13746]: (minera) CMD (php /var/www/minera/index.php app cron_stats)
May 7 16:35:01 raspberrypi /USR/SBIN/CRON[13751]: (minera) CMD (php /var/www/minera/index.php app cron_stats)
May 7 16:40:01 raspberrypi /USR/SBIN/CRON[13762]: (minera) CMD (php /var/www/minera/index.php app cron_stats)
May 7 16:45:01 raspberrypi /USR/SBIN/CRON[13845]: (minera) CMD (php /var/www/minera/index.php app cron_stats)
May 7 16:50:01 raspberrypi /USR/SBIN/CRON[13972]: (minera) CMD (php /var/www/minera/index.php app cron_stats)
I am sorry, usually I debug these stuff myself, but I am not too good with PHP and I haven't gotten my head around the overall code flow yet.
Are there any logs or configs that you would like to look at to help me out in fixing this, please do let me know.
EDIT:
Ah, poking around in /var/www/applications/controllers/app.php, I figured probably the cron job call is incorrect as 'cron_stats'.
/*
// Store controller Get the store stats from Redis
*/
public function stored_stats()
{
$storedStats = $this->util_model->getStoredStats(3600);
$this->output
->set_content_type('application/json')
->set_output("[".implode(",", $storedStats)."]");
}
So should the cron job actually be calling stored_stats instead of cron_stats? Currently the cron is:
*/5 * * * * minera php /var/www/minera/index.php app cron_stats
EDIT 2:
Fixed it.
The current /etc/cron.d/minera file is:
*/5 * * * * minera php /var/www/minera/index.php app cron_stats
this should be:
*/5 * * * * minera php /var/www/minera/index.php app cron
Perhaps you will update this in the git.