From: Sam Steingold <sds@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 22478@debbugs.gnu.org
Subject: bug#22478: 25.1.50; tramp error: Wrong method specification for ‘scp’
Date: Mon, 22 Aug 2016 18:02:37 -0400 [thread overview]
Message-ID: <CAFsbZ7YNhTKbrxNbTyGqhJ+ok+hiEJwLtkR4FsPEBHmv1=OR6A@mail.gmail.com> (raw)
In-Reply-To: <871t1q49c3.fsf@gmx.de>
alas, I see the same problem with the current git tip
On Mon, Aug 15, 2016 at 6:26 AM, Michael Albinus <michael.albinus@gmx.de> wrote:
> Sam Steingold <sds@gnu.org> writes:
>
>> Hi Michael,
>
> Hi Sam,
>
> We see the following error in the traces:
>
>> 16:59:43.011954 tramp-send-command (6) # tramp_perl_file_attributes /home/sds/.newsrc integer 2>/dev/null; echo tramp_exit_status $?
>> 16:59:43.039832 tramp-wait-for-regexp (6) #
>> tramp_exit_status 2
>> ///8a1abdf5d064a13495e6037e3daf8b9a#$
>
> Unfortunately, the call of the shell function tramp_perl_file_attributes
> redirects stderr, so we don't know exactly what happened.
>
> Checking the relevant code, I've found a potential problem in Tramp's
> cache handling. Not sure whether it is related to your problem, but I've
> committed the following patch to the master branch:
>
> --8<---------------cut here---------------start------------->8---
> *** /home/albinus/src/tramp/lisp/tramp-cache.el.~996962bcc3f8778ae9bae93e4ac926fde1d34ea9~ 2016-08-15 12:17:00.813388070 +0200
> --- /home/albinus/src/tramp/lisp/tramp-cache.el 2016-08-15 11:01:56.021498208 +0200
> ***************
> *** 237,245 ****
> (aset key 3 nil)
> (aset key 4 nil))
> (let* ((hash (tramp-get-hash-table key))
> ! (value (if (hash-table-p hash)
> ! (gethash property hash default)
> ! default)))
> (tramp-message key 7 "%s %s" property value)
> value))
>
> --- 237,250 ----
> (aset key 3 nil)
> (aset key 4 nil))
> (let* ((hash (tramp-get-hash-table key))
> ! (value
> ! ;; If the key is an auxiliary process object, check whether
> ! ;; the process is still alive.
> ! (if (and (processp key) (not (memq (process-status key) '(run open))))
> ! default
> ! (if (hash-table-p hash)
> ! (gethash property hash default)
> ! default))))
> (tramp-message key 7 "%s %s" property value)
> value))
>
> --8<---------------cut here---------------end--------------->8---
>
> Could you, pls, check whether this cures the problem already? If not, we
> need more information why the shell function fails. Pls apply the
> following patch:
>
> --8<---------------cut here---------------start------------->8---
> *** /home/albinus/src/tramp/lisp/tramp-sh.el.~b3f62af997d071306fe3ab571f54e0537557f373~ 2016-08-15 12:21:09.129601587 +0200
> --- /home/albinus/src/tramp/lisp/tramp-sh.el 2016-08-15 12:20:22.127720434 +0200
> ***************
> *** 1400,1405 ****
> --- 1400,1409 ----
> (tramp-message vec 5 "file attributes with perl: %s" localname)
> (tramp-maybe-send-script
> vec tramp-perl-file-attributes "tramp_perl_file_attributes")
> + (tramp-send-command
> + vec
> + (format "tramp_perl_file_attributes %s %s"
> + (tramp-shell-quote-argument localname) id-format))
> (tramp-send-command-and-read
> vec
> (format "tramp_perl_file_attributes %s %s"
> --8<---------------cut here---------------end--------------->8---
>
> Afterwards, rerun the test until it fails, with tramp-verbose set to
> 10. Maybe we will know better then what happens.
>
> Best regards, Michael.
--
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>
next prev parent reply other threads:[~2016-08-22 22:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-27 19:23 bug#22478: 25.1.50; tramp error: Wrong method specification for ‘scp’ Sam Steingold
2016-01-29 9:53 ` Michael Albinus
2016-07-15 18:56 ` Michael Albinus
2016-08-11 21:04 ` Sam Steingold
2016-08-15 10:26 ` Michael Albinus
2016-08-22 22:02 ` Sam Steingold [this message]
2016-08-23 6:25 ` Michael Albinus
2016-08-23 21:21 ` Sam Steingold
2016-08-24 9:11 ` Michael Albinus
[not found] ` <m1eg5e9szu.fsf@CLR-Data-sds.local>
2016-08-25 9:09 ` Michael Albinus
2016-08-25 13:47 ` Sam Steingold
2016-08-26 13:20 ` Michael Albinus
2016-08-25 14:03 ` Sam Steingold
2016-08-26 14:10 ` Michael Albinus
2016-08-26 16:01 ` Sam Steingold
2016-08-27 10:47 ` Michael Albinus
2016-09-06 7:42 ` Michael Albinus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFsbZ7YNhTKbrxNbTyGqhJ+ok+hiEJwLtkR4FsPEBHmv1=OR6A@mail.gmail.com' \
--to=sds@gnu.org \
--cc=22478@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.