473,581 Members | 2,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_p y\wwwzaci\xcopy _ftp.py", line 51, in ?
except: x=host.upload(z droj, cilFTP,'b')
File "C:\prg\python2 4\Lib\site-packages\ftputi l\ftputil.py", line 463, in uplo
ad
self.__copy_fil e(source, target, mode, open, self.file)
File "C:\prg\python2 4\Lib\site-packages\ftputi l\ftputil.py", line 452, in __co
py_file
target = target_open(tar get, target_mode)
File "C:\prg\python2 4\Lib\site-packages\ftputi l\ftputil.py", line 265, in file

host = self._copy()
File "C:\prg\python2 4\Lib\site-packages\ftputi l\ftputil.py", line 241, in _cop
y
return FTPHost(*self._ args, **self._kwargs)
File "C:\prg\python2 4\Lib\site-packages\ftputi l\ftputil.py", line 138, in __in
it__
self._session = self._make_sess ion()
File "C:\prg\python2 4\Lib\site-packages\ftputi l\ftputil.py", line 235, in _mak
e_session
return ftp_error._try_ with_oserror(fa ctory, *args, **kwargs)
File "C:\prg\python2 4\Lib\site-packages\ftputi l\ftp_error.py" , line 78, in _tr
y_with_oserror
raise TemporaryError( obj)
ftputil.ftp_err or.TemporaryErr or: 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 2247
geon schrieb:
Hi,

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

[...] traceback deleted

ftputil.ftp_err or.TemporaryErr or: 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
4294
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 that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I...
5
3137
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 way of doing this in javascript? If so, could someone point me to relevant documentation to read or (if really simple!) give me some coding hints?...
2
2270
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 like this: ************************************************************************** #! /usr/bin/env python #-*- coding: UTF-8 -*-
0
1051
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 want try this prog use your ftp server >>> nesto1=name.name >>> ftp.upload(nesto1,nesto1,'b')
5
2713
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 more documents to share/use during a meeting presentation. What would be the most efficient way to approach this? This is the logic I'm currently...
0
1204
by: vedran_dekovic | last post by:
Hi, For people who using ftputil: Have ftputil any protection(SSL......) or any other protection?????
1
1892
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 ftp=FTPHost('myserver','username','password')
1
1781
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 "<pyshell#32>", line 1, in -toplevel- import M2Crypto File "C:\Python24\lib\site-packages\M2Crypto\__init__.py", line 15,
3
5167
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
7792
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8149
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8304
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6553
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5674
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5364
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3805
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3827
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1138
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.