Hey, On a fresh installation of LakeFS, I am gett...
# help
m
Hey, On a fresh installation of LakeFS, I am getting this error while trying to setup the initial admin user.
Copy code
│ Failed to setup DB: Dirty database version 1. Fix and force version.                                     │
The
postgres
version is
aurora-postgres:12.8
and the error on the setup UI says
Unknown
Could you please help me with what I might be missing here? Thanks
a
Ouch, that sounds nasty. But, AFAIK this is only possible if the database is not fresh. Perhaps there is already a database with that name on that Aurora cluster? If so you could just change the name of the database to use. Otherwise we need to start digging. 🚜 Could you try the following, please? 1. DROP the database (make sure it's empty first, of course; e.g. run psql and then
\dt+
on the database...). 2. Run
lakefs setup
from the CLI. 3. Post the logs here (if it fails). THANKS!
m
Thanks for an early response, I tried removing all the tables from that db with no success. Will try the above steps now and will keep you posted. ✌🏻
a
Thanks for an early response, I tried removing all the tables from that db with no success.
Unfortunately a database is more than just its tables: there are indices, sequence numbers, and probably a few more things I forgot about. Best drop it or create a new one with a new name. Sorry.
Or
lakefs migrate down
might be able to help you... if it still supports migrating to version 0. (It's a potential lethal instrument, so while it is really good at destroying databases, I am not happy to recommend it for anything.)
m
Well the good news is that it's a fresh installation, so i dont mind destroying or dropping stuff. Will try the above suggestions soon, will keep you posted how it went 🙂
a
THANKS!
m
@Ariel Shaqed (Scolnicov) I created a new db within the cluster and pointed lakefs to that, which solved the issue. Thanks for the help, really appreciate it 🎉
sunglasses lakefs 3