-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minerdash runs but then falls over #50
Comments
2014-05-13T23:53:12.733Z - info: miner2 - error fetching data code=EMFILE, errno=EMFILE, syscall=connect |
Just create the |
Hi, Done that, app still runs for a while then starts loosing connection to devices it seems.. 2014-05-14T08:56:26.549Z - info: miner10 - error fetching data code=ETIMEDOUT, errno=ETIMEDOUT, syscall=connect They are all on the same network, two segments though, only thing different is I reference them at the firewall external ip and port which I then NAT internally to each miner, allows me to add remote boxes' in the same way |
Can you try to use one of the example scripts of cgminer (i.e. https://github.com/ckolivas/cgminer/blob/master/api-example.py) to check wether it is an issue with miner-dashboard or the miner is just not reachable anymore? |
Bit of a script kiddie here... How would I call this to run it and what would I need to change? |
Download the script to the host where miner-dashboard is running, then run (Replace IP and Port if necessary)
This should give you an output like
|
Here you go sudo python api-example.py summary x.x.x.x 4035 |
As i said, npm start works fine for a while, then suddenly seems to loose connectivity |
had no issues with version 2 though... |
Hm, I didn't change anything having to do with polling the miner status from Now to get some more information:
|
PS: The issue might have been there before, the logging is a new thing. |
Another thing: Do all connections fail? Do you get any updated timestamps in the dashboard? |
Will get on to getting those details for you shortly, yes all connections fail. Runs perfectly for a few minutes then seems to loose all connections, sometimes a few come back then they drop off again to |
Hi, Got some time to do a few tests.
As I mentioned I am doing port NAT'ing at a firewall level to access units in different networks, The all exist behind my public IP Thanks |
Example of my configs: Port 44030 on my firewall NAT's to port 4030 on a device internally on a 192.168.1.x range |
Can you try the current master? I tried a fix. |
I did a git pull update, hope that's ok. Get these errors in log when trying to refresh the browser when it fails. 2014-05-19T06:23:39.705Z - info: 192.168.1.102 - GET / HTTP/1.1 In the browser I get this: Error: EMFILE, open '/opt/miner-dashboard/frontend/views/index.hbs' I will try a clean installation, also I get the following in npm update/install. Not sure if they mean anything. npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.28","npm":"1.4.9"}) npm WARN unmet dependency /opt/miner-dashboard/node_modules/grunt-browserify requires async@'~0.7.0' but will load npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.28","npm":"1.4.9"}) npm WARN optional dep failed, continuing fsevents@0.2.0 |
I'm out of ideas. It looks like the connections to cgminer cannot be opened or closed correctly and you eventually run out of file descriptors that you are allowed to open. You could increase the limit via ulimit, but that will just delay the errors. I'll leave this open, maybe I'll get some ideas in the future. |
Allright, it did't let me go. After some tests with your miners 😉, I think we have two issues:
Let me know if there are any news with current master. NB: You might want to increase the interval the miners are polled for such an amount of miners (the default is every second to keep the frontend responsive). I think something around 5 seconds would be better (less traffic, almost the same value). |
Hey, thanks for all the help! Been running for 10 minutes now so looking good :) |
spoke to soon... I'm redoing the network next week to eliminate the firewall, I'll get back to you after that. Issue may be there then |
Any update? |
Hey mate, just getting back to this. |
I changed the default time value of 1000 in bfgminer.js to 5000 and it seems to be working |
Hi,
I got it running and have started adding hosts.
After a while it falls over with this:
2014-05-13T21:21:45.183Z - info: 222.154.249.121 - GET / HTTP/1.1
Error: EMFILE, readdir '/opt/miner-dashboard/frontend/views/partials'
glob error { [Error: EMFILE, readdir '/opt/miner-dashboard/frontend/views/partials']
errno: 20,
code: 'EMFILE',
path: '/opt/miner-dashboard/frontend/views/partials' }
In the browser i see this:
Error: EMFILE, readdir '/opt/miner-dashboard/frontend/views/partials'
Also graphs don't seem to be working.
Chris
The text was updated successfully, but these errors were encountered: