tag:help.appveyor.com,2012-11-13:/discussions/problems/26164-byoc-host-agent-not-working-errors-and-not-responding-to-requestsAppVeyor: Discussion 2020-04-06T21:02:36Ztag:help.appveyor.com,2012-11-13:Comment/480644452020-02-05T07:41:18Z2020-02-05T08:00:33ZBYOC - Host Agent not working (errors and not responding to requests)<div><p>Hello,</p>
<p>I just setup a self hosted environment, using Docker on Windows Server 2019, and I'm having some problems. The environment is showing as offline, and I can't run the docker container. When I try to do <code>docker run appveyor-byoc-windows</code>, I get this output:</p>
<pre>
<code>Reading worker metadata
Fetching Process worker metadata.
fail: Appveyor.BuildAgent.Service.AgentHostedService[0]
Error executing agent hosted service: One or more errors occurred. (Worker metadata does not contain AppveyorUrl.)
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
Finished agent hosted service</code>
</pre>
<p>I have no idea what I'm doing wrong. I followed the instructions at <a href="https://www.appveyor.com/docs/byoc/docker/">https://www.appveyor.com/docs/byoc/docker/</a> and there were no errors during setup. Am I missing some steps required to bring the docker build agent online?</p></div>seanmeyertag:help.appveyor.com,2012-11-13:Comment/480644452020-02-05T14:21:52Z2020-02-05T14:21:52ZBYOC - Host Agent not working (errors and not responding to requests)<div><p>Hi Sean,</p>
<p>What is the name of account/cloud you are having problems with? Have you tried restarting Host Agent service?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/480644452020-02-05T15:32:37Z2020-02-05T15:32:43ZBYOC - Host Agent not working (errors and not responding to requests)<div><p>The account is named FinFolio, and the project is named FinFolio.Core. The cloud is called ARYA Docker. I've tried restarting the host agent service on the windows computer (not the docker). I also see some warnings and errors with this in the event log:</p>
<pre>
<code>Category: Appveyor.HostAgent.Services.HostAgentHubClientFactory
EventId: 0
Error fetching AppVeyor version via /api/version endpoint: The remote server returned an error: (404) Not Found.
Category: Appveyor.HostAgent.AppHost
EventId: 0
Error registering Host Agent: Object reference not set to an instance of an object.
Category: Appveyor.HostAgent.AppHost
EventId: 0
Ping callback has not received in 20 seconds: a9a727e9-0a73-4f81-b3b7-2c14429ad7cb</code>
</pre></div>seanmeyertag:help.appveyor.com,2012-11-13:Comment/480644452020-02-05T15:38:13Z2020-02-05T15:38:13ZBYOC - Host Agent not working (errors and not responding to requests)<div><p>In the Registry under <code>Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Appveyor\HostAgent</code> key could you please check that you have a correct authorization token there? If the token is correct try deleting Host Agent database in <code>%PROGRAMDATA%\AppVeyor\HostAgent</code> and restart the service again.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/480644452020-02-05T15:58:36Z2020-02-05T15:58:36ZBYOC - Host Agent not working (errors and not responding to requests)<div><p>Deleting the database fixed it! Thank you!</p></div>seanmeyertag:help.appveyor.com,2012-11-13:Comment/480644452020-02-05T17:05:09Z2020-02-05T17:05:09ZBYOC - Host Agent not working (errors and not responding to requests)<div><p>Great, thanks for the update!</p></div>Feodor Fitsner