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

Crashes during initial setup with PG 16 dbs #8648

Closed
4 tasks done
Lysholm opened this issue Mar 7, 2024 · 5 comments
Closed
4 tasks done

Crashes during initial setup with PG 16 dbs #8648

Lysholm opened this issue Mar 7, 2024 · 5 comments
Labels
enhancement Requests for enhancements of existing stuff. fixed Bugs that are fixed (in a coming release).

Comments

@Lysholm
Copy link

Lysholm commented Mar 7, 2024

Support guidelines

I've found a bug and checked that ...

Description

Since PG 15 the 'public' schema is without grants on them by default resulting in the initial setup failing.

This can be worked around by having a super user grant those necessary privileges, but in security conscious setups (clod provided or default percona/pg-db deployment ie.) that's not viable.

Changing the default schema in firefly would be ideal but I guess that might be a bit of an unkind upgrade. Documenting the limitation and how to use the env variable added with #5503 would be nice. I can do a PR if you give me a hint where you'd prefer it documented.

Debug information

Don't get to this point service never readies up.

Expected behaviour

No response

Steps to reproduce

  1. Install PG 16
  2. Try starting latest firefly

Additional info

No response

@JC5
Copy link
Member

JC5 commented Mar 8, 2024

I have no idea what you're talking about, sorry.

@Lysholm
Copy link
Author

Lysholm commented Mar 8, 2024

@JC5 PGSQL_SCHEMA is set to 'public' by default. Since PG 15 only a user with "SUPERUSER" role can write there, unless specifically granted access on that schema.

@JC5
Copy link
Member

JC5 commented Mar 8, 2024

Ah, postgresql, got it!

Let me think about it. Perhaps a note in .env.example is enough.

@JC5
Copy link
Member

JC5 commented Mar 9, 2024

If you could extend this comment, that would be perfect.

https://github.com/firefly-iii/firefly-iii/blob/main/.env.example#L114

@JC5 JC5 added the enhancement Requests for enhancements of existing stuff. label Mar 9, 2024
@JC5 JC5 added this to the firefly-iii-v6.3.0 milestone Mar 9, 2024
Copy link
Contributor

github-actions bot commented Mar 9, 2024

Hi there!

This is an automatic reply. Share and enjoy

This issue has been marked as an enhancement. The requested enhancement to an existing feature will become a part of Firefly III or the data importer in due course.

If you come across this issue, please be aware there is NO need to reply with "+1" or "me too" or "I need this too" or whatever. Such comments are not helpful, and do not influence the roadmap. Your comment may be 💀 deleted. You can subscribe to this issue to get updates.

Thank you for your contributions.

@JC5 JC5 added the fixed Bugs that are fixed (in a coming release). label Mar 26, 2024
@JC5 JC5 modified the milestones: firefly-iii-v6.3.0, firefly-iii-v6.1.12, firefly-iii-v6.1.13 Mar 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests for enhancements of existing stuff. fixed Bugs that are fixed (in a coming release).
Projects
Status: To do
Development

No branches or pull requests

2 participants