appveyour host agent "Error registering Host Agent: Object reference not set to an instance of an object."

Jan Vesely's Avatar

Jan Vesely

29 Dec, 2025 03:13 AM

Hi,

I've noticed that a host agent running in a local container stopped connecting as of few days ago.
Inspecting the logs, I found the following error:
Dec 28 22:20:07 07f9c5e67b2a appveyor-host-agent[23]: info: Appveyor.HostAgent.AppHost[0]
Dec 28 22:20:07 07f9c5e67b2a appveyor-host-agent[23]: Registering all clouds received from AppVeyor
Dec 28 22:20:07 07f9c5e67b2a appveyor-host-agent[23]: fail: Appveyor.HostAgent.AppHost[0]
Dec 28 22:20:07 07f9c5e67b2a appveyor-host-agent[23]: Error registering Host Agent: Object reference not set to an instance of an object.

the above is observed using:
ii appveyor-host-agent 7.0.3340 amd64 Appveyor Host Agent for Linux

but the older release available at https://www.appveyor.com/downloads/appveyor/appveyor-host-agent.deb (7.0.3212) has the same behaviour using ubuntu 20.04.

I've tried removing /var/opt/appveyor/host-agent/host-agent.db*, removing all registred clounds via web interface a re-connecting the host agent, but none of this helped.

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Dec, 2025 07:36 PM

    Feodor Fitsner's Avatar

    Try newer version I provided a link to in another post.

  2. 2 Posted by Jan Vesely on 30 Dec, 2025 10:09 PM

    Jan Vesely's Avatar

    I can still see the issue running 7.0.3340:

    root@07f9c5e67b2a:~# /opt/appveyor/host-agent/appveyor Version
    7.0.3340
    root@07f9c5e67b2a:~# journalctl -u appveyor-host-agent | tail
    Dec 30 22:04:01 07f9c5e67b2a appveyor-host-agent[1378]: fail: Appveyor.HostAgent.AppHost[0]
    Dec 30 22:04:01 07f9c5e67b2a appveyor-host-agent[1378]: Error registering Host Agent: Object reference not set to an instance of an object.
    Dec 30 22:04:01 07f9c5e67b2a appveyor-host-agent[1378]: info: Appveyor.HostAgent.AppHost[0]
    Dec 30 22:04:01 07f9c5e67b2a appveyor-host-agent[1378]: Checking Host Agent connection: XXXXXXXXXXXXX
    Dec 30 22:04:22 07f9c5e67b2a appveyor-host-agent[1378]: warn: Appveyor.HostAgent.AppHost[0]
    Dec 30 22:04:22 07f9c5e67b2a appveyor-host-agent[1378]: Ping callback has not received in 20 seconds: XXXXXXXXXXXXX
    Dec 30 22:04:22 07f9c5e67b2a appveyor-host-agent[1378]: warn: Appveyor.HostAgent.AppHost[0]
    Dec 30 22:04:22 07f9c5e67b2a appveyor-host-agent[1378]: Host Agent connection is not responding on AppVeyor events
    Dec 30 22:04:22 07f9c5e67b2a appveyor-host-agent[1378]: info: Appveyor.HostAgent.AppHost[0]
    Dec 30 22:04:22 07f9c5e67b2a appveyor-host-agent[1378]: Stopping Host Agent connection...

  3. Support Staff 3 Posted by Feodor Fitsner on 30 Dec, 2025 10:47 PM

    Feodor Fitsner's Avatar

    What OS are you running it on?

  4. 4 Posted by Jan Vesely on 31 Dec, 2025 01:03 AM

    Jan Vesely's Avatar

    The above is using Ubuntu "22.04.5 LTS (Jammy Jellyfish)"

    The problem originally appeared on Ubuntu 20.04 using 7.0.3212 (https://www.appveyor.com/downloads/appveyor/appveyor-host-agent.deb) around Dec 21. The same container that worked OK before was no longer able to connect.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac