3 ms·
And then whenever I went on http://localhost:8000/files http://localhost:8000/files I had the following error: An error occurred during route handling or pag
by noname120 2y ago
And then whenever I went on http://localhost:8000/files http://localhost:8000/files I had the following error:
An error occurred during route handling or page rendering.
With this in the logs:
website-1 | 2025-02-21T14:40:01.285Z - [303] GET http://localhost:8000/
website-1 | 2025-02-21T14:40:01.316Z - [200] GET http://localhost:8000/dashboard
website-1 | 2025-02-21T14:40:01.465Z - [200] GET http://localhost:8000/styles.css
website-1 | An error occurred during route handling or page rendering.
website-1 | PermissionDenied: Permission denied (os error 13): mkdir '/app/data-files/e5f69a80-249a-4845-a6d4-2a4911f9e249/.Trash/'
website-1 | at async Object.mkdir (ext:deno_fs/30_fs.js:200:3)
website-1 | at async getPathEntries (file:///app/lib/data/files.ts:73:9)
website-1 | at async getDirectories (file:///app/lib/data/files.ts:13:29)
website-1 | at async GET (file:///app/routes/files.tsx:33:29)
website-1 | at async handleLogging (file:///app/routes/_middleware.tsx:66:22)
website-1 | at async handleContextState (file:///app/routes/_middleware.tsx:60:22)
website-1 | at async handleCors (file:///app/routes/_middleware.tsx:25:22)
website-1 | at async handler (https://deno.land/x/fresh@1.7.3/src/server/context.ts:295:14)
website-1 | at async mapped (ext:deno_http/00_serve.ts:391:18) {
website-1 | name: "PermissionDenied",
website-1 | code: "EACCES"
website-1 | }
I tried to chown it, didn't help. I tried other things within the container (docker compose run -it website /bin/sh), see this discussion to see what I tried:
https://chatgpt.com/share/67b890cb-0574-800d-a0ac-470e40891717 https://chatgpt.com/share/67b890cb-0574-800d-a0ac-470e408917...
- rafaelgoncalves 2y agoyeah, docker and permissions always a pain. you tried passing --user or through compose? [1]: my-service: image: ubuntu:latest user: ${MY_UID}:${MY_GID} volumes: - /etc/passwd:/etc/passwd:ro - /etc/group:/etc/group:ro [1] https://stackoverflow.com/a/71027261 https://stackoverflow.com/a/71027261 hope this helps/solves
- BrunoBernardino 2y agoInteresting. This should've been resolved with this PR: https://github.com/bewcloud/bewcloud/pull/42/files#diff-e45e45baeda1c1e73482975a664062aa56f20c03dd9d64a827aba57775bed0d3L8 https://github.com/bewcloud/bewcloud/pull/42/files#diff-e45e...
- rafaelgoncalves 2y agoohh, nice! thanks for the info Bruno!