none
Unable to mount Azure file share on linux server

    Întrebare

  • I am unable to mount Azure file share on  linux server(multiple version) which is running onprem.

    We are hitting this error 

    https://docs.microsoft.com/en-us/azure/storage/files/storage-troubleshoot-linux-file-connection-problems#mount-error115-operation-now-in-progress-when-you-mount-azure-files-by-using-smb-30

    We tried using SMB 2.1 and 3.0 as well. We also tried with Ubuntu 16.04 server as well. 

    There is not firewall/network issue from onprem to Azure, we have ruled that out.

    Please let me know if there is something that we are missing out on.

    17 mai 2018 08:21

Toate mesajele

  • These are the errors that I see

    [   54.496193] CIFS VFS: Error connecting to socket. Aborting operation.
    [   54.496202] CIFS VFS: cifs_mount failed w/return code = -115
    [31946.643102] CIFS VFS: Error connecting to socket. Aborting operation.
    [31946.643112] CIFS VFS: cifs_mount failed w/return code = -115

    17 mai 2018 08:40
  • Hello

    i'm use cmd

    mount -t cifs //testapp111991c.file.core.windows.net/testshare /mnt/share/ -o vers=3.0,username=testapp111991c,password=<access key>,dir_mode=0777,serverino
    root@linux-test:~# df -h
    Filesystem                                        Size  Used Avail Use% Mounted on
    udev                                              314M     0  314M   0% /dev
    tmpfs                                              65M  7.1M   58M  11% /run
    /dev/sda1                                          30G  1.4G   28G   5% /
    tmpfs                                             324M     0  324M   0% /dev/shm
    tmpfs                                             5.0M     0  5.0M   0% /run/lock
    tmpfs                                             324M     0  324M   0% /sys/fs/cgroup
    /dev/sdb1                                          20G   44M   19G   1% /mnt
    tmpfs                                              65M     0   65M   0% /run/user/1000
    //testapp111991c.file.core.windows.net/testshare  1.0G     0  1.0G   0% /mnt/share

    if need automount, need add to fstab.

    17 mai 2018 08:49
  • Are you running this on Azure VM or Onprem VM?

    I tried above command, but still the same error

    sudo mount -t cifs //filesyncstorageaccnt.file.core.windows.net/linux /mnt/azure -o vers=3.0,username=filesyncstorageaccnt,password=<accesskey>,dir_mode=0777,serverino
    mount error(115): Operation now in progress
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    Kernel version: 

    4.13.0-36-generic
    17 mai 2018 08:59
  • These are the errors that I see

    [   54.496193] CIFS VFS: Error connecting to socket. Aborting operation.
    [   54.496202] CIFS VFS: cifs_mount failed w/return code = -115
    [31946.643102] CIFS VFS: Error connecting to socket. Aborting operation.
    [31946.643112] CIFS VFS: cifs_mount failed w/return code = -115

    Error connecting to socket - this indicates a connection problem, network connectivity, dns resolve ok?!
    17 mai 2018 09:10
  • Hey Shashank ,

    Are you getting same error (Error connecting to socket. Aborting operation. cifs_mount failed w/return code = -115) when you tried with SMB 2.1?  Mount using below command and let us know the result.

    sudo mount -t cifs //storageaccountname.file.core.windows.net/shared /mnt/mount -o vers=2.1,username=xxxxxxx,password=xxxxxxxx,dir_mode=0777,file_mode=077

    Refer : Use Azure Files with Linux

    Try below troubleshooting steps as well

    Steps

    • First Make sure that you can ping the IP address
    • Telnet IP on Port 445
    • Has there be any IP changes lately? Please make sure that the firewall is properly set.
    • Check DNS issue
    • Check firewall (include local firewall or network firewall)
    • Check your Log files - /var/log/syslog or /var/log/messages
    19 mai 2018 20:01
    Moderator
  • Agreed with Shashank - Check if port 445 is open and ISP or corp policy is not blocking it.

    You can use the following script to debug the problem:

    https://gallery.technet.microsoft.com/Troubleshooting-tool-for-02184089

    Thank You

    Rena Shah


    This posting is provided "AS IS" with no warranties, and confers no rights

    14 iunie 2018 15:32
  • Hey ,

    Just checking in if you have had a chance to see the previous response. Let me know if there are still any additional issues I can help with.

    16 iunie 2018 18:48
    Moderator