Skip to content

SSH in Mac OS: launchctl commands return "Load failed: 5: Input/output error" #504

Open
@Danrancan

Description

@Danrancan

In DR.DUH_GUIDE --> SSH --> macOS
I am having some issues with the launchctl commands.
I have created the two files $HOME/Library/LaunchAgents/gnupg.gpg-agent.plist and $HOME/Library/LaunchAgents/gnupg.gpg-agent-symlink.plist. Then I run the following commands which produce input/output errors:

as normal user (no sudo)

Danran@MacBook-Pro ~/Library/LaunchAgents$ launchctl load $HOME/Library/LaunchAgents/gnupg.gpg-agent.plist
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
Danran@MacBook-Pro ~/Library/LaunchAgents$ launchctl load $HOME/Library/LaunchAgents/gnupg.gpg-agent-symlink.plist
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.

With sudo:

Danran@MacBook-Pro ~/Library/LaunchAgents$ sudo launchctl load $HOME/Library/LaunchAgents/gnupg.gpg-agent.plist
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
Danran@MacBook-Pro ~/Library/LaunchAgents$ sudo launchctl load $HOME/Library/LaunchAgents/gnupg.gpg-agent-symlink.plist

Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.

Any reason why I'm getting these errors? What can I do to fix this?

Thanks.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions