You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detecting an existing daemon process on windows appears to be fragile and fails to work under some circumstances.
Steps to Reproduce
Create a shortcut to the daemon app with settings:
a. Target: "C:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" start
b. Start In: "C:\Program Files\LBRY\resources\static\daemon"
Launch daemon process using shortcut
Launch desktop application
Expected Behavior
Desktop application uses existing daemon and launches successfully.
Actual Behavior
Desktop application fails to detect existing daemon and then fails to run.
Operating system: Windows 10 v1803 (build 17134.523)
Anything Else
Looking at the commit history I see there were a few attempts at fixes for this based on the output of WMIC. In my testing it appears as though the WMIC output can vary depending on how one launches the process. I tested a varity of ways to launch the daemon and looked at the WMIC output that find_process matches against.
When using a command prompt to launch the daemon WMIC has a double-space as well as path/quotes if present in the original command. lbrynet start "c:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" start "c:\Program Files\LBRY\resources\static\daemon\lbrynet" start
When using a shortcut as described above, you get a single space and full path: "C:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" start
When using a tool such as hstart to launch the daemon without a visible console window (what I've been doing previously) you get a single space and path/quotes depending on the original command. lbrynet.exe start "C:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" start
The text was updated successfully, but these errors were encountered:
Thanks for the report. There's a known process parsing issue that prevents us from detecting it in a better way on Windows (most won't run into this problem). If you start lbrynet as just lbrynet start, without the exe, it should work. There is a guide here, we can make a note... https://lbry.io/faq/how-to-run-lbry
Not sure how to do this via a shortcut, will give it a shot.
The Issue
Detecting an existing daemon process on windows appears to be fragile and fails to work under some circumstances.
Steps to Reproduce
a. Target: "C:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" start
b. Start In: "C:\Program Files\LBRY\resources\static\daemon"
Expected Behavior
Desktop application uses existing daemon and launches successfully.
Actual Behavior
Desktop application fails to detect existing daemon and then fails to run.
System Configuration
Anything Else
Looking at the commit history I see there were a few attempts at fixes for this based on the output of WMIC. In my testing it appears as though the WMIC output can vary depending on how one launches the process. I tested a varity of ways to launch the daemon and looked at the WMIC output that find_process matches against.
When using a command prompt to launch the daemon WMIC has a double-space as well as path/quotes if present in the original command.
lbrynet start
"c:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" start
"c:\Program Files\LBRY\resources\static\daemon\lbrynet" start
When using a shortcut as described above, you get a single space and full path:
"C:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" start
When using a tool such as hstart to launch the daemon without a visible console window (what I've been doing previously) you get a single space and path/quotes depending on the original command.
lbrynet.exe start
"C:\Program Files\LBRY\resources\static\daemon\lbrynet.exe" start
The text was updated successfully, but these errors were encountered: