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

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

Closed
MounirBenkas opened this issue Nov 18, 2024 · 3 comments
Closed

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

MounirBenkas opened this issue Nov 18, 2024 · 3 comments

Comments

@MounirBenkas
Copy link

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:

  • Docuseal version: latest
  • Docker platform: Synology NAS
  • PostgreSQL version: 15

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
Copy link
Contributor

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

@MounirBenkas
Copy link
Author

@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
Copy link
Contributor

@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

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