davfs2 mount error

1,128 views
Skip to first unread message

Thorsten Kost

unread,
May 18, 2013, 7:00:39 AM5/18/13
to al...@googlegroups.com
I got a ssl error when i try to mount a https webdav share:

# mount -t davfs https://www.box.com/dav /mnt/md0/webdav/
Please enter the username to authenticate with server
https://www.box.com/dav or hit enter for none.
  Username: ...
Please enter the password to authenticate user... with server
https://www.box.com/dav or hit enter for none.
  Password:
mount.davfs: Mounting failed.
SSL handshake failed: SSL disabled due to library version mismatch
mount: mounting https://www.box.com/dav on /mnt/md0/webdav/ failed: No such device
 
any suggestions?

João Cardoso

unread,
May 18, 2013, 9:31:31 AM5/18/13
to
I couldn't reproduce that:

  # mkdir /mnt/dav
/ # mount -t davfs https://box.com/dav /mnt/dav/
Please enter the username to authenticate with server
https://box.com/dav or hit enter for none.
  Username: xx...@gmail.com
Please enter the password to authenticate user xx...@gmail.com with server
https://box.com/dav or hit enter for none.
  Password:  
fuse init (API version 7.14)
/ # ls /mnt/dav/
Keith Jarrett
Stravinsky_ Petrouchka Suite, The Firebird Suite
The Most Relaxing Cello Album In The World...Ever [Disc 1]
The Most Relaxing Cello Album [Disc 2]

Are you using RC3? With packages updated to the last version?

Thorsten Kost

unread,
May 18, 2013, 2:48:48 PM5/18/13
to al...@googlegroups.com
I am on RC3  with latest packages.

Steps to reproduce on my ch3snas:

1. remove all packages via web interface

2. install davfs via web interface:

Installing davfs2 (1.4.7-1) to /Alt-F...
Installing neon (0.29.6) to /Alt-F...
Installing libxml2 (2.7.8-1) to /Alt-F...
Installing kernel-modules (2.6.35.14-6) to /Alt-F...
Configuring davfs2

3. try to mount

# mkdir /mnt/dav
#  mount -t davfs https://www.box.com/dav /mnt/dav/
Please enter the username to authenticate with server
https://www.box.com/dav or hit enter for none.
  Username: ...
Please enter the password to authenticate user ... with server
https://www.box.com/dav or hit enter for none.
  Password:
mount.davfs: Mounting failed.
SSL handshake failed: SSL disabled due to library version mismatch
mount: mounting https://www.box.com/dav on /mnt/dav/ failed: No such device


more information:

# ldconfig -v|grep -i ssl
        libssl.so.1.0.0 => libssl.so.1.0.0

# ldconfig -v|grep -i neon
        libneon.so.27 => libneon.so.27.2.6
        

# ipkg list_installed
davfs2 - 1.4.7-1 -
ipkg - 0.99.163-2 -
kernel-modules - 2.6.35.14-6 -
libxml2 - 2.7.8-1 -
neon - 0.29.6 -


João Cardoso

unread,
May 19, 2013, 1:06:06 PM5/19/13
to al...@googlegroups.com

The "SSL handshake failed: SSL disabled due to library version mismatch" message seems to appear when different versions of libssl are used at compile and runtime.
Do you have a stray libssl or libneon from previous installs?

What does

ls -la /usr/lib/libssl* /usr/lib/libcrypto.so* /usr/lib/libneon*
ldd
/usr/sbin/mount.davfs /usr/lib/libneon.so

says? In my system:

/ # ls -la /usr/lib/libssl* /usr/lib/libneon* /usr/lib/libcrypto.so*
lrwxrwxrwx    1 root     root            17 May 18 15:27 /usr/lib/libneon.so -> libneon.so.27.2.6
lrwxrwxrwx    1 root     root            17 May 18 15:27 /usr/lib/libneon.so.27 -> libneon.so.27.2.6
-rwxr-xr-x    1 root     root        130856 Mar 18 02:07 /usr/lib/libneon.so.27.2.6
lrwxrwxrwx    1 root     root            15 May 17 19:34 /usr/lib/libssl.so -> libssl.so.1.0.0
-rwxr-xr-x    1 root     root        307840 May 18 23:02 /usr/lib/libssl.so.1.0.0 
lrwxrwxrwx    1 root     root            18 Mar 17 19:46 /usr/lib/libcrypto.so -> libcrypto.so.1.0.0 
-rwxr-xr-x    1 root     root       1299528 Mar 22 18:49 /usr/lib/libcrypto.so.1.0.0

 
/ # ldd /usr/sbin/mount.davfs /usr/lib/libneon.so
/usr/sbin/mount.davfs:
        libneon.so.27 => /usr/lib/libneon.so.27 (0xb6ed7000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb6ebc000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0xb6e69000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0xb6d2c000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb6bfa000)
        libiconv.so.2 => /usr/lib/libiconv.so.2 (0xb6b12000)
        libm.so.0 => /lib/libm.so.0 (0xb6af8000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6ae5000)
        libc.so.0 => /lib/libc.so.0 (0xb6a85000)
        libdl.so.0 => /lib/libdl.so.0 (0xb6a7b000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6eff000)
/usr/lib/libneon.so:
checking sub-depends for '/usr/lib/libssl.so.1.0.0'
checking sub-depends for '/usr/lib/libcrypto.so.1.0.0'
checking sub-depends for '/usr/lib/libxml2.so.2'
checking sub-depends for '/lib/libdl.so.0'
        libc.so.0 => /lib/libc.so.0 (0xb6ee5000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f45000)
checking sub-depends for '/usr/lib/libz.so.1'
checking sub-depends for '/usr/lib/libiconv.so.2'
checking sub-depends for '/lib/libm.so.0'
        libc.so.0 => /lib/libc.so.0 (0xb6edf000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f3f000)
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for '/lib/libc.so.0'
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6f8c000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00000000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00000000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00000000)
        libdl.so.0 => /lib/libdl.so.0 (0x00000000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00000000)
        libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00000000)
        libm.so.0 => /lib/libm.so.0 (0x00000000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
        libc.so.0 => /lib/libc.so.0 (0x00000000)
        /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)

And for completeness:

/ # ipkg list_installed
davfs2 - 1.4.7-1 - 
ipkg - 0.99.163-2 - 
kernel-modules - 2.6.35.14-6 - 
libxml2 - 2.7.8-1 - 
ncurses - 5.6-2 - 
neon - 0.29.6 - 
uemacs - 4.0.15-lt-2 - 

/ # cat /proc/mounts 
...
https://box.com/dav /mnt/dav fuse rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=16384 0 0
 
/ # lsmod 
Module                  Size  Used by    Not tainted
fuse                   45356  2 
usblp                   8260  0 

As I already told, I'm not able to duplicate the issue, even using the same webdav server.

Are you logged in as root, or using su or sudo? (if that makes a difference...)
Have you configured secrets or whatever davfs2 configuration files? I haven't, used the package right after install.

Thorsten Kost

unread,
May 19, 2013, 1:30:28 PM5/19/13
to al...@googlegroups.com
davfs2 is unconfigured, directly used after install.

my output looks simular to your output, but the size of libneon and libssl is different.
also the numbers of the ldd output at the end of the lines.

# ls -la /usr/lib/libssl* /usr/lib//libneon* /usr/lib/libcrypto.so*
lrwxrwxrwx    1 root     root            17 May 18 20:27 /usr/lib//libneon.so -> libneon.so.27.2.6
lrwxrwxrwx    1 root     root            17 May 18 20:27 /usr/lib//libneon.so.27 -> libneon.so.27.2.6
-rwxr-xr-x    1 root     root        127044 Jun 26  2012 /usr/lib//libneon.so.27.2.6
lrwxrwxrwx    1 root     root            18 Mar 17 20:46 /usr/lib/libcrypto.so -> libcrypto.so.1.0.0
-rwxr-xr-x    1 root     root       1299528 Mar 22 23:13 /usr/lib/libcrypto.so.1.0.0
lrwxrwxrwx    1 root     root            15 Mar 17 20:46 /usr/lib/libssl.so -> libssl.so.1.0.0
-rwxr-xr-x    1 root     root        326832 Mar 22 23:13 /usr/lib/libssl.so.1.0.0

# ldd /usr/sbin/mount.davfs /usr/lib/libneon.so
/usr/sbin/mount.davfs:
        libneon.so.27 => /usr/lib/libneon.so.27 (0x4000d000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40034000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x4004e000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x400a6000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x401ef000)
        libiconv.so.2 => /usr/lib/libiconv.so.2 (0x40321000)
        libm.so.0 => /lib/libm.so.0 (0x40406000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4041f000)
        libc.so.0 => /lib/libc.so.0 (0x40432000)
        libdl.so.0 => /lib/libdl.so.0 (0x40493000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
/usr/lib/libneon.so:
checking sub-depends for '/usr/lib/libssl.so.1.0.0'
checking sub-depends for '/usr/lib/libcrypto.so.1.0.0'
checking sub-depends for '/usr/lib/libxml2.so.2'
checking sub-depends for '/lib/libdl.so.0'
        libc.so.0 => /lib/libc.so.0 (0x4000d000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
checking sub-depends for '/usr/lib/libz.so.1'
checking sub-depends for '/usr/lib/libiconv.so.2'
checking sub-depends for '/lib/libm.so.0'
        libc.so.0 => /lib/libc.so.0 (0x4000d000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
checking sub-depends for '/lib/libgcc_s.so.1'
checking sub-depends for '/lib/libc.so.0'
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00000000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00000000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00000000)
        libdl.so.0 => /lib/libdl.so.0 (0x00000000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00000000)
        libiconv.so.2 => /usr/lib/libiconv.so.2 (0x00000000)
        libm.so.0 => /lib/libm.so.0 (0x00000000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
        libc.so.0 => /lib/libc.so.0 (0x00000000)
        /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)

# ipkg list_installed
davfs2 - 1.4.7-1 -
dev-bundle - 0.2-2 -
gettext - 0.16.1 -
ipkg - 0.99.163-2 -
kernel-modules - 2.6.35.14-6 -
libglib2 - 2.20.4 -
libxml2 - 2.7.8-1 -
mc - 4.8.1.6 -
nano - 2.2.4-3 -
ncurses - 5.6-2 -
neon - 0.29.6 -
Successfully terminated.

João Cardoso

unread,
May 19, 2013, 2:28:07 PM5/19/13
to al...@googlegroups.com


On Sunday, May 19, 2013 6:30:28 PM UTC+1, Thorsten Kost wrote:
davfs2 is unconfigured, directly used after install.

my output looks simular to your output, but the size of libneon and libssl is different.
also the numbers of the ldd output at the end of the lines.

you are right.

Somehow I missed that I changed libneon and forget to update the package. As I have a local pkgs feed I didn't notice that.

I have updated the sourceforge package feed now, please try updating neon and report back.

Thanks,
Joao
 

Thorsten Kost

unread,
May 19, 2013, 2:46:54 PM5/19/13
to al...@googlegroups.com
Problem solved with package update of neon, thanks
Reply all
Reply to author
Forward
0 new messages