Closed
Description
- Gitea version: 1.1.2
- Git version: 2.13.0
- Operating system:
- Database:
- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes
- No
- Not relevant
- Log gist:
Description
- I have a Windows Service running Gitea under UserX.
- It seems Windows services are started in the same directory as the Service Manager, which is
System32
. - UserX is a normal user (unprivileged), except that he has Full Control over
C:\gitea
. - UserX has in its env. variables,
GITEA_WORK_DIR=c:/gitea
. - When running the service and navigating to Gitea's home URL, Gitea will return HTTP 500.
- There's no useful info about what's happening in the log file.
- With procmon, if I look at what's happening for Gitea.exe, I see that it's trying to write in
C:\Windows\System32\data\sessions
.
Notes
I've checked the source code, it doesn't seem like GITEA_WORK_DIR is affecting the session setting PROVIDER_CONFIG
if it's not explicitly set in app.ini
. This may be explain why it is trying to write in C:\Windows\System32
?