Read-only file system at nixos-rebuild switch

Hi everyone,
I’m new here and I’ve hit a roadblock. Until now, I managed to solve everything, but this one has me stumped. I updated the system today, and after restarting, neither Trilium Notes nor Anytype will start. These are quite important to me, as they contain many of my notes. I’m using Gnome on Wayland. I tried launching on Xorg, but I couldn’t log in at all. I would really appreciate it if someone could help.

After running “nixos-rebuild switch --upgrade”, the error message is:
/nix/store/xdnq3gpfj095i4rca1b7hya4zryvs7ia-nixos-rebuild/bin/nixos-rebuild: line 594: /nix/var/nix/profiles/per-user/root/channels/nixos/.version-suffix: Read-only file system

When trying to start Trilium Notes:
[13326:0928/212242.902559:ERROR:angle_platform_impl.cc(43)] Display.cpp:1023 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory

By the way, I have an Nvidia graphics card, if that helps.

Could you show the contents of /proc/mounts?

Where exactly does this Trilium notes come from? Which revision of Nixpkgs is it from and is it the same as the rest of your system?

Thank you for the quick reply.

I"m on unstable and Trilium comes also from unstable.

The content of my /proc/mounts:

devtmpfs /dev devtmpfs rw,nosuid,size=3285908k,nr_inodes=8198257,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=3,mode=620,ptmxmode=666 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,size=16429528k,mode=755 0 0
ramfs /run/keys ramfs rw,nosuid,nodev,relatime,mode=750 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/disk/by-uuid/e0654540-4f00-4717-89f3-a6b02cd53cb8 / ext4 rw,relatime 0 0
/dev/disk/by-uuid/e0654540-4f00-4717-89f3-a6b02cd53cb8 /nix/store ext4 ro,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
none /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,nosuid,nodev,relatime,pagesize=2M 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run/credentials/systemd-journald.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run/credentials/systemd-tmpfiles-setup-dev-early.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap 0 0
tmpfs /run/credentials/systemd-tmpfiles-setup-dev.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap 0 0
tmpfs /run/credentials/systemd-sysctl.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap 0 0
tmpfs /run/credentials/systemd-vconsole-setup.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap 0 0
tmpfs /run/wrappers tmpfs rw,nodev,relatime,mode=755 0 0
/dev/sdc1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
/dev/sdb1 /mnt/Base fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
/dev/sdd1 /mnt/Work fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
tmpfs /run/credentials/systemd-tmpfiles-setup.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap 0 0
tmpfs /run/credentials/getty@tty1.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=6571808k,nr_inodes=1642952,mode=700,uid=1000,gid=100 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
/dev/sde2 /run/media/ati/VTOYEFI vfat rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0
/dev/sde1 /run/media/ati/Ventoy exfat rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro 0 0
portal /run/user/1000/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
tmpfs /run/credentials/systemd-tmpfiles-resetup.service tmpfs ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,noswap 0 0

Is it the exact same revision?

This doesn’t necessarily help you, but the RO filesystem issue has been reported by at least a dozen others. I’m not sure of the cause offhand as I don’t use channels or nix.

I am the author of the issue on Github. So far the problem has not been solved. Posting here after discovering this topic and also to update the situation. Apparently in the stable channel the system works normally. The problem occurs only in the unstable channel. At least for me.

Left a comment on the issue, but I’ll duplicate it here.

This is a nixpkgs bug, not a nix bug, and it was fixed here: NixOS/nixpkgs#345254