Jenkins fails - Failed with status: 404 Not Found

1,560 views
Skip to first unread message

MK

unread,
Apr 28, 2021, 3:13:38 AM4/28/21
to Nexus Users
Hello Team,

My environment as follows.

Jenkins Version - 2.227.1(LTS).
OS - CentOS - 8.2
SonaType Nexus - OSS 3.21.2-0.

For the docker private registry purpose as the instructions provided in the below link[1], i have configured. However instead of http i have enabled https using self-signed method using below link[2].


In jenkins i have installed docker plugin and Manage Jenkins > Configure Systems > Declarative Pipeline (Docker) - Docker registry URL (I have provided our private registry)
Example URL - https://private-nexus.company.net/nexus and credentials.

Now when i run my declarative pipeline job to pull a public image from dockerhub i am getting below error.

pipeline
   { 
     agent
        {
        docker
         {
  image 'ubuntu:latest'
  label "jenkins-slave-01"
 }
}
------
Using the existing docker config file.Removing blacklisted property: auths$ docker login -u test -p ******** https://private-nexus.company.net/nexus
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: login attempt to https://private-nexus.company.net/v2/ failed with status: 404 Not Found


Still any configuration i need to enable from nexus side? i am not sure why it is going to v2 endpoint.

On build system terminal i am able to login our private registry(nexus & docker hub).


Peter Lynch

unread,
Apr 29, 2021, 10:39:35 AM4/29/21
to MK, Nexus Users
All docker client requests end up at either some path under /v2 or /v1 because that is the official Docker API. You cannot ask docker client to sends requests to a webapp context path /nexus or even /nexus/v2 , directly.

Suggest upgrading to the most recent version of NXRM and also reviewing our official help: 


 

On build system terminal i am able to login our private registry(nexus & docker hub).


--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/e4b679d6-8373-4b5f-914e-184410daeab5n%40glists.sonatype.com.


--
Sonatype
Peter Lynch
Principal Support Engineer


Mohan

unread,
Apr 29, 2021, 10:56:25 AM4/29/21
to Peter Lynch, Nexus Users
Thanks Peter.  I have resolved the issue by going to Manage Jenkins > Configure Systems > Declarative Pipeline (Docker) - Docker registry URL = Removed our local registry URL.

Yes sure we will upgrade to recent version as soon as possible. 
Reply all
Reply to author
Forward
0 new messages