code deploy agent duplicate log entries

0

I'm experiencing an issue with a deployment to one of several Windows servers - other servers with the same job are deploying correctly. The issue is that upon extraction of a zip file the following error occurs:

Exception calling "ExtractToDirectory" with "2" argument(s): "The file 'C:\Prog....c.yml' already exists." (path shortened for brevity)

After the deployment failed, I looked in the directory and sure enough the file was there and it was written by the code deployment job. I noticed something odd though, in the code deploy agent logs there are two sets of every entry, including the above error. It appears that code deploy is running two instances and they are both trying to perform the same deployment and therefore can't write to the same file.

Here is a snippet from the agent log:

2022-04-03T00:01:51 DEBUG [codedeploy-agent(13484)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: PollHostCommand: Host Command = nil

2022-04-03T00:01:51 DEBUG [codedeploy-agent(13484)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: PollHostCommand: Host Command = nil

2022-04-03T00:01:52 DEBUG [codedeploy-agent(13484)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Calling PollHostCommand:

2022-04-03T00:01:52 DEBUG [codedeploy-agent(13484)]: InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Calling PollHostCommand:

2022-04-03T00:01:52 INFO [codedeploy-agent(13484)]: Version file found in C:/ProgramData/Amazon/CodeDeploy/.version with agent version OFFICIAL_1.3.2.1902_msi.

2022-04-03T00:01:52 INFO [codedeploy-agent(13484)]: Version file found in C:/ProgramData/Amazon/CodeDeploy/.version with agent version OFFICIAL_1.3.2.1902_msi.

On servers where the deployment succeeds, I only see one line for each of the above in the log files. I have restarted the agent service to no avail as well as reinstalled.

Any help is appreciated.

asked 2 years ago77 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions