apt-btrfs-snapshot crashes when fuse filesystems are present in /etc/fstab

Bug #1965930 reported by mikaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-btrfs-snapshot (Ubuntu)
New
Undecided
Unassigned

Bug Description

mikaka@home-server:~$ lsb_release -rd
Description: Ubuntu 20.04.4 LTS
Release: 20.04
mikaka@home-server:~$ apt-cache policy apt-btrfs-snapshot
apt-btrfs-snapshot:
  Installed: 3.5.3
  Candidate: 3.5.3
  Version table:
 *** 3.5.3 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

When /etc/fstab contains the following lines:
bindfs#/data/bot-backup /var/lib/docker/volumes/bot-dumper-sshd-config/_data/data fuse noauto,x-systemd.automount,x-systemd.idle-timeout=1min,mirror-only=mikaka,ro 0 0
bindfs#/data/Rozmowy /var/lib/docker/volumes/acr-dumper-sshd-config/_data/data fuse noauto,x-systemd.automount,x-systemd.idle-timeout=1min,mirror-only=mikaka,ro 0 0
sshfs#root@192.168.0.1:/mnt/usbdisk /mnt/net/router fuse noauto,x-systemd.automount,x-systemd.mount-timeout=30,x-systemd.idle-timeout=1min,_netdev,defaults,default_permissions,allow_other,idmap=user,uid=1000,gid=1000,nodev,noatime,nosuid,IdentityFile=/home/mikaka/.ssh/id_rsa,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect 0 0
sshfs#<email address hidden>:/home/mikaka /mnt/net/bot-host fuse noauto,x-systemd.automount,x-systemd.mount-timeout=30,x-systemd.idle-timeout=1min,_netdev,defaults,default_permissions,allow_other,idmap=user,uid=1000,gid=1000,nodev,noatime,nosuid,IdentityFile=/home/mikaka/.ssh/id_rsa,ServerAliveInterval=45,ServerAliveCountMax=2,reconnect 0 0

The snapshots are not created at all, deleting them is not possible either. apt-btrfs-snapshot fails with following error:
Traceback (most recent call last):
  File "/usr/bin/apt-btrfs-snapshot", line 88, in <module>
    apt_btrfs = AptBtrfsSnapshot()
  File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 117, in __init__
    self.fstab = Fstab(fstab)
  File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 80, in __init__
    entry = FstabEntry.from_line(line)
  File "/usr/lib/python3/dist-packages/apt_btrfs_snapshot.py", line 53, in from_line
    return FstabEntry(*args[0:6])
TypeError: __init__() missing 3 required positional arguments: 'mountpoint', 'fstype', and 'options'

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

Could you test if issue still exists in apt-btrfs-snapshot ver 3.5.5 from Ubuntu 22.04 (Jammy)?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.