From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aPwED9BqsmSSXQEASxT56A (envelope-from ) for ; Sat, 15 Jul 2023 11:45:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UGffDtBqsmS7vAAA9RJhRA (envelope-from ) for ; Sat, 15 Jul 2023 11:45:52 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8BEAE40A1B for ; Sat, 15 Jul 2023 11:45:51 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.org header.s=2017 header.b=pLsPzjS6; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.org (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689414352; a=rsa-sha256; cv=none; b=eKjqI1G8F6q2EfEeTB9N/whk2zMsF7bp99pck7cVJnmnE0qv2rfeNMH9XKpohggkjRctBV zm6mzrjywMfP/qz2yiALcyezWq10iO1WnywYY9MqXTF7gVRg5v8gu9dxyVcVl4UgddJgKe Wy0swI0TqLuB3xbTDSj0y4gF6vJoOkaLV2G7ZP0W3xV8+VNOw1vfsmF9R1lQKAw61nNoT3 zMna283BYwzvh8U9nSYbGf4eDN9GejnEe0T86lsm4yid9AhkcyELK2+NuwASg4DICQpZ59 yw8HCCKObR7NTqEFX5WfJqP8KbFcO/+L6o/A7e7KkGDUu2VZxwCs6f0sFb49Jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.org header.s=2017 header.b=pLsPzjS6; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.org (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689414352; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=Ddz6bqe3TlmfFPqTQLbxh1AV4Rra5BqjMrKcXxOILkg=; b=MrGT4QrgMHuz2T3n7C0XdibQiDF16Qo/YO0YmurJT+lAwuuQWBwFjyxAUIljuZkefBXc+v jDBrlumlX5usN6pxq1NUeuT7Td6fGK6Tz60x/DpxV2EVw+nmfXVgmxHuM9cy7RT3rMkxKA OIFjEXSF6wKTbEnDdN2zMBymXMxwdtUEiAXjkiX51cmGwB4k8uCFeS75wvtBz85e705A+5 5tpKwJqAFr7lo9AJ4po1Ugmg5kskRsWtrUNioBASBi4MePAMHfzg/8DnDfMvfZ/ep9rnfM jq7tv4rTZ7tkbUv4mHT0hbypSKn6TpwBT/jcd7bB6VsAm8GU3+eVInetS1Dk2g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKbpo-0008Fy-6K; Sat, 15 Jul 2023 05:45:04 -0400 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 1qKbpm-0008FM-Dq for bug-guix@gnu.org; Sat, 15 Jul 2023 05:45:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qKbpm-0006nY-4y for bug-guix@gnu.org; Sat, 15 Jul 2023 05:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKbpl-0004mU-Om for bug-guix@gnu.org; Sat, 15 Jul 2023 05:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64644: emacs-next eshell-tramp not working when ssh to non Guix System Resent-From: =?UTF-8?Q?Mois=C3=A9s_?= =?UTF-8?Q?Sim=C3=B3n?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 15 Jul 2023 09:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64644 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64644@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168941424518266 (code B ref -1); Sat, 15 Jul 2023 09:45:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jul 2023 09:44:05 +0000 Received: from localhost ([127.0.0.1]:44182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKbop-0004kW-Nj for submit@debbugs.gnu.org; Sat, 15 Jul 2023 05:44:05 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKbPR-0003yh-78 for submit@debbugs.gnu.org; Sat, 15 Jul 2023 05:17:50 -0400 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 1qKbPK-0004dQ-Oe for bug-guix@gnu.org; Sat, 15 Jul 2023 05:17:43 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKbPI-000592-Mk for bug-guix@gnu.org; Sat, 15 Jul 2023 05:17:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E4899240028 for ; Sat, 15 Jul 2023 11:17:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1689412655; bh=nvPWhv/YQh8rNZLFin02R4uOd4V7SYq8ltIfReRfLnU=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=pLsPzjS64T+136TtcUFzyyEcrZZ7kl0Rskp97HWXgCXHHzKDXYMxqb1jFJygU70Zl NrIxJy0fcTrG8ZMbwY5lK6vZdnf/VMdRSK7uP3Ufks8/evqgJhAordZr1c7HAJo26m ylyIg+X04HhCJbysnC+/x7wE56/qjisPgk5McmtFJQ8HbvjfdhUwgeO9k53JytmTw+ MKHLJ+R6pVQyVoDpvVZ4gm5eCirNTagb29O4+Lk9XgjresKULQbjWu2YYn61I5K6bq WaOKcDh9s1Vw+++TZftW/JbwYOzSUggVWjZOomiWgamRybVmXy2f34NIGfFEoUn2WV zytVYNW1DTrcA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R32mv0t3zz6twP; Sat, 15 Jul 2023 11:17:35 +0200 (CEST) From: =?UTF-8?Q?Mois=C3=A9s_?= =?UTF-8?Q?Sim=C3=B3n?= Date: Sat, 15 Jul 2023 09:17:28 +0000 Message-ID: <87cz0tedp3.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=msv@posteo.org; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 15 Jul 2023 05:44:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 8BEAE40A1B X-Migadu-Spam: Yes X-Spam: Yes X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 7.39 X-Spam-Score: 7.39 X-TUID: FiWr5pZVxDT5 emacs-next eshell tramp can't execute external command on non Guix system when ssh this is: > eshell internal command work /ssh:admin@deepblue.local:~ $ ls 00-installer-config.yaml Repositories management transfer_0145.out > external commands don't work /ssh:admin@deepblue.local:~ $ id sh: cd: /home/admin/: No such file or directory ///269dceab5ed29f1610133abb297d9507#$ exit /ssh:admin@deepblue.local:~ $ reports the same error [[https://logs.guix.gnu.org/guix/2023-07-13.log#211903]] and has some done some debbuging. I paste the relevant parts: --8<---------------cut here---------------start------------->8--- IRC channel logs I'm having some troubles using TRAMP in emacs to connect to a non-guix system. I am able to use TRAMP to open and edit files, but running commands in eshell results in the error "sh: cd: /some/dir/: No such file or directory." (where /some/dir/ is a directory that absolutely exists on the remote system). After this, the eshell prompt changes to the value of tramp-end-of-output until exit is run. This does not happen when using eshell-builtin commands, or when using shell-mode. Has anyone else encountered this? Guest28: My guix is up to date and I use emacs-pgtk-next reily: could you dig into tramp via edebug and see what command actually gets executed on the remote? lilyp: This is what tramp-debug shows: https://paste.debian.net/1285797/ lilyp: A lot of the junk seems to come from having emacs-eat enabled. Disabling that results in this: https://paste.debian.net/1285799/ and this ls succeeds or not? lilyp: I just spent a long time working my way down the edebug callstack for sending a command, to find out at the end its just running make-process, and appears to be doing so correctly. make-process is a C function, so I cant really get any more insight into whats going on until it resurfaces in the tramp logs. Any advice? Update, it looks like TRAMP is trying to run the command on the local host instead of the remote, as making the corresponding directory on the local machine results in "/usr/bin/ls: No such file or directory." Again, this file exists at this location on the remote, just not the local host. Any idea why eshell and tramp only have this behavior when connnecting to a non-guix host? Everything works fine when connecting to another guix sneek later tell reily our emacs ships with some workaround to fix tramp as the receiving end but I don't have the means to debug it as sending end, sadly Will do. --8<---------------cut here---------------end--------------->8--- The oldest system I have that is experiencing the problem is: --8<---------------cut here---------------start------------->8--- (list (channel (name 'guix) (url "https://git.savannah.gnu.org/git/guix.git") (branch "master") (commit "cbc14b3baea457cf2718b85f767d39ff3911ce91") (introduction (make-channel-introduction "9edb3f66fd807b096b48283debdcddccfea34bad" (openpgp-fingerprint "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) (channel (name 'my-guix) (url "/home/msv/src/guix-config/") (branch "master") (commit "c19ddf3edd8688f9982d9c6f89b58f330a9aa637")) (channel (name 'nonguix) (url "https://gitlab.com/nonguix/nonguix") (branch "master") (commit "15e5924de8696cc4a19a8f508501d07f799650e1") (introduction (make-channel-introduction "897c1a470da759236cc11798f4e0a5f7d4d59fbc" (openpgp-fingerprint "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) --8<---------------cut here---------------end--------------->8---