From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#36969: 27.0.50; tramp ftp fails (was Re: master 7aaf500: Stronger check for Tramp method) Date: Thu, 08 Aug 2019 16:33:57 +0900 Organization: Emacsen advocacy group Message-ID: References: <20190604105154.5DDFA209A5@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="197151"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-cygwin) Cc: Michael Albinus To: 36969@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 08 09:35:12 2019 Return-path: Envelope-to: geb-bug-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 1hvcx6-0005si-6M for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2019 09:35:12 +0200 Original-Received: from localhost ([::1]:47390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvcx4-00056b-Ig for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Aug 2019 03:35:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56741) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvcwy-000561-Sg for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 03:35:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvcwx-000519-3i for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 03:35:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59275) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hvcwx-000515-09 for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 03:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hvcww-0006oG-Rf for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 03:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Aug 2019 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36969 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156524970026160 (code B ref -1); Thu, 08 Aug 2019 07:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Aug 2019 07:35:00 +0000 Original-Received: from localhost ([127.0.0.1]:39863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvcwt-0006ns-P5 for submit@debbugs.gnu.org; Thu, 08 Aug 2019 03:35:00 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:47705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvcwr-0006ni-Ge for submit@debbugs.gnu.org; Thu, 08 Aug 2019 03:34:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56705) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvcwp-00055b-N9 for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 03:34:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvcwn-0004wg-TF for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 03:34:55 -0400 Original-Received: from anteater.elm.relay.mailchannels.net ([23.83.212.3]:19636) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvcwn-0004bh-IQ for bug-gnu-emacs@gnu.org; Thu, 08 Aug 2019 03:34:53 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B1029342BD7; Thu, 8 Aug 2019 07:34:09 +0000 (UTC) Original-Received: from hampton.hostforweb.net (100-96-11-241.trex.outbound.svc.cluster.local [100.96.11.241]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 82142342E70; Thu, 8 Aug 2019 07:34:08 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from hampton.hostforweb.net ([TEMPUNAVAIL]. [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.5); Thu, 08 Aug 2019 07:34:09 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Fearful-Fearful: 0907b0675b4e24c8_1565249649366_1255609199 X-MC-Loop-Signature: 1565249649366:3673151865 X-MC-Ingress-Time: 1565249649366 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hvcvv-003ldn-T9; Thu, 08 Aug 2019 02:34:01 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:7mM6BDGZk2/2xKEfv3fg4mKcyq4= X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173329 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 > Commit: Michael Albinus > Stronger check for Tramp method [...] > * lisp/net/tramp.el (tramp-dissect-file-name): Check for proper metho= d. [...] > --- 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 (fontifie= d 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 (fo= ntified nil front-sticky (field inhibit-line-move-field-capture) rear-nonst= icky t field output inhibit-line-move-field-capture t)) nil) user-error "Me= thod `%s' is not known." "") tramp-user-error((tramp-file-name "" nil nil "jpl.org" nil #("/" 0 1 (fon= tified nil front-sticky (field inhibit-line-move-field-capture) rear-nonsti= cky 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-capt= ure t field output rear-nonsticky t front-sticky (field inhibit-line-move-f= ield-capture) fontified nil)) t) tramp-ftp-file-name-handler(file-exists-p #("/jpl.org:/" 9 10 (inhibit-li= ne-move-field-capture t field output rear-nonsticky t front-sticky (field i= nhibit-line-move-field-capture) fontified nil))) apply(tramp-ftp-file-name-handler file-exists-p #("/jpl.org:/" 9 10 (inhi= bit-line-move-field-capture t field output rear-nonsticky t front-sticky (f= ield inhibit-line-move-field-capture) fontified nil))) tramp-file-name-handler(file-exists-p #("/jpl.org:/" 9 10 (inhibit-line-m= ove-field-capture t field output rear-nonsticky t front-sticky (field inhib= it-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-m= ove-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-s= ticky (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-stick= y (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.or= g:/" 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-stic= ky (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-m= ove-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-fiel= d-capture) fontified nil))) dired-noselect("/jpl.org:~/" nil) #f(compiled-function (dirname &optional switches) "\"Edit\" directory DIR= NAME--delete, rename, print, etc. some files in it.\nOptional second argume= nt 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 a= ppended to select certain files).\n\nIf DIRNAME is a cons, its first elemen= t 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\\Yo= u can flag files for deletion with \\[dired-flag-file-deletion] and then\nd= elete them by typing \\[dired-do-flagged-delete].\nType \\[describe-mode] a= fter entering Dired for more info.\n\nIf DIRNAME is already in a Dired buff= er, that buffer is used without refresh." (interactive (dired-read-dir-and-= switches "")) #)("/jpl.org:~/" nil) ls-lisp--dired(#f(compiled-function (dirname &optional switches) "\"Edit\= " directory DIRNAME--delete, rename, print, etc. some files in it.\nOptiona= l 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 sh= ell wildcards appended to select certain files).\n\nIf DIRNAME is a cons, i= ts first element is taken as the directory name\nand the rest as an explici= t list of files to make directory entries for.\nIn this case, SWITCHES are = applied to each of the files separately, and\ntherefore switches that contr= ol the order of the files in the produced\nlisting have no effect.\n\n\\You can flag files for deletion with \\[dired-flag-file-deleti= on] and then\ndelete them by typing \\[dired-do-flagged-delete].\nType \\[d= escribe-mode] after entering Dired for more info.\n\nIf DIRNAME is already = in a Dired buffer, that buffer is used without refresh." (interactive (dire= d-read-dir-and-switches "")) #) "/jpl.org:~/") apply(ls-lisp--dired #f(compiled-function (dirname &optional switches) "\= "Edit\" directory DIRNAME--delete, rename, print, etc. some files in it.\nO= ptional second argument SWITCHES specifies the `ls' options used.\n(Interac= tively, use a prefix argument to be able to specify SWITCHES.)\n\nIf DIRNAM= E is a string, Dired displays a list of files in DIRNAME (which\nmay also h= ave shell wildcards appended to select certain files).\n\nIf DIRNAME is a c= ons, its first element is taken as the directory name\nand the rest as an e= xplicit list of files to make directory entries for.\nIn this case, SWITCHE= S 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\\You can flag files for deletion with \\[dired-flag-file-= deletion] and then\ndelete them by typing \\[dired-do-flagged-delete].\nTyp= e \\[describe-mode] after entering Dired for more info.\n\nIf DIRNAME is al= ready in a Dired buffer, that buffer is used without refresh." (interactive= (dired-read-dir-and-switches "")) #) "/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)