Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Docker Error 500 - Unable to pull image on same instance

Docker Error 500 - Unable to pull image on same instance

Scheduled Pinned Locked Moved Solved Support
dockerhubregistry
21 Posts 4 Posters 2.0k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nottheendN Offline
    nottheendN Offline
    nottheend
    wrote on last edited by
    #3

    Thank you!
    Basically, pushing a image works to the registry with docker push also on the server (see below.

    But I seem to have change something and while deploying the app with the cloudron npm command, I get an error of an invalid manifest file. Will have to dig into it (I have all required parameters). Probably my project structure is wrong:

    App installation error: Installation failed: Unable to pull image dockerhub.domain.com/myuser/myapp. message: (HTTP code 404) unexpected - manifest for dockerhub.domain.com/myuser/myapp:latest not found: manifest unknown: manifest unknown statusCode: 404

    Logs on server for docker push:
    2024-08-11T13:35:40.000Z time="2024-08-11T13:35:40.047968853Z" level=info msg="response completed" go.version=go1.20.8 http.request.host="localhost:5000" http.request.id=ea838230-bda2-414b-aa83-599c00a48956 http.request.method=GET http.request.remoteaddr="[::1]:59814" http.request.uri="/v2" http.request.useragent="Mozilla (CloudronHealth)" http.response.contenttype="text/html; charset=utf-8" http.response.duration="104.432µs" http.response.status=301 http.response.written=39
    2.

    Below is the response for curl -v ```
    https://dockerhub.domain.com/v2/_catalog

    
    

    [user]$ curl -v https://dockerhub.domain.com/v2/_catalog

    • Host dockerhub.domain.com:443 was resolved.
    • IPv6: (none)
    • IPv4: xxx.xxx.xxx.xxx
    • Trying xxx.xxx.xxx.xxx:443...
    • Connected to dockerhub.domain.com (xxx.xxx.xxx.xxx) port 443
    • ALPN: curl offers h2,http/1.1
    • TLSv1.3 (OUT), TLS handshake, Client hello (1):
    • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    • CApath: none
    • TLSv1.3 (IN), TLS handshake, Server hello (2):
    • TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
    • TLSv1.3 (IN), TLS handshake, Certificate (11):
    • TLSv1.3 (IN), TLS handshake, CERT verify (15):
    • TLSv1.3 (IN), TLS handshake, Finished (20):
    • TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
    • TLSv1.3 (OUT), TLS handshake, Finished (20):
    • SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / id-ecPublicKey
    • ALPN: server accepted h2
    • Server certificate:
    • subject: CN=*.domain.com
    • start date: 2024 GMT
    • expire date: 2024 GMT
    • subjectAltName: host "dockerhub.domain.com" matched cert's "*.domain.com"
    • issuer: C=US; O=Let's Encrypt; CN=E5
    • SSL certificate verify ok.
    • Certificate level 0: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
    • Certificate level 1: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using sha256WithRSAEncryption
    • Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
    • using HTTP/2
    • [HTTP/2] [1] OPENED stream for https://dockerhub.domain.com/v2/_catalog
    • [HTTP/2] [1] [:method: GET]
    • [HTTP/2] [1] [:scheme: https]
    • [HTTP/2] [1] [:authority: dockerhub.domain.com]
    • [HTTP/2] [1] [:path: /v2/_catalog]
    • [HTTP/2] [1] [user-agent: curl/8.6.0]
    • [HTTP/2] [1] [accept: /]

    GET /v2/_catalog HTTP/2
    Host: dockerhub.domain.com
    User-Agent: curl/8.6.0
    Accept: /

    • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
    • old SSL session ID is stale, removing
      < HTTP/2 302
      < server: nginx
      < date: Sun, 11 Aug 2024 13:19:02 GMT
      < content-type: text/html
      < content-length: 138
      < location: https://dockerhub.domain.com/login?redirect=/v2/_catalog
      < strict-transport-security: max-age=63072000
      < x-xss-protection: 1; mode=block
      < x-download-options: noopen
      < x-content-type-options: nosniff
      < x-permitted-cross-domain-policies: none
      < referrer-policy: same-origin
      < cache-control: no-cache
      < set-cookie: authToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT
      <
      <html>
      <head><title>302 Found</title></head>
      <body>
      <center><h1>302 Found</h1></center>
      <hr><center>nginx</center>
      </body>
      </html>
    • Connection #0 to host dockerhub.domain.com left intact
    nebulonN 1 Reply Last reply
    0
    • nottheendN nottheend

      Thank you!
      Basically, pushing a image works to the registry with docker push also on the server (see below.

      But I seem to have change something and while deploying the app with the cloudron npm command, I get an error of an invalid manifest file. Will have to dig into it (I have all required parameters). Probably my project structure is wrong:

      App installation error: Installation failed: Unable to pull image dockerhub.domain.com/myuser/myapp. message: (HTTP code 404) unexpected - manifest for dockerhub.domain.com/myuser/myapp:latest not found: manifest unknown: manifest unknown statusCode: 404

      Logs on server for docker push:
      2024-08-11T13:35:40.000Z time="2024-08-11T13:35:40.047968853Z" level=info msg="response completed" go.version=go1.20.8 http.request.host="localhost:5000" http.request.id=ea838230-bda2-414b-aa83-599c00a48956 http.request.method=GET http.request.remoteaddr="[::1]:59814" http.request.uri="/v2" http.request.useragent="Mozilla (CloudronHealth)" http.response.contenttype="text/html; charset=utf-8" http.response.duration="104.432µs" http.response.status=301 http.response.written=39
      2.

      Below is the response for curl -v ```
      https://dockerhub.domain.com/v2/_catalog

      
      

      [user]$ curl -v https://dockerhub.domain.com/v2/_catalog

      • Host dockerhub.domain.com:443 was resolved.
      • IPv6: (none)
      • IPv4: xxx.xxx.xxx.xxx
      • Trying xxx.xxx.xxx.xxx:443...
      • Connected to dockerhub.domain.com (xxx.xxx.xxx.xxx) port 443
      • ALPN: curl offers h2,http/1.1
      • TLSv1.3 (OUT), TLS handshake, Client hello (1):
      • CAfile: /etc/pki/tls/certs/ca-bundle.crt
      • CApath: none
      • TLSv1.3 (IN), TLS handshake, Server hello (2):
      • TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
      • TLSv1.3 (IN), TLS handshake, Certificate (11):
      • TLSv1.3 (IN), TLS handshake, CERT verify (15):
      • TLSv1.3 (IN), TLS handshake, Finished (20):
      • TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
      • TLSv1.3 (OUT), TLS handshake, Finished (20):
      • SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / id-ecPublicKey
      • ALPN: server accepted h2
      • Server certificate:
      • subject: CN=*.domain.com
      • start date: 2024 GMT
      • expire date: 2024 GMT
      • subjectAltName: host "dockerhub.domain.com" matched cert's "*.domain.com"
      • issuer: C=US; O=Let's Encrypt; CN=E5
      • SSL certificate verify ok.
      • Certificate level 0: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
      • Certificate level 1: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using sha256WithRSAEncryption
      • Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
      • using HTTP/2
      • [HTTP/2] [1] OPENED stream for https://dockerhub.domain.com/v2/_catalog
      • [HTTP/2] [1] [:method: GET]
      • [HTTP/2] [1] [:scheme: https]
      • [HTTP/2] [1] [:authority: dockerhub.domain.com]
      • [HTTP/2] [1] [:path: /v2/_catalog]
      • [HTTP/2] [1] [user-agent: curl/8.6.0]
      • [HTTP/2] [1] [accept: /]

      GET /v2/_catalog HTTP/2
      Host: dockerhub.domain.com
      User-Agent: curl/8.6.0
      Accept: /

      • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
      • TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
      • old SSL session ID is stale, removing
        < HTTP/2 302
        < server: nginx
        < date: Sun, 11 Aug 2024 13:19:02 GMT
        < content-type: text/html
        < content-length: 138
        < location: https://dockerhub.domain.com/login?redirect=/v2/_catalog
        < strict-transport-security: max-age=63072000
        < x-xss-protection: 1; mode=block
        < x-download-options: noopen
        < x-content-type-options: nosniff
        < x-permitted-cross-domain-policies: none
        < referrer-policy: same-origin
        < cache-control: no-cache
        < set-cookie: authToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT
        <
        <html>
        <head><title>302 Found</title></head>
        <body>
        <center><h1>302 Found</h1></center>
        <hr><center>nginx</center>
        </body>
        </html>
      • Connection #0 to host dockerhub.domain.com left intact
      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #4

      @nottheend said in Docker Error 500 - Unable to pull image on same instance:

      App installation error: Installation failed: Unable to pull image dockerhub.domain.com/myuser/myapp. message: (HTTP code 404) unexpected - manifest for dockerhub.domain.com/myuser/myapp:latest not found: manifest unknown: manifest unknown statusCode: 404

      I am a bit lost by now. Could it just be that the latest tag and or repository simply does not exist at dockerhub.domain.com/myuser/myapp ?

      Can you otherwise docker pull from for example your laptop with the same image URI ?

      1 Reply Last reply
      1
      • nottheendN Offline
        nottheendN Offline
        nottheend
        wrote on last edited by
        #5

        The error doesn't appear anymore. Not sure why (cloudron updated to v8 meanwhile).

        The errors remaining are "typical build image errors". Thanks for your support!

        1 Reply Last reply
        0
        • nebulonN nebulon has marked this topic as solved on
        • timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by timconsidine
          #6

          Hmmm
          I am now getting this error also

          App is being installed.
          => Queued .
          => Registering subdomains
          => Downloading image ........................................
          App installation error: Installation failed: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}

          But I can see the image in my docker registry so docker build and docker push is working.
          The docker registry is on the Cloudron instance, but this has never been a problem before.

          Have ensured docker login and cloudron install etc work

          Running Cloudron v8.2.3 on Ubuntu 22.04

          App install logs show :

          box:docker pullImage: will pull docker.domain.uk/cloudron-ocular:v1. auth: no

          Is that auth: no significant ?

          Final log entry :

          box:apptask run: app error for state pending_install: BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null} at pullImage (/home/yellowtent/box/src/docker.js:150:50) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /home/yellowtent/box/src/docker.js:195:122 at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20) at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5) at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5) at async install (/home/yellowtent/box/src/apptask.js:337:5) { reason: 'Docker Error', details: {} }

          box:tasks setCompleted - 22828: {"result":null,"error":{"stack":"BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}\n at pullImage (/home/yellowtent/box/src/docker.js:150:50)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/yellowtent/box/src/docker.js:195:122\n at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5)\n at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5)\n at async install (/home/yellowtent/box/src/apptask.js:337:5)","name":"BoxError","reason":"Docker Error","details":{},"message":"Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}"}}

          box:tasks update 22828: {"percent":100,"result":null,"error":{"stack":"BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}\n at pullImage (/home/yellowtent/box/src/docker.js:150:50)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/yellowtent/box/src/docker.js:195:122\n at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5)\n at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5)\n at async install (/home/yellowtent/box/src/apptask.js:337:5)","name":"BoxError","reason":"Docker Error","details":{},"message":"Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}"}}

          girishG 2 Replies Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #7

            Given that you see 500 status errors from your registry, can you check the logs there? 500 if used correctly refer to remote server errors. Auth failure would be in the 400 range (403, 402, ..)

            1 Reply Last reply
            0
            • timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by timconsidine
              #8

              In the docker registry app, logs show endless lines like this, but I don’t see errors as such :

              Jan 23 11:41:20 127.0.0.1 - - [23/Jan/2025:11:41:20 +0000] "GET /v2 HTTP/1.0" 301 39 "" "Mozilla (CloudronHealth)"

              Jan 23 11:41:20 time="2025-01-23T11:41:20.113222934Z" level=info msg="response completed" go.version=go1.20.8 http.request.host="localhost:5000" http.request.id=216d4214-238a-409b-930b-0a1ba5bf2f02 http.request.method=GET http.request.remoteaddr="127.0.0.1:56446" http.request.uri="/v2" http.request.useragent="Mozilla (CloudronHealth)" http.response.contenttype="text/html; charset=utf-8" http.response.duration="258.188µs" http.response.status=301 http.response.written=39

              Jan 23 11:41:30 ::1 - - [23/Jan/2025:11:41:30 +0000] "GET /v2 HTTP/1.0" 301 39 "" "Mozilla (CloudronHealth)"

              Jan 23 11:41:30 time="2025-01-23T11:41:30.129205782Z" level=info msg="response completed" go.version=go1.20.8 http.request.host="localhost:5000" http.request.id=ea05e778-e39b-47cd-8e12-5bb881512b3b http.request.method=GET http.request.remoteaddr="[::1]:54150" http.request.uri="/v2" http.request.useragent="Mozilla (CloudronHealth)" http.response.contenttype="text/html; charset=utf-8" http.response.duration="82.643µs" http.response.status=301 http.response.written=39

              Jan 23 11:41:30 172.18.0.1 - - [23/Jan/2025:11:41:30 +0000] "GET /v2 HTTP/1.1" 301 39 "-" "Mozilla (CloudronHealth)”

              Restarted the docker registry app on Cloudron, but same behaviour.
              Image is visible in the registry app UI.

              On local device I can do docker pull docker.domain.uk/image:tag so I guess the docker registry is ok, UI and images in app visible. And of course the docker push command worked.

              1 Reply Last reply
              0
              • timconsidineT timconsidine

                Hmmm
                I am now getting this error also

                App is being installed.
                => Queued .
                => Registering subdomains
                => Downloading image ........................................
                App installation error: Installation failed: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}

                But I can see the image in my docker registry so docker build and docker push is working.
                The docker registry is on the Cloudron instance, but this has never been a problem before.

                Have ensured docker login and cloudron install etc work

                Running Cloudron v8.2.3 on Ubuntu 22.04

                App install logs show :

                box:docker pullImage: will pull docker.domain.uk/cloudron-ocular:v1. auth: no

                Is that auth: no significant ?

                Final log entry :

                box:apptask run: app error for state pending_install: BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null} at pullImage (/home/yellowtent/box/src/docker.js:150:50) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /home/yellowtent/box/src/docker.js:195:122 at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20) at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5) at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5) at async install (/home/yellowtent/box/src/apptask.js:337:5) { reason: 'Docker Error', details: {} }

                box:tasks setCompleted - 22828: {"result":null,"error":{"stack":"BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}\n at pullImage (/home/yellowtent/box/src/docker.js:150:50)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/yellowtent/box/src/docker.js:195:122\n at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5)\n at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5)\n at async install (/home/yellowtent/box/src/apptask.js:337:5)","name":"BoxError","reason":"Docker Error","details":{},"message":"Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}"}}

                box:tasks update 22828: {"percent":100,"result":null,"error":{"stack":"BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}\n at pullImage (/home/yellowtent/box/src/docker.js:150:50)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/yellowtent/box/src/docker.js:195:122\n at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5)\n at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5)\n at async install (/home/yellowtent/box/src/apptask.js:337:5)","name":"BoxError","reason":"Docker Error","details":{},"message":"Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}"}}

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #9

                @timconsidine said in Docker Error 500 - Unable to pull image on same instance:

                Is that auth: no significant ?

                if the registry requires authentication then yes, this appears significant. Can you check the settings in Private Registry? Are you also able to docker pull on the cloudron itself?

                1 Reply Last reply
                0
                • timconsidineT Offline
                  timconsidineT Offline
                  timconsidine
                  App Dev
                  wrote on last edited by
                  #10

                  @girish yes I can docker push and docker pull on my desktop so auth here is not a problem.
                  Also I have logged out and logged back in.
                  Cloudron CLI is able to create the app and sub-domain, so my cloudron auth is ok.
                  And I can do cloudron uninstall —app blah

                  1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #11

                    @timconsidine the cloudron cli auth is different from the registry auth . I guess you had done docker login at some point in your desktop and this is why push/pull works.

                    The code is supposed to get the authentication info from the Settings -> Private Docker Registry in this function - https://git.cloudron.io/platform/box/-/blob/master/src/docker.js?ref_type=heads#L112 . Have you configured Private Docker Registry? If so, maybe you can put a couple of console.log in that function to see what is going wrong. Maybe something wrong in the parsing logic 🤔

                    1 Reply Last reply
                    0
                    • timconsidineT Offline
                      timconsidineT Offline
                      timconsidine
                      App Dev
                      wrote on last edited by
                      #12

                      Thanks @girish
                      In a shipping container in DE, will have to investigate once I get back
                      Not least because I don’t understand about settings but will dive in

                      1 Reply Last reply
                      0
                      • timconsidineT Offline
                        timconsidineT Offline
                        timconsidine
                        App Dev
                        wrote on last edited by timconsidine
                        #13

                        Right, back now, and I’ve re-read things, but am still not understanding.
                        Maybe time to explain like I’m a 5 year old 😆

                        Docker registry is installed in Cloudron instance from the App store.
                        No special or changed settings for the registry.
                        Nothing in the app UI anyway to do so, and I haven’t (consciously) changed /app/data/config.yml and certainly not recently.
                        Been using this registry for custom app builds and never had a problem, no need to configure it.

                        the cloudron cli auth is different from the registry auth

                        Yes. I was attempting (badly) to say everything works, well clearly not everything.
                        I can use cloudron CLI on desktop to install and uninstall
                        I can use docker CLI on desktop to login / logout of the cloudron-installed registry
                        I can open the registry app in browser, and can see that it has the custom app image (pushed from desktop).
                        But cloudron still reports 500, cannot find image

                        I have 2FA on my cloudron login - I can login to the registry app in a browser without re-entering it, but maybe the cloudron install doesn’t have access to an authenticated login. Is it expecting 2FA ?

                        authentication info from the Settings -> Private Docker Registry

                        This has been set, and has never been an issue before.
                        But has something changed to require 2FA, or a user with no 2FA, or a token not password ?

                        girishG 1 Reply Last reply
                        0
                        • timconsidineT timconsidine

                          Right, back now, and I’ve re-read things, but am still not understanding.
                          Maybe time to explain like I’m a 5 year old 😆

                          Docker registry is installed in Cloudron instance from the App store.
                          No special or changed settings for the registry.
                          Nothing in the app UI anyway to do so, and I haven’t (consciously) changed /app/data/config.yml and certainly not recently.
                          Been using this registry for custom app builds and never had a problem, no need to configure it.

                          the cloudron cli auth is different from the registry auth

                          Yes. I was attempting (badly) to say everything works, well clearly not everything.
                          I can use cloudron CLI on desktop to install and uninstall
                          I can use docker CLI on desktop to login / logout of the cloudron-installed registry
                          I can open the registry app in browser, and can see that it has the custom app image (pushed from desktop).
                          But cloudron still reports 500, cannot find image

                          I have 2FA on my cloudron login - I can login to the registry app in a browser without re-entering it, but maybe the cloudron install doesn’t have access to an authenticated login. Is it expecting 2FA ?

                          authentication info from the Settings -> Private Docker Registry

                          This has been set, and has never been an issue before.
                          But has something changed to require 2FA, or a user with no 2FA, or a token not password ?

                          girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by girish
                          #14

                          @timconsidine your setup seems correct. The 2FA aspect is indeed interesting! Maybe you put password into Private Docker Registry before you enabled 2FA? After you enabled 2FA, just the password is not enough to authenticate. So, you have to generate an App Password from your profile and use that in the Private Docker Registry settings.

                          timconsidineT 1 Reply Last reply
                          0
                          • girishG girish

                            @timconsidine your setup seems correct. The 2FA aspect is indeed interesting! Maybe you put password into Private Docker Registry before you enabled 2FA? After you enabled 2FA, just the password is not enough to authenticate. So, you have to generate an App Password from your profile and use that in the Private Docker Registry settings.

                            timconsidineT Offline
                            timconsidineT Offline
                            timconsidine
                            App Dev
                            wrote on last edited by
                            #15

                            @girish thank you
                            Yes, it’s entirely possible that I added 2FA subsequently.
                            I will try with an app password.

                            1 Reply Last reply
                            1
                            • timconsidineT timconsidine

                              Hmmm
                              I am now getting this error also

                              App is being installed.
                              => Queued .
                              => Registering subdomains
                              => Downloading image ........................................
                              App installation error: Installation failed: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}

                              But I can see the image in my docker registry so docker build and docker push is working.
                              The docker registry is on the Cloudron instance, but this has never been a problem before.

                              Have ensured docker login and cloudron install etc work

                              Running Cloudron v8.2.3 on Ubuntu 22.04

                              App install logs show :

                              box:docker pullImage: will pull docker.domain.uk/cloudron-ocular:v1. auth: no

                              Is that auth: no significant ?

                              Final log entry :

                              box:apptask run: app error for state pending_install: BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null} at pullImage (/home/yellowtent/box/src/docker.js:150:50) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /home/yellowtent/box/src/docker.js:195:122 at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20) at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5) at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5) at async install (/home/yellowtent/box/src/apptask.js:337:5) { reason: 'Docker Error', details: {} }

                              box:tasks setCompleted - 22828: {"result":null,"error":{"stack":"BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}\n at pullImage (/home/yellowtent/box/src/docker.js:150:50)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/yellowtent/box/src/docker.js:195:122\n at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5)\n at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5)\n at async install (/home/yellowtent/box/src/apptask.js:337:5)","name":"BoxError","reason":"Docker Error","details":{},"message":"Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}"}}

                              box:tasks update 22828: {"percent":100,"result":null,"error":{"stack":"BoxError: Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}\n at pullImage (/home/yellowtent/box/src/docker.js:150:50)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async /home/yellowtent/box/src/docker.js:195:122\n at async promiseRetry (/home/yellowtent/box/src/promise-retry.js:17:20)\n at async Object.downloadImage (/home/yellowtent/box/src/docker.js:194:5)\n at async downloadImage (/home/yellowtent/box/src/apptask.js:243:5)\n at async install (/home/yellowtent/box/src/apptask.js:337:5)","name":"BoxError","reason":"Docker Error","details":{},"message":"Unable to pull image docker.domain.uk/cloudron-ocular:v1. registry error: {"reason":"server error","statusCode":500,"json":null}"}}

                              girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by girish
                              #16

                              @timconsidine said in Docker Error 500 - Unable to pull image on same instance:

                              box:docker pullImage: will pull docker.domain.uk/cloudron-ocular:v1. auth: no
                              

                              Is that auth: no significant ?

                              2FA note aside, this still seems wrong. It should say auth: yes. The docker.domain.uk (from docker.domain.uk/cloudron-ocular:v1) must match the server address you put in Private Docker Registry UI.

                              1 Reply Last reply
                              1
                              • timconsidineT Offline
                                timconsidineT Offline
                                timconsidine
                                App Dev
                                wrote on last edited by timconsidine
                                #17

                                Existing container registry :

                                • created an app password
                                • updated settings for private registry to use that
                                • desktop terminal : docker logout private registry then docker login with app password : success
                                • desktop terminal : cloudron logout then cloudron login (with 2FA)
                                • desktop terminal : cloudron install —image etc : failed

                                Jan 29 16:11:53 box:tasks update 22945: {"message":"Registering location app.somedomain.uk"}
                                Jan 29 16:11:53 box:dns upsertDnsRecords: subdomain:app domain:somedomain.uk type:A values:[“46.4.98.999"]
                                Jan 29 16:11:53 box:dns/manual upsert: app for zone somedomain.uk of type A with values ["46.4.98.999"]
                                Jan 29 16:11:53 box:dns upsertDnsRecords: subdomain:app domain:somedomain.uk type:AAAA values:["2a01:4f8:140:903a::2"]
                                Jan 29 16:11:53 box:dns/manual upsert: app for zone somedomain.uk of type AAAA with values ["2a01:4f8:140:903a::9"]
                                Jan 29 16:11:53 box:tasks update 22945: {"percent":40,"message":"Downloading image"}
                                Jan 29 16:11:53 box:shell df: df -B1 --output=source,fstype,size,used,avail,pcent,target /var/lib/docker
                                Jan 29 16:11:53 box:docker downloadImage: docker.domain.uk/cloudron-ocular:v3
                                Jan 29 16:11:53 box:docker pullImage: will pull docker.domain.uk/cloudron-ocular:v3. auth: no
                                Jan 29 16:11:53 box:docker Attempt 1 failed. Will retry: Unable to pull image docker.domain.uk/cloudron-ocular:v3. registry error: {"reason":"server error","statusCode":500,"json":null}

                                NB : auth is still no
                                Image is visible in browser UI of container registry

                                Created new container registry app:

                                • created app password
                                • updated private registry settings
                                • desktop terminal : docker logout and login to new registry : success
                                • desktop terminal : rebuilt app and pushed to new registry (success : checked : visible in app browser UI)
                                • cloudron install from new registry : failed

                                Jan 29 16:56:50 box:docker pullImage: will pull mydocker.domain.uk/cloudron-ocular:v5. auth: no
                                Jan 29 16:56:50 box:docker Attempt 1 failed. Will retry: Unable to pull image mydocker.domain.uk/cloudron-ocular:v5. registry error: {"reason":"server error","statusCode":500,"json":null}

                                I’m lost.
                                Did I miss something ?

                                Superficially, cloudron is failing to access the container registry installed in the cloudron instance. Other connections seem to be working.
                                So superficially, it looks like a cloudron problem.
                                But too much grey hair to accept that at face value.

                                1 Reply Last reply
                                0
                                • timconsidineT Offline
                                  timconsidineT Offline
                                  timconsidine
                                  App Dev
                                  wrote on last edited by
                                  #18

                                  Suddden random thought : is there an IPV6 dimension to this ?
                                  No reason for it to affect things (but who knows)

                                  1 Reply Last reply
                                  0
                                  • girishG Offline
                                    girishG Offline
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #19

                                    @timconsidine I think the issue is that the auth info is not getting picked up for some reason. Do you have https or something in your serverAddress?

                                    Easiest way is to put a console.log here - https://git.cloudron.io/platform/box/-/blob/master/src/docker.js?ref_type=heads#L122

                                    console.log(registryConfig.serverAddress, parsedRef.registry)
                                    

                                    Then systemctl restart box and install again. the line above should tell us why they are not matching.

                                    timconsidineT 1 Reply Last reply
                                    1
                                    • girishG girish

                                      @timconsidine I think the issue is that the auth info is not getting picked up for some reason. Do you have https or something in your serverAddress?

                                      Easiest way is to put a console.log here - https://git.cloudron.io/platform/box/-/blob/master/src/docker.js?ref_type=heads#L122

                                      console.log(registryConfig.serverAddress, parsedRef.registry)
                                      

                                      Then systemctl restart box and install again. the line above should tell us why they are not matching.

                                      timconsidineT Offline
                                      timconsidineT Offline
                                      timconsidine
                                      App Dev
                                      wrote on last edited by
                                      #20

                                      @girish well done, you cracked it

                                      Do you have https or something in your serverAddress?

                                      Err yes. And it’s been like that since I started with custom apps.
                                      Maybe there has been a change ? But doesn’t matter.
                                      Removed it and working now.

                                      I think some hint on the page setting the registry url should make clear that https:// is NOT needed would be useful.

                                      But not a big issue.

                                      1 Reply Last reply
                                      0
                                      • girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #21

                                        @timconsidine thanks, I have added a validation check now.

                                        1 Reply Last reply
                                        1
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Bookmarks
                                        • Search