Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with postgres #2

Open
timaschew opened this issue Oct 5, 2021 · 2 comments
Open

Issues with postgres #2

timaschew opened this issue Oct 5, 2021 · 2 comments

Comments

@timaschew
Copy link

First of all thank you for providing this detailed instructions! 🙏

I have some issues with the database.
I've created the postgres database successfully but when starting the matrix app it tells me

psycopg2.OperationalError: FATAL: database "synapsedb" does not exist

When I login via psql I see this

postgres=# \l
                             List of databases
   Name    |  Owner   | Encoding  | Collate | Ctype |   Access privileges
-----------+----------+-----------+---------+-------+-----------------------
 postgres  | postgres | SQL_ASCII | C       | C     |
 template0 | postgres | SQL_ASCII | C       | C     | =c/postgres          +
           |          |           |         |       | postgres=CTc/postgres
 template1 | postgres | SQL_ASCII | C       | C     | =c/postgres          +
           |          |           |         |       | postgres=CTc/postgres
(3 rows)

Which confirms that there is no database with the name synapsedb.

@p3nj
Copy link

p3nj commented Oct 19, 2021

this can be fixed by
$ psql -U postgres

CREATE DATABASE synapsedb 
WITH 
  LC_CTYPE='C'
  LC_COLLATE='C' 
  ENCODING='UTF8' 
  TEMPLATE=template0;

@timaschew
Copy link
Author

Thanks, I've also submitted a PR to the dokku postgres plugin to fix via dokku commands: dokku/dokku-postgres#240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants