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

Homebrew Services logs don't exist on MacBook Pro M2 (arm64) after at least failed attempt to run dnscrypt-proxy #598

Closed
nhooey opened this issue Oct 12, 2023 · 4 comments
Labels

Comments

@nhooey
Copy link

nhooey commented Oct 12, 2023

Homebrew Services doesn't seem to have any log files or directories, on a MacBook Pro M2 (arm64), after a failed attempt to run dnscrypt-proxy.

There don't seem to be any log directories:

$ brew services start dnscrypt-proxy
Warning: dnscrypt-proxy must be run as root to start at system startup!
==> Successfully started `dnscrypt-proxy` (label: homebrew.mxcl.dnscrypt-proxy)

$ brew services list
Name           Status       User File
dnscrypt-proxy error  65280 $USER ~/Library/LaunchAgents/homebrew.mxcl.dnscrypt-proxy.plist

$ brew services info dnscrypt-proxy
dnscrypt-proxy (homebrew.mxcl.dnscrypt-proxy)
Running: ✘
Loaded: ✔
Schedulable: ✘

$ cat ~/Library/LaunchAgents/homebrew.mxcl.dnscrypt-proxy.plist
# (see plist output later in this issue)

# Finds no 'log' directories or files:
sudo find \
    /opt/homebrew/ \
    /usr/local/ \
    -name 'log'
# Error

File: ~/Library/LaunchAgents/homebrew.mxcl.dnscrypt-proxy.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>KeepAlive</key>
        <true/>
        <key>Label</key>
        <string>homebrew.mxcl.dnscrypt-proxy</string>
        <key>LimitLoadToSessionType</key>
        <array>
                <string>Aqua</string>
                <string>Background</string>
                <string>LoginWindow</string>
                <string>StandardIO</string>
                <string>System</string>
        </array>
        <key>ProgramArguments</key>
        <array>
                <string>/opt/homebrew/opt/dnscrypt-proxy/sbin/dnscrypt-proxy</string>
                <string>-config</string>
                <string>/opt/homebrew/etc/dnscrypt-proxy.toml</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
</dict>
</plist>
@SMillerDev
Copy link
Member

Yeah, that looks correct based on the configuration in https://github.com/Homebrew/homebrew-core/blob/d44f6446e96137143853f35b77d0148ea9d4a1e0/Formula/d/dnscrypt-proxy.rb, none are defined

@nhooey
Copy link
Author

nhooey commented Oct 12, 2023

@SMillerDev: What's the directive that should be specified? Or what's an example of a formula with a service defined that has log output properly configured?

@SMillerDev
Copy link
Member

They all have it configured properly, some just write to a specific file and some do not. If you are looking for an example of a formula with a specific error log, php has one. brew services info --debug --verbose <formula> can help you find information about the configured properties of services.

@nhooey
Copy link
Author

nhooey commented Oct 12, 2023

Added a pull request to specify log paths for dnscrypt-proxy:
Homebrew/homebrew-core#150673

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants