Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Error when running postgres database on Heroku #7

Open
furfetched opened this issue Oct 16, 2020 · 1 comment
Open

Error when running postgres database on Heroku #7

furfetched opened this issue Oct 16, 2020 · 1 comment

Comments

@furfetched
Copy link

furfetched commented Oct 16, 2020

When running node dist/index.js (using the Heroku CLI), I get this error:
(node:12) UnhandledPromiseRejectionWarning: DriverException: permission denied for database "postgres" at PostgreSqlExceptionConverter.convertException (/app/bot/node_modules/@mikro-orm/core/platforms/ExceptionConverter.js:8:16) at PostgreSqlExceptionConverter.convertException (/app/bot/node_modules/@mikro-orm/postgresql/PostgreSqlExceptionConverter.js:40:22) at PostgreSqlDriver.convertException (/app/bot/node_modules/@mikro-orm/core/drivers/DatabaseDriver.js:160:54) at /app/bot/node_modules/@mikro-orm/core/drivers/DatabaseDriver.js:164:24 at processTicksAndRejections (internal/process/task_queues.js:97:5) at async PostgreSqlDriver.find (/app/bot/node_modules/@mikro-orm/knex/AbstractSqlDriver.js:42:24) at async SqlEntityManager.find (/app/bot/node_modules/@mikro-orm/core/EntityManager.js:75:25) at async Object.cleanUpOldSessions (/app/bot/dist/actions.js:80:22) at async /app/bot/dist/index.js:26:5
The database url in .env is correct though.

@DarrenAlex
Copy link
Contributor

Did you set the DATABASE_URL password to your PostgreSQL password? That should be your problem.
You can change the password by running psql and typing \password then follow the instructions.

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

No branches or pull requests

2 participants