- Gogs version (or commit ref): 0.10.18.0313
- Git version: 2.10.2
- Operating system: gentoo lxc container with aa_profile=unconfined, init - systemd
- Database (use
[x]):
- Can you reproduce the bug at https://try.gogs.io:
- Log gist (usually found in
log/gogs.log):
2017/03/15 23:49:18 [TRACE] Log Mode: File (Trace)
2017/03/15 23:49:18 [ INFO] Gogs Git Service 0.10.18.0313
2017/03/15 23:49:18 [ INFO] Cache Service Enabled
2017/03/15 23:49:18 [ INFO] Session Service Enabled
2017/03/15 23:49:18 [ INFO] Mail Service Enabled
2017/03/15 23:49:18 [ INFO] Git Version: 2.10.2
2017/03/15 23:49:18 [ INFO] SQLite3 Supported
2017/03/15 23:49:18 [ INFO] Run Mode: Development
2017/03/15 23:49:18 [TRACE] Doing: CheckRepoStats
2017/03/15 23:49:18 [ INFO] Listen: http://0.0.0.0:3000
2017/03/15 23:49:42 [TRACE] Session ID: b5bfe9af5e07e5b0
Description
When I try to use the ssh, with sqlite3 database, I get following error message:
Gogs: Internal error
SetEngine: Fail to connect to database: Fail to create directories: mkdir database: permission denied
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
serv.log:
2017/03/16 00:17:46 [FATAL] [...its/gogs/cmd/serv.go:87 setup()] SetEngine: Fail to connect to database: Fail to create directories: mkdir database: permission denied
2017/03/16 00:18:25 [FATAL] [...its/gogs/cmd/serv.go:87 setup()] SetEngine: Fail to connect to database: Fail to create directories: mkdir database: permission denied
Switching to PostgreSQL solves the problem, and ssh starts working fine.
[x]):log/gogs.log):Description
When I try to use the ssh, with sqlite3 database, I get following error message:
serv.log:
Switching to PostgreSQL solves the problem, and ssh starts working fine.