oliverw / miningcore

Miningcore is a high-performance Mining Pool Software for Linux and Windows.
https://store.miningcore.pro
MIT License
725 stars 666 forks source link

Lyra2REv2 sgminer doesn't work #45

Closed Konstantin35 closed 6 years ago

Konstantin35 commented 6 years ago

Lyra2REv2 sgminer doesn't work on the pool nor on my not on your checked on suprnova everything works

oliverw commented 6 years ago

Could run the miner with maximum verbosity output and post the log here?

Konstantin35 commented 6 years ago

sgminer.exe --kernel lyra2v2 -o stratum+tcp://mona.poolmining.org:3092 -u M8k9bKo6wYhFJnrTxLecKQkpD3y1tquVcT -p x

[18:58:53] No servers were found that could be used to get work from.
[18:58:53] Please check the details from the list below of the servers you have input
[18:58:53] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
[18:58:53] Pool: 0  URL: stratum+tcp://mona.poolmining.org:3092  User: M8k9bKo6wYhFJnrTxLecKQkpD3y1tquVcT  Password: x
[18:58:53] Press any key to exit, or sgminer will try again in 15s.
[18:59:09] mona.poolmining.org difficulty changed to 15
[18:59:09] No servers were found that could be used to get work from.
[18:59:09] Please check the details from the list below of the servers you have input
[18:59:09] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
[18:59:09] Pool: 0  URL: stratum+tcp://mona.poolmining.org:3092  User: M8k9bKo6wYhFJnrTxLecKQkpD3y1tquVcT  Password: x
[18:59:09] Press any key to exit, or sgminer will try again in 15s.
[18:59:25] mona.poolmining.org difficulty changed to 15
[18:59:26] No servers were found that could be used to get work from.
[18:59:26] Please check the details from the list below of the servers you have input
[18:59:26] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
[18:59:26] Pool: 0  URL: stratum+tcp://mona.poolmining.org:3092  User: M8k9bKo6wYhFJnrTxLecKQkpD3y1tquVcT  Password: x
[18:59:26] Press any key to exit, or sgminer will try again in 15s.
oliverw commented 6 years ago

Is there no way to get sgminer spit out more detailed information?

Mer-idium commented 6 years ago

I have the same issue just with another, Vertcoin one click miner. It just crashes the stratum server. The server still finds new block and processes the payments, but no miner can connect once the stratum has crashed. Can we add a possible auto-restart function?

oliverw commented 6 years ago

@pfeiflelukas Restarting itself is not something we should handle internally. If you are running the miningcore under systemd this is quite easy. This is how we do it on poolmining.org:

[Unit]
Description=Pool 1
After=network.target postgresql.service
Requires=postgresql.service

[Service]
User=miningpool
Environment=DOTNET_CLI_TELEMETRY_OPTOUT=1
WorkingDirectory=/cluster/miningcore/build
ExecStart=/usr/bin/dotnet MiningCore.dll -c /cluster/pool1/config.json
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target
oliverw commented 6 years ago

@pfeiflelukas If are able to reliably reproduce the crash you've mentioned I'd like to ask you to run using

    "logging": {
        "level": "trace",
        .....
    },

Please post the log around the time the crash occurs.

Mer-idium commented 6 years ago

Sorry i should have made myself clearer. The stratum only crashes while the other parts of the software appear normal such as the finding blocks and payments. I can still see the program running with htop (ubuntu) however i cannot connect any miners. Only a full restart fixes this issue.

oliverw commented 6 years ago

@pfeiflelukas Could you still try to repro the crash when running with trace logging?

Mer-idium commented 6 years ago

@oliverw Will do we i can

oliverw commented 6 years ago

Closing this as I'm quite confident that this was also a side-effect of the stratumclient bugs that have been recently fixed.