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

kamal app exec doesn't push secrets to servers #1180

Open
cromega opened this issue Oct 31, 2024 · 0 comments · May be fixed by #1223
Open

kamal app exec doesn't push secrets to servers #1180

cromega opened this issue Oct 31, 2024 · 0 comments · May be fixed by #1223

Comments

@cromega
Copy link

cromega commented Oct 31, 2024

kamal v2.2.2

Running kamal app exec does not push the secrets to the remote servers like deploy does. If we need to run commands on a freshly installed server or need to run migrations with updated secrets, it will fail.

$ kamal app exec --version v${BUILD_VERSION} --roles web --primary -d qa rails db:migrate

  INFO [4cc8b8d6] Running docker run --rm --network kamal --env SERVICE="web" --env REDIS_HOST="app-redis" --env-file .kamal/apps/app-qa/env/roles/web.env x.dkr.ecr.eu-central-1.amazonaws.com/image:v1.2.3 rails db:migrate on x.x.x.x  ERROR (SSHKit::Command::Failed): Exception while executing on host x.x.x.x docker exit status: 125
docker stdout: Nothing written
docker stderr: docker: open .kamal/apps/app-qa/env/roles/web.env: no such file or directory.
@andrewjanssen andrewjanssen linked a pull request Nov 18, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant