tramp-devel
[Top][All Lists]
Advanced

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

Re: Tramp: hangs with “found remote shell prompt”, got `run nil “/bin:/u


From: Wenguang Wang
Subject: Re: Tramp: hangs with “found remote shell prompt”, got `run nil “/bin:/usr/bin”` repeatedly in debug buffer
Date: Tue, 7 Apr 2020 19:15:36 -0700

Michael,

Thanks for the hint! It still does not work.

On Apr 7, 2020, at 10:48 AM, Michael Albinus <address@hidden> wrote:

21:07:38 ~ local@Homes $

That means, that "21:07:38 ~ local@Homes $ " is your shell prompt. Tramp
cannot recognize it; read the Tramp manual how to set the remote shell
prompt for Tramp.

I hope the error message is not "found remote shell prompt” when it cannot find the shell prompt :)

So I added the following line in the “~/.profile” of the Linux box:

[[ $TERM == "dumb" ]] && PS1='$ ' && return

This changed the shell prompt to “$ “. Then I ran the following command:

(setq tramp-shell-prompt-pattern "^[^>$][>$] *")

Now my tramp session hang on a slightly different error message: Found remote shell prompt on ‘homes.local’

And the full trace file is below:

==== File: *debug tramp/ssh local@homes.local* ====
;; Emacs: 26.3 Tramp: 2.3.5.26.3 -*- mode: outline; -*-
;; Location: /Applications/Emacs.app/Contents/Resources/lisp/net/tramp.elc Git: nil
19:09:20.274873 tramp-get-connection-property (7) # ~ undef
19:09:20.274982 tramp-get-connection-property (7) # process-name nil
19:09:20.275043 tramp-get-connection-property (7) # process-name nil
19:09:20.275099 tramp-get-connection-property (7) # process-buffer nil
19:09:20.275159 tramp-get-connection-property (7) # process-buffer nil
19:09:20.275208 tramp-set-connection-property (7) # process-buffer nil
19:09:20.275423 tramp-maybe-open-connection (3) # Opening connection for local@homes.local using ssh...
19:09:20.275648 tramp-get-connection-property (7) # login-args undef
19:09:20.275718 tramp-get-connection-property (7) # login-args undef
19:09:20.275799 tramp-get-connection-property (7) # process-name nil
19:09:20.275859 tramp-get-connection-property (7) # process-buffer nil
19:09:20.297101 tramp-set-connection-property (7) # vector (tramp-file-name ssh local nil homes.local nil  nil)
19:09:20.297305 tramp-maybe-open-connection (6) # /bin/sh -i
19:09:20.297382 tramp-get-connection-property (7) # vector (tramp-file-name ssh local nil homes.local nil  nil)
19:09:20.297455 tramp-get-connection-property (7) # check-remote-echo nil
19:09:20.297516 tramp-get-connection-property (7) # check-remote-echo nil
19:09:20.305218 tramp-accept-process-output (10) # *tramp/ssh local@homes.local* run t
#$ 
19:09:20.305314 tramp-get-connection-property (7) # check-remote-echo nil
19:09:20.305390 tramp-get-connection-property (7) # check-remote-echo nil
19:09:20.305447 tramp-wait-for-regexp (6) # 
#$ 
19:09:20.305525 tramp-get-connection-property (7) # login-program undef
19:09:20.305588 tramp-get-connection-property (7) # login-args undef
19:09:20.305649 tramp-get-connection-property (7) # login-env undef
19:09:20.305718 tramp-get-connection-property (7) # async-args undef
19:09:20.305774 tramp-get-connection-property (7) # connection-timeout undef
19:09:20.305832 tramp-get-connection-property (7) # temp-file undef
19:09:20.306042 tramp-set-connection-property (7) # temp-file /var/folders/zw/855cv2ts5zggnjs0f4p__7xr0000gp/T/tramp.abfFDT
19:09:20.311624 tramp-maybe-open-connection (3) # Sending command ‘exec ssh -l local  -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none homes.local’
19:09:20.311709 tramp-get-connection-property (7) # process-name nil
19:09:20.311795 tramp-get-connection-property (7) # remote-echo nil
19:09:20.311865 tramp-send-command (6) # exec ssh -l local  -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none homes.local
19:09:20.311922 tramp-get-connection-property (7) # process-name nil
19:09:20.311982 tramp-get-connection-property (7) # chunksize nil
19:09:20.312036 tramp-set-connection-property (7) # last-cmd-time (24205 12880 312018 0)
19:09:20.312104 tramp-send-string (10) # exec ssh -l local  -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none homes.local
19:09:20.312284 tramp-get-connection-property (7) # process-buffer nil
19:09:20.312400 tramp-set-connection-property (7) # first-password-request 
19:09:20.312591 tramp-process-actions (3) # Waiting for prompts from remote shell...
19:09:21.191932 tramp-accept-process-output (10) # *tramp/ssh local@homes.local* run t
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-76-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

 * Kubernetes 1.18 GA is now available! See https://microk8s.io for docs or
   install it with:

     sudo snap install microk8s --channel=1.18 --classic

 * Multipass 1.1 adds proxy support for developers behind enterprise
   firewalls. Rapid prototyping for cloud operations just got easier.


 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:

5 packages can be updated.
4 updates are security updates.

*** System restart required ***
Last login: Tue Apr  7 19:08:40 2020 from fe80::1c74:9720:e127:bea4%wlp2s0
19:09:21.192109 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
19:09:21.192208 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.192276 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.194225 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
19:09:21.194322 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.194395 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.195184 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
19:09:21.195261 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.195320 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.195652 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
19:09:21.195716 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.195774 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.195924 tramp-process-one-action (5) # Looking for regexp "\(^[^>$][>$] *\)\'" from remote shell
19:09:21.195984 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196036 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196164 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
19:09:21.196229 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196288 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196381 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
19:09:21.196444 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196505 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196609 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
19:09:21.196669 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196723 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196804 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
19:09:21.196865 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196927 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.196988 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
19:09:21.220605 tramp-accept-process-output (10) # *tramp/ssh local@homes.local* run t
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-76-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

 * Kubernetes 1.18 GA is now available! See https://microk8s.io for docs or
   install it with:

     sudo snap install microk8s --channel=1.18 --classic

 * Multipass 1.1 adds proxy support for developers behind enterprise
   firewalls. Rapid prototyping for cloud operations just got easier.


 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:

5 packages can be updated.
4 updates are security updates.

*** System restart required ***
Last login: Tue Apr  7 19:08:40 2020 from fe80::1c74:9720:e127:bea4%wlp2s0
19:09:21.220894 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
19:09:21.220985 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.221062 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.223025 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
19:09:21.223133 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.223204 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.223987 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
19:09:21.224058 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.224114 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.224443 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
19:09:21.224512 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.224582 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.224656 tramp-process-one-action (5) # Call ‘tramp-action-succeed’
19:09:21.224750 tramp-get-connection-property (7) # process-buffer nil
19:09:21.224814 tramp-process-actions (6) # 
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-76-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

 * Kubernetes 1.18 GA is now available! See https://microk8s.io for docs or
   install it with:

     sudo snap install microk8s --channel=1.18 --classic

 * Multipass 1.1 adds proxy support for developers behind enterprise
   firewalls. Rapid prototyping for cloud operations just got easier.


 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:

5 packages can be updated.
4 updates are security updates.

*** System restart required ***
Last login: Tue Apr  7 19:08:40 2020 from fe80::1c74:9720:e127:bea4%wlp2s0
19:09:21.224922 tramp-get-connection-property (7) # process-buffer nil
19:09:21.225137 tramp-process-actions (3) # Waiting for prompts from remote shell...done
19:09:21.225319 tramp-maybe-open-connection (3) # Found remote shell prompt on ‘homes.local’
19:09:21.225388 tramp-get-connection-property (7) # process-buffer nil
19:09:21.226282 tramp-get-file-property (8) # /@AUCDIR/files-x.elc file-readable-p undef
19:09:21.226374 tramp-get-file-property (8) # /@AUCDIR/files-x.elc file-attributes-string nil
19:09:21.226910 tramp-get-file-property (8) # /@AUCDIR/files-x.elc file-attributes-string undef
19:09:21.226978 tramp-get-connection-property (7) # stat undef
19:09:21.227031 tramp-get-remote-stat (5) # Finding a suitable ‘stat’ command
19:09:21.227086 tramp-get-connection-property (7) # remote-path undef
19:09:21.227145 tramp-get-connection-property (7) # process-name nil
19:09:21.227200 tramp-get-connection-property (7) # process-name nil
19:09:21.227252 tramp-get-connection-property (7) # process-buffer nil
19:09:21.227317 tramp-get-connection-property (7) # last-cmd-time (24205 12880 312018 0)
19:09:21.227382 tramp-get-connection-property (7) # process-name nil
19:09:21.227436 tramp-get-connection-property (7) # remote-echo nil
19:09:21.227484 tramp-send-command (6) # echo \"`getconf PATH 2>/dev/null`\" 2>/dev/null; echo tramp_exit_status $?
19:09:21.227539 tramp-get-connection-property (7) # process-name nil
19:09:21.227592 tramp-get-connection-property (7) # chunksize nil
19:09:21.227642 tramp-set-connection-property (7) # last-cmd-time (24205 12881 227627 0)
19:09:21.227699 tramp-send-string (10) # echo \"`getconf PATH 2>/dev/null`\" 2>/dev/null; echo tramp_exit_status $?
19:09:21.227752 tramp-get-connection-property (7) # process-buffer nil
19:09:21.227845 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.227901 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.241840 tramp-accept-process-output (10) # *tramp/ssh local@homes.local* run t
"/bin:/usr/bin"
tramp_exit_status 0
19:09:21.241978 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.242061 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.243955 tramp-accept-process-output (10) # *tramp/ssh local@homes.local* run t
"/bin:/usr/bin"
tramp_exit_status 0
19:09:21.244106 tramp-get-connection-property (7) # check-remote-echo nil
19:09:21.244201 tramp-get-connection-property (7) # check-remote-echo nil
19:09:22.250602 tramp-accept-process-output (10) # *tramp/ssh local@homes.local* run nil
"/bin:/usr/bin"
tramp_exit_status 0
19:09:22.250750 tramp-get-connection-property (7) # check-remote-echo nil
19:09:22.250835 tramp-get-connection-property (7) # check-remote-echo nil
19:09:23.254633 tramp-accept-process-output (10) # *tramp/ssh local@homes.local* run nil
"/bin:/usr/bin"
tramp_exit_status 0
19:09:23.254870 tramp-get-connection-property (7) # check-remote-echo nil
19:09:23.255004 tramp-get-connection-property (7) # check-remote-echo nil
19:09:24.258471 tramp-accept-process-output (10) # *tramp/ssh local@homes.local* run nil
"/bin:/usr/bin"
tramp_exit_status 0
19:09:24.258623 tramp-get-connection-property (7) # check-remote-echo nil
19:09:24.258719 tramp-get-connection-property (7) # check-remote-echo nil
19:09:24.685856 tramp-file-name-handler (1) # Interrupt received in operation (file-attributes /ssh:local@homes.local:/@AUCDIR/files-x.elc string)
"/bin:/usr/bin"
tramp_exit_status 0
19:09:24.686009 tramp-file-name-handler (1) # Interrupt received in operation (file-readable-p /ssh:local@homes.local:/@AUCDIR/files-x.elc)
"/bin:/usr/bin"
tramp_exit_status 0
19:09:24.686332 tramp-maybe-open-connection (3) # Opening connection for local@homes.local using ssh...failed
19:09:24.686480 tramp-get-file-property (8) #  file-truename nil
19:09:24.686569 tramp-flush-directory-property (8) # 
19:09:24.686666 tramp-get-connection-property (7) # process-name nil
19:09:24.686747 tramp-get-connection-property (7) # process-name nil
19:09:24.686832 tramp-flush-connection-property (7) # *tramp/ssh local@homes.local* (vector temp-file last-cmd-time)
19:09:24.686924 tramp-get-connection-property (7) # process-name nil
19:09:24.690743 tramp-flush-connection-property (7) # (tramp-file-name ssh local nil homes.local nil nil nil) (process-buffer first-password-request)
19:09:24.690857 tramp-get-connection-property (7) # process-buffer nil
19:09:24.690992 tramp-file-name-handler (1) # Interrupt received in operation (expand-file-name /ssh:local@homes.local: nil)


reply via email to

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