Do you need to file an issue?
Describe the bug
When AUTH_ENABLED=true, non-admin users can log in successfully but cannot chat. Every session request returns 404 and the per-user workspace directory is never created on disk.
Steps to reproduce
- Deploy via docker-compose.ghcr.yml with AUTH_ENABLED=true
- Register first user via /register → becomes admin
- Create a second user via /admin/users
- Assign LLM model grant to the second user
- Log in as the second user in an incognito window
- Attempt to send a chat message
Expected Behavior
Non-admin user gets their own isolated workspace under multi-user// and can chat normally.
Related Module
Dashboard
Configuration Used
AUTH_ENABLED=true
NEXT_PUBLIC_AUTH_ENABLED=true
AUTH_SECRET=
LLM_BINDING=openai
LLM_MODEL=deepseek-v4-flash
LLM_HOST=https://api.deepseek.com/v1
EMBEDDING_BINDING=ollama
EMBEDDING_MODEL=nomic-embed-text
Logs and screenshots
Backend logs:
GET /api/v1/sessions/unified_XXXXXXXXX_XXXXXXXX HTTP/1.1" 404 Not Found
Disk check:
$ docker exec deeptutor find /app/data/multi-user -type f
(empty — directory never created)
Additional Information
- DeepTutor Version: v1.3.10
- Operating System: Ubuntu 24.04
- Deployment: Docker (docker-compose.ghcr.yml) on Hetzner CPX22
- Admin account works perfectly — chat, TutorBot, Knowledge all functional
- Auth/login/user management UI all work correctly
- Root cause traced to get_current_path_service() in multi_user/paths.py — get_current_user_or_none() returns None for non-admin users during session requests, falling back to single-user path service. The multi-user// workspace is never initialized.
Do you need to file an issue?
Describe the bug
When AUTH_ENABLED=true, non-admin users can log in successfully but cannot chat. Every session request returns 404 and the per-user workspace directory is never created on disk.
Steps to reproduce
Expected Behavior
Non-admin user gets their own isolated workspace under multi-user// and can chat normally.
Related Module
Dashboard
Configuration Used
AUTH_ENABLED=true
NEXT_PUBLIC_AUTH_ENABLED=true
AUTH_SECRET=
LLM_BINDING=openai
LLM_MODEL=deepseek-v4-flash
LLM_HOST=https://api.deepseek.com/v1
EMBEDDING_BINDING=ollama
EMBEDDING_MODEL=nomic-embed-text
Logs and screenshots
Backend logs:
GET /api/v1/sessions/unified_XXXXXXXXX_XXXXXXXX HTTP/1.1" 404 Not Found
Disk check:
$ docker exec deeptutor find /app/data/multi-user -type f
(empty — directory never created)
Additional Information