Post
Topic
Board Mining (Altcoins)
Re: [Minera] Your next mining dashboard is here.
by
michelem
on 21/05/2014, 22:05:14 UTC
I just did a fresh pull of Minera and cpuminer, everything starts fine the first time.

If I goto the settings page, and press save (doesn't matter if I make or change or not), then try to start the miner, it fails every time after that.

I noticed the startup after a fresh install before pressing 'Save' anywhere is:

Code:
/usr/bin/screen -dmS cpuminer /var/www/minera/minera-bin/minerd --gc3355-detect --gc3355-autotune --freq=850 -o stratum+tcp://multi.ghash.io:3333 -u michelem.minera -p x --retries=1

Then after pressing Save it changes to:
Code:
/usr/bin/screen -dmS cpuminer /var/www/minera/minera-bin/minerd -c /var/www/minera/conf/miner_conf.json

Running that line above results in this error:
"/var/www/minera/minera-bin/minerd: /var/www/minera/conf/miner_conf.json:1: '[' or '{' expected near end of file"
I expect this is why "Start" or "Restart" from the Minera web page now fail after Saving any settings.

I also receive this error (mainly on Settings page):

Code:
A PHP Error was encountered

Severity: Notice
Message:  Use of undefined constant JSON_PRETTY_PRINT - assumed 'JSON_PRETTY_PRINT'
Filename: views/settings.php
Line Number: 240

Edit:  Upgrading PHP from 5.3 --> 5.5 fixed the last error.  Pressing "Save" still breaks the start/stop functionality of Minera due to the new JSON config vs the old way of entering everything in the startup line.

Please can you paste the content of /var/www/minera/conf/miner_conf.json?

Did you run "sudo ./upgrade_minera.sh"? Please run it and then retry to save settings