orhun / rustypaste

A minimal file upload/pastebin service.
https://blog.orhun.dev/blazingly-fast-file-sharing
MIT License
760 stars 47 forks source link

requests randomly hang forever #316

Closed abs3ntdev closed 1 month ago

abs3ntdev commented 2 months ago

occasionally requests will indefinitely hang. I first noticed this from my monitoring status alerts going off everyday regarding timeouts. i am able to replicate it from the terminal as well.

these timeouts happen multiple times a day image

the first request i get a response of unauthorized and the second request here just hangs forever until i cancel it image

im running rustypaste on unraid via docker and using traefik as a reverse proxy. i dont have this issue with any of the other services i am running. there are no errors in the rustypaste log but if there is any other info or logs i can grab to help let me know.

tessus commented 2 months ago

I am not able to reproduce this. Although I am not using Traefik, but Apache as the reverse proxy and I do not use docker. I even ran an unauthorized curl request 50 times in a loop. There's no hang on my system.

Can you set RUST_LOG=trace ./rustypaste? What is in the logs for the request that hangs?

I think we have to narrow this down a bit:

Does the same happen, if you

tessus commented 1 month ago

I haven't heard back. What the status?

abs3ntdev commented 1 month ago

If I hit the service directly bypassing traefik it does not hang forever. It does consistently hang when using traefik. I have since stopped using rustypaste so I can't test anything further.

tessus commented 1 month ago

Hmm, this tells us that the issue is traefik (or its configuration) and not rustypaste though. It seema you are no longer interested in solving this, thus I am closing the gh issue.