Docker client gets 405 error in nginx during docker push/pull

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Docker client gets 405 error in nginx during docker push/pull

Syed Imran
HI All,

Below is my issue, I have contacted artifactory support already and no much help from them, if someone can help me with this, will be of great help.

Described my issue here.

I have already tried to increase the nginx proxy timeout from default value 90 to 4000sec.

Now i have started getting the below error for that. (500 error) in Jenkins


The push refers to a repository [10.39.228.151:9000/controller-platform]
Error: Status 500 trying to push repository controller-platform: "<html>\r\n<head><title>500 Internal Server Error</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>500 Internal Server Error</h1></center>\r\n<hr><center>nginx/1.9.15</center>\r\n</body>\r\n</html>\r\n"


Snippet from nginx error is as below,

2017/04/26 20:18:22 [error] 7#7: *34966 open() "/etc/nginx/html/v1/_ping" failed (2: No such file or directory), client: 10.40.210.70, server: 10.39.228.151, request: "GET /v1/_ping HTTP/1.1", host: "10.39.228.151:9000"

Thanks,
Syed

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

RE: Docker client gets 405 error in nginx during docker push/pull

Reinis Rozitis
> 2017/04/26 20:18:22 [error] 7#7: *34966 open() "/etc/nginx/html/v1/_ping" failed (2: No such file or directory), client: 10.40.210.70, server: 10.39.228.151, request: "GET /v1/_ping HTTP/1.1", host: "10.39.228.151:9000"

I'm not familiar with the software stack you're using but just looking at the error and your nginx configuration there is actually nothing that handles the 'v1/_ping' request which then returns some default 404 nginx page (what might or might not result In the situation (internal error) you are seeing).

Your configuration server blocks have:

rewrite ^/(v2)/(.*) /artifactory/api/docker/docker-candidate-release/$1/$2;

could indicate that there is some version mismatch between the backend software.


You could try to add also to add also 'v1' to the rewrite (depends if the /artifactory location can process the 'v1'):

rewrite ^/(v1|v2)/(.*) /artifactory/api/docker/docker-candidate-release/$1/$2;


But in general I would suggest the same as the people in the docker issue told you - to contact/consult with the Artifactory support/devs.

rr

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx