Replies: 8 comments 2 replies
-
I have this running on both kubernetes, and also local docker. and env variables
It all works but after the first 3 files, I get Running locally, i can send endless amounts of files. But on Docker (and therefore kubernetes) the ports don't seem to be released after use, even when closing, and exiting the client. Please let me know if you get this working - I'm stuck. |
Beta Was this translation helpful? Give feedback.
-
The problem is related to whitelist - I'm minimizing mine to this
So clearly I'm blocking something that would otherwise free up the port it had just used.
|
Beta Was this translation helpful? Give feedback.
-
I have experienced similar issues in regards of port starvation when running in docker (exactly like @brucemcpherson). The ports don't get freed after a successful PASV upload and after some time, there are no ports available anymore. However, I am not using the whitelist or blacklist feature. Could this still be the source? |
Beta Was this translation helpful? Give feedback.
-
Working code is here if it helps. |
Beta Was this translation helpful? Give feedback.
-
@pvtpogopuschel We've experienced this in production as well, but haven't found a reason or cause. I think we've avoided it (we haven't run into the problem in 6+ months). I will see what the basic definition of the server looks like and share it, although I think we are using a blacklist. We'd definitely welcome help on this front. |
Beta Was this translation helpful? Give feedback.
-
@brucemcpherson Thanks for the working example! Before reading this bug ticket, my best theory was related to issues arising from my custom file system implementation (and maybe its failure to forward some relevant event to close the connection). // Edit: I have considered to Tap into the STOR command to see if this promise ever resolve at some point in time: https://github.com/trs/ftp-srv/blob/master/src/commands/registration/stor.js#L60 and what effect this has on the PASV Connector. // Edit2: There also seems to be a old Pull Request related to this issue (which was closed) - #109 |
Beta Was this translation helpful? Give feedback.
-
Is there any solution for this as am having same issue after uploading multible files
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to run FTP server with docker. I've run on localhost, but I can't run on container on server.
I've opened ports
20-21
and8400-8500
.It's dedicated server, so I don't have blocked any ports.
I've got 425 error.
I can't see any extra logs to check what happened.
Here is ma configuration which I passed via environment variables:
Here is my server code:
https://gist.github.com/dszymczuk/37c5ee5754fa006dbb967af78d657cad
Beta Was this translation helpful? Give feedback.
All reactions