Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Can't copy large files from Win10 to Samba share

  1. #1
    Join Date
    Apr 2016
    Location
    Cambridge, UK
    Posts
    247

    Default Can't copy large files from Win10 to Samba share

    Hi,

    I have a remote Leap 15.2 machine at the end of a wireguard VPN. I am trying to copy a 0.5GB file to it from a Win10 box and it fails with the useful (or rather 'not useful') Windows error message after 1 or 2 percent is copied:

    Code:
    “0X8007003B: an unexpected network error has occurred”
    The remote filesystem is ext4, so I don't think the actual size is an issue.

    On this remote Leap15.2 machine I can run a Windows 7 VM (Using KVM/QEMU) and can copy to a share on that VM with no issues (the vpn connection allows me to see shares on VMs on the remote machine as long as I address them by IP address or a resolverable name). So it kind of feels like it is a config situation with samba on the Leap 15.2 box, maybe a timeout or similar.

    Samba version is:

    Code:
    Version 4.11.14-git.247.8c858f7ee14lp152.3.19.1-SUSE-oS15.0-x86_64
    And the top of the smb.conf file is as follows:

    Code:
    # smb.conf is the main Samba configuration file. You find a full commented# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    [global]
        workgroup = BASE
        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = No
        ldap admin dn = 
        wins support = Yes
    
    [Maildrop]
        comment = Maildrop
        inherit acls = Yes
        path = /Maildrop
        read only = No
    Just wondered if anyone else had come across this and a fix.

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    6,410

    Default AW: Can't copy large files from Win10 to Samba share

    Do you get something on the Leap machine by as root:
    Code:
    journalctl -f
    And now copy that file.

  3. #3
    Join Date
    Apr 2016
    Location
    Cambridge, UK
    Posts
    247

    Default Re: Can't copy large files from Win10 to Samba share

    Just to add a bit more info.

    I can copy large files from the remote Leap15.2 machine to the Windows 10 machine with no problems. It's the copy of large files to the Leap machine that is causing errors.

    In all cases the transfers were initiated from the Windows 10 machine.

  4. #4
    Join Date
    Apr 2016
    Location
    Cambridge, UK
    Posts
    247

    Default Re: AW: Can't copy large files from Win10 to Samba share

    Quote Originally Posted by Sauerland View Post
    Do you get something on the Leap machine by as root:
    Code:
    journalctl -f
    And now copy that file.
    This is what I got before the file copy started and then nothing more when the copy failed:

    Code:
    skylab:~ # journalctl -f-- Logs begin at Fri 2021-07-30 17:07:13 BST. --
    Jul 30 17:09:29 skylab nmbd[2199]: [2021/07/30 17:09:29.243555,  0] ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
    Jul 30 17:09:29 skylab nmbd[2199]:   *****
    Jul 30 17:09:29 skylab nmbd[2199]: 
    Jul 30 17:09:29 skylab nmbd[2199]:   Samba name server SKYLAB is now a local master browser for workgroup BASE on subnet 192.168.27.2
    Jul 30 17:09:29 skylab nmbd[2199]: 
    Jul 30 17:09:29 skylab nmbd[2199]:   *****
    Jul 30 17:09:29 skylab nmbd[2199]: [2021/07/30 17:09:29.243917,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
    Jul 30 17:09:29 skylab nmbd[2199]:   find_domain_master_name_query_fail:
    Jul 30 17:09:29 skylab nmbd[2199]:   Unable to find the Domain Master Browser name BASE<1b> for the workgroup BASE.
    Jul 30 17:09:29 skylab nmbd[2199]:   Unable to sync browse lists in this workgroup.
    A minute later this came up:

    Code:
    Jul 30 17:13:43 skylab nmbd[2199]: [2021/07/30 17:13:43.476514,  0] ../../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)Jul 30 17:13:43 skylab nmbd[2199]:   *****
    Jul 30 17:13:43 skylab nmbd[2199]: 
    Jul 30 17:13:43 skylab nmbd[2199]:   Samba name server SKYLAB is now a local master browser for workgroup BASE on subnet 172.17.0.1
    Jul 30 17:13:43 skylab nmbd[2199]: 
    Jul 30 17:13:43 skylab nmbd[2199]:   *****
    Jul 30 17:13:43 skylab nmbd[2199]: [2021/07/30 17:13:43.476799,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
    Jul 30 17:13:43 skylab nmbd[2199]:   find_domain_master_name_query_fail:
    Jul 30 17:13:43 skylab nmbd[2199]:   Unable to find the Domain Master Browser name BASE<1b> for the workgroup BASE.
    Jul 30 17:13:43 skylab nmbd[2199]:   Unable to sync browse lists in this workgroup.
    Jul 30 17:13:43 skylab nmbd[2199]: [2021/07/30 17:13:43.476857,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
    Jul 30 17:13:43 skylab nmbd[2199]:   find_domain_master_name_query_fail:
    Jul 30 17:13:43 skylab nmbd[2199]:   Unable to find the Domain Master Browser name BASE<1b> for the workgroup BASE.
    Jul 30 17:13:43 skylab nmbd[2199]:   Unable to sync browse lists in this workgroup
    This all appears to be wins nameserver related. For reference:

    192.168.27.0/24 is the remote network that the Leap box sits on.
    172.17.0.1 is the virtual interface for a container so nothing to do with this I hope.
    The wireguard vpn interface is masqueraded to allow access to all of the remote network so I suspect nmbd is not attempting to register itself on that interface.

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,318
    Blog Entries
    1

    Default Re: Can't copy large files from Win10 to Samba share

    FWIW, a similar thread I recall...
    https://www.linuxquestions.org/quest...tu-4175677436/

    There are some links in post#2 that may be of interest. That's about all I can offer.
    openSUSE Leap 15.3; KDE Plasma 5

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,318
    Blog Entries
    1

    Default Re: Can't copy large files from Win10 to Samba share

    In particular, this may be of interest (focussing on the Windows client)...
    https://answers.microsoft.com/en-us/windows/forum/all/large-file-transfer-failure-error-0x8007003b/1946f3b3-779c-46f4-8329-2f7154ace974


    Edit: Some users have found this behaviour occurring due to Windows firewalls (or similar third-party software installed).
    Last edited by deano_ferrari; 30-Jul-2021 at 15:13.
    openSUSE Leap 15.3; KDE Plasma 5

  7. #7
    Join Date
    Apr 2016
    Location
    Cambridge, UK
    Posts
    247

    Default Re: Can't copy large files from Win10 to Samba share

    @deano_ferrari Thanks for the links, sadly nothing worked with the firewall or changing the smb timeout.

    One strange thing I ahve seen though and maybe a clue. I can copy from another linux box to the remote Leap 15.2 box but when I do that and monitor the file size on the remote machine from my Win10 box it increments in real time and I can see the file size increasing. When I do the copy from Windows the file created immediately shows the final size. I don't know what to make of it, just wondering if creating the large file size causes something to time out.

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,318
    Blog Entries
    1

    Default Re: Can't copy large files from Win10 to Samba share

    Is using WinSCP a viable option for you?
    openSUSE Leap 15.3; KDE Plasma 5

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,318
    Blog Entries
    1

    Default Re: Can't copy large files from Win10 to Samba share

    It might also be worth examining the Windows Event Viewer for any potential network-related issues perhaps...
    https://docs.microsoft.com/en-us/hos...-event-viewer1
    openSUSE Leap 15.3; KDE Plasma 5

  10. #10
    Join Date
    Apr 2016
    Location
    Cambridge, UK
    Posts
    247

    Default Re: Can't copy large files from Win10 to Samba share

    Quote Originally Posted by deano_ferrari View Post
    It might also be worth examining the Windows Event Viewer for any potential network-related issues perhaps...
    https://docs.microsoft.com/en-us/hos...-event-viewer1
    Nothing in event viewer that I can see. Also nothing useful in the logs.

    Interestingly when the transfer stalls at about 1 or 2% but before time out, any other network traffic to the remote box (like an ssh session) is also blocked. So It feels like an underlying network issue as opposed to a SMB related issue. Not sure how to test that, any suggestions?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •