Closed jancelin closed 3 years ago
I never use __random
for setting password: but I know that setting a passfile as LIZMAP_ADMIN_DEFAULT_PASSWORD_SOURCE
works (used on infrastructure)
So that's probably a Lizmap bug
@dmarteau even with a password file, Jelix won't let me in:
2021-07-08 12:38:06 138.102.217.118 warning 2021-07-08 12:38:06 [2] session_start(): open(/tmp/sess_8286u4hh746cujmsc8pei8b40b, O_RDWR) failed: Permission denied (13) /www/lib/jelix/core/jSession.class.php 99
2021-07-08 12:38:06 138.102.217.118 warning 2021-07-08 12:38:06 [2] session_start(): Failed to read session data: files (path: ) /www/lib/jelix/core/jSession.class.php 99
It seems that the problem come from volume access permissions: make sure that the mounted volumes are not owned by 'root'
yep! Docker automatically makes the directory and allocates them to the root.
sudo chown 1010:1010 ./my_volume/*
solves problems
Thanks!
we have fun at 3liz!
Docker automatically makes the directory and allocates them to the root.
FYI, always create mounted volumes with proper owner/permissions before lauching docker containers
Docker automatically makes the directory and allocates them to the root.
FYI, always create mounted volumes with proper owner/permissions before lauching docker containers
Thanks @dmarteau
What is the bug?
Hi I'm having problems with permission not allowing me to log in. Tested with lizmap-web-client 3.4 and 3.5 Here is the docker-compose part:
The docker log response is Ok:
and the errors.log when I try to connect:
an idea to solve this problem?
Steps to reproduce the issue
Lizmap version
3.4 & 3.5
QGIS desktop version
3.16.8
QGIS server version
3.20
Operating system
docker
Browsers
Firefox
Browsers version
89.0.2
Relevant log output