Skip to content

ssh not working with sqlite3 #4298

Description

@kermeat
  • 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]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gogs.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions