sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.88k stars 2.14k forks source link

Permission denied to create extension "btree_gist" wehn firstrun #2235

Closed yuanvi closed 4 years ago

yuanvi commented 4 years ago

Setting up GitLab for firstrun. Please be patient, this could take a while... 2020-09-28 01:55:49,032 CRIT Supervisor running as root (no user in config file) 2020-09-28 01:55:49,032 INFO Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing 2020-09-28 01:55:49,032 INFO Included extra file "/etc/supervisor/conf.d/gitaly.conf" during parsing 2020-09-28 01:55:49,032 INFO Included extra file "/etc/supervisor/conf.d/gitlab-workhorse.conf" during parsing 2020-09-28 01:55:49,032 INFO Included extra file "/etc/supervisor/conf.d/groups.conf" during parsing 2020-09-28 01:55:49,032 INFO Included extra file "/etc/supervisor/conf.d/mail_room.conf" during parsing 2020-09-28 01:55:49,032 INFO Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing 2020-09-28 01:55:49,033 INFO Included extra file "/etc/supervisor/conf.d/puma.conf" during parsing 2020-09-28 01:55:49,033 INFO Included extra file "/etc/supervisor/conf.d/sidekiq.conf" during parsing 2020-09-28 01:55:49,033 INFO Included extra file "/etc/supervisor/conf.d/sshd.conf" during parsing 2020-09-28 01:55:49,040 INFO RPC interface 'supervisor' initialized 2020-09-28 01:55:49,041 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2020-09-28 01:55:49,041 INFO supervisord started with pid 604 2020-09-28 01:55:50,043 INFO spawned: 'gitaly' with pid 619 2020-09-28 01:55:50,044 INFO spawned: 'puma' with pid 620 2020-09-28 01:55:50,046 INFO spawned: 'gitlab-workhorse' with pid 621 2020-09-28 01:55:50,048 INFO spawned: 'sidekiq' with pid 622 2020-09-28 01:55:50,049 INFO spawned: 'nginx' with pid 623 2020-09-28 01:55:50,050 INFO spawned: 'sshd' with pid 624 2020-09-28 01:55:50,052 INFO spawned: 'cron' with pid 625 2020-09-28 01:55:51,402 INFO success: gitaly entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2020-09-28 01:55:51,402 INFO success: puma entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2020-09-28 01:55:51,402 INFO success: gitlab-workhorse entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2020-09-28 01:55:51,402 INFO success: sidekiq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2020-09-28 01:55:51,403 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2020-09-28 01:55:51,403 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2020-09-28 01:55:51,403 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2020-09-28 01:56:12,593 INFO exited: sidekiq (exit status 1; not expected) 2020-09-28 01:56:13,282 INFO spawned: 'sidekiq' with pid 737 2020-09-28 01:56:13,463 INFO exited: puma (exit status 1; not expected) 2020-09-28 01:56:14,353 INFO spawned: 'puma' with pid 738 2020-09-28 01:56:14,353 INFO success: sidekiq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2020-09-28 01:56:15,355 INFO success: puma entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) Database 'gitlabhq_production' already exists psql:/home/git/gitlab/db/structure.sql:11: ERROR: permission denied to create extension "btree_gist" HINT: Must be superuser to create this extension. rake aborted! failed to execute: psql -v ON_ERROR_STOP=1 -q -X -f /home/git/gitlab/db/structure.sql gitlabhq_production

Please check the output above for any errors and make sure that psql is installed in your PATH and has proper permissions.

yuanvi commented 4 years ago

Sorry, i find another same issue.