Critical errors in the logs from udisks2

Bug #1743588 reported by Sergey Borovkov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Medium
Unassigned
snappy-hwe-snaps
Won't Fix
Medium
Konrad Zapałowicz

Bug Description

We are using udisk2 and while it works fine system journal has critical errors from udisks2. It tries to create /etc/udisks2 and fails because it's read only filesystem

Revision history for this message
Michael Vogt (mvo) wrote :

Could you please attach the exact error message that you see in the journal to this bugreport? This way we can check the udisks2 source more easily to see what exactly it is doing.

Changed in snapd:
status: New → Incomplete
Revision history for this message
Sergey Borovkov (serge-borovkov) wrote :

Sure.
Jan 17 10:32:40 localhost.localdomain systemd-udevd[2023]: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/sda1' failed with exit code 1.
Jan 17 10:32:40 localhost.localdomain udisks2.udisksd[1345]: (udisksd:1345): udisks-CRITICAL **: [1345]: Error creating directory /etc/udisks2: Read-only file system [udiskslinuxdrive.c:244, configuration
Jan 17 10:32:39 localhost.localdomain kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks, this message is helpful! I looked at this and it seems udisks2 wants to create this dir if missing. We have two options:
1. ship the empty dir in the core snap
2. modify the udisks2 snap to set PACKAGE_SYSCONF_DIR to /var/snap/udisks2/current/etc
I think the later is preferable because this will make udisks2 actually able to store configuration there too.

Changed in snapd:
status: Incomplete → Triaged
importance: Undecided → Medium
Revision history for this message
Michael Vogt (mvo) wrote :

Adding morphis who did the last uploads of this package.

Revision history for this message
Simon Fels (morphis) wrote :

@Michael: Thanks. We will line up a fix for this.

Changed in snappy-hwe-snaps:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :
Changed in snappy-hwe-snaps:
assignee: nobody → Konrad Zapałowicz (kzapalowicz)
Michael Vogt (mvo)
Changed in snapd:
status: Triaged → Fix Committed
Changed in snapd:
status: Fix Committed → Fix Released
Tony Espy (awe)
Changed in snappy-hwe-snaps:
status: Triaged → Won't Fix
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.