You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I'm facing an annoying issue that I've spent 4 hours trying to solve.
I'm deploying my app from GitLab CI/CD using the kamal deploy command, but it fails on the first step, which is docker login. I tried to debug it with the kamal login command:
kamal registry login -L -d staging -c .kamal/deploy.yml -v
INFO [4cc56c39] Running docker login git.registry:5050/app -u [REDACTED] -p [REDACTED] on app.domain.com
[email protected]'s password: ERROR (Errno::ENOTTY): Exception while executing on host app.domain.com: Not a tty
It looks like it's missing either the password or username, so I dug deeper.
Normally, I use GitLab-provided variables like this:
Long story short, I created a fixed GitLab token to pass, and I even hardcoded it for testing. I passed variables explicitly and tried many approaches, but since nothing worked, I decided to create this issue. Here's what I tried:
Using this exact same configuration on my local machine works just fine. However, on the GitLab CI pipeline, it always errors because of TTY, which makes sense if no value is passed, but I can't even see the [REDACTED] values.
How is it possible that even hardcoded variables don't work, let alone environmental values? The docker login command works on the server, and kamal login works on my local machine
The text was updated successfully, but these errors were encountered:
Finally fixed that issue. It turned out to be an SSH error rather than a Docker registry error.
While we can close this issue, I've noticed a potential improvement regarding where the error occurred in the log file.
Hi!
I'm facing an annoying issue that I've spent 4 hours trying to solve.
I'm deploying my app from GitLab CI/CD using the
kamal deploy
command, but it fails on the first step, which isdocker login
. I tried to debug it with thekamal login
command:It looks like it's missing either the password or username, so I dug deeper.
Normally, I use GitLab-provided variables like this:
Long story short, I created a fixed GitLab token to pass, and I even hardcoded it for testing. I passed variables explicitly and tried many approaches, but since nothing worked, I decided to create this issue. Here's what I tried:
Using this exact same configuration on my local machine works just fine. However, on the GitLab CI pipeline, it always errors because of TTY, which makes sense if no value is passed, but I can't even see the [REDACTED] values.
How is it possible that even hardcoded variables don't work, let alone environmental values? The
docker login
command works on the server, andkamal login
works on my local machineThe text was updated successfully, but these errors were encountered: