From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#35300: 27.0.50; emacsclient on remote sessions no longer works Date: Fri, 19 Apr 2019 17:40:05 +0200 Message-ID: <87r29yovfu.fsf@telefonica.net> References: <87lg09tzmr.fsf@telefonica.net> <8v1s1y3k6v.fsf@fencepost.gnu.org> <87pnpirc8a.fsf@telefonica.net> <83h8aucupc.fsf@gnu.org> <87ftqeqiic.fsf@telefonica.net> <838sw6cf9o.fsf@gnu.org> <874l6uqfz5.fsf@telefonica.net> <837ebqccl4.fsf@gnu.org> <87v9zaoynk.fsf@telefonica.net> <8336mec9um.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="172024"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 35300@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 19 17:41:16 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hHVdc-000ieF-8W for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Apr 2019 17:41:16 +0200 Original-Received: from localhost ([127.0.0.1]:58055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHVdb-0000su-7w for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Apr 2019 11:41:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHVdP-0000rI-SV for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 11:41:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHVdO-0001hM-GY for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 11:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59201) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHVdO-0001hH-D7 for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 11:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hHVdO-0004uo-7C for bug-gnu-emacs@gnu.org; Fri, 19 Apr 2019 11:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Apr 2019 15:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35300 X-GNU-PR-Package: emacs Original-Received: via spool by 35300-submit@debbugs.gnu.org id=B35300.155568841718833 (code B ref 35300); Fri, 19 Apr 2019 15:41:02 +0000 Original-Received: (at 35300) by debbugs.gnu.org; 19 Apr 2019 15:40:17 +0000 Original-Received: from localhost ([127.0.0.1]:44512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHVce-0004th-K4 for submit@debbugs.gnu.org; Fri, 19 Apr 2019 11:40:16 -0400 Original-Received: from relayout04.e.movistar.es ([86.109.101.204]:37083 helo=relayout04-redir.e.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHVcb-0004tL-SL for 35300@debbugs.gnu.org; Fri, 19 Apr 2019 11:40:14 -0400 Original-Received: from sky (108.red-79-151-7.dynamicip.rima-tde.net [79.151.7.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout04.e.movistar.es (Postfix) with ESMTPSA id 44m0Xk5lqNz11GM; Fri, 19 Apr 2019 17:40:06 +0200 (CEST) In-Reply-To: <8336mec9um.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 19 Apr 2019 18:07:13 +0300") X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-TnetOut-Country: IP: 79.151.7.108 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout04 X-TnetOut-MsgID: 44m0Xk5lqNz11GM.A3E8E X-TnetOut-SpamCheck: no es spam, Unknown X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1556293207.98474@mnoXEv/BP+EwoK9WArF68w 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:157848 Archived-At: Eli Zaretskii writes: >> > So you didn't have XDG_RUNTIME_DIR set? In that case, I feel I >> > understand the issue even less, because when XDG_RUNTIME_DIR is not >> > defined, emacsclient is supposed to fall back to the old behavior... >> >> IIUC, the Emacs server creates the local socket under the directory >> pointed by XDG_RUNTIME_DIR. When emacsclient starts, if XDG_RUNTIME_DIR >> is not set it simply does not know where to find the socket. > > So you are saying that XDG_RUNTIME_DIR did exist when the server was > started, Yes. > but ceased to exist by the time emacsclient was started? It didn't cease to exist. That variable is automatically set when you log in and certain components are installed and enabled. I ssh-ed to the machine and no XDG_RUNTIME_DIR was set on that session because the machinery that sets it up when you log in through ssh was disabled. That is: at the time there was two sessions, one local with XDG_RUNTIME_DIR set and from where the Emacs server was started and a remote session with no XDG_RUNTIME_DIR and, therefore, with emacsclient unable to connect to the Emacs server unless you tell it where the local socket is. As explained on the bug report referenced by Glenn, there are other scenarios where XDG_RUNTIME_DIR is not set (in that case, when the Emacs server starts as a service.) You can read more about XDG_RUNTIME_DIR here: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables