-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codedeploy agent for Windows won't install | ERROR: a bytes-like object is required, not 'str' #215
Comments
I'm getting this as well on Ubuntu Server 18.04 (Perhaps it's a ruby version issue?). Anyway, for a workaround (for linux) I installed it manually using the instructions here: The Windows ones may work for you better than the automated install? https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install-windows.html The instructions are incomplete however if you are using an on-prem server. You will need to copy your codedeploy.onpremises.yml file into the same directory as the codedeploy-agent config file. |
Stand alone installer worked. Good for me for now |
This is still not fixed. aws deploy install --config-file C:\myapp\codedeploy.onpremises.yml --override-config |
quick google it could be related to Python https://stackoverflow.com/questions/33054527/typeerror-a-bytes-like-object-is-required-not-str-when-writing-to-a-file-in |
Try using CLI 2.0 that should fix this issue. CLI 2.0 should support Python 3. |
aws-cli/2.4.15 Python/3.8.8 Windows/10 exe/AMD64 prompt/off Installing the AWS CodeDeploy Agent... ERROR |
aws-cli/2.4.27 Python/3.8.8 Windows/10 exe/AMD64 prompt/off Still not fixed Creating the on-premises instance configuration file... DONE |
Hi, We recommend you install CodeDeploy Agent via SSM, or by downloading it from S3. These work for Ruby versions up to 2.7. More details can be found here: https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install.html For on-premise instances, you still need to call these APIs to register and add tags to each instance: |
You can use aws deploy register CLI command to register and tag your on-premise instances. |
I use instructions from https://github.com/awsdocs/aws-codedeploy-user-guide/blob/master/doc_source/instances-on-premises-register-instance.md#step-2-call-the-register-command to register Windows 2012 R2 on-premise instance for use with AWS CodeDeploy.
I keep getting a bytes-like object is required, not 'str' error when installing agent:
Returns me this:
Here are the versions i'm using:
When executed with
--debug
option there is nothing special returned prior the error. Here it goes:Can you please advice?
The text was updated successfully, but these errors were encountered: