Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
250f87d0
Unverified
Commit
250f87d0
authored
4 years ago
by
siroccal
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update postgres.md (#7119)
parent
dfa07822
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/7119.doc
+1
-0
1 addition, 0 deletions
changelog.d/7119.doc
docs/postgres.md
+27
-1
27 additions, 1 deletion
docs/postgres.md
with
28 additions
and
1 deletion
changelog.d/7119.doc
0 → 100644
+
1
−
0
View file @
250f87d0
Update postgres docs with login troubleshooting information.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/postgres.md
+
27
−
1
View file @
250f87d0
...
...
@@ -61,7 +61,33 @@ Note that the PostgreSQL database *must* have the correct encoding set
You may need to enable password authentication so
`synapse_user`
can
connect to the database. See
<https://www.postgresql.org/docs/11/auth-pg-hba-conf.html>
.
<https://www.postgresql.org/docs/current/auth-pg-hba-conf.html>
.
If you get an error along the lines of
`FATAL: Ident authentication failed for
user "synapse_user"`
, you may need to use an authentication method other than
`ident`
:
*
If the
`synapse_user`
user has a password, add the password to the
`database:`
section of
`homeserver.yaml`
. Then add the following to
`pg_hba.conf`
:
```
host synapse synapse_user ::1/128 md5 # or `scram-sha-256` instead of `md5` if you use that
```
*
If the
`synapse_user`
user does not have a password, then a password doesn't
have to be added to
`homeserver.yaml`
. But the following does need to be added
to
`pg_hba.conf`
:
```
host synapse synapse_user ::1/128 trust
```
Note that line order matters in
`pg_hba.conf`
, so make sure that if you do add a
new line, it is inserted before:
```
host all all ::1/128 ident
```
### Fixing incorrect `COLLATE` or `CTYPE`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment