xmrig / xmrig-amd

Monero AMD (OpenCL) miner
GNU General Public License v3.0
415 stars 227 forks source link

error: "Unauthenticated", code: -1 #67

Closed kuttkutt closed 5 years ago

kuttkutt commented 6 years ago

Hello,

I am using xmrig-amd to mine at supportXMR.com. I do use other versions of XMRig for CPU mining at lower hashrates but only on xmrig-amd I get occcationally the following error:

[2018-03-25 13:22:10] [pool.supportxmr.com:7777] error: "Unauthenticated", code: -1 [2018-03-25 13:22:10] no active pools, stop mining

The Radeon manages to get around 150 H/s steady and even on port 7777 the pool sets the difficulty to somwhere between 5000 and 7000. So xmrig-amd sends around 4 to 6 shares per minute.

The stange thing is, that this error appears sometimes after a few minutes, sometimes after an hour and sometimes after 20h+

I had keepalive set to true and now do a "test" run with "false".

Can anyone chat some light onto this - is the a bug?

PS: the version I use is:

XMRig 2.5.0 built on Mar 14 2018 with MSVC 2017 features: x86_64 AES-NI

libuv/1.19.2 libmicrohttpd/0.9.58

PPS: I see a new version came out 2h ago - so was this a known issue on 2.5.0?

kuttkutt commented 6 years ago

Ok, the problem persits in 2.5.1. This time the Error appeared after 7h.

I mine on the same PC with a gtx960 with xmrig-nvidia. No Issues with this one... very odd..

xmrig commented 6 years ago

Sorry was to busy yesterday. It strange, Unauthenticated errors usually happen after hours without shares, it configurable and depends of pool preferences, so no reason think is something bad with pool. But network code is same across all xmrig* miners, it pretty strange issues only affect amd version.

I upload version with enabled protocol debug, it verbose, because print each network packet in console, it helps understand what happen, miner sent something wrong or pool. https://github.com/xmrig/xmrig-amd/releases/download/v2.5.2/xmrig-amd-2.5.2-debug-win64.zip Thank you.

xmrig commented 6 years ago

In v2.5.1 was found critical bug, I remove this version and publish v2.5.2, link above updated too. Thank you.

kuttkutt commented 6 years ago

oh ok.. I think it is not because of a network issue. With persistent set to false, xmrig-amd receives jobs, but at some point never delivers results. I'll post a screenshot soon (I'm not at the PC right now). Does xmrig has a verbose setting?

xmrig commented 6 years ago

No it can changed only in compile time, if you can't build from source, I built verbose version for you https://github.com/xmrig/xmrig-amd/releases/download/v2.5.2/xmrig-amd-2.5.2-debug-win64.zip

kuttkutt commented 6 years ago

Sorry for the long paste, but here it stopped:

[2018-03-26 05:43:25] new job from miner.fee.xmrig.com:6666 diff 10000 [2018-03-26 05:44:23] dev donate finished [2018-03-26 05:44:23] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:44:42] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:44:49] accepted (864/0) diff 5000 (46 ms) [2018-03-26 05:45:23] speed 10s/60s/15m 156.1 155.9 155.9 H/s max: 156.2 H/ [2018-03-26 05:45:42] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:45:45] accepted (865/0) diff 5000 (28 ms) [2018-03-26 05:46:42] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:47:43] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:48:16] accepted (866/0) diff 5000 (27 ms) [2018-03-26 05:48:22] accepted (867/0) diff 5000 (45 ms) [2018-03-26 05:48:29] accepted (868/0) diff 5000 (27 ms) [2018-03-26 05:48:43] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:48:49] accepted (869/0) diff 5000 (27 ms) [2018-03-26 05:48:59] accepted (870/0) diff 5000 (41 ms) [2018-03-26 05:49:02] accepted (871/0) diff 5000 (44 ms) [2018-03-26 05:49:08] accepted (872/0) diff 5000 (36 ms) [2018-03-26 05:49:43] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:50:33] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:50:43] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:51:17] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:51:43] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:51:51] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:52:44] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:53:08] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:53:44] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:54:44] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:55:23] speed 10s/60s/15m n/a n/a 155.8 H/s max: 156.2 H/s [2018-03-26 05:55:44] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:56:27] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:56:44] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:57:44] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:58:45] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:59:35] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 05:59:45] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 06:00:45] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 06:01:45] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 06:02:28] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 06:02:45] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 06:03:45] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 06:05:23] speed 10s/60s/15m n/a n/a 155.5 H/s max: 156.2 H/s [2018-03-26 06:15:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 06:25:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 06:35:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 06:45:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 06:55:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 07:05:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 07:15:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 07:23:24] dev donate started [2018-03-26 07:23:24] new job from miner.fee.xmrig.com:6666 diff 10000 [2018-03-26 07:23:39] new job from miner.fee.xmrig.com:6666 diff 10000 [2018-03-26 07:24:24] dev donate finished [2018-03-26 07:24:24] new job from pool.supportxmr.com:7777 diff 5000 [2018-03-26 07:25:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 07:35:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 07:45:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 07:55:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 08:05:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s [2018-03-26 08:15:23] speed 10s/60s/15m n/a n/a n/a H/s max: 156.2 H/s

You see, that it also got 2 jobs from th dev donate, but did not post any results...

I'll put up the debug version.

PS: here are the lines, when I start it:

  • VERSIONS: XMRig/2.5.2 libuv/1.19.2 OpenCL/2.0 MSVC/2017
  • CPU: Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz (1) x64 -AES-NI
  • ALGO: cryptonight, donate=1%
  • POOL #1: pool.supportxmr.com:7777 pool.supportxmr.com:7777, user: xxx, pass: xxx, ka: 0, nicehash: 0
  • COMMANDS: 'h' hashrate, 'p' pause, 'r' resume [2018-03-26 09:41:56] compiling code and initializing GPUs. This will take a while... [2018-03-26 09:41:57] #0, GPU #0 (AMD Radeon (TM) R9 M360), intensity: 512 (32/256), cu: 8 [2018-03-26 09:42:06] [pool.supportxmr.com:7777] state: 1 [2018-03-26 09:42:06] [pool.supportxmr.com:7777] state: 2 [2018-03-26 09:42:06] [pool.supportxmr.com:7777] state: 3 [2018-03-26 09:42:06] [pool.supportxmr.com:7777] send (274 bytes): "{"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"xxx","pass":"xxx","agent":"XMRig/2.5.2 (Windows NT 6.1; Win64; x64) libuv/1.19.2 msvc/2017"}} " [2018-03-26 09:42:06] [pool.supportxmr.com:7777] received (381 bytes): "{"id":1,"jsonrpc":"2.0","error":null,"result":{"id":"b1fdb414-227e-4240-9f3c-4f624460bb2e","job":{"blob":"0606c9c6e2d50536b65faf e8857be40442fdd82467670d19e5a9540c20d9cc52e7c7b1e896de20000000002ebf1fdd6b89e2361c00f6e1166010c4e8302fcfb4c07017f42049c8ba9daf1601","job_id":"Pz7vHgKYtIPtapmNrFXqUQTqOLuC","target":"169f0200","id":"b1 fdb414-227e-4240-9f3c-4f624460bb2e"},"status":"OK"}}" [2018-03-26 09:42:06] use pool pool.supportxmr.com:7777 91.121.140.167 [2018-03-26 09:42:06] new job from pool.supportxmr.com:7777 diff 25000

(I put a xxx on user and pass)

Not I have the debug version online - piping everything into a log file ...

Maybe I have the settings for the Radeon set to hard - so it runs in some kind of buffer overflow at some point...

xmrig commented 6 years ago

Miner stop working speed 10s/60s/15m n/a n/a 155.5 H/s max: 156.2 H/s no hashes for 10 and 60 seconds intervals, possible overheating or something like that. Thank you.

kuttkutt commented 6 years ago

Hmm .. I have GPU-Z running. The card is not overclocked or something like that and it's GPU temperature is steady at 62..64°C.

I don't think that it's getting too hot

Here is a screenshot of the Afterburner (I used that to increase the fan speed to 100%, but it does not make a difference)

afterburner

kuttkutt commented 6 years ago

hmm .. until now I am unable to reproduce this particular error in the debug version of xmrig-amd.

However, the miner seems to crash without any error messages from time to time. Now I have two Radeon R9 M360 Cards. The Specs are: Shaders: 512 Memory: 2GB

I am not 100% about the config: "intensity": 500, "worksize": 8, "affine_to_cpu": false

In princible is "intensity" the number of shaders (if I understood it right), "worksize" - is this some kind of package size per shader? Because when starting xmrig it shows worksize/256?

0, GPU #1 (AMD Radeon (TM) R9 M360), intensity: 500 (8/256), cu: 8

What does (8/256) mean?

kuttkutt commented 6 years ago

lol .. it's kiddin me - I have it reproduced - see attached file.

[2018-03-27 12:24:30] I send the last result Then it receives only new tasks but nothing is sent anymore? [2018-03-27 12:39:32] It looks like some keepalive package? But the server answeres right away "Unauthenticated"

In the file you can see how long (in average) the calculation of a package takes. So either it's a really difficult one sent by the pool (I use now the normal pool with diff. 5000)

Here is the log: https://pastebin.com/P48vB5i2

So if I see it right, the card simply does not calculate anything for 15 mins (why?) and then the pool cuts the connection.

Would it be possible that in case of "Unauthenticated" the miner simply "die;" or restarts from scratch?

A self termination would be nice (eg. setable in the config), because then I could check with a script if the process is still running. But if it does not mine and is still running it's hard to check.

kuttkutt commented 6 years ago

Hello again.

I "think" we can conclude this issue solved.

The following situation: I noticed that the cards did deliver max 120 shares, then they powered down. I said max 120 - usually less (thats about ~60 min runtime). However, in some rare cases the AMD driver did a reset aswell. More stangely, when I tried to open the Radeon Settings tool, it did not open at all (never tried to open it before).

So I downloaded the minimal driver setup tool from the amd page and it told me that I am using the latest drivers for the card. But there was also a non recommendet beta driver. So I installed this one and now the Radeon Settings tool works. I guess the stable version of this driver would work aswell because somehow it seems to have installed the Radeon driver comming via Windows Update. Even having the same version number, it seems to be glitchy somehow.

Now the cards seem to run smoothly, now 90 minutes with 195 and 175 submitted shares.

Sorry that I thought it was an issue with/of xmrig-amd ;)

The learning curve: Don't use the Driver Windows Update wants to install - even it's the same version Number.

Maybe this helps some people in the future having a similar issue...

PS: even for such a small card the hashrates are pretty good - stable 160 H/s for a small profile card powered only via PCI-E. If it runs now stable, maybe I try to overclock them a bit...

xmrig commented 5 years ago

https://github.com/xmrig/xmrig/releases/tag/v4.0.0-beta