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. (HTTP code 500) server error - invalid reference format

(HTTP code 500) server error - invalid reference format

Scheduled Pinned Locked Moved Build Service
10 Posts 2 Posters 310 Views 2 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.
  • E Offline
    E Offline
    ekevu123
    wrote on last edited by
    #1

    How can I debug this error?

    (HTTP code 500) server error - invalid reference format 
    

    The image successfully builds locally.

    J 1 Reply Last reply
    0
    • E ekevu123

      How can I debug this error?

      (HTTP code 500) server error - invalid reference format 
      

      The image successfully builds locally.

      J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      @ekevu123 said in (HTTP code 500) server error - invalid reference format:

      invalid reference format

      This usually means something is wrong with the docker image name. What is the context for this error though?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ekevu123
        wrote on last edited by ekevu123
        #3

        Well, there was no context. It uploads the source tarball, gives it a build ID, and then this error happens.

        J 1 Reply Last reply
        0
        • E ekevu123

          Well, there was no context. It uploads the source tarball, gives it a build ID, and then this error happens.

          J Offline
          J Offline
          joseph
          Staff
          wrote on last edited by
          #4

          @ekevu123 do you see anything in the build service app's logs itself?

          When you run cloudron build, the first 3 lines would be interesting. It prints the full image name before uploading the tarball.

          1 Reply Last reply
          0
          • E Offline
            E Offline
            ekevu123
            wrote on last edited by
            #5

            The first line is "using build service" and then the link.
            The second line is "Building" followed by the repository name and the image tag.
            Then it says "uploading source tarball"
            Then it has a BuildID
            and then the error comes

            J 1 Reply Last reply
            0
            • E ekevu123

              The first line is "using build service" and then the link.
              The second line is "Building" followed by the repository name and the image tag.
              Then it says "uploading source tarball"
              Then it has a BuildID
              and then the error comes

              J Offline
              J Offline
              joseph
              Staff
              wrote on last edited by
              #6

              @ekevu123 said in (HTTP code 500) server error - invalid reference format:

              The second line is "Building" followed by the repository name and the image tag.

              yes, here it seems there is something wrong with the name and image tag. I am not sure how to test for the validity of this (maybe chatgpt?) . But maybe you can see docker tag works locally (on some random test image)?

              1 Reply Last reply
              0
              • E Offline
                E Offline
                ekevu123
                wrote on last edited by
                #7

                But how would I even be able to influence this? I think a recent change has caused that I can only run cloudron build and it doesn't take any arguments anymore? I think that behaviour used to be different. So, what else could I theoretically do except running cloudron build?

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  joseph
                  Staff
                  wrote on last edited by
                  #8

                  @ekevu123 you can set the repository name using cloudron build --set-repository . I think the args changed a bit, not sure exactly when.

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    ekevu123
                    wrote on last edited by
                    #9

                    True, it seems like the only things I can do are log out and log back in, and set the repository.
                    I am still unsure why it doesn't work for this one repository while it does work using docker build. I am happy to investigate this myself, but what is the difference between the two services exactly, except that one works on the server and the other locally? If I understood that, I would be happy to investigate.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      joseph
                      Staff
                      wrote on last edited by
                      #10

                      docker build is building the image locally. cloudron build is pretty much doing the same thing but on a remote server. The code is at https://git.cloudron.io/packages/docker-builder-app/ . There is no difference other than what you already said.

                      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