On 05/21/2013 04:20 PM, Markos Gogoulos wrote:
Did you restart the worker?

yes! I restarted 'the universe' :)

Maybe there is some hung or conflict there. From localhost, if you telnet to port 8021 do you get a connection?

mmm...

# telnet localhost 8021
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

It seems you are right and... I found that I missed a stupid as fundamental line in my worker conf: ftp-address!!! :S

Probably I missed it when I refactored the buildout :(

Now it works! Thank you for pointing me in the right direction!

BTW, now I get a line more in worker log:

2013-05-21 16:36:43 INFO ZServer FTP server started at Tue May 21 16:36:43 2013
        Hostname: 0.0.0.0
        Port: 8021

maybe is worth mentioning this check in the docs?


Seems that it cannot connect there (Connection refused)




On Tue, May 21, 2013 at 5:07 PM, Simone Orsi <[email protected] <mailto:[email protected]>> wrote:

    Hi Markos,

    tnx for answering!


    On 05/21/2013 03:30 PM, Markos Gogoulos wrote:
    Hi Simone,

    I remember getting "Authentication failed" and a restart of the
    worker/ploneftp was enough to fix the issue. You don't have to
    install anything extra, the files to check are the config.py
    you've pasted,  make sure that the path reflects the name you
    gave for your portal (in case you created a plumi site with id
    Plone for example, then use path = "/Plone/Members/%s/videos").

    I double checked the plonesite name and the credentials: http
    login works.

    I tried to change zope_ftp_address to 0.0.0.0:8021
    <http://0.0.0.0:8021> and also to use zope admin/admin credentials
    to login via FTP: no way. Same error:

    []127.0.0.1:60378 <http://127.0.0.1:60378> Connected.
    127.0.0.1:60378 <http://127.0.0.1:60378> ==> 220 pyftpdlib 0.7.0
    ready.
    127.0.0.1:60378 <http://127.0.0.1:60378> <== USER admin
    127.0.0.1:60378 <http://127.0.0.1:60378> ==> 331 Username ok, send
    password.
    127.0.0.1:60378 <http://127.0.0.1:60378> <== PASS ******
    authenticating to Zope FTP server 0.0.0.0:8021
    <http://0.0.0.0:8021> with username admin
    Error authenticating to Zope FTP server 0.0.0.0:8021
    <http://0.0.0.0:8021> with username admin : [Errno 111] Connection
    refused
    127.0.0.1:60378 <http://127.0.0.1:60378> ==> 530 Authentication
    failed.
    []@127.0.0.1:60378 <http://127.0.0.1:60378> Disconnected.

    ZopeHandler got a closed connection


    I would expect zope admin to work.... :(

    I checked FTP permissions into zope's security tab and they are
    ok, my user is manager, anyway.

    What can I do for better debugging this beside stepping with pdb
    on every line of code?


    Hope this helps!

    Regards,
    Markos




    On Fri, May 17, 2013 at 12:15 PM, Simone Orsi <[email protected]
    <mailto:[email protected]>> wrote:

        Hi,

        I'm trying to use FTP upload on my local machine. I have a
        'manager' user on localhost:8082/plumi.

        My parts/ploneftp/config.py looks like:

        tmp_dir = "/path/to/plumi/buildout/var/ploneftp"
        zope_ftp_address = "127.0.0.1:8021 <http://127.0.0.1:8021>"
        address = "*:21"
        login_message = "Welcome to Plone FTP. Your uploaded file may
        not be visible in FTP when the upload has finished. Go to
        your Plone site member folder to see your file."
        logout_message = "Thanks for using Plone FTP!"
        path = "/plumi/Members/%s/videos"

        In filezilla log I see:

        Status:    Resolving address of localhost
        Status:    Connecting to 127.0.0.1:21...
        Status:    Connection established, waiting for welcome message...
        Response:    220 pyftpdlib 0.7.0 ready.
        Command:    USER manager
        Response:    331 Username ok, send password.
        Command:    PASS *****
        Response:    530 Authentication failed.
        Error:    Critical error
        Error:    Could not connect to server

        And, ftp running in fg says:

        Starting FTP server
        []127.0.0.1:39154 <http://127.0.0.1:39154> Connected.
        127.0.0.1:39154 <http://127.0.0.1:39154> ==> 220 pyftpdlib
        0.7.0 ready.
        127.0.0.1:39154 <http://127.0.0.1:39154> <== USER manager
        127.0.0.1:39154 <http://127.0.0.1:39154> ==> 331 Username ok,
        send password.
        127.0.0.1:39154 <http://127.0.0.1:39154> <== PASS ******
        authenticating to Zope FTP server 127.0.0.1:8021
        <http://127.0.0.1:8021>                          with
        username manager
        Error authenticating to Zope FTP server 127.0.0.1:8021
        <http://127.0.0.1:8021>                             with
        username manager : [Errno 111] Connection refused
        127.0.0.1:39154 <http://127.0.0.1:39154> ==> 530
        Authentication failed.
        []@127.0.0.1:39154 <http://127.0.0.1:39154> Disconnected.
        ZopeHandler got a closed connection

        BTW I also installed  'plumiftp' but I don't know if still
        needed since is not reported into buildout.

        Am I doing something wrong? Or simply I'm missing some flag
        to be turned on?

        Tnx,
        S.
        _______________________________________________
        Discuss mailing list
        [email protected] <mailto:[email protected]>
        http://lists.plumi.org/listinfo/discuss




-- https://unweb.me
    state of the art information systems




--
https://unweb.me
state of the art information systems

_______________________________________________
Discuss mailing list
[email protected]
http://lists.plumi.org/listinfo/discuss

Reply via email to