[x]
):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
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.
Most helpful comment
Got the same issue. In your app.ini if you change
PATH = data/gitea.db
byPATH = YOUR_FULL_PATH/data/gitea.db
, it'll works.