reinstall doesn't work
-
Install an app to panos.domain.com
then uninstall this app.
then install again this app to panos.domain.comThis doesn't work.
You have to use another domain. Picking another domain solves the problem.
Why? -
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
workssomething seems fishy with the redirection.
-
@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.com
is just redirecting to https page. This is why -L works. Trycurl https://panos.domain.com
.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.