Issue with webDAV automount on Ubuntu

Salutes NC fellows!

Today I’ve been trying to mount my files directory through webDAV but got faced an annoying issue. Reading this documentation and doing the step-by-step, I could mount my directory properly during the configuration, but there was a problem when the systemd tried to automount the directory during the boot such that the system couldn’t start.

Here is the boot logging related to the problem:

Mar 03 23:15:05 pc mount.davfs[531]: davfs2 1.5.2
Mar 03 23:15:05 pc mount[528]: Please enter the username to authenticate with server
Mar 03 23:15:05 pc mount[528]: localhost/remote.php/dav/files/evandro/ or hit enter for none.
Mar 03 23:15:05 pc mount[528]: Username:
Mar 03 23:15:05 pc systemd[1]: home-evandro-nextcloud.mount: Mount process exited, code=exited status=255
Mar 03 23:15:05 pc systemd[1]: Failed to mount /home/evandro/nextcloud.
– Subject: Unit home-evandro-nextcloud.mount has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit home-evandro-nextcloud.mount has failed.

– The result is failed.
Mar 03 23:15:05 pc systemd[1]: Dependency failed for Local File Systems.
– Subject: Unit local-fs.target has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit local-fs.target has failed.

– The result is dependency.
Mar 03 23:15:05 pc systemd[1]: Dependency failed for Clean up any mess left by 0dns-up.
– Subject: Unit dns-clean.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit dns-clean.service has failed.

– The result is dependency.
Mar 03 23:15:05 pc systemd[1]: dns-clean.service: Job dns-clean.service/start failed with result ‘dependency’.
Mar 03 23:15:05 pc systemd[1]: local-fs.target: Job local-fs.target/start failed with result ‘dependency’.
Mar 03 23:15:05 pc systemd[1]: local-fs.target: Triggering OnFailure= dependencies.
Mar 03 23:15:05 pc systemd[1]: home-evandro-nextcloud.mount: Unit entered failed state.

It looks like the system is asking for authentication, but, as stated in documentation, wouldn’t this be done automatically as specified at the ~/.davfs2/secrets config file?

Using:
Nextcloud 11.0.1
Ubuntu 16.04.02

Every help is welcome, a lot =)

Systemd-errors can be debugged further:
http://forums.debian.net/viewtopic.php?f=10&t=118828#p560202

Looks for me more like a debian/boot-problem…