Solved reinstall doesn't work
@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
@drpaneas Is this problem in a browser or curl?
curl panos.domain.comis just redirecting to https page. This is why -L works. Try
Also, we use 301 only for http -> https redirects. For the app redirection feature, we use 302.
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:
- Uninstall the app from domain A
- Reinstall the app to domain B
- Move the app domain from B to A
It should work.
@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?
@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.