-
Notifications
You must be signed in to change notification settings - Fork 33
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
403 Forbidden error when browing to wiki #174
Comments
Rebuilding the environment and importing old repository folder seemed to workaround the issue. Still, I would love to know why this occurred and how to prevent it. I have a backup for troubleshooting. |
Hey @mitchplze, thanks for reporting this and for the update that you got it working. Unfortunately I have no idea what went wrong. An Otter Wiki does nothing fancy with the file permissions, it always runs as user with the uid 33 and reads and writes files (and runs git) with this uid. It never does any modification of permissions except for the startup in the entrypoint.sh, where it runs as root (uid 0) and changes the permissions of the /app-data to www-data (uid 33). Can you check which permissions are set in the nfs volume in docker compose exec otterwiki ls -ln /app-data |
This seems to have happened again, on a fresh build! I am starting to suspect it has to do with the NFS mount and possibly the way Otterwiki handles permissions thru Docker. I note that on the below Today is Jan 19, and it looks like there has been no writes back to the sqlite or settings since I last went through the rebuild. Not sure what would be causing this, or if that's expected, if there has been 0 activity at all. I have not noticed any behaviours whatsoever like this for other apps, running in an identical config. I tried adding As requested:
and
As before, container logs don't seem like they're much help.
Thanks for looking into this. |
On both the storage host and in the container the files have the expected owner and permissions. To be sure can you check the permissions for the diorectories as well:
and the repository, too:
I might have to add a writeable test to the healthcheck. |
Here you go:
Here you are:
Hope this helps. Let me know if there's anything else I can try before I rebuild again. |
Unfortunately the permissions are all correct. Can we check who throws the 403 error? Please run
|
Here you go. One from the Caddy reverse proxy, and one from the bare HTTP port. The 403 exists on both, so I'm not convinced its a Caddy issue.
|
Thank you! You are right, the caddy is for sure not the issue. Last question: Which Otterwiki version is this? |
Great question! Since the UI is not currently usable, best I can do is the image:
I think I pulled that yesterday or the day before. The original wiki was built on/around Dec 27 with a fresh docker image at that time. You'd know better than me, but I think its also in the container log |
Unfortunately not. Will add printing versions for nginx, supervisord and An Otter Wiki. Can you try to run the image |
Thanks. Changed to that image and port 8080 on the destination. 403 still persists. Container log:
|
Whether I go to http://URL:PORT directly, or through reverse proxy (Caddy in my case), I have started getting this now:
Forbidden: You don't have the permission to access the requested resource. It is either read-protected or not readable by the server.
I'm using Docker, with the following compose.yaml:
This has worked fine for weeks, but now I can't get to the wiki at all. I have re-pulled latest image, and recreated the stack altogether. By not declaring a
user:XXX
in compose, the stack runs as root.Console reveals nothing useful in my opinion:
Then when I try to navigate to pages and get the Forbidden:
On the backend storage:
The "repository" directory contains all my pages as expected. No idea what's wrong here.
I will most likely be forced to backup the repo folder, and then rebuild the installation from scratch.
The text was updated successfully, but these errors were encountered: