-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Not able to retrieve files 25MB or more #80
Comments
Could you share the config? |
I'm getting the same issue. I've uploaded a 27MB file and I get a Could it perhaps be a browser/Traefik configuration issue as well? Just throwing out ideas.
Anyway. Here's my configuration and I'm running Traefik in front of it. cryptgeon-redis:
image: redis:7-alpine
restart: unless-stopped
container_name: cryptgeon-redis
networks: [internal]
volumes:
- /docker/site/cryptgeon/redis:/data
command: redis-server --maxmemory 8gb --maxmemory-policy allkeys-lru
cryptgeon:
image: cupcakearmy/cryptgeon:latest
restart: unless-stopped
container_name: cryptgeon
networks: [internal, public]
environment:
REDIS: redis://cryptgeon-redis/
SIZE_LIMIT: 50 MiB
MAX_VIEWS: 100
MAX_EXPIRATION: 1440
ALLOW_ADVANCED: true
ID_LENGTH: 32
VERBOSITY: warn I apologize if I've configured something incorrectly, I just set this up tonight on my host. I will say, it was really easy to set up. The only other complaint I have is the documentation for setting up Traefik seems to be very scattered and inconsistent. The Github repo and Docker hub pages seem to give different instructions, but thats unrelated to this issue. |
Same issue here (same parameters, I even bring the size limit up to 500MiB without any change): With a file <=25Mb:
With a bigger file:
My web server has no file size limit and my browser shows no errors. It seems to be on Cryptgeon's side. |
Unfortunately I also have this issue. The only thing I can add for now is that it seems to be browser related. With Firefox (on Android and Windows) I get the same error message when trying to open the message. With Chrome on Windows I don't have this problem. version: '3.8'
services:
redis:
image: redis:7-alpine
# Set a size limit. See link below on how to customise.
# https://redis.io/docs/manual/eviction/
command: redis-server --maxmemory 1gb --maxmemory-policy allkeys-lru
restart: unless-stopped
app:
image: cupcakearmy/cryptgeon:latest
depends_on:
- redis
environment:
# Size limit for a single note.
SIZE_LIMIT: 256 MiB
ports:
- 86:8000
restart: unless-stopped Please let me know if I can provide more information. |
I can confirm that it works without a hitch with Chrome. Seeing no error with Firefox, I hadn't thought of testing another browser. Thanks for the information @EasedVR ! I've done some testing and it's actually the decryption step that doesn't work under Firefox for files over 25MB (a file uploaded from Firefox opens without a problem under Chrome). The upload stage is therefore out of the problem. I still cannot find any error message whether on the server or browser side so I'm stuck :/ |
I'm currently rewriting the backend with axum, and i had some issues before with flaky tests regarding the max upload and stuff. I'd assume it will be finally fixed with axum. Will add a test with bigger files to validate :) |
Can confirm in Safari and Firefox can upload, but not download, for some reason. |
We are using the docker compose with Traefik example you have with a File Limit set to 500 MiB. We can upload a 25MB or greater file we just cannot retrieve the 25MB or larger file
When retrieving the file and clicking on view note we get this message
wrong password. could not decipher. probably a broken link. note was destroyed.
Anything below 25MB we can retrieve with no problem
Is there another limit somewhere we are missing?
The text was updated successfully, but these errors were encountered: