[GH-ISSUE #1869] Setup issue #543

Closed
opened 2026-02-26 18:47:30 +03:00 by kerem · 5 comments
Owner

Originally created by @Eniac22 on GitHub (Jun 28, 2025).
Original GitHub issue: https://github.com/documenso/documenso/issues/1869

Issue Description

Im trying to deploy the repo into my server for some testing purpose, I made these steps

git clone https://github.com/documenso/documenso.git
npm install
cp .env.example .env
npm run dx
npm run d

This is my docker image file

name: documenso-development

services:
  database:
    image: postgres:15
    container_name: database
    volumes:
      - documenso_database:/var/lib/postgresql/data
    healthcheck:
      test: ['CMD-SHELL', 'pg_isready -U documenso']
      interval: 10s
      timeout: 5s
      retries: 5
    environment:
      - POSTGRES_USER=documenso
      - POSTGRES_PASSWORD=password
      - POSTGRES_DB=documenso
    ports:
      - 54320:5432

  inbucket:
    image: inbucket/inbucket
    container_name: mailserver
    ports:
      - 9005:9000
      - 2505:2500
      - 1105:1100

  minio:
    image: minio/minio
    container_name: minio
    ports:
      - 9002:9002
      - 9003:9001
    volumes:
      - minio:/data
    environment:
      MINIO_ROOT_USER: documenso
      MINIO_ROOT_PASSWORD: password
    entrypoint: sh
    command: -c 'mkdir -p /data/documenso && minio server /data --console-address ":9001" --address ":9002"'

  # documenso:
  #   image: documenso/documenso:latest
  #   container_name: documenso
  #   ports:
  #     - "9090:3000"
  #   environment:
  #     DATABASE_URL: postgres://documenso:password@database:5432/documenso
  #     MINIO_ROOT_USER: documenso
  #     MINIO_ROOT_PASSWORD: password
  #     MINIO_URL: http://minio:9002
  #     SMTP_URL: smtp://mailserver:2505
  #     NODE_ENV: production
  #   depends_on:
  #     - database
  #     - inbucket
  #     - minio

  documenso:
    image: documenso/documenso:latest
    container_name: documenso
    ports:
      - "9090:3000"
    environment:
      NODE_ENV: production

      # Database
      NEXT_PRIVATE_DATABASE_URL: postgres://documenso:password@database:5432/documenso
      NEXT_PRIVATE_DIRECT_DATABASE_URL: postgres://documenso:password@database:5432/documenso

      # MinIO
      MINIO_ROOT_USER: documenso
      MINIO_ROOT_PASSWORD: password
      MINIO_URL: http://minio:9002

      # Mail
      SMTP_URL: smtp://0943cff18dhhdjhsjdhbjs0544-user:5fdc9127e6dhjsbdjhsbjdhbj3dbd@sandbox.smtp.mailtrap.io:587

      # Required for Auth
      NEXTAUTH_SECRET: hbdjshcbjsdhbcjhsdbjchjdbcjhdsb
      NEXT_PUBLIC_WEBAPP_URL: "https://sign.spaceaiapp.com"
      # URL used by the web app to request itself (e.g. local background jobs)
      NEXT_PRIVATE_INTERNAL_WEBAPP_URL: "https://sign.spaceaiapp.com"
    depends_on:
      - database
      - inbucket
      - minio

volumes:
  minio:
  documenso_database:

docker compose -f docker/development/compose.yml up --build -d

The site was loaded but unable to register a new user.
Can anyone help.

Steps to Reproduce

No response

Expected Behavior

No response

Current Behavior

No response

Screenshots (optional)

No response

Operating System [e.g., Windows 10]

No response

Browser [e.g., Chrome, Firefox]

No response

Version [e.g., 2.0.1]

No response

Please check the boxes that apply to this issue report.

  • I have searched the existing issues to make sure this is not a duplicate.
  • I have provided steps to reproduce the issue.
  • I have included relevant environment information.
  • I have included any relevant screenshots.
  • I understand that this is a voluntary contribution and that there is no guarantee of resolution.
  • I want to work on creating a PR for this issue if approved
Originally created by @Eniac22 on GitHub (Jun 28, 2025). Original GitHub issue: https://github.com/documenso/documenso/issues/1869 ### Issue Description Im trying to deploy the repo into my server for some testing purpose, I made these steps git clone https://github.com/documenso/documenso.git npm install cp .env.example .env npm run dx npm run d This is my docker image file ``` name: documenso-development services: database: image: postgres:15 container_name: database volumes: - documenso_database:/var/lib/postgresql/data healthcheck: test: ['CMD-SHELL', 'pg_isready -U documenso'] interval: 10s timeout: 5s retries: 5 environment: - POSTGRES_USER=documenso - POSTGRES_PASSWORD=password - POSTGRES_DB=documenso ports: - 54320:5432 inbucket: image: inbucket/inbucket container_name: mailserver ports: - 9005:9000 - 2505:2500 - 1105:1100 minio: image: minio/minio container_name: minio ports: - 9002:9002 - 9003:9001 volumes: - minio:/data environment: MINIO_ROOT_USER: documenso MINIO_ROOT_PASSWORD: password entrypoint: sh command: -c 'mkdir -p /data/documenso && minio server /data --console-address ":9001" --address ":9002"' # documenso: # image: documenso/documenso:latest # container_name: documenso # ports: # - "9090:3000" # environment: # DATABASE_URL: postgres://documenso:password@database:5432/documenso # MINIO_ROOT_USER: documenso # MINIO_ROOT_PASSWORD: password # MINIO_URL: http://minio:9002 # SMTP_URL: smtp://mailserver:2505 # NODE_ENV: production # depends_on: # - database # - inbucket # - minio documenso: image: documenso/documenso:latest container_name: documenso ports: - "9090:3000" environment: NODE_ENV: production # Database NEXT_PRIVATE_DATABASE_URL: postgres://documenso:password@database:5432/documenso NEXT_PRIVATE_DIRECT_DATABASE_URL: postgres://documenso:password@database:5432/documenso # MinIO MINIO_ROOT_USER: documenso MINIO_ROOT_PASSWORD: password MINIO_URL: http://minio:9002 # Mail SMTP_URL: smtp://0943cff18dhhdjhsjdhbjs0544-user:5fdc9127e6dhjsbdjhsbjdhbj3dbd@sandbox.smtp.mailtrap.io:587 # Required for Auth NEXTAUTH_SECRET: hbdjshcbjsdhbcjhsdbjchjdbcjhdsb NEXT_PUBLIC_WEBAPP_URL: "https://sign.spaceaiapp.com" # URL used by the web app to request itself (e.g. local background jobs) NEXT_PRIVATE_INTERNAL_WEBAPP_URL: "https://sign.spaceaiapp.com" depends_on: - database - inbucket - minio volumes: minio: documenso_database: ``` docker compose -f docker/development/compose.yml up --build -d The site was loaded but unable to register a new user. Can anyone help. ### Steps to Reproduce _No response_ ### Expected Behavior _No response_ ### Current Behavior _No response_ ### Screenshots (optional) _No response_ ### Operating System [e.g., Windows 10] _No response_ ### Browser [e.g., Chrome, Firefox] _No response_ ### Version [e.g., 2.0.1] _No response_ ### Please check the boxes that apply to this issue report. - [ ] I have searched the existing issues to make sure this is not a duplicate. - [ ] I have provided steps to reproduce the issue. - [ ] I have included relevant environment information. - [ ] I have included any relevant screenshots. - [ ] I understand that this is a voluntary contribution and that there is no guarantee of resolution. - [ ] I want to work on creating a PR for this issue if approved
kerem 2026-02-26 18:47:30 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 28, 2025):

Thank you for opening your first issue and for being a part of the open signing revolution!

One of our team members will review it and get back to you as soon as it possible 💚

Meanwhile, please feel free to hop into our community in Discord

<!-- gh-comment-id:3015458211 --> @github-actions[bot] commented on GitHub (Jun 28, 2025): Thank you for opening your first issue and for being a part of the open signing revolution! <br /> One of our team members will review it and get back to you as soon as it possible 💚 <br /> Meanwhile, please feel free to hop into our community in [Discord](https://documen.so/discord)
Author
Owner

@ephraimduncan commented on GitHub (Jul 12, 2025):

@Eniac22 what is the exact errror you're getting?

<!-- gh-comment-id:3064714166 --> @ephraimduncan commented on GitHub (Jul 12, 2025): @Eniac22 what is the exact errror you're getting?
Author
Owner

@sasokr commented on GitHub (Jul 27, 2025):

The site was loaded but unable to register a new user.
Can anyone help.

I am getting the same issue when trying to register a new user and the error is:

[
    {
        "error": {
            "json": {
                "message": "We were unable to create your account. Please review the information you provided and try again.",
                "code": -32600,
                "data": {
                    "code": "BAD_REQUEST",
                    "httpStatus": 400,
                    "path": "auth.signup"
                }
            }
        }
    }
]
<!-- gh-comment-id:3124677151 --> @sasokr commented on GitHub (Jul 27, 2025): > The site was loaded but unable to register a new user. Can anyone help. I am getting the same issue when trying to register a new user and the error is: ```` [ { "error": { "json": { "message": "We were unable to create your account. Please review the information you provided and try again.", "code": -32600, "data": { "code": "BAD_REQUEST", "httpStatus": 400, "path": "auth.signup" } } } } ]
Author
Owner

@nicgentile commented on GitHub (Aug 2, 2025):

@ephraimduncan @Eniac22 I'm in the same boat. Same error.

Running production with nginx proxy.

<!-- gh-comment-id:3146474934 --> @nicgentile commented on GitHub (Aug 2, 2025): @ephraimduncan @Eniac22 I'm in the same boat. Same error. Running production with nginx proxy.
Author
Owner

@ephraimduncan commented on GitHub (Aug 23, 2025):

The problem is that your Docker configuration is missing some required environment variables that Documenso needs to function properly.

You are missing the required encryption keys NEXT_PRIVATE_ENCRYPTION_KEY and NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY that Documenso uses for user data encryption and authentication.

<!-- gh-comment-id:3216837535 --> @ephraimduncan commented on GitHub (Aug 23, 2025): The problem is that your Docker configuration is missing some required environment variables that Documenso needs to function properly. You are missing the required encryption keys `NEXT_PRIVATE_ENCRYPTION_KEY` and `NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY` that Documenso uses for user data encryption and authentication.
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#543
No description provided.