-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
pkgx doesn't like to be called as a launchdaemon #894
Comments
Have you tried installing it then running it as a normal user(not root)? Also yes, /usr/local/bin might need to be added to the path |
The first issue is a bug and I cannot RN imagine what the problem might be. Even though I wouldn't recommend running something as insane as stable diffusion web UI as root, The second issue is indeed that on macOS |
$ sudo -i
$ pkgx stable-diffusion-webui --api --listen works. This runs sd-webui as root, also installing to guess I better try the launch plist… |
I was running this as root to try to get it to work. After getting it to work, I would've switched it to a daemon user. I was using ansible to setup multiple computers as AI render nodes (not sure that's the right name for that) and I got it to work by running I didn't think of testing this back then, but the way I've debugged launchd environments before was by setting up a reverse shell and then telnetting in and testing. I save the following script and call it with the launchdaemon.
|
explanation of script: https://chat.openai.com/share/6805b199-a9e5-421d-bbd7-5f4b8b3c59bb
|
Yeah, but if you're the first person to connect, then nobody else can. It's how I debug launchd because there's no other good way! It's a strange environment. |
I tried to daemonize stable diffusion and I get an error. Here's the launchd plist file.
This is how I load it:
launchctl load /path/to/launchd-file.plist
This is the error (/var/root/.local/share/stable-diffusion-webui/log.err).
I haven't done anything to the pkgx install or to the stable diffusion package (except I did install it all as root).
If I instead run
pkgx install stable-diffusion-webui
and then try to run /usr/local/bin/stable-diffusion-webui then this is the error I get:I'm guessing the problem is that in the launchd environment /usr/local/bin/ isn't in the path.
The text was updated successfully, but these errors were encountered: