docusealco / docuseal

Open source DocuSign alternative. Create, fill, and sign digital documents ✍️
https://www.docuseal.com
GNU Affero General Public License v3.0
8.05k stars 535 forks source link

Issue with file upload in Docuseal on Docker/Synology #390

Open MounirBenkas opened 2 weeks ago

MounirBenkas commented 2 weeks ago

Description of the Issue

I’m experiencing a 500 error when uploading a file in Docuseal. The error occurs on the client side (browser console).

Environment:

Error Details: When trying to upload a file, I see a 500 error in the browser console. No additional logs are visible in the container output.

docker-compose.yml


services:
  app:
    depends_on:
      postgres:
        condition: service_healthy
    image: docuseal/docuseal:latest
    ports:
      - 3000:3000
    volumes:
      - /volume1/docker/docuseal/data:/docuseal
    environment:
      - FORCE_SSL={HOST}
      - DATABASE_URL=postgresql://postgres:postgres@postgres:5432/docuseal

  postgres:
    image: postgres:15
    volumes:
      - /volume1/docker/docuseal/pg_data:/var/lib/postgresql/data
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: docuseal
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      timeout: 5s
      retries: 5
omohokcoj commented 1 week ago

@MounirBenkas can you please share the error log from your installed docker app ?

MounirBenkas commented 1 week ago

@MounirBenkas can you please share the error log from your installed docker app ?

Hello,

Thank you for your response. Here are the logs from the Docker application when I attempt to upload a file:

2024/11/21 09:49:13    stderr    2024-11-21 08:49:13 +0000 Rack app ("POST /templates_upload" - (2a01:e0a:b52:94a0:74b1:a9cc:2420:d5ef)): #<RuntimeError: failed to get urandom>
omohokcoj commented 1 week ago

@MounirBenkas it seems like you run the app using podman (but not docker) in unprivileged move Need to run the app as root so that you can access /dev/urandom