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

application_settings does not exist #3041

Open
zengjunjie1026 opened this issue Dec 3, 2024 · 1 comment
Open

application_settings does not exist #3041

zengjunjie1026 opened this issue Dec 3, 2024 · 1 comment

Comments

@zengjunjie1026
Copy link

postgresql_1 | 2024-12-03 13:53:36.348 UTC [95] ERROR: relation "application_settings" does not exist at character 491
postgresql_1 | 2024-12-03 13:53:36.348 UTC [95] STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod),
postgresql_1 | pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
postgresql_1 | c.collname, col_description(a.attrelid, a.attnum) AS comment,
postgresql_1 | attgenerated as attgenerated
postgresql_1 | FROM pg_attribute a
postgresql_1 | LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
postgresql_1 | LEFT JOIN pg_type t ON a.atttypid = t.oid
postgresql_1 | LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
postgresql_1 | WHERE a.attrelid = '"application_settings"'::regclass
postgresql_1 | AND a.attnum > 0 AND NOT a.attisdropped
postgresql_1 | ORDER BY a.attnum

@alexveli1
Copy link

If you are using docker compose, try:

Command Comment
docker compose down gitlab shutdown gitlab container
docker exec -it docker-gitlab-postgresql-1 bash -c "psql -U postgres" enter postgres container and Postgers
ALTER DATABASE gitlabhq_production OWNER TO gitlab; grant ownership on db to gitlab user
\q exit Postgres and container
sudo docker compose up -d gitlab start gitlab service

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