0
나는 내 집이 힘을 잃고, 그래서 갑자기 내 Gitlab 서버를 종료Gitlab 500 오류 : PG :: ConnectionBad
Gitlab-CE의 v8.11.3-ce.1을 실행하고 있습니다. 나는 다시 전원을 켜고 나에게 500 오류를 준다. 내가 sudo gitlab-ctl reconfigure
할 때 , 나는 로그에이납니다 :
# gitlab_rails['db_adapter'] = "postgresql"
# gitlab_rails['db_encoding'] = "unicode"
# gitlab_rails['db_collation'] = nil
# gitlab_rails['db_database'] = "gitlabhq_production"
# gitlab_rails['db_pool'] = 10
# gitlab_rails['db_username'] = "gitlab"
# gitlab_rails['db_password'] = nil
# gitlab_rails['db_host'] = nil
# gitlab_rails['db_port'] = 5432
# gitlab_rails['db_socket'] = nil
# gitlab_rails['db_sslmode'] = nil
# gitlab_rails['db_sslrootcert'] = nil
내가 모든 호스트 또는 아무것도 변경하지 않은 :
[execute] psql: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
여기 gitlab.rb
의 내 데이터베이스 섹션입니다. 도움.
데이터베이스가 실행 중이고 연결을 수락하고 있습니까? 오류 메시지는 수행 할 작업을 알려주며 아무도 여기에 도움을 줄 수 없습니다. –
@JakubKania 예, postgresql은'ps aux | grep postgresql' –
그리고 소켓을 사용하여 연결할 수 있는지 확인 했습니까? db_host가 설정되지 않아 포트가 아닌 소켓을 사용하는 것으로 보입니다. –