Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
64dc6aa9
Commit
64dc6aa9
authored
May 29, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict in doc/administration/high_availability/database.md
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
70e9b713
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
doc/administration/high_availability/database.md
doc/administration/high_availability/database.md
+7
-13
No files found.
doc/administration/high_availability/database.md
View file @
64dc6aa9
...
@@ -216,7 +216,6 @@ On each Consul node perform the following:
...
@@ -216,7 +216,6 @@ On each Consul node perform the following:
1.
Edit
`/etc/gitlab/gitlab.rb`
replacing values noted in the
`# START user configuration`
section:
1.
Edit
`/etc/gitlab/gitlab.rb`
replacing values noted in the
`# START user configuration`
section:
```ruby
```ruby
<<<<<<< HEAD
# Disable all components except Consul
# Disable all components except Consul
roles ['consul_role']
roles ['consul_role']
...
@@ -271,11 +270,6 @@ On each database node perform the following:
...
@@ -271,11 +270,6 @@ On each database node perform the following:
```ruby
```ruby
# Disable all components except PostgreSQL and Repmgr and Consul
# Disable all components except PostgreSQL and Repmgr and Consul
=======
external_url 'https://gitlab.example.com'
# Disable all components except PostgreSQL
>>>>>>> upstream/master
roles ['postgres_role']
roles ['postgres_role']
# PostgreSQL configuration
# PostgreSQL configuration
...
@@ -545,8 +539,8 @@ gitlab-rake gitlab:db:configure
...
@@ -545,8 +539,8 @@ gitlab-rake gitlab:db:configure
> **Note**: If you encounter a `rake aborted!` error stating that PGBouncer is failing to connect to
> **Note**: If you encounter a `rake aborted!` error stating that PGBouncer is failing to connect to
PostgreSQL it may be that your PGBouncer node's IP address is missing from
PostgreSQL it may be that your PGBouncer node's IP address is missing from
PostgreSQL's
`trust_auth_cidr_addresses`
in
`gitlab.rb`
on your database nodes. See
PostgreSQL's
`trust_auth_cidr_addresses`
in
`gitlab.rb`
on your database nodes. See
[
PGBouncer error `ERROR: pgbouncer cannot connect to server`
](
#pgbouncer-error-error-pgbouncer-cannot-connect-to-server
)
[
PGBouncer error `ERROR: pgbouncer cannot connect to server`
](
#pgbouncer-error-error-pgbouncer-cannot-connect-to-server
)
in the Troubleshooting section before proceeding.
in the Troubleshooting section before proceeding.
#### Ensure GitLab is running
#### Ensure GitLab is running
...
@@ -980,25 +974,25 @@ On the consul server nodes, it is important to restart the consul service in a c
...
@@ -980,25 +974,25 @@ On the consul server nodes, it is important to restart the consul service in a c
#### PGBouncer error `ERROR: pgbouncer cannot connect to server`
#### PGBouncer error `ERROR: pgbouncer cannot connect to server`
You may get this error when running
`gitlab-rake gitlab:db:configure`
or you
You may get this error when running
`gitlab-rake gitlab:db:configure`
or you
may see the error in the PGBouncer log file.
may see the error in the PGBouncer log file.
```
```
PG::ConnectionBad: ERROR: pgbouncer cannot connect to server
PG::ConnectionBad: ERROR: pgbouncer cannot connect to server
```
```
The problem may be that your PGBouncer node's IP address is not included in the
The problem may be that your PGBouncer node's IP address is not included in the
`trust_auth_cidr_addresses`
setting in
`/etc/gitlab/gitlab.rb`
on the database nodes.
`trust_auth_cidr_addresses`
setting in
`/etc/gitlab/gitlab.rb`
on the database nodes.
You can confirm that this is the issue by checking the PostgreSQL log on the master
You can confirm that this is the issue by checking the PostgreSQL log on the master
database node. If you see the following error then
`trust_auth_cidr_addresses`
database node. If you see the following error then
`trust_auth_cidr_addresses`
is the problem.
is the problem.
```
```
2018-03-29_13:59:12.11776 FATAL: no pg_hba.conf entry for host "123.123.123.123", user "pgbouncer", database "gitlabhq_production", SSL off
2018-03-29_13:59:12.11776 FATAL: no pg_hba.conf entry for host "123.123.123.123", user "pgbouncer", database "gitlabhq_production", SSL off
```
```
To fix the problem, add the IP address to
`/etc/gitlab/gitlab.rb`
.
To fix the problem, add the IP address to
`/etc/gitlab/gitlab.rb`
.
```
```
postgresql['trust_auth_cidr_addresses'] = %w(123.123.123.123/32 <other_cidrs>)
postgresql['trust_auth_cidr_addresses'] = %w(123.123.123.123/32 <other_cidrs>)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment