Open holybit opened 8 years ago
The file won't be around (will be removed), because it is needed only once during the registration between the agent and server. But, the registration should have happened. If so, on the server's agents page the agent should not show as "Pending". Is this happening?
@arvindsv I don't get why it would be "removed." It's a reference to how the application was initialized. Why remove it?
I'm having this issue too. Since upgrading to 16.1.0 my new agents are no longer auto-registering.
Rather than copying the file in the Dockerfile, I've had this working by setting the relevant environment variables in the docker-compose.yml file.
e.g. environment:
I'm also seeing this, with go-agent-15.2.0-2248.deb (via gocd-docker) and server 15.3.0(2361-15f38854eea874) installed manually. This was working correctly at some point, but now it has stopped.
The 'deleting autoregister.properties' is not a very useful feature, we shutdown our agents over night so we're not charged for them running (hosted on AWS). Now when they start they're 'unknown hosts' again with no resources. :-(
@karlatkinson I am experiencing this problem on the latest version of GoCD. I am wondering where did you read about these environment variables as the process is not able to read the properties and it looks like a nice alternative while it gets fixed. Is the table on this page the correct reference? https://docs.gocd.org/current/faq/environment_variables.html Comparing to your post it looks different ie GO_SERVER_URL vs GO_SERVER
I need a reference for what the env variables for the GoCD agent are. Just to be precise.
It's GO_SERVER_URL now. See the latest documentation on each of the latest docker agent images. Here is the Ubuntu 16 one for example: https://github.com/gocd/docker-gocd-agent-ubuntu-16.04
Tried setting agent auto register properties a few ways with the 16.1.0 image but nothing is working. Running docker engine
1.9.1
.Here is an example of building an image from
gocd/gocd-agent:16.1.0
with a properties files, but somehow the agent is removing the properties file.