-
Notifications
You must be signed in to change notification settings - Fork 219
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
Merge mining proxy exits after a while [igor] #5293
Comments
Confirmed to be a long-standing issue for me as well on multiple OS and hardware platforms. Would be happy to test on another XMR pool if anyone knows of an alternative to cryptonote.social that works with merge mining |
For a really long time, using the configuration above, I have been running XMrig from a Powershell script (as administrator) on Windows 10 that would restart XMRig every 45 minutes or so. My original issue was that it seems XMRig stops communicating with cryptonote.social. Since I discovered the issue above, I added a check that would execute every minute to see if the merge mining proxy is still running. I have some results to share. The Powershell script: param ($merge_mining_proxy_path)
if ($Null -eq $merge_mining_proxy_path) {
Write-Information -MessageData "'merge_mining_proxy_exe' not set" -InformationAction Continue
Exit
}
$current_path = Get-Location
$xmrig_exe = "xmrig"
$merge_mining_proxy_exe = "tari_merge_mining_proxy"
function Start-Proxy-If-Not-Running($count) {
if ($Null -eq (get-process $merge_mining_proxy_exe -ErrorAction SilentlyContinue)) {
Write-Information -MessageData "$merge_mining_proxy_exe is not running, starting ($count)" -InformationAction Continue
Set-Location $merge_mining_proxy_path
Start-Process -FilePath "start_tari_merge_mining_proxy.bat"
Set-Location $current_path
return $true
}
return $false
}
function Stop-Start-Xmrig($count) {
if ($Null -ne (get-process $xmrig_exe -ErrorAction SilentlyContinue)) {
Stop-Process -Name ($xmrig_exe)
}
Write-Information -MessageData "stop-start $xmrig_exe ($count)" -InformationAction Continue
Start-Process -FilePath ./$xmrig_exe -ArgumentList "--log-file=.\xmrig.exe.log --verbose"
}
$loop_count = 0
$proxy_restart_count = 1
$xmrig_restart_count = 1
do {
$restarted = Start-Proxy-If-Not-Running($proxy_restart_count)
if ($true -eq $restarted) {
$proxy_restart_count += 1
}
if ($loop_count % 45 -eq 0) {
Stop-Start-Xmrig($xmrig_restart_count)
$xmrig_restart_count += 1
}
Start-Sleep -Seconds (1 * 60)
$loop_count += 1
} while ($true) The console output - the merge mining proxy exited by itself 4 times in ~44.5 hours (the 1st entries are normal startup):
For the console output above, the last entries in the trace log file before the proxy exited:
|
lets reconfirm or close |
Confirmed, still an issue |
Confirmed still an issue on Ubuntu and Mac as well, connecting to a private pool with self-select. Tari stagenet, Monero mainnet. @hansieodendaal, have you found it necessary to restart xmrig if the proxy is restarted before xmrig flatlines? |
@WildWeasel35, I made a PowerShell script that restarts XMRig every 45 minutes irrespective if it is working or not and checks every minute if the merge mining proxy is still running. The reason for this is that sometimes XMRig goes stale and the merge mining proxy exits. |
Great, thank you. I find that my xmrig only goes stale when merge mining. It doesn't exit but continues to run, just with no hash rate. This will help |
This happens with
self-select
on monerod mainnet without any error messages in the log file or in the console.tari_merge_mining_proxy console ouptut:
tari_merge_mining_proxy config:
xmrig config:
The text was updated successfully, but these errors were encountered: