From: raphael.berbain@gmail.com (Raphaël Berbain)
To: help-gnu-emacs@gnu.org
Subject: remote tramp hangs
Date: Tue, 01 Dec 2009 12:03:26 +0100 [thread overview]
Message-ID: <yzvfx7wroju.fsf@did75-11-82-231-40-223.fbx.proxad.net> (raw)
Hi,
I am having problems making tramp work. In a nutshell, "/remotehost:"
works, but "/root@remotehost:" doesn't work, though I can passwordlessly
ssh/scp root@remotehost. It hangs with the message "Tramp: Found remote
shell prompt on `remotehost'".
Data that may or may not help: miaou=localhost is ubuntu 9.10,
harry=remotehost is openbsd 4.5. emacs is compiled from
http://bzr.savannah.gnu.org/r/emacs/trunk, revno 98852. M-x version
says "GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu) of 2009-11-30 on
miaou", M-x tramp-version says "2.1.18-pre". I get the same results
with emacs23* / emacs-snapshot* ubuntu packages and/or tramp cvs,
though. I also tried a bunch of different tramp methods (ssh, sshx,
scpc, ...) and always get the same behaviour.
What I am doing:
rgb@miaou:~$ emacs -Q
M-: (require 'tramp) RET
M-: (setq debug-on-quit t tramp-verbose 10) RET
C-x C-f /root@harry: RET
then I wait for some time, and when it appears hung interrupt with C-g.
Messages:
("emacs")
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading tramp... [3 times]
compiling byte-compile-normal-call...done
compiling byte-compile-form...done
compiling byte-compile-body...done
compiling byte-compile-top-level...done
compiling byte-compile-out-toplevel...done
compiling byte-compile-constant...done
compiling byte-compile-variable-ref...done
compiling byte-optimize-form...done
compiling byte-optimize-body...done
compiling byte-optimize-predicate...done
compiling byte-optimize-binary-predicate...done
compiling byte-optimize-form-code-walker...done
compiling byte-optimize-lapcode...done
tramp
10 (#o12, #xa)
Tramp: Opening connection for root@harry using scp...
Tramp: Waiting 60s for local shell to come up...
Tramp: Sending command `ssh harry -l root -q -e none && exit || exit'
Tramp: Waiting for prompts from remote shell
Tramp: Found remote shell prompt on `harry'
Entering debugger...
Backtrace:
Debugger entered--Lisp error: (quit)
accept-process-output(#<process *tramp/scp root@harry*> 1 nil)
(progn (accept-process-output proc timeout timeout-msecs))
(setq with-timeout-value (progn (accept-process-output proc timeout timeout-msecs)))
(progn (setq with-timeout-timer (run-with-timer ... nil ... with-timeout-tag)) (push with-timeout-timer with-timeout-timers) (setq with-timeout-value (progn ...)) nil)
(catch with-timeout-tag (progn (setq with-timeout-timer ...) (push with-timeout-timer with-timeout-timers) (setq with-timeout-value ...) nil))
(if (catch with-timeout-tag (progn ... ... ... nil)) (progn) (cancel-timer with-timeout-timer) with-timeout-value)
(let ((with-timeout-tag ...) with-timeout-value with-timeout-timer (with-timeout-timers with-timeout-timers)) (if (catch with-timeout-tag ...) (progn) (cancel-timer with-timeout-timer) with-timeout-value))
(with-timeout ((or timeout 1)) (accept-process-output proc timeout timeout-msecs))
(let (buffer-read-only last-coding-system-used) (with-timeout (...) (accept-process-output proc timeout timeout-msecs)))
(save-current-buffer (set-buffer (process-buffer proc)) (tramp-message proc 10 "%s %s" proc (process-status proc)) (let (buffer-read-only last-coding-system-used) (with-timeout ... ...)) (tramp-message proc 10 "\n%s" (buffer-string)))
(with-current-buffer (process-buffer proc) (tramp-message proc 10 "%s %s" proc (process-status proc)) (let (buffer-read-only last-coding-system-used) (with-timeout ... ...)) (tramp-message proc 10 "\n%s" (buffer-string)))
tramp-accept-process-output(#<process *tramp/scp root@harry*> 1)
(while (not found) (tramp-accept-process-output proc 1) (unless (memq ... ...) (tramp-error-with-buffer nil proc ... "Process has died")) (setq found (tramp-check-for-regexp proc regexp)))
(cond (timeout (while ... ...)) (t (while ... ... ... ...)))
(let ((found ...) (start-time ...)) (cond (timeout ...) (t ...)) (tramp-message proc 6 "\n%s" (buffer-string)) (when (not found) (if timeout ... ...)) found)
(save-current-buffer (set-buffer (process-buffer proc)) (let (... ...) (cond ... ...) (tramp-message proc 6 "\n%s" ...) (when ... ...) found))
(with-current-buffer (process-buffer proc) (let (... ...) (cond ... ...) (tramp-message proc 6 "\n%s" ...) (when ... ...) found))
tramp-wait-for-regexp(#<process *tramp/scp root@harry*> nil "\\(^\\|
next reply other threads:[~2009-12-01 11:03 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-01 11:03 Raphaël Berbain [this message]
2009-12-01 18:16 ` remote tramp hangs Andreas Politz
2009-12-01 19:04 ` Peter Dyballa
2009-12-01 19:47 ` Harry Putnam
2009-12-01 20:12 ` Michael Albinus
[not found] ` <mailman.11972.1259694305.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:46 ` Raphaël Berbain
[not found] ` <mailman.11976.1259697012.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:54 ` Raphaël Berbain
[not found] ` <mailman.11977.1259698390.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:55 ` Raphaël Berbain
2009-12-02 9:23 ` Michael Albinus
[not found] ` <mailman.12019.1259745826.2239.help-gnu-emacs@gnu.org>
2009-12-02 9:56 ` Raphaël Berbain
2009-12-02 10:15 ` Tim X
2009-12-02 13:56 ` Raphaël Berbain
2009-12-02 13:01 ` Michael Albinus
2009-12-02 17:02 ` Andreas Politz
[not found] ` <mailman.12025.1259758918.2239.help-gnu-emacs@gnu.org>
2009-12-02 13:56 ` Raphaël Berbain
2009-12-02 21:33 ` Michael Albinus
[not found] ` <mailman.12053.1259789634.2239.help-gnu-emacs@gnu.org>
2009-12-03 9:35 ` Raphaël Berbain
2009-12-03 11:22 ` Raphaël Berbain
2009-12-03 20:58 ` Michael Albinus
[not found] ` <mailman.12120.1259873928.2239.help-gnu-emacs@gnu.org>
2009-12-03 22:50 ` Raphaël Berbain
2009-12-07 6:43 ` Michael Albinus
[not found] ` <mailman.12409.1260168197.2239.help-gnu-emacs@gnu.org>
2009-12-14 14:20 ` Raphaël Berbain
2009-12-15 6:27 ` Michael Albinus
[not found] ` <mailman.12991.1260858434.2239.help-gnu-emacs@gnu.org>
2009-12-15 8:14 ` Raphaël Berbain
2009-12-15 21:17 ` Michael Albinus
2009-12-02 22:03 ` notbob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yzvfx7wroju.fsf@did75-11-82-231-40-223.fbx.proxad.net \
--to=raphael.berbain@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).