Docker push stalls

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

Docker push stalls

thenozzle
This post was updated on .
Heyo - so - I have set up a docker registry and have no issues logging in . However when I attempt to push an image the whole show stalls like such :
 
~# docker login -u some_user -p $docker_pass artifacts.somewhere.com:8090
WARNING: login credentials saved in /some_user/.docker/config.json
Login Succeeded


docker images:

artifacts.somewhere.com:8090/internal-docker            latest              e8540a4f107f        3 weeks ago         262.2 MB

~# docker  push artifacts.somewhere.com:8090/internal-docker
The push refers to a repository [artifacts.somewhere.com:8090/internal-docker]
5f70bf18a086: Retrying in 2 seconds
d981469bf8df: Retrying in 2 seconds
616f6dfb5dfd: Retrying in 2 seconds
c6c73ddee5cc: Retrying in 2 seconds
c8327c8251a4: Retrying in 2 seconds
29bbc72b5384: Waiting
72e7316aed9b: Waiting
5be46ac0edcb: Waiting
ce36e21b01a5: Waiting
fa8c053bfd8b: Waiting


the odd part is that all I am seeing in the logs is a 202 response to the post request .. and nothing else afterwards. Curious if anyone has come across an issue like that .. :

20160308234031|1|REQUEST|10.254.76.92|some_user|POST|/api/docker/internal-docker/v2/internal-docker/blobs/uploads/|HTTP/1.0|202|0
20160308234031|1|REQUEST|10.254.76.92|some_user|POST|/api/docker/internal-docker/v2/internal-docker/blobs/uploads/|HTTP/1.0|202|0
20160308234031|2|REQUEST|10.254.76.92|some_user|POST|/api/docker/internal-docker/v2/internal-docker/blobs/uploads/|HTTP/1.0|202|0
20160308234031|3|REQUEST|10.254.76.92|some_user|POST|/api/docker/internal-docker/v2/internal-docker/blobs/uploads/|HTTP/1.0|202|0
20160308234031|3|REQUEST|10.254.76.92|some_user|POST|/api/docker/internal-docker/v2/internal-docker/blobs/uploads/|HTTP/1.0|202|0

Thanks in advance for any help.

Stan
Reply | Threaded
Open this post in threaded view
|

Re: Docker push stalls

damnhandy
Yep, same issue here. It seems to be something with the token authorization. I'm running Artifactory 4.7.4 and Nginx 1.10. Nginx is on a separate host from Artifactory. I'm equally as confused. There's no errors in the Artifactory logs either.
Reply | Threaded
Open this post in threaded view
|

Re: Docker push stalls

damnhandy
In reply to this post by thenozzle
So I got past this once somehow, but once I went to redeploy my environment with what I thought was a working configuration, I am back to the same issue. What I have found is that neither docker login or docker push will work. Docker login outright fails, docker push retries until it ultimately fails. What I have found is that you will not see a 500 error in Artifactory's access.log. What's interesting is that the ${ARTIFACTORY_HOME}/tomcat/logs/catalina/localhost-${date}.log has the following:

servlet [Jersey Web Application] in context with path [/artifactory] threw exception
 java.util.MissingFormatArgumentException: Format specifier '%s'
        at java.util.Formatter.format(Formatter.java:2519)
        at java.util.Formatter.format(Formatter.java:2455)
        at java.lang.String.format(String.java:2940)
        at org.artifactory.storage.db.util.JdbcHelper.resolveQuery(JdbcHelper.java:282)
        at org.artifactory.storage.db.util.JdbcHelper.debugSql(JdbcHelper.java:252)
        at org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.java:83)
        at org.artifactory.storage.db.util.JdbcHelper.executeSelect(JdbcHelper.java:77)
        at org.artifactory.storage.db.security.dao.UserPropertiesDao.getUserIdByProperty(UserPropertiesDao.java:40)
        at org.artifactory.storage.db.security.service.UserGroupServiceImpl.findUserByProperty(UserGroupServiceImpl.java:428)

It seems to failing trying to parse the bearer token. Stan, I'd be curious if your logs look similar to mine? I have opened this JIRA issue:


https://www.jfrog.com/jira/browse/RTFACT-10291

No matter what I do, I can't get it to work.

Ryan-
Reply | Threaded
Open this post in threaded view
|

Re: Docker push stalls

adupree
Make sure that the URL you logged into was correct docker allows your login to succeed even if the url isn't correct.