Closed clementnuss closed 5 months ago
I found my issue! it was actually a search_path
problem. In my (limited) understanding of postgresql, the search_path that was reported when connected with psql
might not have been the same as what was used when running the setup
step.
in any case, here's how to solve your issue and re-create the proper public
schema with the right permissions, and the right search_paths for your role (in my case asciinema
):
DROP SCHEMA asciinema cascade;
DROP SCHEMA public cascade;
CREATE SCHEMA IF NOT EXISTS public;
grant usage on schema public to public;
grant create on schema public to public;
\dn+ # check that everything is configured correctly, there should only be the public schema with non-empty access privileges
alter role asciinema IN DATABASE asciinema set search_path = "$user", public;
finally you can run a ./bin/server setup
from within your container (I typically started my container with entrypoint /bin/sleep infinity
to simplify debugging).
hope this helps 🙃
Describe the bug Upon a fresh installation of asciinema-server on an empty PGSQL DB version 14.10, I found myself stuck with the following error message:
I've found this other issue, where it was recommend to run a
setup
phase first, which I also did after cleaning up all schemas in my DB, and re-creating them.I might be doing something wrong, but at this stage I'm also suspecting that initial setup could be broken in the latest versions.
To Reproduce Steps to reproduce the behavior:
asciinema
).:latest
asciinema-serverExpected behavior On initial startup, all tables should be created without trouble.
Versions:
Additional context Add any other context about the problem here.
when running
\d
inpsql
, I get the following output (also including more output, might help)