* tramp trouble with 24.3
@ 2013-04-19 13:35 Neal Becker
2013-04-19 14:38 ` Michael Albinus
0 siblings, 1 reply; 11+ messages in thread
From: Neal Becker @ 2013-04-19 13:35 UTC (permalink / raw)
To: help-gnu-emacs
I am having trouble with tramp on 24.3 (works fine on 24.2)
Trying e.g., /root@localhost:/etc/ asks for pw and then just hangs.
Similar for /sudo:root@localhost:/etc/
No problem on 24.2
Still true if started with emacs -Q
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 13:35 tramp trouble with 24.3 Neal Becker
@ 2013-04-19 14:38 ` Michael Albinus
2013-04-19 14:53 ` Neal Becker
0 siblings, 1 reply; 11+ messages in thread
From: Michael Albinus @ 2013-04-19 14:38 UTC (permalink / raw)
To: Neal Becker; +Cc: help-gnu-emacs
Neal Becker <ndbecker2@gmail.com> writes:
Hi Neal,
> I am having trouble with tramp on 24.3 (works fine on 24.2)
>
> Trying e.g., /root@localhost:/etc/ asks for pw and then just hangs.
>
> Similar for /sudo:root@localhost:/etc/
>
> No problem on 24.2
>
> Still true if started with emacs -Q
Which system are you running on? Cygwin? Then you might consult
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14030>.
Otherwise, please eval (setq tramp-verbose 6) and rerun the test. Show
the resulting debug buffer from Tramp.
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 14:38 ` Michael Albinus
@ 2013-04-19 14:53 ` Neal Becker
2013-04-19 15:05 ` Michael Albinus
0 siblings, 1 reply; 11+ messages in thread
From: Neal Becker @ 2013-04-19 14:53 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 660 bytes --]
Michael Albinus wrote:
> Neal Becker <ndbecker2@gmail.com> writes:
>
> Hi Neal,
>
>> I am having trouble with tramp on 24.3 (works fine on 24.2)
>>
>> Trying e.g., /root@localhost:/etc/ asks for pw and then just hangs.
>>
>> Similar for /sudo:root@localhost:/etc/
>>
>> No problem on 24.2
>>
>> Still true if started with emacs -Q
>
> Which system are you running on? Cygwin? Then you might consult
> <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14030>.
>
> Otherwise, please eval (setq tramp-verbose 6) and rerun the test. Show
> the resulting debug buffer from Tramp.
>
> Best regards, Michael.
I got it to hang using /root@nbecker1:
debug attached
[-- Attachment #2: debug --]
[-- Type: text/plain, Size: 881 bytes --]
;; GNU Emacs: 24.3.1 Tramp: 2.2.6-24.3 -*- mode: outline; -*-
10:48:25.009465 tramp-maybe-open-connection (3) # Opening connection for root@nbecker1 using scpc...
10:48:25.010264 tramp-maybe-open-connection (6) # /bin/sh -i
10:48:25.016931 tramp-wait-for-regexp (6) #
#$
10:48:25.051517 tramp-maybe-open-connection (3) # Sending command `exec ssh -l root -o ControlPath=/tmp/tramp.14240TEw.%r@%h:%p -o ControlMaster=yes -e none nbecker1'
10:48:25.051642 tramp-send-command (6) # exec ssh -l root -o ControlPath=/tmp/tramp.14240TEw.%r@%h:%p -o ControlMaster=yes -e none nbecker1
10:48:25.051935 tramp-process-actions (3) # Waiting for prompts from remote shell
10:48:25.141334 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
10:48:25.141459 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 14:53 ` Neal Becker
@ 2013-04-19 15:05 ` Michael Albinus
2013-04-19 15:24 ` Neal Becker
0 siblings, 1 reply; 11+ messages in thread
From: Michael Albinus @ 2013-04-19 15:05 UTC (permalink / raw)
To: Neal Becker; +Cc: help-gnu-emacs
Neal Becker <ndbecker2@gmail.com> writes:
> I got it to hang using /root@nbecker1:
>
> debug attached
Very short. Did you wait until the timeout? Did you shorten the traces?
Still the question: what's your local system? Could you perform in a
terminal window
# uname -a
Anyway, what happens, if you send from a terminal window
# ssh -l root -o ControlPath=/tmp/tramp.14240TEw.%r@%h:%p -o ControlMaster=yes -e none nbecker1
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 15:05 ` Michael Albinus
@ 2013-04-19 15:24 ` Neal Becker
2013-04-19 17:56 ` Michael Albinus
0 siblings, 1 reply; 11+ messages in thread
From: Neal Becker @ 2013-04-19 15:24 UTC (permalink / raw)
To: help-gnu-emacs
Michael Albinus wrote:
> Neal Becker <ndbecker2@gmail.com> writes:
>
>> I got it to hang using /root@nbecker1:
>>
>> debug attached
>
> Very short. Did you wait until the timeout? Did you shorten the traces?
>
> Still the question: what's your local system? Could you perform in a
> terminal window
>
> # uname -a
>
> Anyway, what happens, if you send from a terminal window
>
> # ssh -l root -o ControlPath=/tmp/tramp.14240TEw.%r@%h:%p -o
> # ControlMaster=yes -e none nbecker1
>
> Best regards, Michael.
OK, if I wait a LONG time, it does respond. But it still hangs on 'find file'.
These two machines are in the same room on a 1G connection. On 24.2 it is
instant.
Trying your experiment seems to work:
ssh -l root -o ControlPath=/tmp/tramp.1817NCW.%r@%h:%p -o ControlMaster=yes -e
none nbecker1
root@nbecker1's password:
ControlSocket /tmp/tramp.1817NCW.root@nbecker1:22 already exists, disabling
multiplexing
Last login: Fri Apr 19 11:19:44 2013 from nbecker7.hughes.com
[root@nbecker1 ~]#
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 15:24 ` Neal Becker
@ 2013-04-19 17:56 ` Michael Albinus
2013-04-19 18:23 ` Neal Becker
0 siblings, 1 reply; 11+ messages in thread
From: Michael Albinus @ 2013-04-19 17:56 UTC (permalink / raw)
To: Neal Becker; +Cc: help-gnu-emacs
Neal Becker <ndbecker2@gmail.com> writes:
Hi Neal,
> ssh -l root -o ControlPath=/tmp/tramp.1817NCW.%r@%h:%p -o ControlMaster=yes -e
> none nbecker1
> root@nbecker1's password:
> ControlSocket /tmp/tramp.1817NCW.root@nbecker1:22 already exists, disabling
> multiplexing
> Last login: Fri Apr 19 11:19:44 2013 from nbecker7.hughes.com
> [root@nbecker1 ~]#
Looks like this prompt does not match `tramp-shell-prompt-pattern'. Did
you have some Tramp special settings in Emacs 24.2?
I don't remember that `tramp-shell-prompt-pattern' has changed last
months, but I might be wrong. Anyway, adapt `tramp-shell-prompt-pattern'
for that prompt. The Tramp manual gives you some hints.
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 17:56 ` Michael Albinus
@ 2013-04-19 18:23 ` Neal Becker
2013-04-19 18:38 ` Michael Albinus
0 siblings, 1 reply; 11+ messages in thread
From: Neal Becker @ 2013-04-19 18:23 UTC (permalink / raw)
To: help-gnu-emacs
Michael Albinus wrote:
> Neal Becker <ndbecker2@gmail.com> writes:
>
> Hi Neal,
>
>> ssh -l root -o ControlPath=/tmp/tramp.1817NCW.%r@%h:%p -o ControlMaster=yes
>> -e none nbecker1
>> root@nbecker1's password:
>> ControlSocket /tmp/tramp.1817NCW.root@nbecker1:22 already exists, disabling
>> multiplexing
>> Last login: Fri Apr 19 11:19:44 2013 from nbecker7.hughes.com
>> [root@nbecker1 ~]#
>
> Looks like this prompt does not match `tramp-shell-prompt-pattern'. Did
> you have some Tramp special settings in Emacs 24.2?
>
> I don't remember that `tramp-shell-prompt-pattern' has changed last
> months, but I might be wrong. Anyway, adapt `tramp-shell-prompt-pattern'
> for that prompt. The Tramp manual gives you some hints.
>
> Best regards, Michael.
No I didn't set anything special, and in fact, had earlier seen the problem with
emacs -Q.
This is a linux box talking to a linux box, so if doesn't work for me, I'll bet
I'm not the only one who will/has seen this.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 18:23 ` Neal Becker
@ 2013-04-19 18:38 ` Michael Albinus
2013-04-19 18:42 ` Neal Becker
0 siblings, 1 reply; 11+ messages in thread
From: Michael Albinus @ 2013-04-19 18:38 UTC (permalink / raw)
To: Neal Becker; +Cc: help-gnu-emacs
Neal Becker <ndbecker2@gmail.com> writes:
> This is a linux box talking to a linux box, so if doesn't work for me, I'll bet
> I'm not the only one who will/has seen this.
Your prompt doesn't look to be the default one. I guess it is
customized, isn't it?
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 18:38 ` Michael Albinus
@ 2013-04-19 18:42 ` Neal Becker
2013-04-19 19:29 ` Neal Becker
0 siblings, 1 reply; 11+ messages in thread
From: Neal Becker @ 2013-04-19 18:42 UTC (permalink / raw)
To: help-gnu-emacs
Michael Albinus wrote:
> Neal Becker <ndbecker2@gmail.com> writes:
>
>> This is a linux box talking to a linux box, so if doesn't work for me, I'll
>> bet I'm not the only one who will/has seen this.
>
> Your prompt doesn't look to be the default one. I guess it is
> customized, isn't it?
>
> Best regards, Michael.
No it isn't. Maybe it's cause color prompts are on by default? That's not my
idea. That's fedora 18.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 18:42 ` Neal Becker
@ 2013-04-19 19:29 ` Neal Becker
2013-04-22 10:45 ` Michael Albinus
0 siblings, 1 reply; 11+ messages in thread
From: Neal Becker @ 2013-04-19 19:29 UTC (permalink / raw)
To: help-gnu-emacs
Neal Becker wrote:
> Michael Albinus wrote:
>
>> Neal Becker <ndbecker2@gmail.com> writes:
>>
>>> This is a linux box talking to a linux box, so if doesn't work for me, I'll
>>> bet I'm not the only one who will/has seen this.
>>
>> Your prompt doesn't look to be the default one. I guess it is
>> customized, isn't it?
>>
>> Best regards, Michael.
>
> No it isn't. Maybe it's cause color prompts are on by default? That's not my
> idea. That's fedora 18.
Also, shell-prompt-pattern is working in shell-mode. In shell mode:
echo $PS1
\[\033[01;32m\]\u@\h\[\033[00m\]
\[\033[01;34m\]\W\[\033[00m\]\[\033[1;32m\]\$\[\033[m\]
Also, don't forget, the problem is not seen in 24.2
I used emacs from fedora. Used rpmbuild --rebuild to build the fedora 20 rpm on
fedora 18. I don't see anything added by the fedora rpm that would change this
prompt regex (but haven't searched exhaustively)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tramp trouble with 24.3
2013-04-19 19:29 ` Neal Becker
@ 2013-04-22 10:45 ` Michael Albinus
0 siblings, 0 replies; 11+ messages in thread
From: Michael Albinus @ 2013-04-22 10:45 UTC (permalink / raw)
To: Neal Becker; +Cc: help-gnu-emacs
Neal Becker <ndbecker2@gmail.com> writes:
Hi Neal,
> Neal Becker wrote:
>
>> Michael Albinus wrote:
>>
>>> Neal Becker <ndbecker2@gmail.com> writes:
>>>
>>>> This is a linux box talking to a linux box, so if doesn't work for me, I'll
>>>> bet I'm not the only one who will/has seen this.
>>>
>>> Your prompt doesn't look to be the default one. I guess it is
>>> customized, isn't it?
>>>
>>> Best regards, Michael.
>>
>> No it isn't. Maybe it's cause color prompts are on by default? That's not my
>> idea. That's fedora 18.
Many people are using Fedora 18, and I haven't seen any other complaint yet.
> Also, shell-prompt-pattern is working in shell-mode. In shell mode:
>
> echo $PS1
> \[\033[01;32m\]\u@\h\[\033[00m\]
> \[\033[01;34m\]\W\[\033[00m\]\[\033[1;32m\]\$\[\033[m\]
And? Tramp does not use shell-mode. Anyway, this prompt is hard enough
to parse. The Tramp manual gives you some hints how to avoid escape
sequences, when scripts are accessing your account from remote.
> Also, don't forget, the problem is not seen in 24.2
Maybe there was a pattern change in Tramp. As I said, I don't remember, but ...
> I used emacs from fedora. Used rpmbuild --rebuild to build the fedora
> 20 rpm on
> fedora 18. I don't see anything added by the fedora rpm that would change this
> prompt regex (but haven't searched exhaustively)
Sorry, I don't use Fedore, and I don't understand what you have changed
via rpmbuild etc. Anyway, if I could see your complete prompt (including
escape sequence), I could try to adapt tramp-shell-prompt-pattern to
your needs. The example above is not sufficient, because it does not
expand user and host names, and alike.
Just run your test case with tramp-verbose 10. There will be traces like
--8<---------------cut here---------------start------------->8---
12:37:39.845362 tramp-accept-process-output (10) #
#$
--8<---------------cut here---------------end--------------->8---
(#$ is my prompt). Send those lines as coded attachment, in order not to
loose escape sequences. I will analyze them.
You could send it directly to me, in order to avoid bit lossages.
Best regards, Michael.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-04-22 10:45 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 13:35 tramp trouble with 24.3 Neal Becker
2013-04-19 14:38 ` Michael Albinus
2013-04-19 14:53 ` Neal Becker
2013-04-19 15:05 ` Michael Albinus
2013-04-19 15:24 ` Neal Becker
2013-04-19 17:56 ` Michael Albinus
2013-04-19 18:23 ` Neal Becker
2013-04-19 18:38 ` Michael Albinus
2013-04-19 18:42 ` Neal Becker
2013-04-19 19:29 ` Neal Becker
2013-04-22 10:45 ` Michael Albinus
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).