getminera / minera

Minera is a web interface to monitor and manage mining devices

Home Page:http://getminera.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MobileMiner very hit and miss

danarmstrong opened this issue · comments

I finally have the correct build of cpuminer in place and am able to see what Minera is truly capable of and I am blown away. The last remaining problem I have is that MobileMiner almost always shows as offline. I have only had Minera appear as online one time for about three minutes. I would dig through the code and attempt to debug but I'm sadly stuck working on.... work.

This is weird, there is a cron job and it must run every minute. Please check in /etc/cron.d/minera it should be:

*/1 * * * * www-data php /var/www/minera/index.php app cron

If that's ok you should look at the Minera logs in:

/var/log/minera/log-<TODAY>.php

ERROR - 2014-09-08 01:39:04 --> Cron NOT running. Deleting lock.
ERROR - 2014-09-08 01:39:05 --> Minerd started with command: sudo -u root /usr/bin/screen -dmS cpuminer /var/www/minera/minera-bin/minerd -c /var/www/minera/conf/miner_conf.json - Output was: array (
)
ERROR - 2014-09-08 01:39:05 --> Severity: Warning --> fsockopen(): unable to connect to 127.0.0.1:4028 (Connection refused) /var/www/minera/application/models/util_model.php 1012
ERROR - 2014-09-08 01:39:05 --> Called Minerd with command: {"get":"stats"}

ERROR - 2014-09-08 01:39:14 --> Sent MobileMiner pools: ["0||DanArmstrong.worker1@stratum+tcp://multi.ghash.io:3333","1||DanArmstrong.worker1@stratum+tcp://doge.ghash.io:3333","2||DanArmstrong.worker1@stratum+tcp://ftc.ghash.io:3333","3||DanArmstrong.worker1@stratum+tcp://ltc.ghash.io:3333"]

Most of what I get in the log are the fsockopen warnings. The only entry related to MobileMiner is the last line there.

This is the really first lines. I need to see at least 5 minutes of logs. Please paste them into http://pastebin.com

So your miner isn't working. This line tell me your miner isn't running or is running on a differente non-standard port, and you should'n see any stats in the dashboard:

Warning --> fsockopen(): unable to connect to 127.0.0.1:4028 (Connection refused) /var/www/minera/application/models/util_model.php 1012

My miner is running great and I'm able to see all of the stats in Minera.

if you can send the entire log I could look at it.

Those lines have stopped occurring since I switched out my cpuminer build for the correct one.

I can see only one minute of log and I can't do much with that.

I think you haven't the cron job running.
Can you check your syslog? What kind of system is? Ubuntu?

It is mostly Ubuntu 12.04 made for the AppleTV. In my syslog all I see are complaints about xbmc not being able to launch. It almost appears that cron is not running.

Yes it's definitely that. You can try with:

ps aux|grep -i cron

Then with:

service cron start

But I doubt it will run, you should check what's wrong with it.

Got it to work. The init scripts for this build of Ubuntu require xbmc to successfully start before cron would start. Since I have stripped it down and xbmc can't start, cron was never starting.

Would it be possible for you to link me to the correct cgminer fork that is used by Minera? The gridseed/usb-miner build shows no stats.

If you go to settings page and select a new preferred miner, you will see a link beside the miner description with the source url.

Thanks, just noticed they are in the README also. Sorry for that. Thank you for your incredible responsiveness and accessibility.