Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synocli-disk issue with davfs2 not running #4466

Closed
firebladeRR1k opened this issue Mar 2, 2021 · 3 comments
Closed

synocli-disk issue with davfs2 not running #4466

firebladeRR1k opened this issue Mar 2, 2021 · 3 comments

Comments

@firebladeRR1k
Copy link

Setup

Package Name: synocli_disk
Package Version: latest

NAS Model: ds718+
NAS Architecture: Intel Celeron J3455
DSM version: DSM 6.2.3-25426 Update 3

Expected behavior

Tell us what should happen
CLI tools be ready to be used or documentation on next steps.

Actual behavior

Running into errors when trying to use davfs2 to mount a webdav target.

Steps to reproduce

I am new to davfs2 and am having issues using the synocli-disk implementation of it. I am thinking there may be missing steps or configuration for it. I think the mount command is not finding the mount.davfs file (sym link) in /usr/local/sbin/. Running "mount -t davfs https://serverofwebdav.com/ /volume1/locationOfMount/ -o noexec" generates an error of "mount: unknown filesystem type davfs". I added a sym link in /sbin/ to mount.davfs and unmount.davfs and it gets a bit further. It then gives an error of "sbin/mount.davfs: group davfs2 does not exist".
Should the installer have set up these up to work with mount and set up users/groups? Also, I do not see a .conf file set up for davfs2. The error in the log references /var/packages/synocli-disk/target/etc/davfs2/davfs2.conf but the file does not exist.
I have tried this as a regular user sudo'd and also as root. Same results.

Package log

_find logfiles in /var/packages/{package}/var/, for DSM7: /var/log/packages/{package}.log, for DSM < 6.0: protocol in Package Center.
_

2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin preinst
2021/02/21 12:25:06     install synocli-disk 3.1-4 End preinst ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/rm -rf /volume1/@appstore/synocli-disk
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/rm -rf /volume1/@appstore/synocli-disk ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/synocli-disk
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/synocli-disk ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mkdir -p /var/packages/synocli-disk
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mkdir -p /var/packages/synocli-disk ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/synocli-disk/INFO
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/synocli-disk/INFO ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk/scripts
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk/scripts ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/synocli-disk/scripts
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/synocli-disk/scripts ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk/conf
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk/conf ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/synocli-disk/conf
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/synocli-disk/conf ret=[0]
2021/02/21 12:25:07     install synocli-disk 3.1-4 Begin postinst
2021/02/21 12:25:08     install synocli-disk 3.1-4 End postinst ret=[0]
2021/02/21 12:25:10     install synocli-disk 3.1-4 Begin start-stop-status start
2021/02/21 12:25:10     install synocli-disk 3.1-4 End start-stop-status start ret=[0]
2021/02/21 12:25:10     install synocli-disk 3.1-4 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2021/02/21 12:25:10     install synocli-disk 3.1-4 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2021/02/21 14:17:24     (system) trigger synocli-disk 3.1-4 Begin start-stop-status stop
2021/02/21 14:17:24     (system) trigger synocli-disk 3.1-4 End start-stop-status stop ret=[0]
2021/02/21 14:19:57     (system) trigger synocli-disk 3.1-4 Begin start-stop-status start
2021/02/21 14:19:57     (system) trigger synocli-disk 3.1-4 End start-stop-status start ret=[0]
2021/02/21 17:15:16     uninstall synocli-disk 3.1-4 Begin start-stop-status stop
2021/02/21 17:15:16     uninstall synocli-disk 3.1-4 End start-stop-status stop ret=[0]
2021/02/21 17:15:16     uninstall synocli-disk 3.1-4 Begin preuninst
2021/02/21 17:15:16     uninstall synocli-disk 3.1-4 End preuninst ret=[0]
2021/02/21 17:15:16     uninstall synocli-disk 3.1-4 Begin /bin/rm -rf /volume1/@appstore/synocli-disk
2021/02/21 17:15:16     uninstall synocli-disk 3.1-4 End /bin/rm -rf /volume1/@appstore/synocli-disk ret=[0]
2021/02/21 17:15:17     uninstall synocli-disk 3.1-4 Begin postuninst
2021/02/21 17:15:17     uninstall synocli-disk 3.1-4 End postuninst ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin preinst
2021/02/21 17:58:43     install synocli-disk 3.1-4 End preinst ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/rm -rf /volume1/@appstore/synocli-disk
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/rm -rf /volume1/@appstore/synocli-disk ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/synocli-disk
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/synocli-disk ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/mkdir -p /var/packages/synocli-disk
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/mkdir -p /var/packages/synocli-disk ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/synocli-disk/INFO
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/synocli-disk/INFO ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk/scripts
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk/scripts ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/synocli-disk/scripts
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/synocli-disk/scripts ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk/conf
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk/conf ret=[0]
2021/02/21 17:58:43     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/synocli-disk/conf
2021/02/21 17:58:43     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/synocli-disk/conf ret=[0]
2021/02/21 17:58:44     install synocli-disk 3.1-4 Begin postinst
2021/02/21 17:58:45     install synocli-disk 3.1-4 End postinst ret=[0]
2021/02/21 17:58:46     install synocli-disk 3.1-4 Begin start-stop-status start
2021/02/21 17:58:46     install synocli-disk 3.1-4 End start-stop-status start ret=[0]
2021/02/21 17:58:47     install synocli-disk 3.1-4 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2021/02/21 17:58:47     install synocli-disk 3.1-4 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2021/02/21 17:59:06     (system) trigger synocli-disk 3.1-4 Begin start-stop-status stop
2021/02/21 17:59:06     (system) trigger synocli-disk 3.1-4 End start-stop-status stop ret=[0]
2021/02/21 18:02:10     (system) trigger synocli-disk 3.1-4 Begin start-stop-status start
2021/02/21 18:02:10     (system) trigger synocli-disk 3.1-4 End start-stop-status start ret=[0]
2021/02/28 19:49:11     (system) trigger synocli-disk 3.1-4 Begin start-stop-status stop
2021/02/28 19:49:11     (system) trigger synocli-disk 3.1-4 End start-stop-status stop ret=[0]
2021/02/28 20:55:32     (system) trigger synocli-disk 3.1-4 Begin start-stop-status start
2021/02/28 20:55:33     (system) trigger synocli-disk 3.1-4 End start-stop-status start ret=[0]

Other logs

E.g. /var/log/messages or /var/log/synopkg.log

messages:
mount.davfs: opening /var/packages/synocli-disk/target/etc/davfs2/davfs2.conf failed

synopkg.log:
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin preinst
2021/02/21 12:25:06     install synocli-disk 3.1-4 End preinst ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/rm -rf /volume1/@appstore/synocli-disk
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/rm -rf /volume1/@appstore/synocli-disk ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/synocli-disk
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/synocli-disk ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mkdir -p /var/packages/synocli-disk
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mkdir -p /var/packages/synocli-disk ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/synocli-disk/INFO
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/synocli-disk/INFO ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk/scripts
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk/scripts ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/synocli-disk/scripts
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/synocli-disk/scripts ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/rm -rf /var/packages/synocli-disk/conf
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/rm -rf /var/packages/synocli-disk/conf ret=[0]
2021/02/21 12:25:06     install synocli-disk 3.1-4 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/synocli-disk/conf
2021/02/21 12:25:06     install synocli-disk 3.1-4 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/synocli-disk/conf ret=[0]
2021/02/21 12:25:07     install synocli-disk 3.1-4 Begin postinst
2021/02/21 12:25:08     install synocli-disk 3.1-4 End postinst ret=[0]
2021/02/21 12:25:09     install synocli-disk: begin to start version 3.1-4
2021/02/21 12:25:10     install synocli-disk 3.1-4 Begin pre-load apparmor
2021/02/21 12:25:10     install synocli-disk 3.1-4 End pre-load apparmor ret=[0]
2021/02/21 12:25:10     install synocli-disk 3.1-4 Begin start-stop-status start
2021/02/21 12:25:10     install synocli-disk 3.1-4 End start-stop-status start ret=[0]
2021/02/21 12:25:10     install synocli-disk: start version 3.1-4 successfully, result 0
2021/02/21 12:25:10     install synocli-disk 3.1-4 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2021/02/21 12:25:10     install synocli-disk 3.1-4 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2021/02/21 12:25:10     install synocli-disk 3.1-4 successfully

@firebladeRR1k
Copy link
Author

Would @hgy59 or @romanlum be able to help with getting davfs2 working under standard synocli-disk install?

Thanks in advanced for any help.

@hgy59
Copy link
Contributor

hgy59 commented May 8, 2022

Sorry for the late response:

Thanks for your investigation.
I finaly could mount a wevDAV folder (provided by webDAV Server of DSM), after execution of the following commands.

Create links in /usr/sbin

sudo ln -s /usr/local/bin/mount.davfs /usr/sbin/mount.davfs
sudo ln -s /usr/local/bin/umount.davfs /usr/sbin/umount.davfs

Create the user davfs2:davfs2:

sudo synouser --add davfs2 "" "" 0 "" 0
sudo synogroup --add davfs2 davfs2

@hgy59
Copy link
Contributor

hgy59 commented May 8, 2022

This is now documented on the synocli-disk related wiki page

@hgy59 hgy59 closed this as completed Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants