which proxmox version? in an older kernel, smb1 was the default...I can mount the Hetzner storage box on one of my Hetzner Proxmox Hosts and on my homelab servers without any issues using the Proxmox GUI.
which proxmox version? in an older kernel, smb1 was the default...I can mount the Hetzner storage box on one of my Hetzner Proxmox Hosts and on my homelab servers without any issues using the Proxmox GUI.
which proxmox version? in an older kernel, smb1 was the default...
, I can replicate the issue on my OVH host as well.
I can mount the Hetzner storage box
those are two different servers.. maybe the one from ovh simply does not support anything newer than v1 ?
the please provide the same command output you already provided again but from the ubuntu vmI don't believe that is the case. I have also tried mounting the SMB Share from inside one of my Ubuntu 18.04 VMs, which works perfectly with any smb version.
the please provide the same command output you already provided again but from the ubuntu vm
mount.cifs //***.your-storagebox.de/backup /mnt -o user=***,pass=***,vers=1.0 --verbose
mount.cifs kernel mount options: ip=195.201.***.***,unc=\\***.your-storagebox.de\backup,vers=1.0,user=***,pass=********
mount.cifs //***.your-storagebox.de/backup /mnt -o user=***,pass=***,vers=2.0 --verbose
mount.cifs kernel mount options: ip=195.201.***.***,unc=\\***.your-storagebox.de\backup,vers=2.0,user=***,pass=********
mount.cifs //***.your-storagebox.de/backup /mnt -o user=***,pass=***,vers=3.0 --verbose
mount.cifs kernel mount options: ip=195.201.***.***,unc=\\***.your-storagebox.de\backup,vers=3.0,user=***,pass=********
mount.cifs //***.your-storagebox.de/backup /mnt -o user=***,pass=*** --verbose
mount.cifs kernel mount options: ip=195.201.***.***,unc=\\***.your-storagebox.de\backup,user=***,pass=********
mount.cifs //path/share --verbose -o options
ok thanks...
i have to correct myself. after reading the manpage again, the '--verbose' has to be put before the options
so
Code:mount.cifs //path/share --verbose -o options
could you be so kind as to provide the outputs (with the correct verbose position) again?
without more info there is sadly not much we can do...
[174079.130370] CIFS: Attempting to mount //***.your-storagebox.de/backup
[174084.520729] CIFS VFS: cifs_mount failed w/return code = -2
strace -f mount.cifs.... > 2>&1 /tmp/mount.cifs.log
ok, can you tell me the kernel version and cifs-util is installed on the ubuntu vm?
what you could try is to do an 'strace' of the failing mount.cifs call and check what exactly fails
for that you would have to install the package 'strace' and call it like this:
and attach the log hereCode:strace -f mount.cifs.... > 2>&1 /tmp/mount.cifs.log
-bash: syntax error near unexpected token `2'
strace -f -o /tmp/mount.cifs.log mount.cifs ...
Yes, I did run this on the PVE Host and the mount failed according to dmesg with the following output:mhmm... that output seems incomplete, also id does not show any error, did you run this on the host?
[174079.130370] CIFS: Attempting to mount //***.your-storagebox.de/backup
[174084.520729] CIFS VFS: cifs_mount failed w/return code = -2
Sorry, my fault. Here is the proper error log now.i checked the log and you called it with '-V' not with '--verbose', please try again with '--verbose'. '-V' puts out the version and does not actually mount anything
mhmm.. ok sadly this does not show much more info (i am sorry for the back and forth, but i cannot really reproduce this here...)
a further step would be to enable kernel debugging for samba
see https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting
the chapter 'Enabling Debugging', please do those steps and deliver a dmesg afterwards, (do not forget to turn off debugging afterwards)
hopefully this sheds some light on this...
mount.cifs --verbose //***.your-storagebox.de/backup /mnt/pve/storage-box -o user=***,pass=***,vers=3.0
mount.cifs kernel mount options: ip=195.201.107.44,unc=\\u205813.your-storagebox.de\backup,vers=3.0,user=***,pass=********
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
did you filter the dmesg?
there is still not enough info (at least for me) to see exactly where the problem is..
it would be excellent if you could provide the unfiltered (except anonymization) dmesg for 4 combinations:
* failing on the host with vers 3.0
* succeeding in the guest with vers 3.0
* succeeding on the host with vers 1.0
* succeeding in the guest with vers 1.0
with that information i could probably find out more
alternatively, you could also post this on the kernel bugracker for ubuntu (launchpad) since we use an ubuntu kernel as base
(and we do not change anything for cifs), maybe there is someone there who knows more than me
[1936073.119295] fs/cifs/smb2pdu.c: Negotiate protocol
[1936073.119300] fs/cifs/transport.c: Sending smb: smb_len=106
[1936073.302082] fs/cifs/connect.c: Received no data or error: 0
[1920629.180105] /build/linux-UDHJtG/linux-4.15.0/fs/cifs/smb2pdu.c: Negotiate protocol
[1920629.180109] /build/linux-UDHJtG/linux-4.15.0/fs/cifs/transport.c: Sending smb: smb_len=102
[1920629.296835] /build/linux-UDHJtG/linux-4.15.0/fs/cifs/connect.c: RFC1002 header 0x0
[1920629.296837] /build/linux-UDHJtG/linux-4.15.0/fs/cifs/connect.c: RFC 1002 positive session response
ok from comparing the outputs, it seems that the host never gets an answer from the server when it requests smb3
Code:[1936073.119295] fs/cifs/smb2pdu.c: Negotiate protocol [1936073.119300] fs/cifs/transport.c: Sending smb: smb_len=106 [1936073.302082] fs/cifs/connect.c: Received no data or error: 0
vs the working one in the guest
Code:[1920629.180105] /build/linux-UDHJtG/linux-4.15.0/fs/cifs/smb2pdu.c: Negotiate protocol [1920629.180109] /build/linux-UDHJtG/linux-4.15.0/fs/cifs/transport.c: Sending smb: smb_len=102 [1920629.296835] /build/linux-UDHJtG/linux-4.15.0/fs/cifs/connect.c: RFC1002 header 0x0 [1920629.296837] /build/linux-UDHJtG/linux-4.15.0/fs/cifs/connect.c: RFC 1002 positive session response