Open AtomicInternet2 opened 1 year ago
So I actually found the "start_service permission error" in Google after some more digging, and you need to give the "NETWORK_SERVICE" user permission to the source files (C:\chia-gigahorse-farmer in my case). It's up and running now, no idea why it was fine without those permissions before. I'll leave this in case I'm not the only one.
And now I've rebooted and permissions all denied again. I've gone through and given every single account in my system full access to those 3 directories, rebooted several times, and still no luck.
Maybe some restrictive security settings in your windows?
I'm not sure if you can add some error catching on \daemon\server.py, line 1112, or if that's even your code, but if it could spit out what user is being denied that would be very helpful if this becomes a problem for more than me. My issue is intermittent, so whatever is causing it is my machine. I've also got the SCEP enrollment issue here that likes to lock out my remote desktop and other fun things, so it could just be that acting up: https://community.amd.com/t5/processors/scep-certificate-enrollment-initialization-errors-are-back-again/td-p/546630/page/3
Either way I'm up and running for now, appreciate the response. Hopefully this is helpful for more than just me if someone else runs into WinError 5. Adding the service accounts at least give me a 50/50 chance of not getting the error now.
I've reloaded Windows 11 several times on the machine, so it's a new install. The SCEP enrollment is a known AMD / Windows bug. Full system details here: http://atomicinternet.homeip.net/crypto/?system=gigahorse
Nice setup, I've seen this before somewhere
The error happens on the call subprocess.Popen
, which starts another process, like farmer or harvester.
Maybe no permissions to execute chia.exe
?
These are the permissions for all 3 folders that seemed to fix the issue. I don't know why the new processes doesn't inherit from the launching user, but this seemed to fix it (for now). Hopefully I'm the only one who has the issue lol.
how do you start gigahorse in the first place?
all parent folders should have +x permission
All folders have full rights for all service accounts. I run the following as admin / non-admin with same error.
I finally just wrote a CMD file to keep running "chia.exe start all" in an infinite loop until I eventually get a "success" and quit.
I have no idea why I have this issue.
:loop
timeout /t 1 >nul
chia.exe start all | find "success"
if errorlevel 1 goto :loop
echo successful.
Should use chia.exe start farmer
Used to run great, now stopped. I'm sure some Windows security update killed it. Can't find any trace of "WinError 5 gigahorse" so I'm starting to think it's just me. Let me know if you see something I haven't tried yet that I should.
Below is the log that spits out after immediately giving up. Any tips would be appreciated.
2023-05-05T17:18:58.733 daemon chia.daemon.server : ERROR problem starting chia_harvester Traceback (most recent call last): File "C:\CHIA-G~1\chia\daemon\server.py", line 1112, in start_service File "C:\CHIA-G~1\chia\daemon\server.py", line 1287, in launch_service File "C:\CHIA-G~1\subprocess.py", line 971, in __init__ File "C:\CHIA-G~1\subprocess.py", line 1440, in _execute_child PermissionError: [WinError 5] Access is denied 2023-05-05T17:18:58.733 daemon chia.daemon.server : ERROR problem starting chia_timelord_launcher Traceback (most recent call last): File "C:\CHIA-G~1\chia\daemon\server.py", line 1112, in start_service File "C:\CHIA-G~1\chia\daemon\server.py", line 1287, in launch_service File "C:\CHIA-G~1\subprocess.py", line 971, in __init__ File "C:\CHIA-G~1\subprocess.py", line 1440, in _execute_child PermissionError: [WinError 5] Access is denied 2023-05-05T17:18:58.749 daemon chia.daemon.server : ERROR problem starting chia_timelord Traceback (most recent call last): File "C:\CHIA-G~1\chia\daemon\server.py", line 1112, in start_service File "C:\CHIA-G~1\chia\daemon\server.py", line 1287, in launch_service File "C:\CHIA-G~1\subprocess.py", line 971, in __init__ File "C:\CHIA-G~1\subprocess.py", line 1440, in _execute_child PermissionError: [WinError 5] Access is denied 2023-05-05T17:18:58.749 daemon chia.daemon.server : ERROR problem starting chia_farmer Traceback (most recent call last): File "C:\CHIA-G~1\chia\daemon\server.py", line 1112, in start_service File "C:\CHIA-G~1\chia\daemon\server.py", line 1287, in launch_service File "C:\CHIA-G~1\subprocess.py", line 971, in __init__ File "C:\CHIA-G~1\subprocess.py", line 1440, in _execute_child PermissionError: [WinError 5] Access is denied 2023-05-05T17:18:58.749 daemon chia.daemon.server : ERROR problem starting chia_full_node Traceback (most recent call last): File "C:\CHIA-G~1\chia\daemon\server.py", line 1112, in start_service File "C:\CHIA-G~1\chia\daemon\server.py", line 1287, in launch_service File "C:\CHIA-G~1\subprocess.py", line 971, in __init__ File "C:\CHIA-G~1\subprocess.py", line 1440, in _execute_child PermissionError: [WinError 5] Access is denied 2023-05-05T17:18:58.749 daemon chia.daemon.server : ERROR problem starting chia_wallet Traceback (most recent call last): File "C:\CHIA-G~1\chia\daemon\server.py", line 1112, in start_service File "C:\CHIA-G~1\chia\daemon\server.py", line 1287, in launch_service File "C:\CHIA-G~1\subprocess.py", line 971, in __init__ File "C:\CHIA-G~1\subprocess.py", line 1440, in _execute_child PermissionError: [WinError 5] Access is denied 2023-05-05T17:18:58.749 daemon chia.daemon.server : ERROR problem starting chia_data_layer Traceback (most recent call last): File "C:\CHIA-G~1\chia\daemon\server.py", line 1112, in start_service File "C:\CHIA-G~1\chia\daemon\server.py", line 1287, in launch_service File "C:\CHIA-G~1\subprocess.py", line 971, in __init__ File "C:\CHIA-G~1\subprocess.py", line 1440, in _execute_child PermissionError: [WinError 5] Access is denied 2023-05-05T17:18:58.760 daemon chia.daemon.server : ERROR problem starting chia_data_layer_http Traceback (most recent call last): File "C:\CHIA-G~1\chia\daemon\server.py", line 1112, in start_service File "C:\CHIA-G~1\chia\daemon\server.py", line 1287, in launch_service File "C:\CHIA-G~1\subprocess.py", line 971, in __init__ File "C:\CHIA-G~1\subprocess.py", line 1440, in _execute_child PermissionError: [WinError 5] Access is denied