Skip to content
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

Service is running but with errors #379

Open
rsorelli-hedgepoint opened this issue Sep 25, 2023 · 2 comments
Open

Service is running but with errors #379

rsorelli-hedgepoint opened this issue Sep 25, 2023 · 2 comments

Comments

@rsorelli-hedgepoint
Copy link

rsorelli-hedgepoint commented Sep 25, 2023

Hello all,

Aftes installing codedeploy-agent on a AWS Linux 2023, service has started but with errors.

Instalation followed this steps:
https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-operations-install-linux.html

Sep 25 19:04:07 myserver.local bash[5385]: /usr/bin/sh: _parse_usage: line 16: syntax error near unexpected token `('
Sep 25 19:04:07 myserver.local bash[5385]: /usr/bin/sh: _parse_usage: line 16: ` -?(\[)+([a-zA-Z0-9?]))'
Sep 25 19:04:07 myserver.local bash[5385]: /usr/bin/sh: error importing function definition for `_parse_usage'
Sep 25 19:04:07 myserver.local bash[5385]: /usr/bin/sh: _services: line 5: syntax error near unexpected token `('
Sep 25 19:04:07 myserver.local bash[5385]: /usr/bin/sh: _services: line 5: ` COMPREPLY=($(printf '%s\n' ${sysvdirs[0]}/!($_backup_glob|functions>
Sep 25 19:04:08 myserver.local bash[5360]: /opt/codedeploy-agent/vendor/gems/gli-2.11.0/lib/gli/commands/help_modules/global_help_format.rb:37: >
Sep 25 19:04:08 myserver.local bash[5360]: /opt/codedeploy-agent/vendor/gems/gli-2.11.0/lib/gli/commands/help_modules/global_help_format.rb:37: >
Sep 25 19:04:08 myserver.local bash[5360]: /opt/codedeploy-agent/vendor/gems/gli-2.11.0/lib/gli/commands/help_modules/command_help_format.rb:27:>
Sep 25 19:04:08 myserver.local bash[5360]: /opt/codedeploy-agent/vendor/gems/gli-2.11.0/lib/gli/commands/help_modules/command_help_format.rb:27:>
Sep 25 19:04:08 myserver.local systemd[1]: Started codedeploy-agent.service - AWS CodeDeploy Host Agent.

Does anyone have any hint to solve that ?

@beeradmoore
Copy link

I am getting those warnings when I check the status,

$ sudo service codedeploy-agent status
/opt/codedeploy-agent/vendor/gems/gli-2.11.0/lib/gli/commands/help_modules/global_help_format.rb:37: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/opt/codedeploy-agent/vendor/gems/gli-2.11.0/lib/gli/commands/help_modules/global_help_format.rb:37: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
/opt/codedeploy-agent/vendor/gems/gli-2.11.0/lib/gli/commands/help_modules/command_help_format.rb:27: warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
/opt/codedeploy-agent/vendor/gems/gli-2.11.0/lib/gli/commands/help_modules/command_help_format.rb:27: warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.

This was installed with Image Builder using the aws-codedeploy-agent-linux v1.0.3 component.

@UmairPLT
Copy link

getting the same error , this cidedeploy is working fine if i am deploying on Amazon linux 2 but this error happens when i am deploying on Amazon Linux 2023.

Script - build_config/codedeploy/scripts/run.sh
[stderr]bash: _parse_usage: line 16: syntax error near unexpected token (' [stderr]bash: _parse_usage: line 16: -?([)+([a-zA-Z0-9?]))'
[stderr]bash: error importing function definition for _parse_usage' [stderr]bash: _services: line 5: syntax error near unexpected token ('
[stderr]bash: _services: line 5: ` COMPREPLY=($(printf '%s\n' ${sysvdirs[0]}/!($_backup_glob|functions|README)));'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants