[GH-ISSUE #235] Error: P1010: User documenso was denied access on the database documenso.public #68

Closed
opened 2026-02-26 18:45:13 +03:00 by kerem · 1 comment
Owner

Originally created by @lexcorp on GitHub (Jul 24, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/235

After run this, I get an error: Error: P1010: User documenso was denied access on the database documenso.public

sudo npm run dx

documenso-monorepo@0.0.0 dx
npm install && run-s docker:compose-up db-migrate:dev

up to date, audited 705 packages in 2s

130 packages are looking for funding
run npm fund for details

7 moderate severity vulnerabilities

To address issues that do not require attention, run:
npm audit fix

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

documenso-monorepo@0.0.0 docker:compose-up
docker compose -p documenso -f ./docker/compose-without-app.yml up -d || docker-compose -p documenso -f ./docker/compose-without-app.yml up -d

[+] Running 2/0
✔ Container database Running 0.0s
✔ Container mailserver Running 0.0s

documenso-monorepo@0.0.0 db-migrate:dev
prisma migrate dev

Environment variables loaded from .env
Prisma schema loaded from packages/prisma/schema.prisma
Datasource "db": PostgreSQL database "documenso", schema "public" at "localhost:5432"

Error: P1010: User documenso was denied access on the database documenso.public
ERROR: "db-migrate:dev" exited with 1.

Originally created by @lexcorp on GitHub (Jul 24, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/235 After run this, I get an error: Error: P1010: User `documenso` was denied access on the database `documenso.public` ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ sudo npm run dx > documenso-monorepo@0.0.0 dx > npm install && run-s docker:compose-up db-migrate:dev up to date, audited 705 packages in 2s 130 packages are looking for funding run `npm fund` for details 7 moderate severity vulnerabilities To address issues that do not require attention, run: npm audit fix Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. > documenso-monorepo@0.0.0 docker:compose-up > docker compose -p documenso -f ./docker/compose-without-app.yml up -d || docker-compose -p documenso -f ./docker/compose-without-app.yml up -d [+] Running 2/0 ✔ Container database Running 0.0s ✔ Container mailserver Running 0.0s > documenso-monorepo@0.0.0 db-migrate:dev > prisma migrate dev Environment variables loaded from .env Prisma schema loaded from packages/prisma/schema.prisma Datasource "db": PostgreSQL database "documenso", schema "public" at "localhost:5432" Error: P1010: User `documenso` was denied access on the database `documenso.public` ERROR: "db-migrate:dev" exited with 1.
kerem closed this issue 2026-02-26 18:45:13 +03:00
Author
Owner

@ephraimduncan commented on GitHub (Jul 25, 2023):

It appears the problem might be related to the database variable defined in your environment variable.

With the current Docker compose setup, the database can be accessed at the following address:

DATABASE_URL=postgres://documenso:password@localhost:54320/documenso
# DATABASE_URL=postgres://documenso:password@127.0.0.1:54320/documenso
<!-- gh-comment-id:1648799328 --> @ephraimduncan commented on GitHub (Jul 25, 2023): It appears the problem might be related to the database variable defined in your environment variable. With the current Docker compose setup, the database can be accessed at the following address: ```sh DATABASE_URL=postgres://documenso:password@localhost:54320/documenso # DATABASE_URL=postgres://documenso:password@127.0.0.1:54320/documenso ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#68
No description provided.