Closed eyedeekay closed 5 years ago
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 .env
file here, please?
Also, which postgresql version are you using ?
It's not altered much, I tried to remove potentially sensitive information, hopefully it is still helpful.
HOSTNAME=localhost
LISTEN=:3000
ENV=dev
DB_HOST=db
DB_NAME=littr
DB_USER=postgres
DB_PASSWORD=postgrespassword
POSTGRESS_PASSWORD=postgrespassword
SESS_AUTH_KEY=16_chars_enc_key=
SESS_ENC_KEY=16_chars_enc_key+
SESS_BACKEND=cookie
DISABLE_SESSIONS=false
DISABLE_DOWNVOTING=false
DISABLE_VOTING=false
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 a8508c1eb30dcde) 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?