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

(Bug report) Unable to store attachments larger than 250 MB #4718

Open
miltuss opened this issue Mar 29, 2024 · 5 comments
Open

(Bug report) Unable to store attachments larger than 250 MB #4718

miltuss opened this issue Mar 29, 2024 · 5 comments

Comments

@miltuss
Copy link

miltuss commented Mar 29, 2024

Trilium Version

0.63.5

What operating system are you using?

Other Linux

What is your setup?

Server access only

Operating System Version

Debian server

Description

Hello, I use trilium (docker) only with the web client on my server, but I cannot disable the file size limit set to 250 MB. However, I added the following environment variable in the docker-compose file
- TRILIUM_NO_UPLOAD_LIMIT=1
I also added it to the trilium config.ini file, but the 250MB limit has still not been deactivated!

How to disable this restriction?

Error logs

No response

@Nriver
Copy link
Contributor

Nriver commented Mar 30, 2024

It works on my machine. I guess you did not set it right.

Just tested a big file, works fine.
snipaste20240330_184721

Do you have something like Nginx in the front? There is also a upload limit in it.

@miltuss
Copy link
Author

miltuss commented Mar 30, 2024

Do you have something like Nginx in the front? There is also a upload limit in it.

I don't use reverse proxy. Here is the docker compose file that I use :

version: '2.1'
services:
  trilium:
    image: zadam/trilium
    container_name: trilium
    networks:
        work:
            ipv4_address: 10.100.0.100
    environment:
      - TRILIUM_DATA_DIR=/home/node/trilium-data
      - TRILIUM_NO_UPLOAD_LIMIT=1
    ports:
      - 7000:8080
    volumes:
      - /data/trilium:/home/node/trilium-data
    restart: always

networks:
    work:
        external: true

Is there something I did wrong?

@miltuss
Copy link
Author

miltuss commented Mar 30, 2024

I noticed that when the TRILIUM_NO_UPLOAD_LIMIT environment variable is used with the value "1", the limit moves from 250MB to 410MB. I managed to store 405 MB files but I couldn't store more than that.

Sélection_027

Is it normal ?

Is there a way to disable this limit entirely?

@Nriver
Copy link
Contributor

Nriver commented Apr 1, 2024

I've got an error message when upload with a 1GB file ERROR: Import failed with following error: 'The bound string, buffer, or bigint is too big'. I suppose this is not Trilium designed for.

@zadam
Copy link
Owner

zadam commented May 5, 2024

Is there a way to disable this limit entirely?

No. Trilium is not designed as a "huge file storage".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants