Gitea: error during dump command: Failed to dump database: no such table: user

Created on 5 Jan 2019  路  4Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.6.2 built with: bindata, sqlite
  • Git version: git version 2.11.0
  • Operating system: Debian
  • Database (use [x]):

    • [ ] PostgreSQL

    • [ ] MySQL

    • [ ] MSSQL

    • [X] SQLite

  • Can you reproduce the bug at https://try.gitea.io:

    • [ ] Yes (provide example URL)

    • [ ] No

    • [x] Not relevant

Description

git@gitea:~$` gitea dump -c /etc/gitea/app.ini
2019/01/05 20:38:55 Creating tmp work dir: /tmp/gitea-dump-249881383
2019/01/05 20:38:55 Dumping local repositories.../home/git/gitea-repositories
2019/01/05 20:38:56 Dumping database...
2019/01/05 20:38:56 Failed to dump database: no such table: user

kinbug

Most helpful comment

Got the same issue. In your app.ini if you change PATH = data/gitea.db by PATH = YOUR_FULL_PATH/data/gitea.db, it'll works.

All 4 comments

Confirm the issue also with version 1.7.0 (also using SQLite)

Got the same issue. In your app.ini if you change PATH = data/gitea.db by PATH = YOUR_FULL_PATH/data/gitea.db, it'll works.

Replacing relative path with absolute path in db.PATH does fix the issue for me.

As @jryan128 mentioned, absolute path works fine.
Also if you do a pushd/cd to the gitea workdir and run the backup command (without changing the db.PATH to absolute path in app.ini), the backup goes through fine.

Was this page helpful?
0 / 5 - 0 ratings