timvisee / send

:mailbox_with_mail: Simple, private file sharing. Mirror of https://gitlab.com/timvisee/send
https://send.vis.ee
Mozilla Public License 2.0
4.22k stars 238 forks source link

Download URL accessible but files won't download. #192

Open azza13b opened 1 month ago

azza13b commented 1 month ago

I have a strange issue, where the download URL works. EG. I can see the Send-Archive.zip on the website. But when I hit download nothing happens.

I installed ffsend on my linux box to see if I could download via command line, but again was unsuccessful.

ffsend error:

error: failed to download the requested file caused by: couldn't use the target file at '/var/lib/snapd/void/Send-Archive.zip'

Anyone got any tips?

image

azza13b commented 1 month ago

I have been doing some testing and I feel like the links stop working if I do a dock-compose up and down?

redis: container_name: redis image: 'redis:alpine' restart: always volumes:

volumes: send-redis:

My proxy is in another container could that be th eissue?

timvisee commented 1 month ago

Are you sure Send properly connects to the Redis instance? If there's problems there files will be lost when restarting the container.

Inspecting the logs may show valuable information on this.

azza13b commented 1 month ago

Thank you for the swift response! I will have to buy you a coffee.

Reviewing the send container logs, no errors were thrown. Initially, the redis container reported a memory overcommit issue, but after adjusting the host parameters, this warning has ceased. Network connectivity tests, including the nc command from the send container to the redis container on port 6379 and pinging between the containers, were successful.

I’ve also modified the docker-compose.yaml to establish a network linking the send, redis, and nginx-proxy-manager containers.

After the above, I did a quick test and the download links remain non-functional post-restart of the docker containers.

Where would you go looking next? Should I set a configuration file for the redis container? Is there another direction you would suggest?