brew: Migration to Homebrew API causes applications on brew services to break
brew gist-logs <formula> link OR brew config AND brew doctor output
➜ ~ brew gist-logs code-server
Error: No logs.
➜ ~ brew config
HOMEBREW_VERSION: 4.0.1-60-g6ad9294
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6ad92949e910041416d84a53966ec46b873e069f
Last commit: 11 hours ago
Core tap JSON: 18 Feb 15:33 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vim
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 14.0.0 build 1400
Git: 2.39.2 => /usr/local/bin/git
Curl: 7.86.0 => /usr/bin/curl
macOS: 13.2.1-x86_64
CLT: 14.2.0.0.1.1668646533
Xcode: 14.2
➜ ~ brew doctor
Your system is ready to brew.
Verification
- My “
brew doctoroutput” saysYour system is ready to brew.and am still able to reproduce my issue. - I ran
brew updateand am still able to reproduce my issue. - I have resolved all warnings from
brew doctorand that did not fix my problem.
What were you trying to do (and why)?
Upgrade code-server to 4.10.0 and use it through brew services
What happened (include all command output)?
code-server crashes immediately on start-up. The output of brew services:
➜ ~ brew services
Name Status User File
caddy started ericswpark ~/Library/LaunchAgents/homebrew.mxcl.caddy.plist
code-server error 19968 ericswpark ~/Library/LaunchAgents/homebrew.mxcl.code-server.plist
/usr/local/var/log/code-server.log is not created, so I can’t even check there.
What did you expect to happen?
Launch and work properly
Step-by-step reproduction instructions (by running brew commands)
brew update && brew upgrade
brew install code-server
brew services start code-server
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 27 (12 by maintainers)
Commits related to this issue
- gitlab-runner: use `Dir.home` over `ENV["HOME"]` — committed to Homebrew/homebrew-core by Bo98 2 years ago
Just ran into this with
gitlab-runner, running:got it working again.
Confirming installing that way fixes the service for
gitlab-runner