-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error bootstrapping a database #24
Comments
Hi, thank you for trying my project, but for the moment the codebase is in relative flux as I'm trying to migrate to a different ActivityPub backend. I'll take a look as soon as possible to see what the problem is, but on a first look it might not be an error, just a debug message. Have you tried checking if bootstrap has actually created the tables ? |
Looks like it stops immediately after it creates the accounts table, none of the others are created. |
OK, thanx for double checking. Currently I'm busy with some work in another part of the project but keep an eye on this ticket, I'll have some updates soon (hopefully the weekend). |
Hi, so I've tested with latest master version and for me everything works fine out of the box: $ ./bin/bootstrap -overwrite -testing -seed
DEBU[0000] Connecting to postgres@localhost:5432//postgres
DEBU[0000] Connecting to postgres@localhost:5432//littr-test
DEBU[0000] Connecting to littr-test@localhost:5432//littr-test
DEBU[0000] Connecting to littr-test@localhost:5432//littr-test
DEBU[0000] Connecting to littr-test@localhost:5432//littr-test
DEBU[0000] Connecting to littr-test@localhost:5432//littr-test Can you dump your Also, which postgresql version are you using ? |
It's not altered much, I tried to remove potentially sensitive information, hopefully it is still helpful.
postgresql version is version 10.9-0ubuntu0-18.10.1 |
Nothing looks weird and postgresql 10 is fine. I'm not sure what the problem is, so I added a bit more debugging messages (in a8508c1) to the bootstrap command. Please try again and paste the output of the error. It should now include a "wrapped" field with the message of the underlying db problem. |
@eyedeekay I'm going to close this ticket as my ongoing effort is to move away from using a local database backend for littr.go in favour of using a generic ActivityPub service. This will make the bootstrapping command obsolete, or at least, heavily modify its functionality. You can track the progress for this task in PR #25. Sorry for this abrupt end :) |
I am trying to set up an instance of littr.go, but unfortunately I'm quite bad at debugging SQL-related issues. When I attempt to bootstrap the database, I get the following error:
Is this a bug, or am I missing something?
The text was updated successfully, but these errors were encountered: