10060, Operation timed out Error

A

Ajay Abhyankar

Hi,
I am trying to upload zip files using ftplib module. The server has
Vsftpd 2.0.3 installed on it.
I was able to succesfully upload files using ftplib and Vsftpd on the
server locally connected.
Now, I want to transfer files to remote server using the same script.

I am getting the following error:
Traceback (most recent call last):
File "<pyshell#32>", line 1, in -toplevel-
ftp.retrlines('LIST')
File "C:\Python23\lib\ftplib.py", line 396, in retrlines
conn = self.transfercmd(cmd)
File "C:\Python23\lib\ftplib.py", line 345, in transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "C:\Python23\lib\ftplib.py", line 324, in ntransfercmd
conn.connect(sa)
File "<string>", line 1, in connect
error: (10060, 'Operation timed out')

If I transfer the files without using python script from the prompt, the
file is successfully transfered.
Please help me to understand whether the problem is with the script,
ftplib or Vsftpd.

Thanks in advance.
Ajay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top