prdatur / phpminer

PHPMiner is a web interface for cgminer on linux machines
Other
34 stars 15 forks source link

[?] Are config/* files still used? #28

Closed nicoschtein closed 10 years ago

nicoschtein commented 10 years ago

I want to know which files are still needed and which are replaced by MySQL.

I have right now:

phpminer/config# tree
.
|-- access.json
|-- config.json
|-- config.php
|-- config.php.dist
|-- notify.json
|-- phpminer.db
`-- pools.json
prdatur commented 10 years ago

only config.php and config.php.dist are important, i didn't auto deleted the old ones so a backup exists.

nicoschtein commented 10 years ago

Ok, so where is each rig connection info stored? I am trying to debug something and would like to delete a rig manually, currently the site wont list my rigs...

prdatur commented 10 years ago

mysql table "config", column "type" => "rigs"

nicoschtein commented 10 years ago

Ok, then i don't know whats wrong, i have 3 rigs listed there and they don't show up... All rigs and server are on latest version. I will try to check for errors in logs and report.

2014-03-10 12:48 GMT-03:00 Christian notifications@github.com:

mysql table "config", column "type" => "rigs"

Reply to this email directly or view it on GitHubhttps://github.com/prdatur/phpminer/issues/28#issuecomment-37197345 .

nicoschtein commented 10 years ago

Here:

init.js line 1391

Uncaught TypeError: Cannot read property 'Enabled' of undefined 
prdatur commented 10 years ago

Then your miner didn't returned any valid gpu information. Could you we make a teamviewer session so i can debug what the result of the cgminer api is?

prdatur commented 10 years ago

I will now shortly create the feature for custom start / stop commands. After that i will create a script for rpc clients where it will check all required api commands to cgminer. This i need also for the multi miner feature, so we can check if the api returns the correct things on the rpc client side.

prdatur commented 10 years ago

Please test if the api is working. php -f phpminer_rpcclient/test_api_commands.php

nicoschtein commented 10 years ago

On the server itself that has a client too it returns

/phpminer# php -f phpminer_rpcclient/test_api_commands.php
The given miner api is compatible with PHPMiner and fully functional

But on the other two clients:

/phpminer# php -f phpminer_rpcclient/test_api_commands.php

11.03.2014 04:50:43: Check for provileged access: OK
11.03.2014 04:50:43:
PHP Warning:  reset() expects parameter 1 to be array, null given in /phpminer/phpminer_rpcclient/includes/CGMinerAPI.class.php on line 239
11.03.2014 04:50:43: GPU's found: ERROR: 0 found
11.03.2014 04:50:43: Value: false
11.03.2014 04:50:43: Please fix the error above
nicoschtein commented 10 years ago

Well, i finally found what is wrong, SGMiner is not working, but CGMiner does work! Changed all SG to CGMiner and phpminer works fine now.

prdatur commented 10 years ago

Ok but now i think it would be good to check what the problem is with sgminer. Can you tell me which version you have from sgminer? so i can check this.

prdatur commented 10 years ago

I just checked my sgminer and it worked so far. I think your sgminer is damaged or maybe the gpu is not recognized by sgminer, don't know.