-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show an error page (instead of the /install page) when data/cache directories are not writable #2090
Comments
Hi,
Which exact cases should trigger this behavior (instead of showing the usual installation/initial setup page)? |
For example I restored the site from a backup. Here is the steps to reproduce, presented as bash shell script:
The output looks like:
The website content has an error:
So, there was an existing datastore with improper permission setting. Some application such as database, would crash and forbid to serve. But shaarli redirects to /install and returns 200, which would be detected as operational in monitoring system. |
Got it. Related #2073 I don't know which behavior would be correct, we should check in the code which condition led to the 302 redirect in the first place... if this is caused by the cache/date directories being detected as unwritable, these are the possible behavior we should consider:
Another possibility is to add a |
I'd like to vote for an error page.
Considering a public site, we usually see a lean error page when the site is down. On the contrary, showing an install page may be weird. Actually, I've hosted one, and it was a bit awkward to show the install page for days until I found out it was not working. A status page is also a good idea. We could enable the health check function in Docker to check status promptly. |
When I moved the data of Shaarli, which is deployed with docker-compose, I sometimes encountered directory/file permission issues that needed fixing. Before I could address these issues, Shaarli would expose the installation page with a status code of 200. This behavior suggests there might be room for improvement.
Additionally, I am willing to help create a PR if the core developers favor these features.
The text was updated successfully, but these errors were encountered: