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

Manual install user creation script does not grant enough privileges for percentage based db rotation #575

Open
fredrik-dahlgren opened this issue Nov 22, 2024 · 1 comment
Assignees

Comments

@fredrik-dahlgren
Copy link

My homer install made using the manual install did not grant enough privileges to run percentage based db rotation. DBDropDays still worked as expected.

2024/11/22 10:02:00.096090 rotator.go:618: WARN pq: must be superuser or have privileges of pg_read_all_settings to examine "data_directory"
2024/11/22 10:02:00.096122 rotator.go:229: ERR Error getdb pq: must be superuser or have privileges of pg_read_all_settings to examine "data_directory"
2024/11/22 10:02:00.096137 rotator.go:267: ERR pq: must be superuser or have privileges of pg_read_all_settings to examine "data_directory"
2024/11/22 10:02:00.096208 rotator.go:518: ERR pq: must be superuser or have privileges of pg_read_all_settings to examine "data_directory"

I granted this permission and got a new error

2024/11/22 10:03:00.086734 rotator.go:618: WARN pq: must be superuser or have privileges of the pg_execute_server_program role to COPY to or from an external program
2024/11/22 10:03:00.086764 rotator.go:229: ERR Error getdb pq: must be superuser or have privileges of the pg_execute_server_program role to COPY to or from an external program
2024/11/22 10:03:00.086770 rotator.go:267: ERR pq: must be superuser or have privileges of the pg_execute_server_program role to COPY to or from an external program
2024/11/22 10:03:00.086832 rotator.go:518: ERR pq: must be superuser or have privileges of the pg_execute_server_program role to COPY to or from an external program

I then gave it superuser privileges and the issue was resolved.

Copy link

Your report is appreciated. Please star this repository to motivate its developers! ⭐

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