File Bot Doesn´t recognize ZFS File system (SNAP Confinement: Strict # Restricted File System Access)

All your suggestions, requests and ideas for future development
Post Reply
pindaroli
Posts: 4
Joined: 24 Feb 2024, 22:05

File Bot Doesn´t recognize ZFS File system (SNAP Confinement: Strict # Restricted File System Access)

Post by pindaroli »

MY PC

Code: Select all

Ubuntu 23.10 kernel 6.5.0-21-generic 
olindo@MediaServer:~$ zfs version
zfs-2.2.0-0ubuntu1~23.10.2
zfs-kmod-2.2.0-0ubuntu1~23.10

Code: Select all

olindo@MediaServer:~$ zfs list
NAME                                               USED  AVAIL  REFER  MOUNTPOINT
bpool                                              249M  1.51G    96K  /boot
bpool/BOOT                                         248M  1.51G    96K  none
bpool/BOOT/ubuntu_85z4hj                           248M  1.51G   248M  /boot
oliraid                                           6.50T  18.0T  6.31T  /oliraid
oliraid/qbtorrent                                  106G  18.0T   106G  /oliraid/qbtorrent
rpool                                             44.0G   410G    96K  /
rpool/ROOT                                        43.9G   410G    96K  none
rpool/ROOT/ubuntu_85z4hj                          43.9G   410G  21.5G  /
rpool/ROOT/ubuntu_85z4hj/srv                       152K   410G    96K  /srv
rpool/ROOT/ubuntu_85z4hj/usr                       128M   410G    96K  /usr
rpool/ROOT/ubuntu_85z4hj/usr/local                 128M   410G   128M  /usr/local
rpool/ROOT/ubuntu_85z4hj/var                      14.7G   410G    96K  /var
rpool/ROOT/ubuntu_85z4hj/var/games                 152K   410G    96K  /var/games
rpool/ROOT/ubuntu_85z4hj/var/lib                  14.1G   410G  12.7G  /var/lib
rpool/ROOT/ubuntu_85z4hj/var/lib/AccountsService   164K   410G   100K  /var/lib/AccountsService
rpool/ROOT/ubuntu_85z4hj/var/lib/NetworkManager    284K   410G   168K  /var/lib/NetworkManager
rpool/ROOT/ubuntu_85z4hj/var/lib/apt               191M   410G   189M  /var/lib/apt
rpool/ROOT/ubuntu_85z4hj/var/lib/dpkg             67.7M   410G  52.3M  /var/lib/dpkg
rpool/ROOT/ubuntu_85z4hj/var/log                   545M   410G   273M  /var/log
rpool/ROOT/ubuntu_85z4hj/var/mail                  228K   410G   156K  /var/mail
rpool/ROOT/ubuntu_85z4hj/var/snap                 4.03M   410G  2.67M  /var/snap
rpool/ROOT/ubuntu_85z4hj/var/spool                5.63M   410G  2.85M  /var/spool
rpool/ROOT/ubuntu_85z4hj/var/www                   152K   410G    96K  /var/www
The software on load command doesnt open the right zfs filesystem

How to FIX?
Regards
Olindo Pindaro

Code: Select all

========= sysinfo ===========
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/snap.filebot/gvfs]
Script Bundle: 2023-11-06 (r952)
Groovy: 4.0.15
JRE: OpenJDK Runtime Environment 17.0.8
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 8 GB Max Memory / 97 MB Used Memory
OS: Linux (amd64)
HW: Linux MediaServer 6.5.0-21-generic #21-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb  7 14:17:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: : Intel(R) N100 / MemTotal: 33 GB / MemFree: 19 GB / MemAvailable: 21 GB / SwapTotal: 4.3 GB / SwapFree: 4.3 GB
STORAGE: NONE
UID/GID: uid=1000(olindo) gid=1000(olindo) groups=1000(olindo),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),100(users),118(lpadmin),991(docker)
DATA: /home/olindo/snap/filebot/51/data
Package: SNAP
Confinement: Strict # Restricted File System Access
License: FileBot License P58792533 (Valid-Until: 2025-03-04)

Code: Select all

======== Error Logs =============================
# /home/olindo/snap/filebot/51/data/logs/error.log
Feb 24, 2024 10:45:30 PM net.filebot.DiskStore acquireDiskStore
WARNING: Initialize new disk cache: /home/olindo/snap/filebot/51/data/cache/0
Feb 24, 2024 11:00:57 PM net.filebot.ui.transfer.FileTransferable lambda$getFilesFromTransferable$0
WARNING: GVFS: file:///oliraid/qbtorrent => java.io.FileNotFoundException: /oliraid/qbtorrent
Feb 24, 2024 11:00:57 PM net.filebot.ui.transfer.FileTransferable lambda$getFilesFromTransferable$0
WARNING: GVFS: file:///oliraid/qbtorrent => java.io.FileNotFoundException: /oliraid/qbtorrent
...
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: File Bot Doesn´t recognize ZFS File system

Post by rednoah »

:?: How did you install FileBot?

Code: Select all

Package: SNAP
Confinement: Strict # Restricted File System Access

:idea: If you use SNAP then the SNAP sandbox will limit file system access, especially if your file paths do not follow Debian file path conventions:
rednoah wrote: 21 Jun 2017, 16:36 By default, SNAP packages are not allowed to access /media, or any other / root folder. The SNAP sandbox will deny access unless you have explicitly granted access to removable-media.


Grant access to removable-media if you want to process files in the /media folder with FileBot:

Shell: Select all

sudo snap connect filebot:removable-media


:idea: If you want to give a SNAP package full access to your local system (e.g. /mnt) then you can use --devmode when installing the application to disable confinement entirely.


:!: Notably, if you make your own top-level custom folder /oliraid then that file path is almost certainly not whitelisted by default, i.e. /oliraid does not exist from the point-of-view of the filebot process due to SNAP confinement, thus the error message says FileNotFoundException when the file path that was added via drag-n-drop seems to not exist.

:arrow: You may prefer to install FileBot normally via apt install (see Debian package) on Ubuntu or Debian-based machines to ensure that FileBot works like any other unrestricted local application.
:idea: Please read the FAQ and How to Request Help.
pindaroli
Posts: 4
Joined: 24 Feb 2024, 22:05

Re: File Bot Doesn´t recognize ZFS File system (SNAP Confinement: Strict # Restricted File System Access)

Post by pindaroli »

Uninstalled SNAP version and installed by apt install.
All it's ok now!
Thanks
Olindo
Post Reply