all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs failed in reading file from ftp
@ 2008-01-16 20:43 Unknown
  2008-01-17 15:11 ` Michael Albinus
       [not found] ` <mailman.6228.1200582652.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Unknown @ 2008-01-16 20:43 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I got a (big) problem:

My emacs (GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll 
bars) of 2007-06-19 on ninsei, modified by Debian), running on debian 
etch has a problem while reading files from an ftp server (pureFTP). 
This is an error that occurs not everytime, but today I have a file of 
7,5 MByte, but the emacs Editor reads only a "few" bytes, sometimes 
128K sometime 260K without any schematic. This error occurs sometimes 
without warning: I read an php-file from the the server, store it, run 
it, and an error occurs: the file is broken, not all was loaded (a part 
of the end was missing), I haven't noticed it, change something, store 
and: I loose my file (but I can recovered from the incrementell backups).

The in the *Messages* buffer shows the error:
[...]
call-interactively: End of buffer [6 times]
Retrieving www-data...260k
Retrieving www-data...done
call-interactively: Quit [2 times]
exchange-point-and-mark: No mark set in this buffer [2 times]
[...]

Where www-data is the file of 7,5 MByte data.

The ftp-server shows following in the logs:
Jan 16 18:09:35 localhost pure-ftpd: (wwwtest@127.0.0.1) [NOTICE] 
//home/wwwtest/public_html/class_readmail/www-data downloaded  (7568015 
bytes, 285175.62KB/sec)
Jan 16 18:09:44 localhost pure-ftpd: (wwwtest@127.0.0.1) [NOTICE] 
//home/wwwtest/public_html/class_readmail/www-data downloaded  (7568015 
bytes, 249759.01KB/sec)

and so on. More than 20 downloads, all occurs into the log with the 
same filesize and without any warning... So I think: It's emacs...

Sometime: I couldn't read any file from ftp-server. After 3-6 retries, 
it works...

Who knows this problem, what is the reason and where should I search?

Thanks in advance
Frank B.

-- 
"Unterwerfung ist die einzige bequeme Antwort auf Autorität"

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
  2008-01-16 20:43 Emacs failed in reading file from ftp Unknown
@ 2008-01-17 15:11 ` Michael Albinus
       [not found] ` <mailman.6228.1200582652.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2008-01-17 15:11 UTC (permalink / raw)
  To: help-gnu-emacs

Unknown <unknown@unknown.invalid> writes:

> Hello,

Hi,

> Sometime: I couldn't read any file from ftp-server. After 3-6 retries,
> it works...
>
> Who knows this problem, what is the reason and where should I search?

Could you, please show the buffer *ftp hostname* in case the error happens?

> Thanks in advance
> Frank B.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
       [not found] ` <mailman.6228.1200582652.18990.help-gnu-emacs@gnu.org>
@ 2008-01-17 23:56   ` Unknown
  2008-01-18 15:37     ` Michael Albinus
       [not found]     ` <mailman.6266.1200670620.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Unknown @ 2008-01-17 23:56 UTC (permalink / raw)
  To: help-gnu-emacs

Michael Albinus wrote:
> Hi,
> 
>> Sometime: I couldn't read any file from ftp-server. After 3-6 retries,
>> it works...
>>
>> Who knows this problem, what is the reason and where should I search?
> 
> Could you, please show the buffer *ftp hostname* in case the error happens?

Hello Michael,

thanks for your responding.

I didn't know, that there is a buffer for the ftp... :-)

Here is your request:

226-File successfully transferred
226 0.027 seconds (measured here), 272.14 Mbytes per second
7569990 bytes received in 0.03 secs (234268.2 kB/s)
ftp> quote mdtm /home/wwwtest/public_html/class_readmail/www-data
200 TYPE is now ASCII
ftp> quote mdtm /home/wwwtest/public_html/class_readmail/www-data
200 TYPE is now ASCII
ftp> 213 20080116200717
ftp> 213 20080116200717

I think, I know where you will find the problem: Do you mean that could 
be a coding problem? I just take a look for "quote mdtm", and the type 
is ASCII... there could be a coherency... but I don't know, where the 
solution could be? FTP-Server (pure-ftp) or emacs?

Best regards
Frank B.


-- 
"Unterwerfung ist die einzige bequeme Antwort auf Autorität"

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
  2008-01-17 23:56   ` Unknown
@ 2008-01-18 15:37     ` Michael Albinus
       [not found]     ` <mailman.6266.1200670620.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2008-01-18 15:37 UTC (permalink / raw)
  To: help-gnu-emacs

Unknown <unknown@unknown.invalid> writes:

> Hello Michael,

Hi,

> Here is your request:
>
> 226-File successfully transferred
> 226 0.027 seconds (measured here), 272.14 Mbytes per second
> 7569990 bytes received in 0.03 secs (234268.2 kB/s)
> ftp> quote mdtm /home/wwwtest/public_html/class_readmail/www-data
> 200 TYPE is now ASCII
> ftp> quote mdtm /home/wwwtest/public_html/class_readmail/www-data
> 200 TYPE is now ASCII
> ftp> 213 20080116200717
> ftp> 213 20080116200717
>
> I think, I know where you will find the problem: Do you mean that
> could be a coding problem? I just take a look for "quote mdtm", and
> the type is ASCII... there could be a coherency... but I don't know,
> where the solution could be? FTP-Server (pure-ftp) or emacs?

"mdtm" is no problem; it returns just the modification time of a
file. And it did it correctly with "20080116200717".

Looks like you haven't shown the whole buffer. Could you do this, please?

> Best regards
> Frank B.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
       [not found]     ` <mailman.6266.1200670620.18990.help-gnu-emacs@gnu.org>
@ 2008-01-18 18:03       ` Unknown
  2008-01-21 11:52         ` Michael Albinus
       [not found]         ` <mailman.6364.1200916336.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Unknown @ 2008-01-18 18:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hello Michaels

Michael Albinus wrote:

> "mdtm" is no problem; it returns just the modification time of a
> file. And it did it correctly with "20080116200717".

Oh, yes. Thanks for this info.

> 
> Looks like you haven't shown the whole buffer. Could you do this, please?

of course. Heres is a fresh one with the big mail-file (7,5 MByte). 
This is a nice example, cause, the buffer isn't correct loaded.

ftp> open localhost
Connected to localhost.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 18:58. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 15 minutes of inactivity.
user "wwwtest" Turtle Power!
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 331 User wwwtest OK. Password required
230-User wwwtest has group access to:  subversi wwwtest
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
hash
ftp> Hash mark printing on (1024 bytes/hash mark).
ftp> pwd
257 "/" is your current location
ftp> ls "-al /." /tmp/ange-ftp20665UjO
200 PORT command successful
150 Connecting to port 35830
226-Options: -a -l
226 22 matches total
ftp> quote mdtm /
550 I can only retrieve regular files
quote mdtm /
ftp> 550 I can only retrieve regular files
ftp> ls "-al /public_html/." /tmp/ange-ftp20665WlK
200 PORT command successful
150 Connecting to port 43078
226-Options: -a -l
226 64 matches total
ftp> quote mdtm /public_html/
550 I can only retrieve regular files
quote mdtm /public_html/
ftp> 550 I can only retrieve regular files
ftp> ls "-al /public_html/class_readmail/." /tmp/ange-ftp20665jvQ
200 PORT command successful
150 Connecting to port 43286
226-Options: -a -l
226 10 matches total
ftp> quote mdtm /public_html/class_readmail/
550 I can only retrieve regular files
quote mdtm /public_html/class_readmail/
ftp> 550 I can only retrieve regular files
ftp> quote mdtm /public_html/class_readmail/www-data
213 20080116200717
quote mdtm /public_html/class_readmail/www-data
ftp> 213 20080116200717
ftp> quote mdtm /public_html/class_readmail/www-data
213 20080116200717
quote mdtm /public_html/class_readmail/www-data
ftp> 213 20080116200717
ftp> type binary
200 TYPE is now 8-bit binary
ftp> get /public_html/class_readmail/www-data /tmp/ange-ftp20665w5W
200 PORT command successful
150-Connecting to port 50297
get /public_html/class_readmail/www-data /tmp/ange-ftp20665w5W
150 7392.6 kbytes to download

226-File successfully transferred
226 0.268 seconds (measured here), 26.93 Mbytes per second
7569990 bytes received in 0.27 secs (27587.4 kB/s)
ftp> type ascii
200 PORT command successful
150-Connecting to port 41566
150 7392.6 kbytes to download
type ascii

226-File successfully transferred
226 0.034 seconds (measured here), 211.16 Mbytes per second
7569990 bytes received in 0.04 secs (181872.4 kB/s)
ftp> quote mdtm /public_html/class_readmail/www-data
200 TYPE is now ASCII
ftp> quote mdtm /public_html/class_readmail/www-data
200 TYPE is now ASCII
ftp> 213 20080116200717
ftp> 213 20080116200717
ftp>

Best regards
Frank B.
-- 
"Unterwerfung ist die einzige bequeme Antwort auf Autorität"

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
  2008-01-18 18:03       ` Unknown
@ 2008-01-21 11:52         ` Michael Albinus
       [not found]         ` <mailman.6364.1200916336.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2008-01-21 11:52 UTC (permalink / raw)
  To: help-gnu-emacs

Unknown <unknown@unknown.invalid> writes:

> Hello Michaels

Hi,

> of course. Heres is a fresh one with the big mail-file (7,5
> MByte). This is a nice example, cause, the buffer isn't correct loaded.

Hmm, there is nothing suspicious in the log. Everything looks like it
should.

Could you, please, try the same ftp commands from a shell? That means,
connec to wwwtest@localhost, and apply the following ftp commands in
the same order:

hash
pwd
ls "-al /." /tmp/ange-ftp20665UjO
quote mdtm /
ls "-al /public_html/." /tmp/ange-ftp20665WlK
quote mdtm /public_html/
ls "-al /public_html/class_readmail/." /tmp/ange-ftp20665jvQ
quote mdtm /public_html/class_readmail/
quote mdtm /public_html/class_readmail/www-data
quote mdtm /public_html/class_readmail/www-data
type binary
get /public_html/class_readmail/www-data /tmp/ange-ftp20665w5W
type ascii
quote mdtm /public_html/class_readmail/www-data
quote mdtm /public_html/class_readmail/www-data

Please check the file /tmp/ange-ftp20665w5W afterwards, whether it is complete.

> Best regards
> Frank B.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
       [not found]         ` <mailman.6364.1200916336.18990.help-gnu-emacs@gnu.org>
@ 2008-01-21 20:44           ` Unknown
  2008-01-22 16:05             ` Michael Albinus
       [not found]             ` <mailman.6405.1201017882.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Unknown @ 2008-01-21 20:44 UTC (permalink / raw)
  To: help-gnu-emacs

Michael Albinus wrote:

> Hmm, there is nothing suspicious in the log. Everything looks like it
> should.

Yes, that's my opinion, too.

> Could you, please, try the same ftp commands from a shell? That means,
> connec to wwwtest@localhost, and apply the following ftp commands in
> the same order:

I did...

> Please check the file /tmp/ange-ftp20665w5W afterwards, whether it is complete.

He is. Exact the same size, seems to be full with the correct values.

Only the command
quote mdtm / and some others answer with
550 I can only retrieve regular files

But I don't know what this mean...

Best regards
Frank B.


-- 
"Unterwerfung ist die einzige bequeme Antwort auf Autorität"

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
  2008-01-21 20:44           ` Unknown
@ 2008-01-22 16:05             ` Michael Albinus
       [not found]             ` <mailman.6405.1201017882.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2008-01-22 16:05 UTC (permalink / raw)
  To: help-gnu-emacs

Unknown <unknown@unknown.invalid> writes:

>> Please check the file /tmp/ange-ftp20665w5W afterwards, whether it is complete.
>
> He is. Exact the same size, seems to be full with the correct values.
>
> Only the command
> quote mdtm / and some others answer with
> 550 I can only retrieve regular files
>
> But I don't know what this mean...

So it comes to debugging. Btw, which Emacs version do you use?

Do you see a chance to provide me an (anonymous) account on your FTP server?

> Best regards
> Frank B.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
       [not found]             ` <mailman.6405.1201017882.18990.help-gnu-emacs@gnu.org>
@ 2008-01-23  9:47               ` Unknown
  2008-01-24 16:41                 ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: Unknown @ 2008-01-23  9:47 UTC (permalink / raw)
  To: help-gnu-emacs

Michael Albinus wrote:
> Unknown <unknown@unknown.invalid> writes:

> So it comes to debugging. Btw, which Emacs version do you use?

I copy and paste from the first posting ;-)
(GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)

> Do you see a chance to provide me an (anonymous) account on your FTP server?

No way. Internal network without router to the outside.

Do you mean, I should change the ftp-Server?

best regards
Frank B.

-- 
"Unterwerfung ist die einzige bequeme Antwort auf Autorität"

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
  2008-01-23  9:47               ` Unknown
@ 2008-01-24 16:41                 ` Michael Albinus
  2008-01-24 16:58                   ` JRancier
  0 siblings, 1 reply; 14+ messages in thread
From: Michael Albinus @ 2008-01-24 16:41 UTC (permalink / raw)
  To: help-gnu-emacs

Unknown <unknown@unknown.invalid> writes:

>> So it comes to debugging. Btw, which Emacs version do you use?
>
> I copy and paste from the first posting ;-)
> (GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)

Of course you did. My head is like a sieve ...

>> Do you see a chance to provide me an (anonymous) account on your FTP server?
>
> No way. Internal network without router to the outside.
>
> Do you mean, I should change the ftp-Server?

Don't know. Without debugging, I'm at the end. Maybe you can try to
debug ange-ftp yourself? Otherwise, using another ftp server might be
an option.

> best regards
> Frank B.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
  2008-01-24 16:41                 ` Michael Albinus
@ 2008-01-24 16:58                   ` JRancier
  2008-01-24 19:14                     ` Michael Albinus
       [not found]                     ` <mailman.6488.1201201822.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 14+ messages in thread
From: JRancier @ 2008-01-24 16:58 UTC (permalink / raw)
  To: Michael Albinus
  Cc: help-gnu-emacs, help-gnu-emacs-bounces+jrancier=penntraffic.com

help-gnu-emacs-bounces+jrancier=penntraffic.com@gnu.org wrote on 
01/24/2008 11:41:55 AM:

| Unknown <unknown@unknown.invalid> writes:
| 
| >> So it comes to debugging. Btw, which Emacs version do you use?
| >
| > I copy and paste from the first posting ;-)
| > (GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
| 
| Of course you did. My head is like a sieve ...
| 
| >> Do you see a chance to provide me an (anonymous) account on your 
| FTP server?
| >
| > No way. Internal network without router to the outside.
| >
| > Do you mean, I should change the ftp-Server?
| 
| Don't know. Without debugging, I'm at the end. Maybe you can try to
| debug ange-ftp yourself? Otherwise, using another ftp server might be
| an option.

Have you looked at tramp?

| > best regards
| > Frank B.
| 
| Best regards, Michael.
| 
| 
| 
| _______________________________________________
| help-gnu-emacs mailing list
| help-gnu-emacs@gnu.org
| http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
  2008-01-24 16:58                   ` JRancier
@ 2008-01-24 19:14                     ` Michael Albinus
       [not found]                     ` <mailman.6488.1201201822.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2008-01-24 19:14 UTC (permalink / raw)
  To: JRancier; +Cc: help-gnu-emacs, help-gnu-emacs-bounces+jrancier=penntraffic.com

JRancier@penntraffic.com writes:

> | Don't know. Without debugging, I'm at the end. Maybe you can try to
> | debug ange-ftp yourself? Otherwise, using another ftp server might be
> | an option.
>
> Have you looked at tramp?

That's always an option. But it wouldn't be ftp anymore.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
       [not found]                     ` <mailman.6488.1201201822.18990.help-gnu-emacs@gnu.org>
@ 2008-01-27 20:25                       ` Unknown
  2008-01-28  8:29                         ` Michael Albinus
  0 siblings, 1 reply; 14+ messages in thread
From: Unknown @ 2008-01-27 20:25 UTC (permalink / raw)
  To: help-gnu-emacs

Michael Albinus wrote:
> JRancier@penntraffic.com writes:
> 
>> | Don't know. Without debugging, I'm at the end. Maybe you can try to
>> | debug ange-ftp yourself? Otherwise, using another ftp server might be
>> | an option.
>>
>> Have you looked at tramp?

? What is tramp?

@Michael: Thanks for your help. I have always the same problem and I 
decide to change the ftp server next time.

Thanks!

Best regards
Frank B.


-- 
"Unterwerfung ist die einzige bequeme Antwort auf Autorität"

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Emacs failed in reading file from ftp
  2008-01-27 20:25                       ` Unknown
@ 2008-01-28  8:29                         ` Michael Albinus
  0 siblings, 0 replies; 14+ messages in thread
From: Michael Albinus @ 2008-01-28  8:29 UTC (permalink / raw)
  To: help-gnu-emacs

Unknown <unknown@unknown.invalid> writes:

>>> Have you looked at tramp?
>
> ? What is tramp?

<http://www.gnu.org/software/tramp/>

It is similar to ange-ftp, but it offers other methods for connection,
like ssh, or su (when you are on the same host).

> Thanks!
>
> Best regards
> Frank B.

Best regards, Michael.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-01-28  8:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-16 20:43 Emacs failed in reading file from ftp Unknown
2008-01-17 15:11 ` Michael Albinus
     [not found] ` <mailman.6228.1200582652.18990.help-gnu-emacs@gnu.org>
2008-01-17 23:56   ` Unknown
2008-01-18 15:37     ` Michael Albinus
     [not found]     ` <mailman.6266.1200670620.18990.help-gnu-emacs@gnu.org>
2008-01-18 18:03       ` Unknown
2008-01-21 11:52         ` Michael Albinus
     [not found]         ` <mailman.6364.1200916336.18990.help-gnu-emacs@gnu.org>
2008-01-21 20:44           ` Unknown
2008-01-22 16:05             ` Michael Albinus
     [not found]             ` <mailman.6405.1201017882.18990.help-gnu-emacs@gnu.org>
2008-01-23  9:47               ` Unknown
2008-01-24 16:41                 ` Michael Albinus
2008-01-24 16:58                   ` JRancier
2008-01-24 19:14                     ` Michael Albinus
     [not found]                     ` <mailman.6488.1201201822.18990.help-gnu-emacs@gnu.org>
2008-01-27 20:25                       ` Unknown
2008-01-28  8:29                         ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.