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. Build Service
  3. cloudron build fais with error: Failed to upload app for building: 400 message: accessToken is missing

cloudron build fais with error: Failed to upload app for building: 400 message: accessToken is missing

Scheduled Pinned Locked Moved Solved Build Service
30 Posts 3 Posters 1.5k Views 3 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.
    • I Offline
      I Offline
      igaudette
      wrote on last edited by
      #21

      @nebulon by using our Cloudron credentials and setting our registry URL in the JSON file, it works! However, now we get this error message:

      "413 Request Entity Too Large"

      Our image make 6.47GB.

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #22

        From where is this error coming from? The registry (is that a cloudron app as well) or is it from the buildservice to the cli tool? Do you have more errors on the server side logs?

        Also, maybe a wild guess, but since that error is somewhat common when using Cloudflare proxying, if you use that, please disable that first.

        1 Reply Last reply
        0
        • I Offline
          I Offline
          igaudette
          wrote on last edited by
          #23

          @nebulon When we push the image to the Docker registry app, here is what the build app logs are saying:

          Nov 27 10:21:23 Application Build Service Worker
          Nov 27 10:21:23 Build Id: build-1732720882415
          Nov 27 10:21:23 Build logfile: /tmp/build-1732720882415.log
          Nov 27 10:21:23 Docker Username: *********
          Nov 27 10:21:23 Dockerfile Name: Dockerfile
          Nov 27 10:21:23 Image Repo: registry.//app
          Nov 27 10:21:23 Image Tag: 20241127-152056-15345a770
          Nov 27 10:21:23 Push: true
          Nov 27 10:21:23 Source Archive: /tmp/OtULoDB64vB7KxXP8npFeXVT.gz
          Nov 27 10:21:23 Use cache: true
          Nov 27 10:21:23 build-1732720882415 Building...
          Nov 27 10:21:23 build-1732720882415 docker build -t registry.//app:20241127-152056-15345a770 (Dockerfile)
          Nov 27 10:21:26 build-1732720882415 Build stream finished
          Nov 27 10:21:26 build-1732720882415 Pushing...
          Nov 27 10:25:29 2024-11-27T15:25:29Z
          Nov 27 10:25:29 </body>
          Nov 27 10:25:29 </html>
          Nov 27 10:25:29 <body>
          Nov 27 10:25:29 <center><h1>413 Request Entity Too Large</h1></center>
          Nov 27 10:25:29 <head><title>413 Request Entity Too Large</title></head>
          Nov 27 10:25:29 <hr><center>cloudflare</center>
          Nov 27 10:25:29 Build build-1732719728695 failed during image pushing.
          Nov 27 10:25:29 build-1732719728695 Push failed
          Nov 27 10:25:29 build-1732719728695 Push stream finished
          Nov 27 10:25:29 build-1732719728695 unknown: <html>
          Nov 27 10:34:59 startLogStream: client closed
          Nov 27 10:34:59 startLogStream: finished with undefined
          Nov 27 10:44:22 2024-11-27T15:44:22Z
          Nov 27 10:44:22 </body>
          Nov 27 10:44:22 </html>
          Nov 27 10:44:22 <body>
          Nov 27 10:44:22 <center><h1>413 Request Entity Too Large</h1></center>
          Nov 27 10:44:22 <head><title>413 Request Entity Too Large</title></head>
          Nov 27 10:44:22 <hr><center>cloudflare</center>
          Nov 27 10:44:22 Build build-1732720882415 failed during image pushing.
          Nov 27 10:44:22 build-1732720882415 Push failed
          Nov 27 10:44:22 build-1732720882415 Push stream finished
          Nov 27 10:44:22 build-1732720882415 unknown: <HTML>

          The build and docker registry app are on the same Cloudron server. I just saw for Cloudflare in logs.. currently proxy is disabled for registry but not for build. Do you think it could be related?

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #24

            Right, Cloudflare proxying causes lots of side-effects and it has a size limit, so anything going through that above the size threshold will fail. So unless you are hosting a rather static website, it is generally not a great idea to use Cloudflare proxying.

            1 Reply Last reply
            0
            • I Offline
              I Offline
              igaudette
              wrote on last edited by
              #25

              @nebulon I tried disabling proxy on the build and registry app... and I'm still getting the "413 Request Entity Too Large" error 😔

              How it's possible if both apps have proxying disabled? Is it because my.mydomain.com (Cloudron) is proxyfied?

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #26

                As mentioned, this was just a wild guess, could be other factors in play here also. Have you tried to rule out some more parts, like only using the buildservice to push to dockerhub instead of your custom registry? The error pretty much hints at some issue with the registry you are using. It would certainly help if you could provide more logging info on that side as well. Also maybe increase memory limit for that?

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  Daniel-Lobo
                  wrote on last edited by
                  #27

                  Thank your your assistance, @nebulon. We're finally able to build and install the app.

                  1 Reply Last reply
                  0
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #28

                    That is great news, what was the issue in the end?

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Daniel-Lobo
                      wrote on last edited by
                      #29

                      The wrong registry in the docker.json file and cloudfare's "proxying"

                      1 Reply Last reply
                      0
                      • nebulonN nebulon has marked this topic as solved on
                      • I Offline
                        I Offline
                        igaudette
                        wrote on last edited by
                        #30

                        For those that are reading this post... If you plan to host the docker image yourself, this is critical to update the JSON of Docker Registry app with your Cloudron registry domain and credentials.

                        @nebulon Maybe that would be a great idea to add to the documentation that if a user wants to host the image himself, he should use his Cloudron docker registry domain instead of docker.io. The documentation is currently confusing ^^

                        Thanks again for your assistance.

                        1 Reply Last reply
                        0
                        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