-
Notifications
You must be signed in to change notification settings - Fork 196
Upload stops after 1 minute #430
Comments
Is there a reverse proxy or are you connecting directly? Reverse proxies generally have very low request timeouts that need to be adjusted. |
Same issue with nginx |
I used domain without reverse proxy, but just tried directly using ip address, and still same issue. |
60s is the default timeout of nginx. See the wiki. You want to at least set these: proxy_connect_timeout 7200;
proxy_read_timeout 7200;
proxy_send_timeout 7200;
client_max_body_size 0; I usually set all these timeouts: client_body_timeout 7200;
client_header_timeout 7200;
proxy_connect_timeout 7200;
proxy_read_timeout 7200;
proxy_send_timeout 7200;
send_timeout 7200; |
I'm not using nginx. I tried different approach - Ubuntu VM on digitalocean, again installed droppy using docker, and same issue in there. 60 seconds pass - it breaks. So far conclusion is that when using docker image, I can't upload anything for longer than 60 seconds. |
Additionally what I noticed - on debian node version 10.21.0 is used(I installed whatever installed with apt install npm), in docker 14.5.0 is used. |
I tried with all of those. I already had the top ones, but even with client_body_timeout and send_timeout added, same issue. |
I just updated droppy to 12.0.1, and tried directly (connecting to the port and not using reverse proxy) and I get the same issue. I have an Upload cancelled after 60004ms |
Droppy config: 2020-08-18 18:35:57 [INFO] Configuration: { listeners: [ { host: [ '0.0.0.0' ], port: 8989, protocol: 'http' } ], public: false, timestamps: true, linkLength: 5, linkExtensions: true, logLevel: 2, maxFileSize: 0, updateInterval: 1000, pollingInterval: 0, keepAlive: 20000, allowFrame: false, readOnly: false, ignorePatterns: [ '.*' ], watch: true, headers: {}} 2020-08-18 18:36:25 [INFO] 1:52317 POST /!/upload?vId=0&to=/&rename=0 [200] [2ms] Upload started |
Regarding docker issue found this, might be the reason? |
@insajd Since I'm having this issue, and I don't use docker, I don't think it's that. |
Try with 12.1.0. I was able to reproduce behind nginx which logged
which does point to the fault being node. Interestingly, it dit not show on macOS, only Linux. 12.1.0 adds a new |
Updated to 12.1.0 and I have the same behaviour, even in direct (no nginx around). |
There's one more timeout that I can think of but it doesn't really make sense that it would be it because uploads should have their headers sent when that timeout hits. Do you see any errors in the log when it happens or is it just a "Upload Cancelled"? |
Tried a lot of test cases. Somehow now it works for me in most cases with an exception of reverse proxy: Running natively without docker on : Linux debian 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
Running in docker
2020-08-19 05:42:51 [INFO] 192.168.192.254:9855 POST /!/upload?vId=0&to=/&rename=0 [200] [5ms] Upload started
Added Nginx reverse proxydroppy 12.1.0 running on node 14.8.0 Public IP:portdroppy 12.1.0 running on node 14.8.0 -upload works |
Just Upload Cancelled |
I'm running FreeBSD 12.1-STABLE, with node v14.6.0 and npm 6.14.8 |
droppy 12.0.1
node 14.5.0
Installed using docker silverwind/droppy:latest
Same behavior in new Edge , Chrome.
Log where error can be seen - any upload is cancelled after ~1 minute of uploading
Can you suggest where should I search for the culprit?
Config file
The text was updated successfully, but these errors were encountered: