browsers and other apps packaged as snaps can't read files under ~/.local/share/
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Unassigned | ||
jupyter-notebook (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Install Ubuntu 22.04 LTS
2. Install jupyter-notebook package
3. Open terminal to launch jupyter-notebook command
$ jupyter-notebook
[I 18:53:12.601 NotebookApp] Serving notebooks from local directory: /home/j
[I 18:53:12.601 NotebookApp] Jupyter Notebook 6.4.5 is running at:
[I 18:53:12.601 NotebookApp] http://
[I 18:53:12.601 NotebookApp] or http://
[I 18:53:12.601 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:53:12.635 NotebookApp]
To access the notebook, open this file in a browser:
Or copy and paste one of these URLs:
http://
or http://
Expected results:
* default web-browser opened and it shows jupyter-notebook interface after redirection from local html-file to http://
Actual results:
* default web-browser opened with error message
> Access to the file was denied
> The file at /home/j/
> It may have been removed, moved, or file permissions may be preventing access.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: jupyter-notebook 6.4.5-4
ProcVersionSign
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu76
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: MATE
Date: Fri Jan 28 18:49:44 2022
InstallationDate: Installed on 2022-01-28 (0 days ago)
InstallationMedia: Ubuntu-MATE 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220128)
PackageArchitec
SourcePackage: jupyter-notebook
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=0
mtime.conffile.
summary: |
- unable to use jupyter-notebook package with snap'd browsers like firefox - or chromium + browser snaps and other apps can't read files under ~/.local/share/ |
no longer affects: | chromium-browser |
no longer affects: | firefox |
summary: |
- browser snaps and other apps can't read files under ~/.local/share/ + browsers and other apps packaged as snaps can't read files under + ~/.local/share/ |
affects: | chromium (Ubuntu) → chromium-browser (Ubuntu) |
Changed in snapd: | |
status: | New → Fix Committed |
Changed in snapd (Ubuntu): | |
status: | Confirmed → Fix Committed |
Chromium:
$ chromium file:// /home/j/ .local/ share/jupyter/ runtime/ nbserver- 45601-open. html gtk-module" gtk-module" 46165:0128/ 185547. 162380: ERROR:object_ proxy.cc( 642)] Failed to call method: org.freedesktop .DBus.ListActiv atableNames: object_path= /org/freedeskto p/DBus: org.freedesktop .DBus.Error. AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.183" (uid=1000 pid=46086 comm="/ snap/chromium/ 1878/usr/ lib/chromium- browser/ chrom" label=" snap.chromium. chromium (enforce)") interface= "org.freedeskto p.DBus" member= "ListActivatabl eNames" error name="(unset)" requested_reply="0" destination= "org.freedeskto p.DBus" (bus)
Gtk-Message: 18:55:47.022: Failed to load module "appmenu-
Gtk-Message: 18:55:47.023: Failed to load module "canberra-
[46086:
(chrome:46086): dbind-WARNING **: 18:55:47.242: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/ 1000/at- spi/bus_ 0: Permission denied 46178:0128/ 185547. 282857: ERROR:sandbox_ linux.cc( 378)] InitializeSandbox() called with multiple threads in process gpu-process. 46159:0128/ 185550. 969823: ERROR:chrome_ browser_ main_extra_ parts_metrics. cc(227) ] START: ReportBluetooth Availability( ). If you don't see the END: message, this is crbug.com/1216328. 46159:0128/ 185550. 969872: ERROR:chrome_ browser_ main_extra_ parts_metrics. cc(230) ] END: ReportBluetooth Availability( ) 46160:0128/ 185551. 087333: ERROR:udev_ watcher. cc(98)] Failed to begin udev enumeration.
[46178:
Fontconfig error: Cannot load default config file
[46086:
[46086:
[46086:
Access to the file was denied /home/j/ .local/ share/jupyter/ runtime/ nbserver- 45601-open. html is not readable. It may have been removed, moved, or file permissions may be preventing access.
The file at file://
ERR_ACCESS_DENIED