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. reinstall doesn't work

reinstall doesn't work

Scheduled Pinned Locked Moved Solved Support
nginxdomains
7 Posts 4 Posters 1.5k 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.
    • D Offline
      D Offline
      drpaneas
      wrote on last edited by girish
      #1

      Install an app to panos.domain.com
      then uninstall this app.
      then install again this app to panos.domain.com

      This doesn't work.
      You have to use another domain. Picking another domain solves the problem.
      Why?

      D 1 Reply Last reply
      0
      • D drpaneas

        Install an app to panos.domain.com
        then uninstall this app.
        then install again this app to panos.domain.com

        This doesn't work.
        You have to use another domain. Picking another domain solves the problem.
        Why?

        D Offline
        D Offline
        drpaneas
        wrote on last edited by drpaneas
        #2

        curl panos.domain.com
        <html>
        <head><title>301 Moved Permanently</title></head>
        <body>
        <center><h1>301 Moved Permanently</h1></center>
        <hr><center>nginx</center>
        </body>
        </html>

        but
        curl -L panos.domain.com
        works

        something seems fishy with the redirection.

        mehdiM 1 Reply Last reply
        0
        • D drpaneas

          curl panos.domain.com
          <html>
          <head><title>301 Moved Permanently</title></head>
          <body>
          <center><h1>301 Moved Permanently</h1></center>
          <hr><center>nginx</center>
          </body>
          </html>

          but
          curl -L panos.domain.com
          works

          something seems fishy with the redirection.

          mehdiM Offline
          mehdiM Offline
          mehdi
          App Dev
          wrote on last edited by
          #3

          @drpaneas I believe it's just a cache problem. It seems cloudron answers with a 301 MOVED PERMANENTLY after you have uninstalled the app, and browsers usually cache the 301 responses for quite a long time by default. You should try with another browser to make sure

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

            @drpaneas Is this problem in a browser or curl?

            curl panos.domain.com is just redirecting to https page. This is why -L works. Try curl https://panos.domain.com.

            Also, we use 301 only for http -> https redirects. For the app redirection feature, we use 302.

            D 1 Reply Last reply
            0
            • girishG girish

              @drpaneas Is this problem in a browser or curl?

              curl panos.domain.com is just redirecting to https page. This is why -L works. Try curl https://panos.domain.com.

              Also, we use 301 only for http -> https redirects. For the app redirection feature, we use 302.

              D Offline
              D Offline
              drpaneas
              wrote on last edited by
              #5

              I tried with another device to make sure this is not a cache problem. In any case, I found out that if I change the domain later then it works fine. Sadly I don't have a good reproducer or logs to provide for this.

              If this happens to anyone else, this is a workaround:

              1. Uninstall the app from domain A
              2. Reinstall the app to domain B
              3. Move the app domain from B to A

              It should work.

              nebulonN 1 Reply Last reply
              0
              • D drpaneas

                I tried with another device to make sure this is not a cache problem. In any case, I found out that if I change the domain later then it works fine. Sadly I don't have a good reproducer or logs to provide for this.

                If this happens to anyone else, this is a workaround:

                1. Uninstall the app from domain A
                2. Reinstall the app to domain B
                3. Move the app domain from B to A

                It should work.

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #6

                @drpaneas what was the initial issue you found and described as "not working"? Like was there any curl error code or did the browser show some error page? Also did the Cloudron dashboard report the newly installed app as running or errored?

                D 1 Reply Last reply
                0
                • nebulonN nebulon

                  @drpaneas what was the initial issue you found and described as "not working"? Like was there any curl error code or did the browser show some error page? Also did the Cloudron dashboard report the newly installed app as running or errored?

                  D Offline
                  D Offline
                  drpaneas
                  wrote on last edited by
                  #7

                  @nebulon there was no error reported by cloudron. The issue was that if I tried to curl, there was nothing returned back (I don't remember the exact reply -- sorry for that). Basically it was like nginx was not routing properly, as if nothing was running at the subdomain.

                  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