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
  • Brite
  • 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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Can't run cloudron update for an app in error state

Can't run cloudron update for an app in error state

Scheduled Pinned Locked Moved Solved Support
dockercustom image
15 Posts 5 Posters 289 Views 5 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 ekevu123

    I have a custom app on Cloudron, I use the Cloudron Build Service, and the private docker registry on Cloudron.

    I might have accidentally deleted a previous image of my app, then installed an update, then tried to reinstate the backup, and now the app is stuck in error state.

    My solution would be to push an updated image and install it, but I can't. cloudron update in CLI shows this:

    Failed to update app: 409 message: Not allowed in error state
    

    But isn't pushing an update kind of what I want to do to get an app with an error out of the error state?

    Anyway, how do I fix this without reinstalling the app? I need to keep the database.

    LanhildL Online
    LanhildL Online
    Lanhild
    App Dev
    wrote last edited by
    #2

    @ekevu123 I never faced this situation. Maybe try putting it in recovery mode?

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

      I can't, because the app is stuck in "unable to pull image" state.

      An assumption of what I think might work:

      1. Delete the app
      2. Re-install it from scratch
      3. If it has the same name, previous backups appear?
      4. Then restore?

      But I'd need to know first if this works.

      LanhildL 1 Reply Last reply
      1
      • E ekevu123

        I can't, because the app is stuck in "unable to pull image" state.

        An assumption of what I think might work:

        1. Delete the app
        2. Re-install it from scratch
        3. If it has the same name, previous backups appear?
        4. Then restore?

        But I'd need to know first if this works.

        LanhildL Online
        LanhildL Online
        Lanhild
        App Dev
        wrote last edited by
        #4

        @ekevu123 uninstalling won't preserve the backups

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

          The Cloudron team can say for sure, but I believe it does - backups don't get deleted when you uninstall an app. I think I used this method before in a different setting.

          LanhildL J 2 Replies Last reply
          1
          • E ekevu123

            The Cloudron team can say for sure, but I believe it does - backups don't get deleted when you uninstall an app. I think I used this method before in a different setting.

            LanhildL Online
            LanhildL Online
            Lanhild
            App Dev
            wrote last edited by
            #6

            @ekevu123 I meant, you won't see the previously uninstalled app backups in the newly installed app, but yes backups won't get deleted

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

              I found a solution for the problem: Since the app was looking for a docker tag, the solution was to tag the new image with the tag from the missing backup image, which got the app up, and then perform a proper update with the same image.

              rosanoR 1 Reply Last reply
              2
              • J joseph has marked this topic as solved
              • E ekevu123

                The Cloudron team can say for sure, but I believe it does - backups don't get deleted when you uninstall an app. I think I used this method before in a different setting.

                J Offline
                J Offline
                joseph
                Staff
                wrote last edited by
                #8

                @ekevu123 said:

                The Cloudron team can say for sure, but I believe it does - backups don't get deleted when you uninstall an app. I think I used this method before in a different setting.

                this is correct/

                1 Reply Last reply
                0
                • E ekevu123

                  I found a solution for the problem: Since the app was looking for a docker tag, the solution was to tag the new image with the tag from the missing backup image, which got the app up, and then perform a proper update with the same image.

                  rosanoR Offline
                  rosanoR Offline
                  rosano
                  wrote last edited by
                  #9

                  @ekevu123 I'm in the same situation now and I'm wondering if your registry is on a separate Cloudron or everything's on one? I have issues whenever my Cloudron makes requests to URLs hosted on the same Cloudron and now it seems I can no longer install because the image can't be reached for that reason 😵

                  1 Reply Last reply
                  0
                  • nebulonN Away
                    nebulonN Away
                    nebulon
                    Staff
                    wrote last edited by
                    #10

                    Is hairpin working on your system? Check with cloudron-support --troubleshoot

                    rosanoR 1 Reply Last reply
                    0
                    • nebulonN nebulon

                      Is hairpin working on your system? Check with cloudron-support --troubleshoot

                      rosanoR Offline
                      rosanoR Offline
                      rosano
                      wrote last edited by
                      #11

                      @nebulon I don't see any reference to hairpin:

                      [OK]	node version is correct
                      [OK]	IPv6 is enabled and public IPv6 address is working
                      [OK]	docker is running
                      [OK]	docker version is correct
                      [OK]	MySQL is running
                      [OK]	netplan is good
                      [OK]	DNS is resolving via systemd-resolved
                      [OK]	unbound is running
                      [OK]	nginx is running
                      [OK]	dashboard cert is valid
                      [OK]	dashboard is reachable via loopback
                      [OK]	No pending database migrations
                      [OK]	Service 'mysql' is running and healthy
                      [OK]	Service 'postgresql' is running and healthy
                      [OK]	Service 'mongodb' is running and healthy
                      [OK]	Service 'mail' is running and healthy
                      [OK]	Service 'graphite' is running and healthy
                      [OK]	Service 'sftp' is running and healthy
                      [OK]	box v9.1.5 is running
                      [OK]	Dashboard is reachable via domain name
                      
                      1 Reply Last reply
                      0
                      • nebulonN Away
                        nebulonN Away
                        nebulon
                        Staff
                        wrote last edited by
                        #12

                        ah maybe I misunderstood your issue then. So you are not able to reach the docker registry to install apps or are you referring to a specific registry used by some community packages? Maybe the thread is mixing issues also, do you have more info and error output what exactly does not work?

                        rosanoR 1 Reply Last reply
                        0
                        • nebulonN nebulon

                          ah maybe I misunderstood your issue then. So you are not able to reach the docker registry to install apps or are you referring to a specific registry used by some community packages? Maybe the thread is mixing issues also, do you have more info and error output what exactly does not work?

                          rosanoR Offline
                          rosanoR Offline
                          rosano
                          wrote last edited by
                          #13

                          @nebulon said:

                          So you are not able to reach the docker registry to install apps or are you referring to a specific registry used by some community packages?

                          My registry is on the same Cloudron. I have built images with the Builder app and pushed there to install custom apps in the past. But it seems recently my Cloudron can no longer make network requests to the same Cloudron (maybe I've misconfigured something?).

                          Maybe the thread is mixing issues

                          I suppose for this thread I would only want to know if there's a way to force update an app in error state. The network issue is documented here. I'm currently very stuck on updating those custom apps when the registry is inaccessible and would appreciate any help.

                          rosanoR 1 Reply Last reply
                          0
                          • rosanoR rosano

                            @nebulon said:

                            So you are not able to reach the docker registry to install apps or are you referring to a specific registry used by some community packages?

                            My registry is on the same Cloudron. I have built images with the Builder app and pushed there to install custom apps in the past. But it seems recently my Cloudron can no longer make network requests to the same Cloudron (maybe I've misconfigured something?).

                            Maybe the thread is mixing issues

                            I suppose for this thread I would only want to know if there's a way to force update an app in error state. The network issue is documented here. I'm currently very stuck on updating those custom apps when the registry is inaccessible and would appreciate any help.

                            rosanoR Offline
                            rosanoR Offline
                            rosano
                            wrote last edited by
                            #14

                            rosano said:

                            I'm currently very stuck on updating those custom apps when the registry is inaccessible and would appreciate any help.

                            I've solved my issue by pushing an image to an external registry (docker hub) and then tagging the unreachable image:

                            docker pull alfa/bravo:charlie
                            docker tag alfa/bravo:charlie docker.cloudron.example.com/bravo:latest
                            docker push docker.cloudron.example.com/bravo:latest
                            

                            But I've learned that I need to phase out the self-hosted Docker registry due to those same-server network issues and migrate to Cloudron's CLI's built-in uploading and building.

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

                              @rosano some users claimed that this exact same issue was resolved by upgrading to ubuntu 24 . https://forum.cloudron.io/topic/15265/unusable-application

                              1 Reply Last reply
                              0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better 💗

                              Register Login
                              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