Hello,
NinthWave wrote: ↑2023-01-04 17:20
I am pretty sure that my install is not using networkmanager,
Code: Select all
root@debian:/etc/systemd/system# systemctl is-enabled NetworkManager-wait-online.service
Failed to get unit file state for NetworkManager-wait-online.service: No such file or directory
Are my 2 files "kosher" now ?
Is the ".automount" also necessary ?
I tried a lot of things so now I am worried that differents solutions I tried will eventually collide.
Network management is pretty confusing.
Your installation does not use NetworkManager, but it relies on the package
ifupdown to configure network interfaces: this is a common configuration for servers.
I suppose that the mount of the remote network file system (nfs share) fails because it is triggered before the network interfaces configuration is completed for the interface used by the mountpoint (journalctl_nfs.log is the names I used for your system log):
Code: Select all
grep -e "network\|nfs\|ifup\|mount" journalctl_nfs.log
Jan 03 14:01:26 debian systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
Jan 03 14:01:26 debian systemd[1]: Starting Remount Root and Kernel File Systems...
Jan 03 14:01:26 debian kernel: EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
Jan 03 14:01:26 debian systemd[1]: Finished Remount Root and Kernel File Systems.
Jan 03 14:01:26 debian systemd[1]: Starting Helper to synchronize boot up for ifupdown...
Jan 03 14:01:26 debian systemd[1]: Finished Helper to synchronize boot up for ifupdown.
Jan 03 14:01:26 debian systemd[1]: nfs-config.service: Succeeded.
Jan 03 14:01:26 debian systemd[1]: Starting Raise network interfaces...
Jan 03 14:01:26 debian systemd[1]: Finished Raise network interfaces.
Jan 03 14:01:27 debian kernel: FS-Cache: Netfs 'nfs' registered for caching
Jan 03 14:01:27 debian mount[291]: mount.nfs: Network is unreachable
Jan 03 14:01:27 debian systemd[1]: var-lib-docker-volumes-assetupnp_stack_media-_data.mount: Mount process exited, code=exited, status=32/n/a
Jan 03 14:01:27 debian systemd[1]: var-lib-docker-volumes-assetupnp_stack_media-_data.mount: Failed with result 'exit-code'.
Jan 03 14:01:27 debian systemd[1]: Failed to mount /var/lib/docker/volumes/assetupnp_stack_media/_data.
Jan 03 14:01:27 debian systemd[1]: Found device Virtio network device.
Jan 03 14:01:27 debian systemd[1]: Started ifup for ens19.
Jan 03 14:01:27 debian systemd[1]: Found device Virtio network device.
Jan 03 14:01:27 debian systemd[1]: Started ifup for ens18.
[..]
As you can see, some network interfaces are started after the attempt to mount the network file system.
The operating system already has some options to configure dependency of network mounts in /etc/fstab, for examples see
https://wiki.archlinux.org/title/fstab# ... ile_system (the _netdev option, for example).
Therefore, if the aforementioned options work, you don't need to create any systemd configuration files (and they should be removed if they are not required).
Hope that helps.