Hi everybody,
I have a problem I try to figure out for some days now w/o success. Maybe I miss something. So hopefully you can give me some hints.
Here some facts first:
- Gitea 1.21.3
- Running in Docker on Ubuntu VM
- Deployed via docker-compose (standalone)
Logging to the console is working → can be accessed e.g. via Portainer.
In addition I configured gitea via app.ini to also use logging to files to have more granular control over log levels etc.
Here the app.ini lines for logging
[log]
ROOT_PATH = /data/logs
MODE = file,console
LEVEL = Info
ENABLE_SSH_LOG = true
logger.router.MODE = ,
logger.xorm.MODE = db-file
logger.access.MODE = access-file
[log.db-file]
MODE = file
LEVEL = Info
STACKTRACE_LEVEL = Critical
FILE_NAME = db.log
FLAGS = date,time,medfile,shortfuncname,level
[log.access-file]
MODE = file
LEVEL = Info
STACKTRACE_LEVEL = Critical
FILE_NAME = access.log
FLAGS = date,time,medfile,shortfuncname,level
The logging root path is linked via bind-mount in the compose file to my commonly used docker logfile share (working with other containers w/o issues)
volumes:
- data:/data
- ./../_logs/gitea:/data/logs
When running the container I can verify that the bind mount is working
- open terminal inside the container
- go to /data/logs
- touch test.txt
- file is created and can be seen on the host file system
So it seems the bind is working and also permissions should be ok. Nevertheless gitea is not creating any log file in this directory.
Any ideas what I’m missing?
Thanks a lot in advance
Sebastian