From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QLdFE45domHQrgAAgWs5BA (envelope-from ) for ; Sat, 27 Nov 2021 17:32:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0GPqDo5domH8OQAA1q6Kng (envelope-from ) for ; Sat, 27 Nov 2021 16:32:14 +0000 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 8D0A31B193 for ; Sat, 27 Nov 2021 17:32:13 +0100 (CET) Received: from localhost ([::1]:53304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mr0cU-0006Kt-Ud for larch@yhetil.org; Sat, 27 Nov 2021 11:32:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr0c7-0006Kj-EK for help-guix@gnu.org; Sat, 27 Nov 2021 11:31:47 -0500 Received: from sv-2s11.infcs.de ([194.95.66.48]:43014 helo=ux-2s-mailproxy.inf.h-brs.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr0c3-0004qh-DA for help-guix@gnu.org; Sat, 27 Nov 2021 11:31:46 -0500 Received: from gyps.h-brs.de (p5797302f.dip0.t-ipconnect.de [87.151.48.47]) (authenticated bits=0) by ux-2s-mailproxy.inf.h-brs.de (8.15.2/8.15.2/Debian-8ska0) with ESMTPSA id 1ARGVdMf006701 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 27 Nov 2021 17:31:39 +0100 References: <87ee719663.fsf@h-brs.de> User-agent: mu4e 1.7.4; emacs 27.2 From: Alexander Asteroth To: "help-guix@gnu.org" Subject: Re: jupyter failing while trying to modify /gnu/store Date: Sat, 27 Nov 2021 17:17:51 +0100 In-reply-to: <87ee719663.fsf@h-brs.de> Message-ID: <875ysd8srg.fsf@h-brs.de> MIME-Version: 1.0 Content-Type: text/plain X-Auth: by SMTP AUTH @ ux-2s11 X-MIMEDefang-Info-ge: Gescannt in Inf@FH-BRS, Regeln s. MiniFAQ E-Mail/Mailscanner X-Scanned-By: MIMEDefang @ FB02 @ H-BRS Received-SPF: pass client-ip=194.95.66.48; envelope-from=alexander.asteroth@h-brs.de; helo=ux-2s-mailproxy.inf.h-brs.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638030734; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=3EZ6jyrYQb84HS+8QtCdi7JQT4+rRj7aaIRYKNr+PqY=; b=RXLuXcNBCG6UG8r9RwH4acq2pF7DttENILqDVh+sZfn34J6aax++YY+wa+VVnKCJYXP6C/ 6ZGiDzR2DlqMCCOdGTCV/0u4H85iBQlac53c0J+20sNeNOMNP0kAeAy3LM22SK2UigqXKZ gxohnEgJ/RLt7lYDJmgV3H6pmldQuKyeAHLyLOHxgtns3JCoqa0Oasn345aOeDiq2wSYjk E4n4VZBp/5hFuu1N7r9mHHAaxspyeH/DbDoTXdIjO7FP9gYcfzXLdXC67UUO9/ID5iFVW+ PVWqCuSmRJp5vRYN2bSTqqlrPZjMCLPt/zT9bsSUFxoCRNV7CYEvVtTlPhGEog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638030734; a=rsa-sha256; cv=none; b=nNNPdHtziHHwRnzr7Nh8nKF1NpTnkjyUur0svRy9Yre+CP8H+7kZ8egKZn7gTEzJVIl0C/ tWCYaLinL4NUGu6pTmnBPBhzyFByaKLUwdUoJk3C5HjqhnED7D9cKzzXv7unSIOhev0u+e Xwl1JpGaaGOB7LS65iympHGT06gDy07pYRLvfyzp0sIoUezgYeaUIBbLdBeZnx+7FRnvw6 hvAHCZd1qSzQ9qFbYR7bSPxy9XlIO+UkElRq2II2WzGwuAAlUiMvVc0VJ5Kz24hRQxydTz A6mpHrNoEHfEuYNJQ2gTyCNYcPUbBqVBmAfGRGzHSeJu6Kcq2PeU1YNpj7sexA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=h-brs.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.81 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=h-brs.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 8D0A31B193 X-Spam-Score: -2.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7HHjTW+DqYKM I now tried to run it using > guix shell --pure jupyter -- jupyter-notebook works perfectly fine. ... wait ... I found the cause: in ~/.guix-profile/etc/profile environment variables are set: > export JUPYTER_PATH="${GUIX_PROFILE:-/gnu/store/ichrcarq2k4lhdmm2izc3f1xjbziz49v-profile}/share/jupyter${JUPYTER_PATH:+:}$JUPYTER_PATH" > export JUPYTER_CONFIG_DIR="${GUIX_PROFILE:-/gnu/store/ichrcarq2k4lhdmm2izc3f1xjbziz49v-profile}/etc/jupyter${JUPYTER_CONFIG_DIR:+:}$JUPYTER_CONFIG_DIR" The jupyter config path causes the problem, since jupyter tries to write into it (and it is located in a read only filesystem). Unsetting the environment variable solves the issue. Cheers, Alex On Sat, Nov 27 2021, 12:40:59, Alexander Asteroth wrote: > Dear all, > > yesterday I added jupyter to my profile and it worked perfectly > fine. Overnight I shut down the computer and rebooted today. > Now jupyter refuses to start with the messages below. It seems that > jupyter-notebook tries to create directories (or modifiy them) in the location it > is installed wich is mounted ro. I have no idea why this didn't happen > yesterday but it seems that there is some misconfiguration somewhere... > > Cheers, > Alex > > PS: same effect with jupyterlab from the guix-science channel. > > ------------------------------- > ~$ jupyter-notebook > Traceback (most recent call last): > File "/gnu/store/1v8dgchnis87a4p3g9i3j1ayv0dfr4ds-python-notebook-6.3.0/bin/.jupyter-notebook-real", line 11, in > load_entry_point('notebook==6.3.0', 'console_scripts', 'jupyter-notebook')() > File "/gnu/store/8ncan0ipzb240h23fwfspdhrzkzdw277-python-jupyter-core-4.7.1/lib/python3.8/site-packages/jupyter_core/application.py", line 254, in launch_instance > return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) > File "/gnu/store/i037rnmqzwcc7nrgcswzb8dcckfrngzp-python-traitlets-4.3.3/lib/python3.8/site-packages/traitlets/config/application.py", line 663, in launch_instance > app.initialize(argv) > File "/gnu/store/f7y0fd230nc6l2qwq58g7q26rlkwjkf3-python-decorator-5.0.9/lib/python3.8/site-packages/decorator.py", line 232, in fun > return caller(func, *(extras + args), **kw) > File "/gnu/store/i037rnmqzwcc7nrgcswzb8dcckfrngzp-python-traitlets-4.3.3/lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error > return method(app, *args, **kwargs) > File "/gnu/store/1v8dgchnis87a4p3g9i3j1ayv0dfr4ds-python-notebook-6.3.0/lib/python3.8/site-packages/notebook/notebookapp.py", line 2122, in initialize > super().initialize(argv) > File "/gnu/store/f7y0fd230nc6l2qwq58g7q26rlkwjkf3-python-decorator-5.0.9/lib/python3.8/site-packages/decorator.py", line 232, in fun > return caller(func, *(extras + args), **kw) > File "/gnu/store/i037rnmqzwcc7nrgcswzb8dcckfrngzp-python-traitlets-4.3.3/lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error > return method(app, *args, **kwargs) > File "/gnu/store/8ncan0ipzb240h23fwfspdhrzkzdw277-python-jupyter-core-4.7.1/lib/python3.8/site-packages/jupyter_core/application.py", line 229, in initialize > self.migrate_config() > File "/gnu/store/8ncan0ipzb240h23fwfspdhrzkzdw277-python-jupyter-core-4.7.1/lib/python3.8/site-packages/jupyter_core/application.py", line 155, in migrate_config > migrate() > File "/gnu/store/8ncan0ipzb240h23fwfspdhrzkzdw277-python-jupyter-core-4.7.1/lib/python3.8/site-packages/jupyter_core/migrate.py", line 244, in migrate > ensure_dir_exists(env['jupyter_config']) > File "/gnu/store/8ncan0ipzb240h23fwfspdhrzkzdw277-python-jupyter-core-4.7.1/lib/python3.8/site-packages/jupyter_core/utils/__init__.py", line 11, in ensure_dir_exists > os.makedirs(path, mode=mode) > File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/os.py", line 213, in makedirs > makedirs(head, exist_ok=exist_ok) > File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/os.py", line 213, in makedirs > makedirs(head, exist_ok=exist_ok) > File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/os.py", line 213, in makedirs > makedirs(head, exist_ok=exist_ok) > [Previous line repeated 7 more times] > File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/os.py", line 223, in makedirs > mkdir(name, mode) > OSError: [Errno 30] Read-only file system: '/home/[user]/.guix-profile/etc/jupyter:'