Artifactory 6.0.3, cannot login to docker using Tomcat/repo



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















We're running artifactory 6.0.3 on-perm as a container (along with nginx and postgresql) as described in running artifactory as a docker instance.



I have set up the basic "docker" instance.



Locally on the same machine as the artifactory container:



# docker login localhost:8081
Username: test
Password:
Login Succeeded


However, using the nginx port:



# export DOCKER_OPTS=" --insecure-registry docker-local.artifactory.company.com"
# docker login -u test --password-stdin artifactory.company.com
Error response from daemon: Get https://artifactory.company.com/v2/: unknown: Unsupported docker repository request for 'v2'


I also tried using ~/.docker/config.json with the auth information (base64) however it still giving me the same error.



artifactory.log shows:



2018-06-21 13:25:48,088 [http-nio-8081-exec-3] [ERROR] (o.a.a.d.r.DockerResource:425) - Unsupported docker repository request for 'v2'


access.log shows:



2018-06-21 13:25:48,089 [DENIED LOGIN] for test/172.19.0.4


request.log shows:



20180625075813|1|REQUEST|172.19.0.2|_internal|GET|/api/system/configuration/reverseProxy/nginx|HTTP/1.1|404|0
20180625075823|1|REQUEST|172.19.0.2|_internal|GET|/api/system/configuration/reverseProxy/nginx|HTTP/1.1|404|0
20180625075823|1|REQUEST|10.15.9.4|non_authenticated_user|GET|/api/docker//v2/|HTTP/1.0|401|0
20180625075823|2|REQUEST|10.15.9.4|non_authenticated_user|GET|/api/docker/v2/token|HTTP/1.0|400|0


[ Note the _internal request for the reverseProxy line is repeating every 10 seconds, all 404 == I have confirmed that the "Http Settings" are set to "Repository Path" and "Internal Tomcat".]



EDIT 2:



Adding the access.log from nginx:

ip = 10.15.53.21 user = "-" local_time = "27/Jun/2018:11:28:36 +0000" host = artifactory.company.com request = "GET /v2/ HTTP/1.1" status = 401 bytes = 87 upstream = "172.19.0.3:8081" upstream_time = 0.001 request_time = 0.001 referer = "-" UA = "docker/18.03.1-ce go/go1.9.5 git-commit/9ee9f40 kernel/3.10.0-862.3.3.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.03.1-ce x5C(linuxx5C))"
ip = 10.15.53.121 user = "test" local_time = "27/Jun/2018:11:28:36 +0000" host = artifactory.company.com request = "GET /artifactory/api/docker//v2/token?account=test&client_id=docker&offline_token=true&service=artifactory.company.com%3A443 HTTP/1.1" status = 400 bytes = 122 upstream = "172.19.0.3:8081" upstream_time = 0.001 request_time = 0.001 referer = "-" UA = "docker/18.03.1-ce go/go1.9.5 git-commit/9ee9f40 kernel/3.10.0-862.3.3.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.03.1-ce x5C(linuxx5C))"



  • 10.15.53.21 is the host itself, this is where the art-compose was run.

  • 172.19.0.3 is the bridged docker network for the artifactory container. nginx is 172.19.0.4.









share|improve this question



















  • 1





    several things, first there is no version 6.0.6 of artifactory, can you please fix that? Second, can you please check your repository configuration and see what is configured in the 'Docker Settings' --> 'API Version:' Last but not least, what do you see in the request.log file in Artifactory?

    – Ariel
    Jun 24 '18 at 6:14












  • It's artifactory 6.0.2... will update. docker-local and remote are set to V2. ... I'll add the request log in-line.

    – awm
    Jun 25 '18 at 7:53











  • From the request.log it seems that the request is reaching Artifactory with no authentication. Artifactory then returns 401, and getting no valid authentication from the client. At this point, I would check the Nginx logs to see if there is any error there or if the transmission is getting interrupted by the Nginx

    – Ariel
    Jun 26 '18 at 5:26











  • Nothing in the error.log, I'll add the two entries from access.log in the question. I have not made any changes to ngnix. It's the auto-generated config from jfrog.

    – awm
    Jun 27 '18 at 11:27











  • Updated to 6.0.3... still same issue.

    – awm
    Jun 29 '18 at 21:33

















0















We're running artifactory 6.0.3 on-perm as a container (along with nginx and postgresql) as described in running artifactory as a docker instance.



I have set up the basic "docker" instance.



Locally on the same machine as the artifactory container:



# docker login localhost:8081
Username: test
Password:
Login Succeeded


However, using the nginx port:



# export DOCKER_OPTS=" --insecure-registry docker-local.artifactory.company.com"
# docker login -u test --password-stdin artifactory.company.com
Error response from daemon: Get https://artifactory.company.com/v2/: unknown: Unsupported docker repository request for 'v2'


I also tried using ~/.docker/config.json with the auth information (base64) however it still giving me the same error.



artifactory.log shows:



2018-06-21 13:25:48,088 [http-nio-8081-exec-3] [ERROR] (o.a.a.d.r.DockerResource:425) - Unsupported docker repository request for 'v2'


access.log shows:



2018-06-21 13:25:48,089 [DENIED LOGIN] for test/172.19.0.4


request.log shows:



20180625075813|1|REQUEST|172.19.0.2|_internal|GET|/api/system/configuration/reverseProxy/nginx|HTTP/1.1|404|0
20180625075823|1|REQUEST|172.19.0.2|_internal|GET|/api/system/configuration/reverseProxy/nginx|HTTP/1.1|404|0
20180625075823|1|REQUEST|10.15.9.4|non_authenticated_user|GET|/api/docker//v2/|HTTP/1.0|401|0
20180625075823|2|REQUEST|10.15.9.4|non_authenticated_user|GET|/api/docker/v2/token|HTTP/1.0|400|0


[ Note the _internal request for the reverseProxy line is repeating every 10 seconds, all 404 == I have confirmed that the "Http Settings" are set to "Repository Path" and "Internal Tomcat".]



EDIT 2:



Adding the access.log from nginx:

ip = 10.15.53.21 user = "-" local_time = "27/Jun/2018:11:28:36 +0000" host = artifactory.company.com request = "GET /v2/ HTTP/1.1" status = 401 bytes = 87 upstream = "172.19.0.3:8081" upstream_time = 0.001 request_time = 0.001 referer = "-" UA = "docker/18.03.1-ce go/go1.9.5 git-commit/9ee9f40 kernel/3.10.0-862.3.3.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.03.1-ce x5C(linuxx5C))"
ip = 10.15.53.121 user = "test" local_time = "27/Jun/2018:11:28:36 +0000" host = artifactory.company.com request = "GET /artifactory/api/docker//v2/token?account=test&client_id=docker&offline_token=true&service=artifactory.company.com%3A443 HTTP/1.1" status = 400 bytes = 122 upstream = "172.19.0.3:8081" upstream_time = 0.001 request_time = 0.001 referer = "-" UA = "docker/18.03.1-ce go/go1.9.5 git-commit/9ee9f40 kernel/3.10.0-862.3.3.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.03.1-ce x5C(linuxx5C))"



  • 10.15.53.21 is the host itself, this is where the art-compose was run.

  • 172.19.0.3 is the bridged docker network for the artifactory container. nginx is 172.19.0.4.









share|improve this question



















  • 1





    several things, first there is no version 6.0.6 of artifactory, can you please fix that? Second, can you please check your repository configuration and see what is configured in the 'Docker Settings' --> 'API Version:' Last but not least, what do you see in the request.log file in Artifactory?

    – Ariel
    Jun 24 '18 at 6:14












  • It's artifactory 6.0.2... will update. docker-local and remote are set to V2. ... I'll add the request log in-line.

    – awm
    Jun 25 '18 at 7:53











  • From the request.log it seems that the request is reaching Artifactory with no authentication. Artifactory then returns 401, and getting no valid authentication from the client. At this point, I would check the Nginx logs to see if there is any error there or if the transmission is getting interrupted by the Nginx

    – Ariel
    Jun 26 '18 at 5:26











  • Nothing in the error.log, I'll add the two entries from access.log in the question. I have not made any changes to ngnix. It's the auto-generated config from jfrog.

    – awm
    Jun 27 '18 at 11:27











  • Updated to 6.0.3... still same issue.

    – awm
    Jun 29 '18 at 21:33













0












0








0








We're running artifactory 6.0.3 on-perm as a container (along with nginx and postgresql) as described in running artifactory as a docker instance.



I have set up the basic "docker" instance.



Locally on the same machine as the artifactory container:



# docker login localhost:8081
Username: test
Password:
Login Succeeded


However, using the nginx port:



# export DOCKER_OPTS=" --insecure-registry docker-local.artifactory.company.com"
# docker login -u test --password-stdin artifactory.company.com
Error response from daemon: Get https://artifactory.company.com/v2/: unknown: Unsupported docker repository request for 'v2'


I also tried using ~/.docker/config.json with the auth information (base64) however it still giving me the same error.



artifactory.log shows:



2018-06-21 13:25:48,088 [http-nio-8081-exec-3] [ERROR] (o.a.a.d.r.DockerResource:425) - Unsupported docker repository request for 'v2'


access.log shows:



2018-06-21 13:25:48,089 [DENIED LOGIN] for test/172.19.0.4


request.log shows:



20180625075813|1|REQUEST|172.19.0.2|_internal|GET|/api/system/configuration/reverseProxy/nginx|HTTP/1.1|404|0
20180625075823|1|REQUEST|172.19.0.2|_internal|GET|/api/system/configuration/reverseProxy/nginx|HTTP/1.1|404|0
20180625075823|1|REQUEST|10.15.9.4|non_authenticated_user|GET|/api/docker//v2/|HTTP/1.0|401|0
20180625075823|2|REQUEST|10.15.9.4|non_authenticated_user|GET|/api/docker/v2/token|HTTP/1.0|400|0


[ Note the _internal request for the reverseProxy line is repeating every 10 seconds, all 404 == I have confirmed that the "Http Settings" are set to "Repository Path" and "Internal Tomcat".]



EDIT 2:



Adding the access.log from nginx:

ip = 10.15.53.21 user = "-" local_time = "27/Jun/2018:11:28:36 +0000" host = artifactory.company.com request = "GET /v2/ HTTP/1.1" status = 401 bytes = 87 upstream = "172.19.0.3:8081" upstream_time = 0.001 request_time = 0.001 referer = "-" UA = "docker/18.03.1-ce go/go1.9.5 git-commit/9ee9f40 kernel/3.10.0-862.3.3.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.03.1-ce x5C(linuxx5C))"
ip = 10.15.53.121 user = "test" local_time = "27/Jun/2018:11:28:36 +0000" host = artifactory.company.com request = "GET /artifactory/api/docker//v2/token?account=test&client_id=docker&offline_token=true&service=artifactory.company.com%3A443 HTTP/1.1" status = 400 bytes = 122 upstream = "172.19.0.3:8081" upstream_time = 0.001 request_time = 0.001 referer = "-" UA = "docker/18.03.1-ce go/go1.9.5 git-commit/9ee9f40 kernel/3.10.0-862.3.3.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.03.1-ce x5C(linuxx5C))"



  • 10.15.53.21 is the host itself, this is where the art-compose was run.

  • 172.19.0.3 is the bridged docker network for the artifactory container. nginx is 172.19.0.4.









share|improve this question
















We're running artifactory 6.0.3 on-perm as a container (along with nginx and postgresql) as described in running artifactory as a docker instance.



I have set up the basic "docker" instance.



Locally on the same machine as the artifactory container:



# docker login localhost:8081
Username: test
Password:
Login Succeeded


However, using the nginx port:



# export DOCKER_OPTS=" --insecure-registry docker-local.artifactory.company.com"
# docker login -u test --password-stdin artifactory.company.com
Error response from daemon: Get https://artifactory.company.com/v2/: unknown: Unsupported docker repository request for 'v2'


I also tried using ~/.docker/config.json with the auth information (base64) however it still giving me the same error.



artifactory.log shows:



2018-06-21 13:25:48,088 [http-nio-8081-exec-3] [ERROR] (o.a.a.d.r.DockerResource:425) - Unsupported docker repository request for 'v2'


access.log shows:



2018-06-21 13:25:48,089 [DENIED LOGIN] for test/172.19.0.4


request.log shows:



20180625075813|1|REQUEST|172.19.0.2|_internal|GET|/api/system/configuration/reverseProxy/nginx|HTTP/1.1|404|0
20180625075823|1|REQUEST|172.19.0.2|_internal|GET|/api/system/configuration/reverseProxy/nginx|HTTP/1.1|404|0
20180625075823|1|REQUEST|10.15.9.4|non_authenticated_user|GET|/api/docker//v2/|HTTP/1.0|401|0
20180625075823|2|REQUEST|10.15.9.4|non_authenticated_user|GET|/api/docker/v2/token|HTTP/1.0|400|0


[ Note the _internal request for the reverseProxy line is repeating every 10 seconds, all 404 == I have confirmed that the "Http Settings" are set to "Repository Path" and "Internal Tomcat".]



EDIT 2:



Adding the access.log from nginx:

ip = 10.15.53.21 user = "-" local_time = "27/Jun/2018:11:28:36 +0000" host = artifactory.company.com request = "GET /v2/ HTTP/1.1" status = 401 bytes = 87 upstream = "172.19.0.3:8081" upstream_time = 0.001 request_time = 0.001 referer = "-" UA = "docker/18.03.1-ce go/go1.9.5 git-commit/9ee9f40 kernel/3.10.0-862.3.3.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.03.1-ce x5C(linuxx5C))"
ip = 10.15.53.121 user = "test" local_time = "27/Jun/2018:11:28:36 +0000" host = artifactory.company.com request = "GET /artifactory/api/docker//v2/token?account=test&client_id=docker&offline_token=true&service=artifactory.company.com%3A443 HTTP/1.1" status = 400 bytes = 122 upstream = "172.19.0.3:8081" upstream_time = 0.001 request_time = 0.001 referer = "-" UA = "docker/18.03.1-ce go/go1.9.5 git-commit/9ee9f40 kernel/3.10.0-862.3.3.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/18.03.1-ce x5C(linuxx5C))"



  • 10.15.53.21 is the host itself, this is where the art-compose was run.

  • 172.19.0.3 is the bridged docker network for the artifactory container. nginx is 172.19.0.4.






docker authentication artifactory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 29 '18 at 21:32







awm

















asked Jun 21 '18 at 13:37









awmawm

1,07411120




1,07411120







  • 1





    several things, first there is no version 6.0.6 of artifactory, can you please fix that? Second, can you please check your repository configuration and see what is configured in the 'Docker Settings' --> 'API Version:' Last but not least, what do you see in the request.log file in Artifactory?

    – Ariel
    Jun 24 '18 at 6:14












  • It's artifactory 6.0.2... will update. docker-local and remote are set to V2. ... I'll add the request log in-line.

    – awm
    Jun 25 '18 at 7:53











  • From the request.log it seems that the request is reaching Artifactory with no authentication. Artifactory then returns 401, and getting no valid authentication from the client. At this point, I would check the Nginx logs to see if there is any error there or if the transmission is getting interrupted by the Nginx

    – Ariel
    Jun 26 '18 at 5:26











  • Nothing in the error.log, I'll add the two entries from access.log in the question. I have not made any changes to ngnix. It's the auto-generated config from jfrog.

    – awm
    Jun 27 '18 at 11:27











  • Updated to 6.0.3... still same issue.

    – awm
    Jun 29 '18 at 21:33












  • 1





    several things, first there is no version 6.0.6 of artifactory, can you please fix that? Second, can you please check your repository configuration and see what is configured in the 'Docker Settings' --> 'API Version:' Last but not least, what do you see in the request.log file in Artifactory?

    – Ariel
    Jun 24 '18 at 6:14












  • It's artifactory 6.0.2... will update. docker-local and remote are set to V2. ... I'll add the request log in-line.

    – awm
    Jun 25 '18 at 7:53











  • From the request.log it seems that the request is reaching Artifactory with no authentication. Artifactory then returns 401, and getting no valid authentication from the client. At this point, I would check the Nginx logs to see if there is any error there or if the transmission is getting interrupted by the Nginx

    – Ariel
    Jun 26 '18 at 5:26











  • Nothing in the error.log, I'll add the two entries from access.log in the question. I have not made any changes to ngnix. It's the auto-generated config from jfrog.

    – awm
    Jun 27 '18 at 11:27











  • Updated to 6.0.3... still same issue.

    – awm
    Jun 29 '18 at 21:33







1




1





several things, first there is no version 6.0.6 of artifactory, can you please fix that? Second, can you please check your repository configuration and see what is configured in the 'Docker Settings' --> 'API Version:' Last but not least, what do you see in the request.log file in Artifactory?

– Ariel
Jun 24 '18 at 6:14






several things, first there is no version 6.0.6 of artifactory, can you please fix that? Second, can you please check your repository configuration and see what is configured in the 'Docker Settings' --> 'API Version:' Last but not least, what do you see in the request.log file in Artifactory?

– Ariel
Jun 24 '18 at 6:14














It's artifactory 6.0.2... will update. docker-local and remote are set to V2. ... I'll add the request log in-line.

– awm
Jun 25 '18 at 7:53





It's artifactory 6.0.2... will update. docker-local and remote are set to V2. ... I'll add the request log in-line.

– awm
Jun 25 '18 at 7:53













From the request.log it seems that the request is reaching Artifactory with no authentication. Artifactory then returns 401, and getting no valid authentication from the client. At this point, I would check the Nginx logs to see if there is any error there or if the transmission is getting interrupted by the Nginx

– Ariel
Jun 26 '18 at 5:26





From the request.log it seems that the request is reaching Artifactory with no authentication. Artifactory then returns 401, and getting no valid authentication from the client. At this point, I would check the Nginx logs to see if there is any error there or if the transmission is getting interrupted by the Nginx

– Ariel
Jun 26 '18 at 5:26













Nothing in the error.log, I'll add the two entries from access.log in the question. I have not made any changes to ngnix. It's the auto-generated config from jfrog.

– awm
Jun 27 '18 at 11:27





Nothing in the error.log, I'll add the two entries from access.log in the question. I have not made any changes to ngnix. It's the auto-generated config from jfrog.

– awm
Jun 27 '18 at 11:27













Updated to 6.0.3... still same issue.

– awm
Jun 29 '18 at 21:33





Updated to 6.0.3... still same issue.

– awm
Jun 29 '18 at 21:33












1 Answer
1






active

oldest

votes


















0














The answer was a custom proxy configuration from @mcgurksean on github.



https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-421031928



Additionally, you have to stop Artifactory from regenerating the nginx configuration file, answer from @jainishshah17 on github.



https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-422849718






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50969977%2fartifactory-6-0-3-cannot-login-to-docker-using-tomcat-repo%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The answer was a custom proxy configuration from @mcgurksean on github.



    https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-421031928



    Additionally, you have to stop Artifactory from regenerating the nginx configuration file, answer from @jainishshah17 on github.



    https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-422849718






    share|improve this answer



























      0














      The answer was a custom proxy configuration from @mcgurksean on github.



      https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-421031928



      Additionally, you have to stop Artifactory from regenerating the nginx configuration file, answer from @jainishshah17 on github.



      https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-422849718






      share|improve this answer

























        0












        0








        0







        The answer was a custom proxy configuration from @mcgurksean on github.



        https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-421031928



        Additionally, you have to stop Artifactory from regenerating the nginx configuration file, answer from @jainishshah17 on github.



        https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-422849718






        share|improve this answer













        The answer was a custom proxy configuration from @mcgurksean on github.



        https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-421031928



        Additionally, you have to stop Artifactory from regenerating the nginx configuration file, answer from @jainishshah17 on github.



        https://github.com/jfrog/artifactory-docker-examples/issues/86#issuecomment-422849718







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 '18 at 11:22









        awmawm

        1,07411120




        1,07411120





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f50969977%2fartifactory-6-0-3-cannot-login-to-docker-using-tomcat-repo%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

            Syphilis

            Darth Vader #20