From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp hang waiting for prompts from remote shell Date: Fri, 08 Nov 2019 09:58:11 +0100 Message-ID: <87o8xmvj6k.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="264583"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Zhongwei Yao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 08 09:59:35 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iT07C-0016hX-4k for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Nov 2019 09:59:34 +0100 Original-Received: from localhost ([::1]:50766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iT07A-0001nX-N2 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Nov 2019 03:59:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59818) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iT060-0001iz-4s for help-gnu-emacs@gnu.org; Fri, 08 Nov 2019 03:58:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iT05y-00023l-Hn for help-gnu-emacs@gnu.org; Fri, 08 Nov 2019 03:58:20 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:54785) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iT05y-00022K-8O for help-gnu-emacs@gnu.org; Fri, 08 Nov 2019 03:58:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1573203493; bh=h21fhM3bj1HxfQE3jaO0+X6O6lyBAGwWX++KrVfcWNA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ZeO6TJ/VhSRaNyxyLnq9AYpY/d110t3lphyAZVSg3N/NCCxuWKLVG85oBdPuW/rH6 I7A4RqKs7Qh5Ieim7OTVuuUiNU2ZXUrHQ6G9arNFSOC/V+Uce48Mf/UKLzpscM6jy4 9LPmapGZP3U0FByr6VAjCImX0HxUNtGK7KFjVCXU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([217.70.140.254]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M59C8-1iRtdB06OS-001DqB; Fri, 08 Nov 2019 09:58:13 +0100 In-Reply-To: (Zhongwei Yao's message of "Fri, 8 Nov 2019 15:56:02 +0800") X-Provags-ID: V03:K1:Mk57lyC/6RGV68TOsgdhV+AgQsBwj4Of0DCN3UYDDFimEg2a2/H I3OT08LriP9/WSXef3BpAL1vEZ0IH6QnwMNSvnf1V5CdCj+qfz1YqKwVy3RA5z2mkk6/mAI PfP3fQ7uYiQ1215xcyQP5R/9I8U7UpR1UvoaDQFj6OsrwDr2ItEQX7iBHmv8ep5mp8qYDV1 Jr4Vxs6X3CXDMRfLhQ+qA== X-UI-Out-Filterresults: notjunk:1;V03:K0:CwlNffjqg3o=:hX1dllNHk6QUt32QjevaZs sa2XTLBcw1ixsfaAoaP9Plhz+UMSVw59rRyj0YNtT/5nuvCo7GCqGAbQfRLra+vEdlRzu5DKn y/X5vCW4iIMV5vy6k6f0jEED1zdrZVOb9lwnZw4dREpfYxUdPdRjXPoXYtd0aSwzj2gd0x8FZ z0ruEuSOofGRij3+jJwVzDGQFRK3g4ZJBt0G/3ntXGxqgLT/49iU2QJ6LgW8LnVQr3ye0bRZQ Oi67VpOD+wamFNCjfWDcPJh0RbsaoQRbPMoY0rho4JYdylzqvb8J7EgIeVKuBaHCS5UWf95VZ lN3tyF3d+JGQbRcb7QItlI+P7TMqtjBkMX8xJ/99Q8TmNq4JwwgMTpe2pkIeDdag50MjMwVSH xD59ArsbB3WqtpBIaHq4hvIhn3Tbr356dVANItulzAfL9mhETUdbPeWzJl9TfEMO4CZIQ87SN 3SKHPgLoVKWeLfhpUC3hhuCsOTA322xfXDpwxbGTaGPMaXB5PQEB52/mCzKnNYq0Z84nnJfjM G+F1ABa+y7MmeQWBYpmC3nmWMUvOMCSg363caCLCpKLn4kMyPzwQ2l9wVNdczv5afiDu82kmT ik9CPN3Y/fsTCycDiT3gRbkvOf7upLM4/ZtL75hetqYvGGSPXYGm8VNC33kPuijRG3SOKRXNN YAkqHuuWp8FejifFCi1QS0pgVsgd7ECxtD8ddFSZNP38Ih1vVkZ4AJciJPEXdXcLySU0ZC7wx Gl3pBQVObtoTr68NYuupqtanMuh/VDy96KGJMmUgNTrxszA8IKOsIlbodsXYzIj9G2I4kGw4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121812 Archived-At: Zhongwei Yao writes: > Hi, all, Hi Zhongwei, > when I open /ssh:ser03: in emacs, it hangs with prompt: Waiting for promp= ts > from remote shell... > > My setup is 1. start emacs by emacs -Q, 2. remove server ser03's .bashrc > and .bash_profile is cleared. and emacs is version 26.2, tramp version is > 2.3.5.26.2. > > I set the tramp-verbose to 10 and get the following log: > > 15:44:14.206923 tramp-set-connection-property (7) # process-buffer nil > 15:44:14.207182 tramp-maybe-open-connection (3) # Opening connection for > ser03 using ssh... > 15:44:14.207512 tramp-get-connection-property (7) # login-args undef > 15:44:14.207592 tramp-get-connection-property (7) # login-args undef > 15:44:14.207683 tramp-get-connection-property (7) # process-name nil > 15:44:14.207745 tramp-get-connection-property (7) # process-buffer nil > 15:44:14.208550 tramp-set-connection-property (7) # vector (tramp-file-na= me > ssh nil nil ser03 nil /mnt/ssd/user01/ nil) > 15:44:14.208636 tramp-maybe-open-connection (6) # /bin/sh -i > 15:44:14.208698 tramp-get-connection-property (7) # vector (tramp-file-na= me > ssh nil nil ser03 nil /mnt/ssd/user01/ nil) > 15:44:14.208769 tramp-get-connection-property (7) # check-remote-echo nil > 15:44:14.208825 tramp-get-connection-property (7) # check-remote-echo nil > 15:44:14.209513 tramp-accept-process-output (10) # *tramp/ssh ser03* run t > #$ > 15:44:14.209580 tramp-get-connection-property (7) # check-remote-echo nil > 15:44:14.209637 tramp-get-connection-property (7) # check-remote-echo nil > 15:44:14.209702 tramp-wait-for-regexp (6) # > #$ > 15:44:14.209770 tramp-get-connection-property (7) # login-program undef > 15:44:14.209838 tramp-get-connection-property (7) # login-args undef > 15:44:14.209903 tramp-get-connection-property (7) # login-env undef > 15:44:14.209968 tramp-get-connection-property (7) # async-args undef > 15:44:14.210030 tramp-get-connection-property (7) # connection-timeout un= def > 15:44:14.210090 tramp-get-connection-property (7) # temp-file undef > 15:44:14.210201 tramp-set-connection-property (7) # temp-file > /tmp/tramp.Retqm2 > 15:44:14.210691 tramp-maybe-open-connection (3) # Sending command =E2=80= =98exec ssh > -o ControlMaster=3Dauto -o ControlPath=3D'tramp.%C' -o ControlPersist= =3Dno -e > none ser03=E2=80=99 > 15:44:14.210773 tramp-get-connection-property (7) # process-name nil > 15:44:14.210838 tramp-get-connection-property (7) # remote-echo nil > 15:44:14.210896 tramp-send-command (6) # exec ssh -o ControlMaster=3Dau= to > -o ControlPath=3D'tramp.%C' -o ControlPersist=3Dno -e none ser03 > 15:44:14.210958 tramp-get-connection-property (7) # process-name nil > 15:44:14.211018 tramp-get-connection-property (7) # chunksize nil > 15:44:14.211077 tramp-set-connection-property (7) # last-cmd-time (24005 > 7374 211060 426000) > 15:44:14.211139 tramp-send-string (10) # exec ssh -o ControlMaster=3Dau= to > -o ControlPath=3D'tramp.%C' -o ControlPersist=3Dno -e none ser03 > 15:44:14.211199 tramp-get-connection-property (7) # process-buffer nil > 15:44:14.211281 tramp-set-connection-property (7) # first-password-request > nil > 15:44:14.211480 tramp-process-actions (3) # Waiting for prompts from remo= te > shell... > 15:44:15.212739 tramp-accept-process-output (10) # *tramp/ssh ser03* run = nil > 15:44:15.212812 tramp-process-one-action (5) # Looking for regexp > "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell > 15:44:15.212878 tramp-get-connection-property (7) # check-remote-echo nil > 15:44:15.212935 tramp-get-connection-property (7) # check-remote-echo nil > > I notice the remote shell doesn't have any output at the following line: > 15:44:15.212739 tramp-accept-process-output (10) # *tramp/ssh ser03* run = nil Right. But there's just one second between sending the ssh command, and this output line. Could you pls wait for some more seconds? > But when I try to run the command: > exec ssh -o ControlMaster=3Dauto -o ControlPath=3D'tramp.%C' -o > ControlPersist=3Dno -e none ser03 > it give the following output: > Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-47-generic x86_64) > > * Documentation: https://help.ubuntu.com > * Management: https://landscape.canonical.com > * Support: https://ubuntu.com/advantage > > 0 packages can be updated. > 0 updates are security updates. > > New release '18.04.3 LTS' available. > Run 'do-release-upgrade' to upgrade to it. > > > Last login: Fri Nov 8 15:42:10 2019 from 192.168.1.1 Hmm, it doesn't show any prompt. Is it just a copy/paste error, or is that the whole output running the command? > What can I do to solve it? Pls show *everything* you've got. And pls make these output listings and Tramp debug buffers attachments of your email, in order to prevent any mail program to chime in. Every character counts! > Best regards, > Zhongwei Best regards, Michael.