sameersbn / sameersbn/docker-gitlab
Postgresql 15: ERROR: permission denied for schema public
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 8.1k
- Forks
- 2.1k
- Avg merge
- 17h 47m
- Merged PRs (30d)
- 7
Description
Trying to upgrade gitlab with pg15 shows error: ERROR: permission denied for schema public
Workaround;
root@gitlab-postgresql-6b74546cd5-9n2gl:/var/lib/postgresql# psql -h localhost -U postgres -d gitlab_production -W
Password: postgres
psql (15.3 (Ubuntu 15.3-1.pgdg22.04+1))
Type "help" for help.
gitlab_production=# GRANT ALL ON SCHEMA public TO gitlab;
GRANT
gitlab_production=# \q
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the GitLab upgrade against PostgreSQL 15 and compare the reported permission error with the documented workaround. Locate where the gitlab database user and public schema permissions are configured, then verify that a fresh or upgraded installation completes without requiring the manual GRANT command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, postgresql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100