[solved] Unable to download several files from smb workspaces


Dear Pydio Community,
This forum will be soon made readonly, as we are transitioning to Discourse. To start on a fresh basis, we decided NOT TO MIGRATE the current threads to the new platform.
As a result, please be kind enough to register there and post your messages at the new location, and if you have an open thread, please do re-open it on Discourse!

Thank you and sorry for the inconvenience
Pydio Team

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

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Scott Duensing sduensin 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #113784
    Profile photo of Tifenn LE GOFF
    Tifenn LE GOFF

    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 :


    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


    Tifenn LE GOFF

    • This topic was modified 5 months, 4 weeks ago by Profile photo of Charles Charles.
    Profile photo of Scott Duensing

    Wanted to thank you for this post. It fixed all the odd issues I was having with SMB dropping my workspace connection.

    I second this! Remove the buffers! :-)

    I’m going to see if there’s an open issue for this on github. If not, I’ll open one.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Plugins & Bridges’ is closed to new topics and replies.