473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ftputil - uploading many files too long

Hi,

When I try to upload many files I get such a error message:

Traceback (most recent call last):
File "I:\Python\my_py\wwwzaci\xcopy_ftp.py", line 51, in ?
except: x=host.upload(zdroj, cilFTP,'b')
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 463, in uplo
ad
self.__copy_file(source, target, mode, open, self.file)
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 452, in __co
py_file
target = target_open(target, target_mode)
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 265, in file

host = self._copy()
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 241, in _cop
y
return FTPHost(*self._args, **self._kwargs)
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 138, in __in
it__
self._session = self._make_session()
File "C:\prg\python24\Lib\site-packages\ftputil\ftputil.py", line 235, in _mak
e_session
return ftp_error._try_with_oserror(factory, *args, **kwargs)
File "C:\prg\python24\Lib\site-packages\ftputil\ftp_error.py", line 78, in _tr
y_with_oserror
raise TemporaryError(obj)
ftputil.ftp_error.TemporaryError: 421 Login Timeout (25 seconds): closing contro
l connection.

I think its not about many files but because of it takes too long for my ftp server (25s). I tried
many things but nothing helps.

Any help is appreciated...

--
geon
Jul 21 '05 #1
1 2238
geon schrieb:
Hi,

When I try to upload many files I get such a error message:

[...] traceback deleted

ftputil.ftp_error.TemporaryError: 421 Login Timeout (25 seconds): closing contro
l connection.

I think its not about many files but because of it takes too long for my ftp server (25s). I tried
many things but nothing helps.


Well, the error message seems to say, that the server closes the
connection because it timed out waiting for the client to login or
because it was idle for to long.

But without some example code that exhibits the problem we really can't
devine what you are trying to do...

Also note that ftputil has it's own mailing list.

Regards, Chris

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
5
by: hecuba007 | last post by:
My apologies if this question has been asked before .. I would like to split large files into smaller chunks for uploading to php for re-assembly on the server. Is there a (relatively) simple...
2
by: Sheldon | last post by:
Hi Everyone, I recently installed a module called ftputil and I am trying to understand how it works. I created a simple program to download about 1500 files from my ftp and the program looks...
0
by: veki | last post by:
HI,ALL I am new ftputil user and I need help about something: my prog: >>> import tkFileDialog >>> import ftputil >>> name=tkFileDialog.askopenfile() >>>ftp=ftputil.FTPHost() #Please when you...
5
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or...
0
by: vedran_dekovic | last post by:
Hi, For people who using ftputil: Have ftputil any protection(SSL......) or any other protection?????
1
by: Croteam | last post by:
Hello, I have one problem about ftputil file upload.Here is my short example: from ftputil import FTPHost import tkFileDialog import os from Tkinter import Tk ...
1
by: Croteam | last post by:
Hello, I trying to make ftputil client that uses ssl security.First I was try to make that with M2Crypto,but when I use it, I get the error: Traceback (most recent call last): File...
3
by: muziburrehaman | last post by:
i am looking for code in php to upload the 1 gb files. any one can please help me by sending the code....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.