Giter Site home page Giter Site logo

Comments (11)

benpetsch avatar benpetsch commented on August 17, 2024

Facing the same issue. Does relate to the active passive port configuration. I'm wondering if it's possible to disable passive ports?

from docker-pyftpdlib.

griffinkelly avatar griffinkelly commented on August 17, 2024

I got it to work with Docker, however not really sure if it had to do with passive/active port configurations. The thing that did it for me was using a masquerade-address which is port address you're hosting your serving the docker container on.

from docker-pyftpdlib.

benpetsch avatar benpetsch commented on August 17, 2024

@griffinkelly do you mind sharing some details. which steps are necessary to achieve your setup?

from docker-pyftpdlib.

griffinkelly avatar griffinkelly commented on August 17, 2024

Dropped the ball here. Did you figure out your issue? Happy to help

from docker-pyftpdlib.

andriykohut avatar andriykohut commented on August 17, 2024

👋 Sorry, I don't really have enough time to address this issue these days, but it seems like a pyftpdlib bug or misconfiguration, perhaps it's worth having a look at https://github.com/giampaolo/pyftpdlib issues and pull requests?

from docker-pyftpdlib.

cperezvinsite avatar cperezvinsite commented on August 17, 2024

Hi, i'm having the exact same issue, i reproduce this dockerfile and just have the same behavior, but if I run it without the docker it works fine, then, i suppose, like @benpetsch said, could be a passive ports, then, i run the docker using -p 3000-3010:3000-3010 but doesn't work either.

BTW, I'm using filezilla to test it

from docker-pyftpdlib.

yingshaoxo avatar yingshaoxo commented on August 17, 2024

I got the same problem here.

I can't visit it by ftp://127.0.0.1:21.

Here's the code I have used:
docker run -it --rm -p 21:21 --name ftp akogut/docker-pyftpdlib python ftpd.py --anon

from docker-pyftpdlib.

yingshaoxo avatar yingshaoxo commented on August 17, 2024

I got the same problem here.

I can't visit it by ftp://127.0.0.1:21.

Here's the code I have used:
docker run -it --rm -p 21:21 --name ftp akogut/docker-pyftpdlib python ftpd.py --anon

But if I open some ports for docker, it will work as expected.

Here is the right code to start docker image:
docker run -it --rm -p 21:21 -p 3000-3010:3000-3010 --name ftp akogut/docker-pyftpdlib python ftpd.py --anon

from docker-pyftpdlib.

griffinkelly avatar griffinkelly commented on August 17, 2024

The biggest issue I've had is that the connection, either between pyftplib or docker will drop the connection after 10-15 minutes of using it. It'll reconnect then drop which leads to a frustrating experience.

from docker-pyftpdlib.

griffinkelly avatar griffinkelly commented on August 17, 2024

Ultimately this is what I ended up using:

options = {'sendfile': False, 'certfile': None, 'settings': None, 'host_port': '0.0.0.0:10021', 'verbosity': 1, 'traceback': False, 'passive-ports': "65000", 'masquerade-address': "0.0.0.0", 'daemonize': False, 'file-access-user': None, 'no_color': False, 'timeout': 600, 'pythonpath': None, 'keyfile': None, 'pidfile': None}

I opened 10021 and 65000 rather than 21, or antoher range.

from docker-pyftpdlib.

pich4ya avatar pich4ya commented on August 17, 2024

Happy to see that other people got the same issue here.

from docker-pyftpdlib.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.