We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Having the command: bin/kamal app logs -r web -f It worked fine on kamal 1.4.0, thus giving output:
bin/kamal app logs -r web -f
INFO Following logs on i-0d1a6eb781c5d3ad2... INFO ssh -o ProxyCommand='aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'' -t ubuntu@<ip> -p 22 'docker ps --quiet --filter label=service=replenisher --filter label=role=web --filter status=running --filter status=restarting --latest | xargs docker logs --timestamps --tail 10 --follow 2>&1'
while on 1.5.0, it throws:
INFO Following logs on i-0d1a6eb781c5d3ad2... INFO ssh -o ProxyCommand='aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'' -t ubuntu@<ip> -p 22 'sh -c 'docker ps --latest --quiet --filter label=service=replenisher --filter label=role=web --filter status=running --filter status=restarting --filter ancestor=$(docker image ls --filter reference=ecr-repo-address/image-name:latest --format '\''{{.ID}}'\'') ; docker ps --latest --quiet --filter label=service=replenisher --filter label=role=web --filter status=running --filter status=restarting' | head -1 | xargs docker logs --timestamps --tail 10 --follow 2>&1' sh: 1: Syntax error: Unterminated quoted string
Running ``bin/kamal app logs -r web` (without follow option) works fine
My nonstandard SSH config:
ssh: user: ubuntu proxy_command: <%= %q(aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p') %>
The text was updated successfully, but these errors were encountered:
Escape single quotes to fix log following
1f5b936
Fixes: #777
Thanks @morgoth - looks like it was generally broken and nothing to do with your specific config. Fixed in #779
Sorry, something went wrong.
I've released v1.5.1, could you confirm that it's fixed for you now @morgoth?
It works. Thank you
Successfully merging a pull request may close this issue.
Having the command:
bin/kamal app logs -r web -f
It worked fine on kamal 1.4.0, thus giving output:
while on 1.5.0, it throws:
Running ``bin/kamal app logs -r web` (without follow option) works fine
My nonstandard SSH config:
The text was updated successfully, but these errors were encountered: