From unknown Fri Jun 13 11:42:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#57853: =?UTF-8?Q?=E2=80=9Cinappropriate?= ioctl for =?UTF-8?Q?device=E2=80=9D?= when running in RStudio Server Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 16 Sep 2022 09:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57853 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 57853@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166332046625037 (code B ref -1); Fri, 16 Sep 2022 09:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Sep 2022 09:27:46 +0000 Received: from localhost ([127.0.0.1]:41646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ7dS-0006Vk-FZ for submit@debbugs.gnu.org; Fri, 16 Sep 2022 05:27:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:53636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ7dP-0006Vb-2e for submit@debbugs.gnu.org; Fri, 16 Sep 2022 05:27:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ7dO-0005CA-SN for bug-guix@gnu.org; Fri, 16 Sep 2022 05:27:42 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ7dI-00080F-E6 for bug-guix@gnu.org; Fri, 16 Sep 2022 05:27:41 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1663320451; cv=none; d=zohomail.com; s=zohoarc; b=FfOdatDWxsUHtNG8HXxwoMQPbmbnpAgrEUJ6/wl8EzpTnGXqAWyKPA84xx5y/sbbLRZzTb11AE6yAgQKxchF3SlXgt4Iy+5+KmCa+IIJ4qca2oD7Wjtxi13p53ibY5P1dsSJTmrveM8FZ6YV5CAT4j/Bfr2JPEPNEvaoJMJbM9s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1663320451; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=dkJe+VmMujVNtUltfWoeYTqOlYR9gGrn21dgw3f6+MM=; b=lcdS21kg3nmV74uxuH8KV49giEi4+ws+f6sLrW3+eK0EtL3g279lcmC/Wi5HIHB8K+2Q73ZpuEwQUzzW/AcSPTwCWLCP2/djPIQmvv1Vt34IzDT9jq7ddoffTGM81upzND/+hjW0+e6OBuNaj9cyqwDmM1uM4pP/SJrHvhmO4uI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663320451; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=dkJe+VmMujVNtUltfWoeYTqOlYR9gGrn21dgw3f6+MM=; b=MJJVd9OAHsBJHJlR7Jhxqcb6TQv7PGbtKUX5hA6DewMA6OqWPzjM1SKWRuBqr7Dp jNGVHD6aQ4AAWDewlwRUB3SLMbigQNoNq49TdqQTllSqyF0llK+gNVavNTE//8Ib6Xq aR6usVfmBeVKhdOR1PDkeCEdpp5TBayyWzheZC+c= Received: from localhost (112-111-142-46.pool.kielnet.net [46.142.111.112]) by mx.zohomail.com with SMTPS id 1663320448866504.37045231891943; Fri, 16 Sep 2022 02:27:28 -0700 (PDT) User-agent: mu4e 1.8.7; emacs 28.1 From: Ricardo Wurmus Date: Fri, 16 Sep 2022 11:24:19 +0200 X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87edwbk6te.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) When running =E2=80=9Cguix=E2=80=9D in RStudio Server the =E2=80=9Cterminal= -window-size=E2=80=9D procedure triggers an error. (You can ignore the cause of the error, because I=E2=80=99m running this in a container where /var/guix/profiles/per-user/rekado doesn=E2=80=99t exist.) --8<---------------cut here---------------start------------->8--- > system("/bin/guix pull") guix pull: error: while creating directory `/var/guix/profiles/per-user/rek= ado': Permission denied hint: Backtrace: 18 (primitive-load "/bin/guix") In guix/ui.scm: 2263:7 17 (run-guix . _) 2226:10 16 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 15 (with-exception-handler _ _ #:unwind? _ # _) 1747:15 14 (with-exception-handler # =E2=80=A6) 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) In guix/store.scm: 656:37 12 (thunk) In guix/status.scm: 815:4 11 (call-with-status-report _ _) In guix/store.scm: 1318:3 10 (_) 1295:8 9 (call-with-build-handler # =E2=80=A6) In guix/scripts/pull.scm: 526:3 8 (_) In guix/profiles.scm: 2300:6 7 (ensure-profile-directory) In ice-9/boot-9.scm: 1685:16 6 (raise-exception _ #:continuable? _) 1685:16 5 (raise-exception _ #:continuable? _) In guix/ui.scm: 827:16 4 (_ _) 311:42 3 (display-hint "Please create the @file{/var/guix/profi=E2=80= =A6" =E2=80=A6) In ice-9/boot-9.scm: 1747:15 2 (with-exception-handler # =E2=80=A6) In guix/build/syscalls.scm: 2287:35 1 (_) 2276:8 0 (terminal-window-size _) guix/build/syscalls.scm:2276:8: In procedure terminal-window-size: In procedure terminal-window-size: Inappropriate ioctl for device --8<---------------cut here---------------end--------------->8--- Here yousee that the call to terminal-window-size fails because the RStudio Server IDE in the web browser is not a true TTY. =E2=80=9Cterminal-window-size=E2=80=9D should fail gracefully. --=20 Ricardo From unknown Fri Jun 13 11:42:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#57853: =?UTF-8?Q?=E2=80=9Cinappropriate?= ioctl for =?UTF-8?Q?device=E2=80=9D?= when running in RStudio Server Resent-From: Csepp Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 17 Sep 2022 12:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57853 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: control@debbugs.gnu.org, 57853@debbugs.gnu.org Received: via spool by 57853-submit@debbugs.gnu.org id=B57853.16634162543596 (code B ref 57853); Sat, 17 Sep 2022 12:05:01 +0000 Received: (at 57853) by debbugs.gnu.org; 17 Sep 2022 12:04:14 +0000 Received: from localhost ([127.0.0.1]:45314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZWYP-0000vu-MA for submit@debbugs.gnu.org; Sat, 17 Sep 2022 08:04:14 -0400 Received: from mx1.riseup.net ([198.252.153.129]:39042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZWYN-0000vd-0U; Sat, 17 Sep 2022 08:04:12 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MV8jk2kJNzDsSJ; Sat, 17 Sep 2022 12:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1663416245; bh=JF8xrW57jdLegB6dAVeA2lrBVNfXSQ1lwbx940RKZzQ=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Wz4cYloW1g5Yv4kE7aTAziOBIGvnG69MAlM649NH2psOM6VHA9MDJCwzLA7eNy0bZ ZFrHWTUmvjVHPOd7ycNJQ2oQdtcVEw0XJZB4wlOLpnrGoOus1PYmxGNWMZLUJ6HeHG NvZkjrmC/m6X2PcGuHXXrjDFzkgNvgh6UbXeMrL4= X-Riseup-User-ID: D9714680EC31D810D6A38F3EACE165B82F9CEC2A6EAB9D98A6C16E118F0E37DB Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4MV8jj4vyTz5vNB; Sat, 17 Sep 2022 12:03:53 +0000 (UTC) References: <87edwbk6te.fsf@elephly.net> From: Csepp Date: Sat, 17 Sep 2022 13:59:13 +0200 In-reply-to: <87edwbk6te.fsf@elephly.net> Message-ID: <87k062yzq4.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) merge 57853 57095 thankyou (I hope this works.) Ricardo Wurmus writes: > When running =E2=80=9Cguix=E2=80=9D in RStudio Server the =E2=80=9Ctermin= al-window-size=E2=80=9D > procedure triggers an error. (You can ignore the cause of the error, > because I=E2=80=99m running this in a container where > /var/guix/profiles/per-user/rekado doesn=E2=80=99t exist.) > >> system("/bin/guix pull") > guix pull: error: while creating directory `/var/guix/profiles/per-user/r= ekado': Permission denied > hint: Backtrace: > 18 (primitive-load "/bin/guix") > In guix/ui.scm: > 2263:7 17 (run-guix . _) > 2226:10 16 (run-guix-command _ . _) > In ice-9/boot-9.scm: > 1752:10 15 (with-exception-handler _ _ #:unwind? _ # _) > 1747:15 14 (with-exception-handler # =E2=80=A6) > 1752:10 13 (with-exception-handler _ _ #:unwind? _ # _) > In guix/store.scm: > 656:37 12 (thunk) > In guix/status.scm: > 815:4 11 (call-with-status-report _ _) > In guix/store.scm: > 1318:3 10 (_) > 1295:8 9 (call-with-build-handler # =E2=80=A6) > In guix/scripts/pull.scm: > 526:3 8 (_) > In guix/profiles.scm: > 2300:6 7 (ensure-profile-directory) > In ice-9/boot-9.scm: > 1685:16 6 (raise-exception _ #:continuable? _) > 1685:16 5 (raise-exception _ #:continuable? _) > In guix/ui.scm: > 827:16 4 (_ _) > 311:42 3 (display-hint "Please create the @file{/var/guix/profi=E2=80= =A6" =E2=80=A6) > In ice-9/boot-9.scm: > 1747:15 2 (with-exception-handler # =E2=80=A6) > In guix/build/syscalls.scm: > 2287:35 1 (_) > 2276:8 0 (terminal-window-size _) > > guix/build/syscalls.scm:2276:8: In procedure terminal-window-size: > In procedure terminal-window-size: Inappropriate ioctl for device > > Here yousee that the call to terminal-window-size fails because the > RStudio Server IDE in the web browser is not a true TTY. > =E2=80=9Cterminal-window-size=E2=80=9D should fail gracefully. I think this is a duplicate of 57095.