GNU bug report logs - #36969
27.0.50; tramp ftp fails (was Re: master 7aaf500: Stronger check for Tramp method)

Previous Next

Package: emacs;

Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>

Date: Thu, 8 Aug 2019 07:35:02 UTC

Severity: normal

Tags: patch

Found in version 27.0.50

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36969 in the body.
You can then email your comments to 36969 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36969; Package emacs. (Thu, 08 Aug 2019 07:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 08 Aug 2019 07:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: bug-gnu-emacs <at> gnu.org
Cc: Michael Albinus <michael.albinus <at> gmx.de>
Subject: 27.0.50; tramp ftp fails
 (was Re: master 7aaf500: Stronger check for Tramp method)
Date: Thu, 08 Aug 2019 16:33:57 +0900
Hi,

I'm a bit surprised that I've never used tramp ftp for two months. ;-)
But yesterday, I found it doesn't work.  A recipe is here:

(require 'tramp)
(tramp-change-syntax 'simplified)
(setq tramp-default-method "ftp")
(setq ange-ftp-try-passive-mode t)
(setq debug-on-error t)
(dired "/jpl.org:~/")

Where "/jpl.org:~/" is my home directory in the jpl.org host,
user name and password are set in the ~/.netrc file as follows:

machine jpl.org login MyAcountName password MyPassword

The symptom is that it fails with the message:

tramp-error: Method `' is not known.

A Lisp backtrace is attached below, and a workaround I found to
make it work is to revert your change made in tramp.el with the
revno 7aaf500:

On Tue, 04 Jun 2019 06:51:53 -0400, Michael Albinus wrote:
> branch: master
> commit 7aaf500701be3b51c686b7d86c9b505ef5fa9b8f
> Author: Michael Albinus <michael.albinus <at> gmx.de>
> Commit: Michael Albinus <michael.albinus <at> gmx.de>

>     Stronger check for Tramp method
[...]
>     * lisp/net/tramp.el (tramp-dissect-file-name): Check for proper method.
[...]
> --- a/lisp/net/tramp.el
> +++ b/lisp/net/tramp.el
> @@ -1435,6 +1435,12 @@ default values are used."
>  	    (setq v (make-tramp-file-name
>  		     :method method :user user :domain domain :host host
>  		     :port port :localname localname :hop hop))
> +	  ;; The method must be known.
> +	  (unless (or (tramp-completion-mode-p)
> +		      (string-equal method tramp-default-method-marker)
> +		      (assoc method tramp-methods))
> +	    (tramp-user-error
> +	     v "Method `%s' is not known." method))
>  	  ;; Only some methods from tramp-sh.el do support multi-hops.
>  	  (when (and
>  		 hop

Thanks in advance.
Regards,

In GNU Emacs 27.0.50 (build 1, x86_64-pc-cygwin, GTK+ Version 3.22.28)
 of 2019-08-08 built on localhost
Windowing system distributor 'The Cygwin/X Project', version 11.0.12004000

Debugger entered--Lisp error: (user-error "Method `' is not known.")
  signal(user-error ("Method `' is not known."))
  tramp-error((tramp-file-name "" nil nil "jpl.org" nil #("/" 0 1 (fontified nil front-sticky (field inhibit-line-move-field-capture) rear-nonsticky t field output inhibit-line-move-field-capture t)) nil) user-error "Method `%s' is not known." "")
  apply(tramp-error (tramp-file-name "" nil nil "jpl.org" nil #("/" 0 1 (fontified nil front-sticky (field inhibit-line-move-field-capture) rear-nonsticky t field output inhibit-line-move-field-capture t)) nil) user-error "Method `%s' is not known." "")
  tramp-user-error((tramp-file-name "" nil nil "jpl.org" nil #("/" 0 1 (fontified nil front-sticky (field inhibit-line-move-field-capture) rear-nonsticky t field output inhibit-line-move-field-capture t)) nil) "Method `%s' is not known." "")
  tramp-dissect-file-name(#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)) t)
  tramp-ftp-file-name-handler(file-exists-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  apply(tramp-ftp-file-name-handler file-exists-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  tramp-file-name-handler(file-exists-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  file-name-case-insensitive-p(#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  apply(file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  ange-ftp-run-real-handler(file-name-case-insensitive-p (#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil))))
  ange-ftp-hook-function(file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  apply(ange-ftp-hook-function file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  tramp-ftp-file-name-handler(file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  apply(tramp-ftp-file-name-handler file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  tramp-file-name-handler(file-name-case-insensitive-p #("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  file-name-case-insensitive-p(#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  abbreviate-file-name(#("/jpl.org:/" 9 10 (inhibit-line-move-field-capture t field output rear-nonsticky t front-sticky (field inhibit-line-move-field-capture) fontified nil)))
  dired-noselect("/jpl.org:~/" nil)
  #f(compiled-function (dirname &optional switches) "\"Edit\" directory DIRNAME--delete, rename, print, etc. some files in it.\nOptional second argument SWITCHES specifies the `ls' options used.\n(Interactively, use a prefix argument to be able to specify SWITCHES.)\n\nIf DIRNAME is a string, Dired displays a list of files in DIRNAME (which\nmay also have shell wildcards appended to select certain files).\n\nIf DIRNAME is a cons, its first element is taken as the directory name\nand the rest as an explicit list of files to make directory entries for.\nIn this case, SWITCHES are applied to each of the files separately, and\ntherefore switches that control the order of the files in the produced\nlisting have no effect.\n\n\\<dired-mode-map>You can flag files for deletion with \\[dired-flag-file-deletion] and then\ndelete them by typing \\[dired-do-flagged-delete].\nType \\[describe-mode] after entering Dired for more info.\n\nIf DIRNAME is already in a Dired buffer, that buffer is used without refresh." (interactive (dired-read-dir-and-switches "")) #<bytecode 0x180165f55>)("/jpl.org:~/" nil)
  ls-lisp--dired(#f(compiled-function (dirname &optional switches) "\"Edit\" directory DIRNAME--delete, rename, print, etc. some files in it.\nOptional second argument SWITCHES specifies the `ls' options used.\n(Interactively, use a prefix argument to be able to specify SWITCHES.)\n\nIf DIRNAME is a string, Dired displays a list of files in DIRNAME (which\nmay also have shell wildcards appended to select certain files).\n\nIf DIRNAME is a cons, its first element is taken as the directory name\nand the rest as an explicit list of files to make directory entries for.\nIn this case, SWITCHES are applied to each of the files separately, and\ntherefore switches that control the order of the files in the produced\nlisting have no effect.\n\n\\<dired-mode-map>You can flag files for deletion with \\[dired-flag-file-deletion] and then\ndelete them by typing \\[dired-do-flagged-delete].\nType \\[describe-mode] after entering Dired for more info.\n\nIf DIRNAME is already in a Dired buffer, that buffer is used without refresh." (interactive (dired-read-dir-and-switches "")) #<bytecode 0x180165f55>) "/jpl.org:~/")
  apply(ls-lisp--dired #f(compiled-function (dirname &optional switches) "\"Edit\" directory DIRNAME--delete, rename, print, etc. some files in it.\nOptional second argument SWITCHES specifies the `ls' options used.\n(Interactively, use a prefix argument to be able to specify SWITCHES.)\n\nIf DIRNAME is a string, Dired displays a list of files in DIRNAME (which\nmay also have shell wildcards appended to select certain files).\n\nIf DIRNAME is a cons, its first element is taken as the directory name\nand the rest as an explicit list of files to make directory entries for.\nIn this case, SWITCHES are applied to each of the files separately, and\ntherefore switches that control the order of the files in the produced\nlisting have no effect.\n\n\\<dired-mode-map>You can flag files for deletion with \\[dired-flag-file-deletion] and then\ndelete them by typing \\[dired-do-flagged-delete].\nType \\[describe-mode] after entering Dired for more info.\n\nIf DIRNAME is already in a Dired buffer, that buffer is used without refresh." (interactive (dired-read-dir-and-switches "")) #<bytecode 0x180165f55>) "/jpl.org:~/")
  dired("/jpl.org:~/")
  eval((dired "/jpl.org:~/") t)
  eval-expression((dired "/jpl.org:~/") nil nil 127)
  funcall-interactively(eval-expression (dired "/jpl.org:~/") nil nil 127)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36969; Package emacs. (Thu, 08 Aug 2019 08:50:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 27.0.50; tramp ftp fails
Date: Thu, 08 Aug 2019 10:49:17 +0200
[Message part 1 (text/plain, inline)]
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

> Hi,

Hi,

> The symptom is that it fails with the message:
>
> tramp-error: Method `' is not known.

Oops, that case I haven't tested. The appended patch shall fix it, could
you pls test?

Best regards, Michael.

[Message part 2 (text/plain, attachment)]

Added tag(s) patch. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Thu, 08 Aug 2019 09:53:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36969; Package emacs. (Thu, 08 Aug 2019 21:55:01 GMT) Full text and rfc822 format available.

Message #13 received at 36969 <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: michael.albinus <at> gmx.de
Cc: 36969 <at> debbugs.gnu.org
Subject: Re: bug#36969: 27.0.50; tramp ftp fails
Date: Fri, 09 Aug 2019 06:54:37 +0900
On Thu, 08 Aug 2019 10:49:17 +0200, Michael Albinus wrote:
> Oops, that case I haven't tested. The appended patch shall fix it, could
> you pls test?

Works fine as before.  Thank you!




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Fri, 09 Aug 2019 07:28:02 GMT) Full text and rfc822 format available.

Notification sent to Katsumi Yamaoka <yamaoka <at> jpl.org>:
bug acknowledged by developer. (Fri, 09 Aug 2019 07:28:02 GMT) Full text and rfc822 format available.

Message #18 received at 36969-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Katsumi Yamaoka <yamaoka <at> jpl.org>
Cc: 36969-done <at> debbugs.gnu.org
Subject: Re: bug#36969: 27.0.50; tramp ftp fails
Date: Fri, 09 Aug 2019 09:27:08 +0200
Katsumi Yamaoka <yamaoka <at> jpl.org> writes:

> Works fine as before.

Thanks for the feedback, I'm closing the bug.

> Thank you!

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 06 Sep 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.