Post
Topic
Board Mining (Altcoins)
Re: [Minera] New web management system for Gridseed devices
by
highwalker
on 07/05/2014, 09:50:38 UTC
Hello,

I've installed minera on a pcduino (ubuntu) with apache. Working, but no "hashrate history" and no "Rejected/errors"
Since php bin file was not available on my system, I installed libapache2-mod-fastcgi  ( needed by (?) php /var/www/minera/index.php app cron_stats )

output from php:
>minera@ubuntu:/var/www/minera$ php -v
PHP 5.3.10-1ubuntu3.11 with Suhosin-Patch (cgi-fcgi) (built: Apr  4 2014 02:06:32)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies


Is this the correct php binary ?

Can someone help me on this?

thanks,

rgds,
m

It seems the cron task is not running on your system.

Please try running from the terminal this command and check if graphs change:

Code:
php //index.php app cron

If changed the problem is with the cron task that's not running.

You should have a cron task like this:

Code:
*/5 * * * * minera php //index.php app cron

Minera installs it in /etc/cron.d/minera

Let me know

PS
I just updated this you could have to run "[...] app cron_stats" instead "[...] app cron" this depends on your Minera revision

Same problem here with hashrate not shown, on RPi:

minera@raspberrypi /etc/cron.d $ cat minera
*/5 * * * * minera php /var/www/minera/index.php app cron_stats
minera@raspberrypi /etc/cron.d $ php /var/www/minera/index.php app cron_stats
-bash: php: command not found


Well, I'm really sorry I forgot to add the php5-cli package to the installer (a complete system img is absolutely needed, I will give you it asap).

Everyone, please install the php5-cli package:

Code:
sudo apt-get install php5-cli

I'm going to update the README.

My apologies, thanks.

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!