-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
We do not mention postgres admin is required, leading to confusing migration issues #5087
Comments
Looking at the error, it appears we partially initialized the DB schema and failed on the first migration we run. I don't know how that could possibly occur, so it is quite bizarre. One possibility I can think of, if you copied an existing DB into RDS, is that the copy was incomplete in some way (e.g. perhaps the If it was a fresh DB creation (which it sounds like it was?), then it would seem Sourcegraph began initializing the DB and was interrupted and got stuck here for some reason. That is odd, but we can correct it. This seems likely because I note the error message indicates it is failing on the very first schema migration we would normally apply -- indicating the DB schema isn't initialized at all yet. To correct this, please try:
After this, my expectation is that the error will go away after about 5 minutes (once the first restarted pod has had a chance to initialize the DB schema). |
Update: The user discovered that the problem was that the sourcegraph user role in postgres had been created without admin privileges (for security reasons) and that prevented the first migration's We should update our external DB docs to include mention of this. |
Taking this out of SWAT as the updating of the docs is not a p0 |
This didn't make 3.8. |
Dear all, This is your release captain speaking. 🚂🚂🚂 Branch cut for the 3.16 release is scheduled for tomorrow. Is this issue / PR going to make it in time? Please change the milestone accordingly. Thank you |
Reported by a customer:
Steps to reproduce:
And repro steps:
The text was updated successfully, but these errors were encountered: