Skip to content
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

BTCPayserver on Postgres 15: Permission denied for schema public #657

Closed
irusensei opened this issue Oct 26, 2023 · 2 comments
Closed

BTCPayserver on Postgres 15: Permission denied for schema public #657

irusensei opened this issue Oct 26, 2023 · 2 comments

Comments

@irusensei
Copy link

Hi. Setting PostgreSQL to 15 causes BTCPayserver and NBXplorer to throw the following error:

Exception data:
    Severity: ERROR
    SqlState: 42501
    MessageText: permission denied for schema public.
    Position: 14
    File: aclchk.c
    Line: 3650
    Routine: aclcheck_error    

Version 15 revoked permissions for all users https://www.postgresql.org/about/news/postgresql-15-released-2526. It seems version 14 allows any user to create a table.

If I'm not mistaken setting system.stateVersion to some recent will default to version 15.

I've tried grant all on schema public to the nbxplorer and BTCPayServer users but the error persists. A bit confused about this since the module specifically states that tables and users are to be created.

@erikarvstedt
Copy link
Collaborator

This issue only appears on nixos-unstable which isn't supported by nix-bitcoin.
We'll tackle the upgrade to postgresql 15 in the upcoming 23.11 release.
See NixOS/nixpkgs#254268 (comment) and the following comment for more info.

@erikarvstedt erikarvstedt closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
@erikarvstedt
Copy link
Collaborator

btcpayserver support for postgresql 15 is now implemented in #662.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants