squakez commented on issue #2241:
URL: https://github.com/apache/camel-k/issues/2241#issuecomment-832681623


   Hey @abogatov. I was trying to troubleshoot this problem and I've seen in 
the code that we store the error in the `Build` status without logging it. It 
would be nice if you can run:
   ```
   $ k get builds
   NAME                       PHASE     AGE     STARTED   DURATION        
ATTEMPTS
   kit-c299k1cmfkpd6fqa6ar0   Pending   3m26s   43s       43.734806319s   4
   ...
   $ k get builds kit-c299k1cmfkpd6fqa6ar0 -o yaml
   apiVersion: camel.apache.org/v1
   kind: Build
   ...
     baseImage: adoptopenjdk/openjdk11:slim
   ...
     duration: 34.013935519s
     error: 'could not pull base image image adoptopenjdk/openjdk11:slim: GET 
https://auth.docker.io/token?scope=repository%3Aadoptopenjdk%2Fopenjdk11%3Apull&service=registry.docker.io:
       unsupported status code 401'
     failure:
       reason: 'could not pull base image image adoptopenjdk/openjdk11:slim: 
GET 
https://auth.docker.io/token?scope=repository%3Aadoptopenjdk%2Fopenjdk11%3Apull&service=registry.docker.io:
         unsupported status code 401'
       recovery:
         attempt: 4
         attemptMax: 5
         attemptTime: "2021-05-05T13:17:07Z"
       time: "2021-05-05T13:15:19Z"
     phase: Failed
     platform: camel-k
     startedAt: "2021-05-05T13:17:07Z"
   ```
   In this example, I've simulated the error with a fake registry credentials. 
Let's look at your error, it may be finally tell us exactly what's going on.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to