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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved reinstall doesn't work

    Support
    nginx domains
    4
    7
    505
    Loading More Posts
    • 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
      drpaneas last edited by girish

      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 Reply Quote 0
      • D
        drpaneas @drpaneas last edited by 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.

        mehdi 1 Reply Last reply Reply Quote 0
        • mehdi
          mehdi App Dev @drpaneas last edited by

          @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 Reply Quote 0
          • girish
            girish Staff last edited by

            @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 Reply Quote 0
            • D
              drpaneas @girish last edited by

              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.

              nebulon 1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff @drpaneas last edited by

                @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 Reply Quote 0
                • D
                  drpaneas @nebulon last edited by

                  @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 Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB