Skip to content

[BUG] Entity is too large when trying to upload a backup #159

@eararipe

Description

@eararipe

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When trying to upload a backup with 18mb, the server responded with a status of 413 (Request Entity Too Large) but shows no error in the UI on the initial setup guide

Expected Behavior

Upload and restore

Steps To Reproduce

Have a backup with 18mb, setup a new install, try to restore from the backup

Environment

CPU architecture

x86-64

Docker creation

services:
  unifi-db:
      image: docker.io/mongo:8.0.4-rc0
      container_name: unifi-db
      environment:
        - MONGO_INITDB_ROOT_USERNAME=root
        - MONGO_INITDB_ROOT_PASSWORD=1234
        - MONGO_USER=unifi
        - MONGO_PASS=1234
        - MONGO_DBNAME=unifi
        - MONGO_AUTHSOURCE=admin
      volumes:
        - db:/data/db
        - /home/docker/unifi/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
      restart: unless-stopped

  unifi-app:
    depends_on:
      - unifi-db
    image: lscr.io/linuxserver/unifi-network-application:latest
    container_name: unifi-app
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - MONGO_USER=unifi
      - MONGO_PASS=1234
      - MONGO_HOST=unifi-db
      - MONGO_PORT=27017
      - MONGO_DBNAME=unifi
      - MONGO_AUTHSOURCE=admin
    volumes:
      - data:/config
    ports:
      - 8443:8443
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
    restart: unless-stopped

volumes:
  db:
  data:

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: 9.3.45-ls99
Build-date: 2025-07-31T15:03:35+00:00
───────────────────────────────────────

*** Waiting for MONGO_HOST unifi-db to be reachable. ***
Generating 4,096 bit RSA key pair and self-signed certificate (SHA384withRSA) with a validity of 3,650 days
	for: CN=unifi
[custom-init] No custom files found, skipping...
[ls.io-init] done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions