Hi,
I ran into this strange bug where I couldn’t access any assets i mean files are not displayed (accessing to collection was ok), even when logged in as the admin user.
At first, I thought it was an S3 storage issue, but everything looks fine on that side. Then I suspected Redis, but I didn’t see any errors there either.
The only error I found was in the Directus container logs:
[16:55:33.671] DEBUG: You don't have permission to access this.
err: {
"type": "",
"message": "You don't have permission to access this.",
"stack":
DirectusError: You don't have permission to access this.
at AssetsService.getAsset (file:///directus/node_modules/.pnpm/@directus+api@file+api_@types+node@22.13.8_@unhead+vue@1.11.20_vue@3.5.13_typescript@5.8.2____jigekj2vspo2admkgggvl64evi/node_modules/@directus/api/dist/services/assets.js:56:19)
at async file:///directus/node_modules/.pnpm/@directus+api@file+api_@types+node@22.13.8_@unhead+vue@1.11.20_vue@3.5.13_typescript@5.8.2____jigekj2vspo2admkgggvl64evi/node_modules/@directus/api/dist/controllers/assets.js:154:36
"name": "DirectusError",
"code": "FORBIDDEN",
"status": 403
}
[16:55:33] GET /assets/a77752fd-1e05-4a25-b4f0-12df09f3f856?key=system-medium-cover 403 15.1s
I had to restart my stack, and now everything works fine again.
I’m still trying to figure out what went wrong to avoid this in the future.
Docker Swarm Setup :
- Directus 11.7.2 official image
directus/directus:11.7.2
- Postgres
postgis/postgis:17-master
- Redis
registry.redict.io/redict:7-alpine
- Hetzner Object Storage (S3-compatible)
If you have any thoughts or ideas on what could have caused this, I’d appreciate the help!