Skip to content
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

Brew service no longer exists on latest skhd #267

Closed
grepsedawk opened this issue May 4, 2023 · 8 comments
Closed

Brew service no longer exists on latest skhd #267

grepsedawk opened this issue May 4, 2023 · 8 comments

Comments

@grepsedawk
Copy link

➜ ~ brew services restart skhd
Error: Formula skhd has not implemented #plist, #service or installed a locatable service file
➜ ~ skhd --version
skhd-v0.3.7

@qtaped
Copy link

qtaped commented May 4, 2023

Same here. After updating and upgrading brew packages. (Apple Silicon / last macOS monterey)

As a workaround, you can start skhd with launchd:
skhd --start-service

In my case I first get an error skhd: service file '/Users/user/Library/LaunchAgents/com.koekeishiya.skhd.plist' is not installed! attempting installation..

I had to restart it.

skhd --restart-service.

Hope it can help.

@dautroc
Copy link

dautroc commented May 5, 2023

@qtaped it doesn't work for me, try to restart it but got the same error
skhd: service file '/Users/eh/Library/LaunchAgents/com.koekeishiya.skhd.plist' is not installed! abort..

Btw I got the same error when trying to start yabai as well, here is what I have tried:

❯ brew services start yabail

Error: Formula "yabai" has not implemented #plist, #service or installed a locatable service file

Also try this

❯ yabai --start-service

yabai: service file '/Users/user/Library/LaunchAgents/com.koekeishiya.yabai.plist' is not installed! attempting installation..
yabai: service file '/Users/user/Library/LaunchAgents/com.koekeishiya.yabai.plist' could not be installed! abort..

@lcjnil
Copy link

lcjnil commented May 5, 2023

try skhd --stop-service and skhd --start-service, may check log file for more information

@Alkindi42
Copy link

You can try to run skhd --install-service or/and check if the directory ~/Library/LaunchAgents exists. If it's not the case : mkdir ~/LIbrary/LaunchAgents and run again skhd --start-service

@vizcay
Copy link

vizcay commented May 7, 2023

Same here. After updating and upgrading brew packages. (Apple Silicon / last macOS monterey)

  • The exact same happened to me, but I cannot get it to work.

  • brew services is not listing skhd anymore.

  • When I try

$ skhd --start-service
skhd: service file '/Users/pablo/Library/LaunchAgents/com.koekeishiya.skhd.plist' is not installed! attempting installation..
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
  • I've tried uninstalling skhd and removing those plist files manually for fresh start.

  • Tried all combinations of --stop-service, --start-service and --restart-service.

  • Added it to accessibility list again.

  • I was able to get it started from launchctl but is not working:

$ ps aux | grep skhd
pablo             1682   0.0  0.0 408628368   1648 s000  S+   11:08AM   0:00.00 grep skhd

$ launchctl load ~/Library/LaunchAgents/com.koekeishiya.skhd.plist

$ ps aux | grep skhd
pablo             1649   0.0  0.1 408880208  17168   ??  S<   11:07AM   0:00.07 /opt/homebrew/bin/skhd
pablo             1682   0.0  0.0 408628368   1648 s000  S+   11:08AM   0:00.00 grep skhd
  • Running it manually neither works (after unload).

  • Cannot find anything relevant in log files, just empty..

Why why why 😢

--- Update

I'm able to get it working now with unload / load.. probably a restart solved it or something.. who knows. Would be nice to have it again in brew services.

@koekeishiya
Copy link
Owner

Load failed: 5: Input/output error

This is a launchctl gimmick, and other people have also experienced the same error using brew services.

Moved away from brew services because of koekeishiya/yabai#1619

@executionByFork
Copy link

Load failed: 5: Input/output error

This is a launchctl gimmick, and other people have also experienced the same error using brew services.

Moved away from brew services because of koekeishiya/yabai#1619

I am currently getting Load failed: 5: Input/output error when trying to start skhd using skhd --start-service so I am not sure this is actually a brew issue?

@vizcay
Copy link

vizcay commented May 18, 2023

Load failed: 5: Input/output error

This is a launchctl gimmick, and other people have also experienced the same error using brew services.
Moved away from brew services because of koekeishiya/yabai#1619

I am currently getting Load failed: 5: Input/output error when trying to start skhd using skhd --start-service so I am not sure this is actually a brew issue?

I was getting the exact same error.. only god knows how it solved for itself after touching a million things. Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants