Unable to download several files from smb workspaces

Home Forums Troubleshooting Plugins & Bridges Unable to download several files from smb workspaces

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Tifenn LE GOFF Tifenn LE GOFF 2 days, 17 hours ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #113784
    Profile photo of Tifenn LE GOFF
    Tifenn LE GOFF
    Participant

    Hi,
    This issue is resolved, I just create this topic to help those who have this issue.

    With some files only, when we downloaded it from SMB’s workspaces, nothing happen during 40 seconds. After that the navigator indicate that it cannot download the file because he cannot read the source.

    At first, I thought that it’s PHP timeout issue but it’s not that.

    With “ps” command, I saw it’s smbclient’s command who is used to get files.

    When I ran smbclient command, I had an NT_STATUS_IO_TIMEOUT error after 40 secondes :

    # time smbclient -N -O ‘TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192’ -O ‘TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192’ -d 0 ‘//server/share’ -c ‘get “directory\file.xlsx” “/tmp/test”‘ -U ‘user%passwd’
    Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.14-Debian]
    parallel_read returned NT_STATUS_IO_TIMEOUT

    real 0m40.066s
    user 0m0.036s
    sys 0m0.008s

    With this message in syslog :

    # tail -f /var/log/syslog

    Aug 1 15:41:02 server winbindd[1137]: [2017/08/01 15:41:02.362364, 0] ../source3/winbindd/winbindd_samr.c:624(sam_sid_to_name)
    Aug 1 15:41:02 server winbindd[1137]: sam_sid_to_name: possible deadlock – trying to lookup SID S-1-5-21-…

    I tried to remove some options in smbclient and that works. (I removed “SO_RCVBUF=8192 SO_SNDBUF=8192”).

    In samba docs, it says that’s this options can degrade SMB’s performances, so I removed this options in /usr/share/pydio/plugins/access.smb/smb.php :

    #define (‘SMB4PHP_SMBOPTIONS’, ‘TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192’);
    define (‘SMB4PHP_SMBOPTIONS’, ‘TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE’);

    That fixed my issue.

    Is it possible to remove this options definitely to prevent this issue ?

    Samba doc : https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html

    Thanks,

    Tifenn LE GOFF


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.