From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kostadin Ninev Newsgroups: gmane.emacs.bugs Subject: bug#63578: 29.0.91; Org Cannot tangle with tramp using sudo Date: Fri, 19 May 2023 09:49:30 +0000 Message-ID: <1684489692458.1394230168.4157159514@cdots.bg> References: <87ilcou05r.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17813"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Vivaldi Mail/1.5.2979.22 Cc: Bastien , 63578@debbugs.gnu.org, Ihor Radchenko , Eli Zaretskii To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 19 11:50:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pzwkd-0004N8-9J for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 May 2023 11:50:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzwkQ-0007FY-GO; Fri, 19 May 2023 05:50:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzwkO-00078i-Oy for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 05:50:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pzwkL-0000Xy-Uj for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 05:50:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pzwkL-00008A-Im for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 05:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kostadin Ninev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 May 2023 09:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63578 X-GNU-PR-Package: emacs Original-Received: via spool by 63578-submit@debbugs.gnu.org id=B63578.1684489782472 (code B ref 63578); Fri, 19 May 2023 09:50:01 +0000 Original-Received: (at 63578) by debbugs.gnu.org; 19 May 2023 09:49:42 +0000 Original-Received: from localhost ([127.0.0.1]:55476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzwk2-00007V-9k for submit@debbugs.gnu.org; Fri, 19 May 2023 05:49:42 -0400 Original-Received: from mail.cdots.bg ([91.92.199.54]:43178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzwjz-00007G-7E for 63578@debbugs.gnu.org; Fri, 19 May 2023 05:49:41 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cdots.bg (Postfix) with ESMTP id DDBEAA0B83E3; Fri, 19 May 2023 12:49:32 +0300 (EEST) Original-Received: from mail.cdots.bg ([127.0.0.1]) by localhost (mail.cdots.bg [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id RhFct6WFYXcG; Fri, 19 May 2023 12:49:31 +0300 (EEST) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cdots.bg (Postfix) with ESMTP id 2A1A6A0B83E4; Fri, 19 May 2023 12:49:31 +0300 (EEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cdots.bg 2A1A6A0B83E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cdots.bg; s=38EB8BB6-1E4E-11E5-AEB1-E0FC2BDD2164; t=1684489771; bh=wFuEBqeze/OnOrPdlsfiR/PaEV3uMwDn/RbXe0Dd0OQ=; h=Message-Id:From:To:Date:MIME-Version; b=jNM4AQ+b1/Q2TsTunbZ+9vzJlT2rrI+M2wTAkVG9cBskrr4l0wqjOiDfpYOnRovil lsqWf4C+PvD6yXUGrU1w3OIN4FFxWYlDorSIIzBX4I+pN2YB1o53t9Lg4fa8nCj9i3 kVZwos8MWx77pNcjQoE0NkfEvZhNPL3/BCIeINKs= X-Virus-Scanned: amavisd-new at mail.cdots.bg Original-Received: from mail.cdots.bg ([127.0.0.1]) by localhost (mail.cdots.bg [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Z5c6VZvknU57; Fri, 19 May 2023 12:49:31 +0300 (EEST) Original-Received: from noip.localdomain (unknown [85.196.152.25]) by mail.cdots.bg (Postfix) with ESMTPSA id E23C8A0B83E3; Fri, 19 May 2023 12:49:30 +0300 (EEST) In-Reply-To: <87ilcou05r.fsf@gmx.de> X-Mailer: Vivaldi Mail X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261992 Archived-At: > Could you, pls, rerun the test with tramp-verbose set to 10? This is the output: ;; Emacs: 29.0.91 Tramp: 2.6.0.29.1 -*- mode: outline; coding: utf-8; -*- ;; Location: /usr/share/emacs/29.0.91/lisp/net/tramp.elc Git: / 12:46:32.805953 tramp-get-connection-property (7) # copy-program undef; = cache used: nil 12:46:32.806489 tramp-get-connection-property (7) # copy-program undef; = cache used: nil 12:46:32.806672 tramp-get-connection-property (7) # copy-program undef; = cache used: nil 12:46:32.806738 tramp-get-connection-property (7) # copy-program undef; = cache used: nil 12:46:32.806787 tramp-add-hops (5) # Add (#("^srv$" 1 4 (tramp-default t)) = #("^root$" 1 5 (tramp-default t)) #("/ssh:srv:" 0 9 (tramp-ad-hoc t))) to = =E2=80=98tramp-default-proxies-alist=E2=80=99 12:46:32.806911 tramp-get-file-property (8) # /etc/test.conf file-exists-p = undef; inhibit: 10; cache used: nil; cached at: nil 12:46:32.806941 tramp-get-file-property (8) # /etc/test.conf = file-attributes undef; inhibit: 10; cache used: nil; cached at: nil 12:46:32.806966 tramp-get-connection-property (7) # file-exists undef; = cache used: nil 12:46:32.806984 tramp-get-file-exists-command (5) # Finding command to = check if file exists 12:46:32.807017 tramp-get-connection-property (7) # test undef; cache used:= nil 12:46:32.807034 tramp-get-test-command (5) # Finding a suitable = =E2=80=98test=E2=80=99 command 12:46:32.807057 tramp-get-connection-property (7) # null-device undef; = cache used: nil 12:46:32.807236 tramp-set-connection-property (7) # null-device /dev/null 12:46:32.807257 tramp-get-connection-property (7) # process-name nil; cache= used: nil 12:46:32.807276 tramp-get-connection-property (7) # process-name nil; cache= used: nil 12:46:32.807295 tramp-get-connection-property (7) # process-buffer nil; = cache used: nil 12:46:32.807315 tramp-get-connection-property (7) # process-buffer nil; = cache used: nil 12:46:32.807335 tramp-set-connection-property (7) # process-buffer nil 12:46:32.807495 tramp-maybe-open-connection (3) # Opening connection nil = for root@srv using sudo... 12:46:32.807686 tramp-call-process (6) # =E2=80=98locale -a=E2=80=99 nil = *temp*-119282 12:46:32.808395 tramp-call-process (6) # 0 bg_BG.utf8 C C.UTF-8 en_US.utf8 POSIX 12:46:32.808429 tramp-get-local-locale (7) # locale en_US.utf8 12:46:43.771992 tramp-compute-multi-hops (10) #=20 backtrace() tramp-error((tramp-file-name "sudo" #("root" 0 4 (tramp-default t)) nil = #("srv" 0 3 (tramp-default t)) nil "/etc/test.conf" nil) quit "") tramp-signal-hook-function(quit nil) #f(compiled-function () #)() format-spec(#("/ssh:srv:" 0 9 (tramp-ad-hoc t)) ((117 . "") (104 . = #("srv" 0 3 (tramp-ad-hoc t))))) tramp-compute-multi-hops((tramp-file-name "sudo" #("root" 0 4 = (tramp-default t)) nil #("srv" 0 3 (tramp-default t)) nil "/etc/test.conf" = nil)) tramp-maybe-open-connection((tramp-file-name "sudo" #("root" 0 4 = (tramp-default t)) nil #("srv" 0 3 (tramp-default t)) nil "/etc/test.conf" = nil)) tramp-send-command((tramp-file-name "sudo" #("root" 0 4 (tramp-default = t)) nil #("srv" 0 3 (tramp-default t)) nil "/etc/test.conf" nil) "test 0 = 2>/dev/null; echo tramp_exit_status $?") tramp-send-command-and-check((tramp-file-name "sudo" #("root" 0 4 = (tramp-default t)) nil #("srv" 0 3 (tramp-default t)) nil "/etc/test.conf" = nil) "test 0") tramp-get-test-command((tramp-file-name "sudo" #("root" 0 4 = (tramp-default t)) nil #("srv" 0 3 (tramp-default t)) nil "/etc/test.conf" = nil)) tramp-find-file-exists-command((tramp-file-name "sudo" #("root" 0 4 = (tramp-default t)) nil #("srv" 0 3 (tramp-default t)) nil "/etc/test.conf" = nil)) tramp-get-file-exists-command((tramp-file-name "sudo" #("root" 0 4 = (tramp-default t)) nil #("srv" 0 3 (tramp-default t)) nil "/etc/test.conf" = nil)) tramp-sh-handle-file-exists-p(#("/sudo:root@srv:/etc/test.conf" 6 10 = (tramp-default t) 11 14 (tramp-default t))) tramp-sh-file-name-handler(file-exists-p #("/sudo:root@srv:/etc/test.= conf" 6 10 (tramp-default t) 11 14 (tramp-default t))) apply(tramp-sh-file-name-handler file-exists-p #("/sudo:root@srv:/etc/tes= t.conf" 6 10 (tramp-default t) 11 14 (tramp-default t))) tramp-file-name-handler(file-exists-p #("/sudo:root@srv:/etc/test.conf" 6= 10 (tramp-default t) 11 14 (tramp-default t))) file-exists-p("/ssh:srv|sudo::/etc/test.conf") #f(compiled-function (by-fn) #)(("/ssh:srv|su= do::/etc/test.conf" ("conf" 14 "1.org" "file:/home/dinko/1.org::*test" = "test:1" ((:colname-names) (:rowname-names) (:result-params "replace") = (:result-type . value) (:results . "replace") (:exports . "code") (:tangle = . "/ssh:srv|sudo::/etc/test.conf") (:hlines . "no") (:noweb . "no") (:cache= . "no") (:session . "none")) "test" nil))) org-babel-tangle(nil) funcall-interactively(org-babel-tangle nil) command-execute(org-babel-tangle) 12:46:43.772057 tramp-compute-multi-hops (1) # Quit: "Quit", "" 12:46:43.772218 tramp-maybe-open-connection (3) # Opening connection nil = for root@srv using sudo...failed 12:46:43.772930 tramp-get-connection-property (7) # process-buffer nil; = cache used: t 12:46:43.772992 tramp-get-file-property (8) # / file-truename nil; inhibit:= 10; cache used: nil; cached at: nil 12:46:43.773033 tramp-flush-directory-properties (8) # / 12:46:43.773080 tramp-flush-connection-properties (7) # (tramp-file-name = sudo root nil srv nil nil nil) (process-buffer null-device) --=20 Kostadin Ninev.