Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dump stops after first line #8941

Closed
2 of 7 tasks
michaelboke opened this issue Nov 13, 2019 · 2 comments
Closed
2 of 7 tasks

dump stops after first line #8941

michaelboke opened this issue Nov 13, 2019 · 2 comments

Comments

@michaelboke
Copy link

  • Gitea version (or commit ref): 1.11.0+dev-218-g4b3fc7493 built with GNU Make 4.2.1, go1.13.4 : bindata, sqlite, sqlite_unlock_notify
  • Git version: 2.22.0
  • Operating system: Linux / docker
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I am trying to make a dump for a backup of my database and repository but the dump command stops right after the first line of output.

bash-5.0$ gitea dump -V
2019/11/12 23:57:15 ...dules/setting/git.go:87:newGit() [I] Git Version: 2.22.0, Wire Protocol Version 2 Enabled
bash-5.0$ 

No backup file or whatsoever is created. I was actually on the way of exporting the data and migrate to postgres. Some help or pointers would be appreciated.

@techknowlogick
Copy link
Member

Could you attempt using the -c flag on this command and pass the full path to the config file? This seems like you are exec-ing into the docker container, and by doing so you have a different workingdir.

@michaelboke
Copy link
Author

No i do think i got it already, i checked out the code and started debugging with breakpoints.

It seems that a migration went wrong and did not added some columns to the sqlite database, but for some reason it was reporting it was on version 109. So i put this back to 107 and run the migrations again. Now it is working and exporting again.

The funny part is that i did not get the error messages output, although in the code there are some lines like log.Fatalf but those are not output to the console. (seems to be in the log file)

But thanks, will close this one now

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants