Devvix
(Jamie Berghmans)
July 10, 2020, 7:27pm
1
I need to retry a build 3 or 4 times before it doesn’t give this error:
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock
2 time="2020-07-10T19:20:17Z" level=fatal msg="Error authenticating: exit status 1"
I’ve added all the required arguments to the yml file I believe since it works after a few tries. It’s a private registry that’s always online and the registry doesn’t show any problems.
Here’s my yml file for the build part:
kind: pipeline
name: public
steps:
- name: build
image: plugins/docker
environment:
DISCORD_API_KEY:
from_secret: DISCORD_API_KEY
settings:
repo: private.myregistry.com/mypackage
registry: private.myregistry.com
tags: [ latest ]
username:
from_secret: username
password:
from_secret: password
build_args_from_env:
- DISCORD_API_KEY
debug: true
Thanks in advance!
can you please provide the full logs (from the UI) for this pipeline step?
EDIT: also can you provide the following?
the results of drone secret ls <repo>
drone secret info <repo> username
drone secret info <repo> password
the result of drone build info <repo> <build>
Devvix
(Jamie Berghmans)
July 10, 2020, 7:32pm
3
That’s all it shows I’m afraid.
Any other logs I can provide that will help?
basically you are getting an Error authenticating
which would imply a problem with your username or password.
Devvix
(Jamie Berghmans)
July 10, 2020, 7:35pm
5
Yeah I assumed the same, but it works after a few attempts without changing anything. Lemme get all the data you asked in your edit.
Devvix
(Jamie Berghmans)
July 10, 2020, 7:55pm
6
Hi, sorry it took so long, hadn’t installed the cli before
the results of drone secret ls <repo>
:
DISCORD_API_KEY
Pull Request Read: false
Pull Request Write: false
SSHKEY
Pull Request Read: false
Pull Request Write: false
host
Pull Request Read: false
Pull Request Write: false
password
Pull Request Read: false
Pull Request Write: false
username
Pull Request Read: false
Pull Request Write: false
drone secret info <repo> username:
json: cannot unmarshal array into Go value of type drone.Secret
drone secret info password
json: cannot unmarshal array into Go value of type drone.Secret
the result of drone build info <repo> <build>
Number: 37
Status: failure
Event: push
Commit: aff57026e46e2f5b658ea4d9d009ad20ff4cdb88
Branch: master
Ref: refs/heads/master
Author: <removeemail@gmail.com>
Message: linter
Edit: Forgot to mention but I really appreciate you trying to help
hmm, I don’t see anything. The most common use case for these sorts of errors are:
invalid username or password
copy / paste error when creating a secret
newline or whitespace accidentally added when creating secret
secret not available for pull request (not applicable in this case, since the build is a push)
yaml syntax error (I do not see anything here)
docker password is a temporary password and expired (common with ecr, gcr, etc which generate temporary credentials)
Devvix
(Jamie Berghmans)
July 10, 2020, 8:32pm
8
Alright, I’ll keep looking myself. Thanks anyway