Is the server running locally and acceptingĬonnections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"? PG::ConnectionBad: could not connect to server: No such file or directory When I try to stop gitlab so no users are accessing it with gitlab-ctl stop, it fails with the following error: $ sudo gitlab-rake gitlab:setup RAILS_ENV=production GITLAB_ROOT_PASSWORD="Pa$$w0rd!" DISABLE_DATABASE_ENVIRONMENT_CHECK=1 (See full trace by running task with -trace) opt/gitlab/embedded/bin/bundle:23:in `load' opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/setup.rake:5:in `block (2 levels) in ' opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/setup.rake:33:in `setup_db' : DROP DATABASE IF EXISTS "gitlabhq_production"Ĭouldn't drop database 'gitlabhq_production'ĪctiveRecord::StatementInvalid: PG::ObjectInUse: ERROR: database "gitlabhq_production" is being accessed by other users PG::ObjectInUse: ERROR: database "gitlabhq_production" is being accessed by other usersĭETAIL: There are 10 other sessions using the database. You will lose any previous data stored in the database. This will create the necessary database tables and seed the database. When I try the solution from this this post: $ sudo gitlab-rake gitlab:setup RAILS_ENV=production GITLAB_ROOT_PASSWORD="Pa$$w0rd!" DISABLE_DATABASE_ENVIRONMENT_CHECK=1 So, using gitlab-ctl reconfigure does not deploy these changes, as I have tested. However, as the documentation says, this option will not take affect after installation. I see the omnibus config option in the template: 506 # Change the initial default admin password and shared runner registration tokens.ĥ07 #! **Only applicable on initial setup, changing these settings after databaseĥ08 #! is created and seeded won't yield any change.**ĥ09 # gitlab_rails = "password" I need to specify an initial root password so first-time logins are not prompted with the password reset screen. Im trying to do an automated deployment of gitlab that has everything pre-configured.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |