Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8241665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:54:28+00:00 2026-06-07T20:54:28+00:00

I am trying to run an ftp server in python using pyftpdlib module. The

  • 0

I am trying to run an ftp server in python using pyftpdlib module. The problem occurring is that it shows a “150 File status okay. About to open data connection.” and then just stays like that forever until the server time’s out.

I log in through cmd , using the ftp command.

PLs help.

Here is the server code:

import os
import sqlite3
from pyftpdlib import ftpserver


def main():

    authorizer = ftpserver.DummyAuthorizer()

    ftp_auth_table="H:\\ftp_auth_table1.db"
    connection=sqlite3.connect(ftp_auth_table,isolation_level=None)
    cursor=connection.cursor()
    cursor.execute('''SELECT * FROM ftp_auth_table1''')
    entry=cursor.fetchall()
    # change os.gtcwd() with ftp_actv_dir
    for x in entry:
        authorizer.add_user(x[1], x[2], "H:/MS EVERYTHING", perm='elradfmwM')


    # Instantiate FTP handler class
    handler = ftpserver.FTPHandler
    handler.authorizer = authorizer


    handler.banner = "pyftpdlib %s based ftpd ready." %ftpserver.__ver__


    address = ('127.0.0.1', 21)
    ftpd = ftpserver.FTPServer(address, handler)

    ftpd.max_cons = 256
    ftpd.max_cons_per_ip = 5

    # start ftp server
    ftpd.serve_forever()

if __name__ == '__main__':
    main()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T20:54:31+00:00Added an answer on June 7, 2026 at 8:54 pm

    I predict, with absolute confidence, that you’ll find the problem is due to the space between “MS EVERYTHING”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to upload a file to a ftp server using libcurl but
I'm trying to send a file using ftp. I have the following code: string
I'm trying to download a gzipped file (~390Mo) from a FTP file using java.
I'm trying to download a zip file (tl_2008_01001_edges.zip) from an ftp census site using
i am trying to download a image file using ftp, on every code i
I am trying to set up a ftp server using apache ftp server http://mina.apache.org/ftpserver/
I am trying run a program from a qmake .pro file which modifies the
Im trying to run exe file with c++ with no luck I tried this:
When trying to run an Eclipse Dynamic Web Project under a Tomcat setup using
I am transferring a binary file (.exe) with FTP using libcurl, and saving it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.