Service is running but with errors
rsorelli-hedgepoint opened this issue · 2 comments
rsorelli-hedgepoint commented
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 commented
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.