Closed jt89 closed 4 weeks ago
Ok, so the actual error message seems to be this (just formatted for better readability):
with new_values (sid, expired, sess) as ( values ($1, $2::timestamp with time zone, $3::json)),
upsert as ( update "session" cs set sid = nv.sid, expired = nv.expired, sess = nv.sess
from new_values nv where cs.sid = nv.sid returning cs.* )
insert into "session" (sid, expired, sess) select sid, expired, sess
from new_values where not exists (select 1 from upsert up where up.sid = new_values.sid)
- relation "session" does not exist
I'm interested in your Node.js and Postgres Versions.
But most importantly, you have to run the database migrations to actually create all those database tables that are required. Please do this:
npm run migrate:latest
(It runs the migration files in the migrations
folder.)
Hey, the node version is v12.22.12 and it's postgresql-9.4. I never ran the migrate:latest. The knexfile.js had to be altered - it does not take it from env vars correctly. Now it worked. May I update the doc a little and file a PR for it? thx a lot for helping out!
Now it worked.
Great to hear!
May I update the doc a little and file a PR for it?
Yeah, the Readme seems to be a bit outdated. You can help me here if you like.
I updated the README quite a bit: https://github.com/syxolk/euro2024/commit/a5bbb60f970856214a5876e0094119b9f8c8ba71
Hey @syxolk , qatar is approaching and I love your app. But now for the first time since 2016 i cannot get it running. Tried it w ubuntu and on centos (where it ran before). I cleared db and had a new one in the end foreach deployment. this knex thingy causes the main issues I assume. Find attached some stacktraces, they may help...
thanks a lot for looking into it. BR