help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EMACS Problem: File exists but cannot be read


From: Peter Dyballa
Subject: Re: EMACS Problem: File exists but cannot be read
Date: Thu, 27 Sep 2007 11:02:00 +0200


Am 27.09.2007 um 03:30 schrieb Anne Kaeppes:

This only happens while reading the files with the ftp client in emacs.
So it can be the FTP server, too!

But how can I check this out?

Ftp "by hand" in some shell:

        ftp IP
        <username>
        cd /path/to/file
        get filename.ext

It's not a good test, since you are fetching that file just once while in GNU Emacs the methods get and put might be used a few times. There is also some chance that the connection times out, which you could find in shell too: just wait for a growing amount of minutes and then send a dir command (this can be done incidentally, no need to watch it all the time). I don't remember whether the local ftp process reports the time-out at once or it needs an "external" trigger by sending another ftp command ... (FTP uses two channels of communication: a control connection and the one by which files are transferred, so it's likely that the local FTP process will report the time-out actively.)

It's also possible to use ping and traceroute to check whether the connection is stable.

There can also be some firewall in the way. Then it might be better to set your system to use "passive FTP." This can "bypass" the firewall and make the connection reliable.


Have you ever read the LOG buffer for the FTP process? C-x C-b will list all buffers in use. Then search for the IP address (it will most probably be part of that buffer's name – and some other part of the name will reveal whether you use TRAMP or just ange-ftp).


Another test can be done with another version of GNU Emacs, an elder stable one ...

--
Greetings

  Pete

Some day we may discover how to make magnets that can point in any direction.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]