From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raphael.berbain@gmail.com (=?utf-8?Q?Rapha=C3=ABl?= Berbain) Newsgroups: gmane.emacs.help Subject: remote tramp hangs Date: Tue, 01 Dec 2009 12:03:26 +0100 Organization: Guest of ProXad - France Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1259690369 8492 80.91.229.12 (1 Dec 2009 17:59:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Dec 2009 17:59:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 01 18:59:22 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NFWzr-0000NL-7p for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Dec 2009 18:59:22 +0100 Original-Received: from localhost ([127.0.0.1]:49549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFWzp-0006ir-Ru for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Dec 2009 12:58:41 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp18-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:0PRbAxq8Vkz460i4m/BrcXYr1c0= Original-Lines: 311 Original-NNTP-Posting-Date: 01 Dec 2009 12:16:30 MET Original-NNTP-Posting-Host: 82.231.40.223 Original-X-Trace: 1259666190 news-3.free.fr 29828 82.231.40.223:57765 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:175205 X-Mailman-Approved-At: Tue, 01 Dec 2009 12:55:14 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70285 Archived-At: 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(# 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(# 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(# nil "\\(^\\|