Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

e2-micro Instance with OPS Agent fails to display over a 24 hour period

OPS agent on an e2-micro instance ends up borking within a 24 hour period.

 

And then it ends up prompting me to install it again, even though if I restart the instance, the agent starts back up and works again.

Screenshot at 2021-11-04 09-41-47.png

 
0 3 191
3 REPLIES 3

Hello ~ Can you verify on OPS agent logs if you see something related to `failed to start subagents: failed to start` ? If yes, make sure to install the OPS agent by following this documentation [1] and choosing the latest version [2]. On previous version of the OPS agent, it was reported that sometimes the installation fails silently.

[1] https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/installation
[2] https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/installation#list-versions

 

Systmctl says that the agent is running. Yes.

Is it possible that you are using a preemptible VM instance ?
Hard to say without prior investigation, any hints from the logs that can help to understand this behavior?