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

Running host-agent fails after fresh brew install #4

Open
jdknives opened this issue Jun 22, 2022 · 3 comments
Open

Running host-agent fails after fresh brew install #4

jdknives opened this issue Jun 22, 2022 · 3 comments

Comments

@jdknives
Copy link

I tried to setup a Mac Mini as an AppVeyor host-agent. Following the setup instructions I received from the AppVeyor server UI under >System > Build Enviroment > Add Cloud > Own Computer > Mac, I ran

Connect-AppVeyorToComputer -AppVeyorUrl http://myactualserverdomain:8050 -ApiToken sometoken. This resulted in the following logs:

PS /Users/workuser> Connect-AppVeyorToComputer -AppVeyorUrl http://actualserverdomain:8050 -ApiToken sometoken

Checking AppVeyor API access...
Configuring 'Process' build cloud in AppVeyor                                                                           
A new AppVeyor build cloud 'Skycoins-Mini.fritz.box' has been added.

Ensure build worker image is available for AppVeyor projects
AppVeyor build worker image 'macOS' already exists.

Installing AppVeyor Host Agent
OS: macOS
Error: No available formula with the name "appveyor-host-agent".
Installing Host Agent...
==> Tapping appveyor/brew
Cloning into '/opt/homebrew/Library/Taps/appveyor/homebrew-brew'...
remote: Enumerating objects: 206, done.
remote: Counting objects: 100% (50/50), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 206 (delta 22), reused 46 (delta 18), pack-reused 156
Receiving objects: 100% (206/206), 36.00 KiB | 1.06 MiB/s, done.
Resolving deltas: 100% (74/74), done.
Tapped 3 formulae (15 files, 56KB).
==> Downloading https://appveyordownloads.blob.core.windows.net/appveyor/7.0.3212/appveyor-host-agent-7.0.3212-macos-x64.tar.gz
######################################################################## 100.0%
==> Installing appveyor-host-agent from appveyor/brew
==> Caveats
To start appveyor/brew/appveyor-host-agent now and restart at login:
  brew services start appveyor/brew/appveyor-host-agent
==> Summary
🍺  /opt/homebrew/Cellar/appveyor-host-agent/7.0.3212: 595 files, 148.5MB, built in 3 seconds
==> Running `brew cleanup appveyor-host-agent`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Starting up Host Agent service...
==> Tapping homebrew/services
Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 2025, done.
remote: Counting objects: 100% (534/534), done.
remote: Compressing objects: 100% (191/191), done.
remote: Total 2025 (delta 362), reused 456 (delta 334), pack-reused 1491
Receiving objects: 100% (2025/2025), 554.79 KiB | 1.79 MiB/s, done.
Resolving deltas: 100% (917/917), done.
Tapped 1 command (45 files, 707.4KB).
Could not enable service: 125: Domain does not support specified action
Error: Failure while executing; `/bin/launchctl enable gui/501/homebrew.mxcl.appveyor-host-agent` exited with 125.
Something went wrong and Host Agent was not installed
Exception: Error installing Host Agent

The same error can be reproduced when installing and starting the host agent standalone.

I cannot find any error logs in /opt/homebrew/var/appveyor/host-agent .

I am running this on a Mac Mini with M1 chip. Rosetta is installed if that is relevant.

@FeodorFitsner
Copy link
Member

@jdknives
Copy link
Author

@FeodorFitsner Thanks for your reply. I should have mentioned this before. I read this blog post before. I am not on a multi-user brew setup. For good measure I applied the instructions specified there to no avail. The same problem remains.

@FeodorFitsner
Copy link
Member

Well, it's hard to tell why the service could not be registered. Are you able to install other services with brew?

Try downloading the package directly, unpack and run "appveyor-host-agent" executable: https://github.com/appveyor/homebrew-brew/blob/master/Formula/appveyor-host-agent.rb#L4

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

2 participants