xmrig / xmrig-proxy

Monero (XMR) Stratum protocol proxy
https://xmrig.com/proxy
GNU General Public License v3.0
611 stars 335 forks source link

xmrig-proxy 2.6.3 crashes on no DNS/no internet #236

Open Balzhur opened 6 years ago

Balzhur commented 6 years ago
 * MODE        simple
 * ALGO        cryptonight
 * POOL #1     cryptonightv7.eu.nicehash.com:3363 variant 1
 * POOL #2     cryptonightv7.hk.nicehash.com:3363 variant 1
 * BIND #1     192.168.30.5:3333
 * COMMANDS    hashrate, connections, verbose, workers
[skipped]
[2018-06-24 23:59:36] 3.33 kH/s, shares: 4272/3 +2, upstreams: 2, miners: 2 (max 2) +0/-0
[2018-06-25 00:00:36] 10.00 kH/s, shares: 4278/3 +6, upstreams: 2, miners: 2 (max 2) +0/-0
[2018-06-25 00:01:36] 0.00 kH/s, shares: 4278/3 +0, upstreams: 1, miners: 1 (max 2) +0/-1
[2018-06-25 00:02:16] [cryptonightv7.eu.nicehash.com:3363] DNS error: "temporary failure"
xmrig-proxy: src/unix/getaddrinfo.c:121: uv__getaddrinfo_done: Assertion `0' failed.
./xm.nh: line 1: 30024 Aborted                 (core dumped) ~/compile/proxy/build/xmrig-proxy -o cryptonightv7.eu.nicehash.com:3363 -u skipskip -o cryptonightv7.hk.nicehash.com:3363 -u skipskip -p x --bind 192.168.30.5:3333 --mode simple --variant -1 -l ~/compile/xm-nh.log

It could work flawlessly for weeks, then we have an issue somewhere inside the LAN and boom. Full command line is at last line of the log above. Same issue with 2.6.2 and 2.5x. Ubuntu 16.04.4 LTS, x86_64, kernel 4.4.0-127-generic. There is no core despite it says "core dumped".

kexroman commented 6 years ago

I have the same issue. And see this more offen 'cos of VPN usage.
I think systemd service auto restart could help with it. But I have no luck to start xmrig-proxy in right way - may be you will be happy and make right service file.

podwhitehawk commented 6 years ago

@kexroman this unit file may help:


Description=xmrig-proxy
After=network.target
[Service]
ExecStart=/root/xmrig-proxy/xmrig-proxy -c /root/xmrig-proxy/config.json
Restart=always
User=root
[Install]
WantedBy=multi-user.target
kexroman commented 6 years ago

@podwhitehawk I tried smth like that , but after addition *.service to filename of service it start to work. But anyway thanks !