Boot process gets stucked when mounting via systemd-mount
Author: lowshoeCreated Oct 19, 2023Updated Sep 24, 2026
When trying to automatically mount a juicefs volume via a systemd.mount-unit, the boot process gets stucked after "Mounted JuiceFS".
The boot process halts at this point, the following services, for example the ssh-daemon, don't get started.
What you expected to happen: The juicefs-Volume gets mounted and the boot process then runs completely through to the end.
How to reproduce it (as minimally and precisely as possible):
Create and enable a systemd.mount as documented at https://juicefs.com/docs/community/mount_juicefs_at_boot_time#automating-mounting-with-systemdmount
For Example:
systemctl cat mnt-s3.mount
[Unit]
Description=Juicefs
[Mount]
Environment="META_PASSWORD=abcdefg12345"
What=rediss://my.keydb.local:6379/1
Where=/mnt/s3
Type=juicefs
Options=_netdev,user_id=1002,group_id=1002,cache-size=1024000
[Install]
WantedBy=remote-fs.target
WantedBy=multi-user.targetAnything else we need to know?
- I also tried with the IP-Address of the KeyDB-Server instead of the FQDN to access the KeyDB-Server but this results in the same error.
- The mount via fstab at boot with the same mount options works.
rediss://:[email protected]:6379/1 /mnt/s3 juicefs _netdev,user_id=1002,group_id=1002,cache-size=1024000 0 0- the manual mount through the systemd mount after booting works too:
systemctl start mnt-s3.mount
systemctl status mnt-s3.mount --no-pager
● mnt-s3.mount - Juicefs
Loaded: loaded (/etc/systemd/system/mnt-s3.mount; disabled; preset: disabled)
Active: active (mounted) since Thu 2023-10-19 14:59:21 CEST; 53s ago
Until: Thu 2023-10-19 14:59:21 CEST; 53s ago
Where: /mnt/s3
What: JuiceFS:myjfs
Tasks: 12 (limit: 153401)
Memory: 107.3M
CPU: 309ms
CGroup: /system.slice/mnt-s3.mount
└─1551 "/sbin/mount.juicefs rediss://my.keydb.local:6379/1 /mnt/s3 -o rw,user_id=1002,group_id=1002,cache-size=1024000,_netdev"
Oct 19 14:59:21 my.host.local mount[1528]: 2023/10/19 14:59:21.087691 juicefs[1528] <INFO>: Meta address: rediss://my.redis.local:6379/1 [interface.go:497]
Oct 19 14:59:21 my.host.local mount[1528]: 2023/10/19 14:59:21.123640 juicefs[1528] <WARNING>: AOF is not enabled, you may lose data if Redis is not shutdown pro… [info.go:84]
Oct 19 14:59:21 my.host.local mount[1528]: 2023/10/19 14:59:21.124005 juicefs[1528] <INFO>: Ping redis latency: 297.474µs [redis.go:3572]
Oct 19 14:59:21 my.host.local mount[1528]: 2023/10/19 14:59:21.125009 juicefs[1528] <INFO>: Data use s3://vol-www/myjfs/ [mount.go:605]
Oct 19 14:59:21 my.host.local mount[1528]: 2023/10/19 14:59:21.125910 juicefs[1528] <INFO>: Disk cache (/var/jfsCache/96a19d9e-6e9b-44e2-b202-4d87592015d0/): cap…cache.go:114]
Oct 19 14:59:21 my.host.local /sbin/mount.juicefs[1551]: juicefs[1551] <INFO>: Create session 35 OK with version: 1.1.0+2023-09-04.08c4ae6 [base.go:492]
Oct 19 14:59:21 my.host.local /sbin/mount.juicefs[1551]: juicefs[1551] <INFO>: Prometheus metrics listening on 127.0.0.1:9567 [mount.go:160]
Oct 19 14:59:21 my.host.local /sbin/mount.juicefs[1551]: juicefs[1551] <INFO>: Mounting volume myjfs at /mnt/s3 ... [mount_unix.go:269]
Oct 19 14:59:21 my.host.local mount[1528]: 2023/10/19 14:59:21.629189 juicefs[1528] <INFO>: OK, myjfs is ready at /mnt/s3 [mount_unix.go:48]
Oct 19 14:59:21 my.host.local systemd[1]: Mounted Juicefs.Environment:
- JuiceFS version: 1.1.0+2023-09-04.08c4ae6
- OS (e.g
cat /etc/os-release): Oracle Linux Server 9.2 - Kernel (e.g.
uname -a): Linux 5.15.0-106.131.4.el9uek.x86_64 - Object storage (cloud provider and region, or self maintained): self maintained
- Metadata engine info (version, cloud provider managed or self maintained): self maintained KeyDB v6.3.3
- Network connectivity (JuiceFS to metadata engine, JuiceFS to object storage): Local Net
- Others:
Source: juicedata/juicefs