bsharper / cgweb

GNU General Public License v3.0
14 stars 5 forks source link

No data received from workers #4

Open extera-nl opened 10 years ago

extera-nl commented 10 years ago

Hi,

I would love to use cgweb. It looks like a great program! But I can't get it to work.

I have a ubuntu 12.04 LTS server with LAMP installed (ANUBIS is running OK on this server).

cgweb webinterface loads ok. But it doesn't show info.ANUBIS is running on the same server, working OK, so API traffic must be ok.

I get: 01/17/2014, 2:07:27.841 PM: Updating worker report 01/17/2014, 2:07:32.841 PM: Updating worker report

In the webinterface, without an other data.

De webserver is running on 192.168.10.65

cgminer config: "api-listen" : true, "api-network" : true, "api-allow" : "192.168.10.65",

server-config.json:

{ "worker_ips": { "worker1": "192.168.10.46", "worker2": "192.168.10.63" },

Using chrome inspect element' I found: GET http://192.168.10.65/cgweb/logger.php?load=-1 500 (Internal Server Error) jquery.min.js:5 GET http://192.168.10.65/cgweb/rpc_core.php?update=true 500 (Internal Server Error)

Hope you can help me out! Thanks in advance!

extera-nl commented 10 years ago

Well, I finally got it to work.

found the fix here: http://www.reddit.com/r/BitcoinMining/comments/1ens3r/update_my_webbased_cgminer_administration_tool_is/

$rvs = [];

should be changed to

$rvs = array();

This happens in rpc_core.php. After I fixed that it worked just fine.

Its a very nice tool, thanks a lot for writing it!

Are you still working on this project? I would be nice if some colors can be added when cards overheat. Also the layout of the pools is a bit of a mess. Would be nice to just have a list of pools, one underneath the other.

It would also be very nice if you can see the pool the worker is on, both in the main overview, as in the pool management view.

Thanks again! great tool!

bsharper commented 10 years ago

Hi extera-nl!

I'm actually not working on this project. I wrote this while I was using diskless Linux machines as my miners, though I've since gone to (gasp) Windows (mostly so my partner in crime can easily remote in and manage the miners).

It seems like you have a knack for code, would you be interested in trying to code some of these updates? I would certainly be willing to help where I could.

Thanks for your feedback!

bsharper commented 10 years ago

I just committed the rvs change. Thanks again!

extera-nl commented 10 years ago

Hi bsharper,

i'm a not a developper, and i have very very (very!) little knowledge of coding. I just found this fix posted by someone on reddit.

I would contribute to this project if i could. The only thing i can help with is testing :) To bad you stopped working on this project. as there are no good management tools for Linux mining without using BAMT.