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

FOREIGN KEY constraint failed on large Gitlab repo #486

Closed
MichaelXavier opened this issue Apr 16, 2022 · 2 comments
Closed

FOREIGN KEY constraint failed on large Gitlab repo #486

MichaelXavier opened this issue Apr 16, 2022 · 2 comments

Comments

@MichaelXavier
Copy link

I'm trying to pull the MRs for a large, private gitlab repo. Forge takes a while because there's about 1500 MRs when you include closed issues. This takes quite a while but when it starts inserting them into the database I get "FOREIGN KEY constraint failed" [2 times]. I've tried running forge-reset-database but that didn't help. Unfortunately the repo is private so I'm not able to share a link. Are there any workarounds? I honestly would be fine if it didn't pull closed MRs or if it just made a best effort on saving to the database, especially if it could do it incrementally. Here's the trace I got from the error:

I'm a bit hesitant to produce the whole backtrace to avoid unintentionally leaking sensitive data but I can try to get any info that would help with debugging. Thanks!

@tarsius
Copy link
Member

tarsius commented Apr 24, 2022

Check if the kludge in #294 fixes it for you.

@tarsius
Copy link
Member

tarsius commented Apr 25, 2022

Closing in favor of #294 and #489.

@tarsius tarsius closed this as completed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants