ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.96k stars 2.28k forks source link

Trying to use ethminer with minergate #1406

Closed RUminingTwo closed 6 years ago

RUminingTwo commented 6 years ago

Trying to run version 15.0

I had dropped the new 15.0 executable into the previous directory, that I had an earlier version of ethminer in ( not sure what the older version is, but file date of old version is 5/15/2018

Version 15.0 wont run.

If I can obtain or someone could steer me to the latest command line options for 15, so that i can check if the old commands in the bat file I have, work with the newest version of Ethminer.

Basically the "Command" window opens and closes really fast on version 15. Dont see any text popup up in the window either.

Thank you

efrasyad commented 6 years ago

You can open command prompt first, go to your ethminer batch file directory and run the batch file from there to get more information.

RUminingTwo commented 6 years ago

I have my pre-existing batch file shortcut, on my desktop, that has had no problems running the Ethminer version dated 5/15/208, All I would do and still do with the old version Ethminer shortcut is doble click, and it starts up running in a command prompt window, with no problems.

All I have to do in the past, is just drop the new Ethminer into that directory that the shortcut points to, and then click on the desktop shortcut to run the latest EthMiner.

The 15.0 version, doesn't work just for me, it makes me think that some of the command line options have changed.

Oddly, what I notice is that the old file size of the older Ethminer is double the file size of version 15, That tells me one of two things,. either the programming efficiency has skyrocketed, or there has been major changes in the EthMiner development process that allow the newer version file size to be half of what it was on prior versions.

efrasyad commented 6 years ago

i understand you want ease of use with double click the batch file and voila,, mining start. but to understand the situation you are facing, people here need more information. running the batch file from command prompt will show more information right after ethminer start and why it stopped.

RUminingTwo commented 6 years ago

Ok, It comes back that the following arguments was not expected -S and -u This is why I was asking for a link to the latest command line options as I understand that some were removed from.

efrasyad commented 6 years ago

you can use ethminer.exe --help to get the parameter you need and adjust accordingly.

my understanding is, -S is to connect stratum to pool. here is the updated parameter with example from --help:

-P URL Specify a pool URL. Can be used multiple times. The 1st for for the primary pool, and the 2nd for the failover pool. URL takes the form: scheme://user[:password]@hostname:port[/emailaddress]. for getwork use one of the following schemes: http for stratum use one of the following schemes: stratum+ssl stratum+tcp stratum+tls stratum+tls12 stratum1+ssl stratum1+tcp stratum1+tls stratum1+tls12 stratum2+ssl stratum2+tcp stratum2+tls stratum2+tls12 Example 1 : stratum+ssl://0x012345678901234567890234567890123.miner1@ethermine.org:5555 Example 2 : stratum1+tcp://0x012345678901234567890234567890123.miner1@nanopool.org:9999/john.doe@gmail.com Example 3 : stratum1+tcp://0x012345678901234567890234567890123@nanopool.org:9999/miner1/john.doe@gmail.com

i hope it helps.

RUminingTwo commented 6 years ago

Thank you for the follow up. I am / have been using it to connect to the minergate pool.

ethminer -U -S etc.pool.minergate.com:45777 -u (with my email address)

Older version worked, but ver 15 generate the error of - S and -u was not expected

efrasyad commented 6 years ago

just follow the above example and you'll good to go!

RUminingTwo commented 6 years ago

Ok, but I not looking to connect to the stratum pool, so what is listed above is totally different that what is listed in minergate for the ethminer.

The settings above wont work with mingate.

The long standing settings that have worked for many Web info https://minergate.com/altminers/ethminer

StefanOberhumer commented 6 years ago

Older version worked, but ver 15 generate the error of - S and -u was not expected

Check https://github.com/ethereum-mining/ethminer/blob/master/docs/POOL_EXAMPLES_ETH.md to get an idea of syntax (info: minergate is not included in the examples)

efrasyad commented 6 years ago

-P stratum+tcp://your_wallet_address>@etc.minergate.com:45777/<your_rig_name/

You should ask minergate web admin to update their FAQ page to accommodate ethminer updated version.

RUminingTwo commented 6 years ago

I dont think that would work, because the wallet address is actually the email address.

This is their example directly copied from their site. ethminer -G -S eth.pool.minergate.com:45791 -u YOUR_EMAIL****

I have been using ethminer -U -S eth.pool.minergate.com:45791 -u YOUR_EMAIL**** for over 6 months with no problems.

seems the update Ethminer is requiring a wallet address, where as previous it worked with just an email address, as wallet addresses are not provided by Minergate, everything is tied it the email address.

efrasyad commented 6 years ago

try this then: -P stratum2+tcp://.:@eth.pool.minergate.com:45791

RUminingTwo commented 6 years ago

Again, no password is used either. But I will omit that part and try it.

efrasyad commented 6 years ago

again, please use your imagination :)

RUminingTwo commented 6 years ago

that what i am trying now : )

Just thought it would be a quick easy fix since it worked for 1/2 year with no issues

Thank you, will follow up with results for future knowledge or questions by others.

RUminingTwo commented 6 years ago

I think I am going to stick to the older version, not looking to reverse engineer this to work.

I appreciate the input/ feedback.

Best !

RUminingTwo commented 6 years ago

What I am finding in the help text from the old EthMiner compared to the new, is that some functionality has changed.

Old version supported the following

""" -S, --stratum Put into stratum mode with the stratum server at host:port""""" New Version does not support the -S

Old version accepted the "" -u ''

New version does not.

I could spend all night testing, but the second side of the equation is Minergate, and what version they are supporting also.

efrasyad commented 6 years ago

Have you try any of the above example i gave you?

On Fri 3 Aug 2018 at 00:25, RUminingTwo notifications@github.com wrote:

What I am finding in the help text from the old EthMiner compared to the new, is that some functionality has changed.

Old version supported the following

""" -S, --stratum host:port Put into stratum mode with the stratum server at host:port""""" New Version does not support the -S

Old version accepted the "" -u ''

New version does not.

I could spend all night testing, but the second side of the equation is Minergate, and what version they are supporting also.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ethereum-mining/ethminer/issues/1406#issuecomment-410098298, or mute the thread https://github.com/notifications/unsubscribe-auth/AhRH3kLpu7CZ68Mn4abRG1hZywSRm6nkks5uM4pvgaJpZM4Vsyt7 .

--

Warmest regards, EmilFR

RUminingTwo commented 6 years ago

Yes, I did, but I have to remove two sections that are irrelevant Passsword Worker

As neither is used

RUminingTwo commented 6 years ago

I so I tried

ethminer -U -P stratum+tcp://email@emailaddress.com@eth.pool.minergate.com:45777

RUminingTwo commented 6 years ago

It came back with

One of -G, -U, -X, -M, or -Z must be specified

So then I added - U after Ethminer.exe but before the -P

then it came back with

Bad endpoint address:

RUminingTwo commented 6 years ago

Heyyyyyyyyyyy I got it.....Some tinkering and all is good.

ethminer -U stratum1+tcp://etc.pool.minergate.com:45777/youremail@emaildomain.com

Opps Almost.....Its bringing up the working console, and text is streaming, but it shows disconnecting..

Closer but no cigar

RUminingTwo commented 6 years ago

Here is the error

Pool sent an invalid jsonrpc message ...

RUminingTwo commented 6 years ago

Ok, So what i have come to realize, is that Minergate does not support the latest JSONRPC specs

So version 15 will not work until both sides of the fence are using the same level/builds.

The one error / notice in the command window of EthMiner is this

""" Do not blame ethminer for this. Ask pool devs to honor http://www.jsonrpc.org/ specifications""""

Which means Minergate is not supporting latest JsonRPC

Do not blame ethminer for this. Ask pool devs to honor http://www.jsonrpc.org/ specifications

AndreaLanfranchi commented 6 years ago

MInergate does not support stratum1 but only stratum.

ethminer -U stratum+tcp://etc.pool.minergate.com:45777/youremail@emaildomain.com

Note that "1" has been removed from stratum

RUminingTwo commented 6 years ago

Hi, Thank you for the follow up to my questions. ' I had already tried all three possibilities with the stratum+tcp, stratum+ssl, etc, and no luck.

Using the - U stratum+tcp ethminer -U stratum+tcp://etc.pool.minergate.com:45777/myemail@emaildomain.com

I receive this error

Worker not authorizedcode:-33 message:Failed to log in.

AndreaLanfranchi commented 6 years ago

Minergate uses email address and password to login.

So you have to use the syntax

stratum+tcp://<email>:<password>@etc.pool.minergate.com:45777
or
stratum+tcp://myemail@emaildomain.com:myverystrongpassword@etc.pool.minergate.com:45777

But here comes the problem: the @ is also part of the email thus breaking ethminer ability do detect where "host name" begins. To workaround you have to URLEncode your email address basically replacing @ with %40

So you end up with

stratum+tcp://myemail%40emaildomain.com:myverystrongpassword@etc.pool.minergate.com:45777
RUminingTwo commented 6 years ago

I will try what you had mentioned, but just to raise one point, Mingergate console, no password is required, So not sure if Ethminer, looks for that password space to be filled, and if not generates an error.

My understanding is that the """" %40 """"" is like a query or placeholder, no? """" myemail%40emaildomain""""""

The second matter is that you had shown a password field, and the previous settings, that work with Ver 14 of EthMiner on Mingergate dont require a password.

AndreaLanfranchi commented 6 years ago

I'm pretty confident very little people uses Minergate with anything else than Minergate's own miner so I might badly recall the password usage. Nevertheless, as minergate requires an email address to login you can handle two cases:

  1. Password required :
    stratum+tcp://myemail%40emaildomain.com:myverystrongpassword@etc.pool.minergate.com:45777
  2. Password not required
    stratum+tcp://myemail%40emaildomain.com@etc.pool.minergate.com:45777

In both cases email address has to be urlencoded and that implies @ to be replaced with %40

RUminingTwo commented 6 years ago

From what I have seen in the chat groups some months back there are some people that do use the console, on MGate. ( how many, not sure, and also there definitely has been a large drop in miners, and overall)

Let me give it a go right now with what you had mentioned, and will post the results

AndreaLanfranchi commented 6 years ago

I personally discourage the usage of Minergate as a pool for various reasons.

  1. They have adjusting diff: at first connection they apply a very low diff to mining jobs causing ethminer to find an insane number of valid shares which may cause trouble to concurrency threads in ethminer ... then slowly the diff raises (the more powerful is your mining device the more sensible is this problem)
  2. Minergate as a pool is very discussed: mainly due to their habit to "spam" blocks with lots of unneeded data
  3. Is not clear their payout scheme : never understood whether or not they pay for stale shares or uncle blocks.
RUminingTwo commented 6 years ago

Ok, I had tried the 2nd cfg you had mentioned, some progress, but, the issue now is """ No work. Pause for 3 s."""" in the command line window.

This points me back to thinking the versions of miners that Minergate is using are not up to the lastest builds? I would thing the client handshake, and the server handshake have to be on the same, or close to same builds? No?

I hear you on the Minergate aspect, one of the reasons I use it because I dont want to get into having a local wallet, and gigs and data, and keeping up with the wallet builds. I understand the all the security factors, but one can eat up a lot of time with all the background aspects of storing coin, wallet patches, risks, and so on.

RUminingTwo commented 6 years ago

In researching the error, I had actually found your previous comment to another user who had the issue.

https://github.com/ethereum-mining/ethminer/issues/1036 Mid way down the page. """"" Unfortunately this should not happen as the pool should reply to the same message id being sent by the client. I will try to manage this unfortunate situation but, I reiterate, this is a bad implementation on pool's side. """""

So the issue would be on the MGate side?

AndreaLanfranchi commented 6 years ago

Ok, I had tried the 2nd cfg you had mentioned, some progress, but, the issue now is """ No work. Pause for 3 s."""" in the command line window.

Do you leave enough time to let those 3 seconds elapse ?

I hear you on the Minergate aspect, one of the reasons I use it because I dont want to get into having a local wallet, and gigs and data, and keeping up with the wallet builds.

You don't have to. Take a look at Exodus. It's a local wallet but does not store all the blockchain data and is multi asset.

So the issue would be on the MGate side?

The problem you're refferring to was detected on ethermine.org pool. Not minergate.

RUminingTwo commented 6 years ago

I have let, and still letting the console to run with V15, event thought its erroring out.

Here is the new errror....Only reason I had kept letting it run, is because I am multitasking and writing some emails..

====================== It was just doing this =============

No more ip addresses to try for host:etc.pool.minergate.com i 06:39:24 main Disconnected from etc.pool.minergate.com [136.243.94.27:45777] i 06:39:24 main Selected pool etc.pool.minergate.com:45777 i 06:39:24 stratum Trying 136.243.88.145:45777 ... X 06:39:26 stratum Error 136.243.88.145:45777 [Timeout] i 06:39:26 stratum Trying 136.243.94.27:45777 ... i 06:39:27 cuda-0 No work. Pause for 3 s. X 06:39:28 stratum Error 136.243.94.27:45777 [Timeout] X 06:39:28 stratum No more ip addresses to try for host:etc.pool.minergate.com i 06:39:28 main Disconnected from etc.pool.minergate.com [136.243.94.27:45777] m 06:39:28 main not-connected i 06:39:28 main Shutting down miners... i 06:39:30 main Retrying in 3... i 06:39:31 main Retrying in 2... i 06:39:32 main Retrying in 1... i 06:39:33 main Selected pool etc.pool.minergate.com:45777 i 06:39:33 stratum Trying 136.243.88.145:45777 ... m 06:39:33 main not-connected X 06:39:35 stratum Error 136.243.88.145:45777 [Timeout] i 06:39:35 stratum Trying 136.243.94.27:45777 ...

===================== And now its back to this =================

m 06:40:59 main Speed 0.00 Mh/s gpu/0 0.00 [A0+0:R0+0:F0] Time: 00:17 i 06:41:01 cuda-0 No work. Pause for 3 s. i 06:41:04 cuda-0 No work. Pause for 3 s. m 06:41:04 main Speed 0.00 Mh/s gpu/0 0.00 [A0+0:R0+0:F0] Time: 00:17 i 06:41:07 cuda-0 No work. Pause for 3 s. m 06:41:09 main Speed 0.00 Mh/s gpu/0 0.00 [A0+0:R0+0:F0] Time: 00:17 i 06:41:10 cuda-0 No work. Pause for 3 s. i 06:41:13 cuda-0 No work. Pause for 3 s. m 06:41:14 main Speed 0.00 Mh/s gpu/0 0.00 [A0+0:R0+0:F0] Time: 00:18 i 06:41:16 cuda-0 No work. Pause for 3 s. i 06:41:19 cuda-0 No work. Pause for 3 s. m 06:41:19 main Speed 0.00 Mh/s gpu/0 0.00 [A0+0:R0+0:F0] Time: 00:18 i 06:41:22 cuda-0 No work. Pause for 3 s. m 06:41:24 main Speed 0.00 Mh/s gpu/0 0.00 [A0+0:R0+0:F0] Time: 00:18 i 06:41:25 cuda-0 No work. Pause for 3 s. i 06:41:28 cuda-0 No work. Pause for 3 s.

AndreaLanfranchi commented 6 years ago

As you can see the connection is not even established (every connection attempt goes timeout so ethminer does not even send your credentials).

I recall Minergate implements some sort of timed firewall whenever it detects an IP address sending too many errors. If I am not mistaken there is an 1 hour reset time.

RUminingTwo commented 6 years ago

Thank you for the link to Exodus.io

Its is something I am going to look into.

Presently I mine only a few coins, or use Nicehash, to mine, and then convert earnings so that I can buy coins that are not mineable such as XRP, Golem, SIA, Stellar.

Overall I have using Poloniex for storing most coins, and Minergate to hold what I have mined, until I decide to transfer.

AndreaLanfranchi commented 6 years ago

There is a second option you can work on. If you mine ETC (as apparently you're doing) you can mine directly to your Poloniex deposit address. This way you can save the GAS for an extra transaction.

And if possible use some more affordable pools like ethermine.org (for example).

RUminingTwo commented 6 years ago

"""""I recall Minergate implements some sort of timed firewall whenever it detects an IP address sending too many errors. If I am not mistaken there is an 1 hour reset time."""""""

That may explain the first error output...I dont think its a hour timeout though.

"""If you mine ETC (as apparently you're doing) you can mine directly to your Poloniex deposit address""""

I thought about that a while back, and did some research, and some have not recommend to do it that way....I haven't tried it though. and my second thought was if there is any performance hit, by implementing it that way.

AndreaLanfranchi commented 6 years ago

I thought about that a while back, and did some research, and some have not recommend to do it that way....I haven't tried it though.

For "some" coins it's not advisable particularly for the ones requiring a transaction ID (like Monero). But for ETH (like all other coins where your deposit address is unique) there are no problems or at least I have not found any.

my second thought was if there is any performance hit, by implementing it that way.

Performance is never affected by the address you're mining to. Performance is only regulated by your equipment (GPUs, CPU, network latency, mining software etc.)

RUminingTwo commented 6 years ago

""""For "some" coins it's not advisable particularly for the ones requiring a transaction ID (like Monero). But for ETH (like all other coins where your deposit address is unique) there are no problems or at least I have not found any."""

Thank you, I wasn't thinking about that, or did even fully realize it, I thought transactions ID are optional? Or is that a "Per coin type" basis

"""Performance is never affected by the address you're mining to. Performance is only regulated by your equipment (GPUs, CPU, network latency, mining software etc.)"""""

I thought of it as, If one were to mine to an exchange there is potential issues with transaction not going through to the exchange, as least from what i have read about.

On a side note, I had tried mining ETC at pool, but found that the mining rate was not much better, if at all, then me mining on MGate, at least for ETC.

AndreaLanfranchi commented 6 years ago

On a side note, I had tried mining ETC at pool, but found that the mining rate was not much better, if at all, then me mining on MGate, at least for ETC.

It's essential to understand which meaning you give to "mining rate". If you mean "hashing speed" (as seen on YOU local monitor) than this won't be affected by the pool you're using as it's strictly bound to your local equipment.

On the other hand if you mean "revenues" than I would suggest to perform long running batches (at least 24 hours) before taking any conclusion.

AndreaLanfranchi commented 6 years ago

And btw ... Minergate IS a pool

RUminingTwo commented 6 years ago

Yes, I understand that ( worked in IT for 20 years), not too green behind the ears. : )

I meant ETC/ETH specific pool

RUminingTwo commented 6 years ago

Thank you for all your help, and information you had provided me, I think I may look into the ETC pools again, and test mining to Poloniex. At least see how it goes.

Best Regards,

MinerGate commented 6 years ago

Greetings from MinerGate mining pool. We solved the issues regarding ethminer and now you're welcome to join in. https://minergate.com/altminers/ethminer Thank you for very useful comments above, we're constantly working hard to improve our service.

RUminingTwo commented 6 years ago

I have just tested it with Version 15 of EthMiner. It now works !!!!

Utilizing the config below for the user settings for MinerGate, as the old setting listed on MinerGate's web site does not work with Version 15 of EthMiner.

Update config for the batch file to be utilized with Version 15 of EthMiner

( This setting is for Mining Ethereum Classic - Based upon the TCP/IP port of 45777) ethminer -U stratum+tcp://UserEmailAddress%40UserMailDomain@etc.pool.minergate.com:45777

One must replace the "" @ "" sign within the email address with the "" %40 """ in order for it to work with version 15, and I also suspect versions higher than 15 of Ethminer.

Special thanks goes to "AndreaLanfranchi" above, for pointing out the potential solution to try. Which now works after MInergate has checked/ address any further issues.

Best Regards Ron

AndreaLanfranchi commented 6 years ago

Happy to hear it's solved.

Closing.