Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"smb2_sendfile_send_data: sendfile failed" issue with temp files

Featured Replies

I have a SMB issue that keeps coming up. Basically I am compressing a file which is streaming out a temp file over the SMB share writing directly to the array. Sometimes I get an error in my log.smbd file that says.

 

smb2_sendfile_send_data: sendfile failed for file XXXXXXXX.zip (Broken pipe) for client ptr=0x5609e59ceec0, id=1, addr:xxx.xxx.x.xxx:xxxxx. Terminating

 

This seems to occur in the middle of compressing, not at the end when the temp file should be renamed to the final name. When this error occurs I cannot delete the temp file from Windows. If i delete the file from the /user/ share on unraid it deletes without issue. However Windows can then no longer write a temp file by the same name. It attempts to and it shows in explorer with 0 size and the modified time of when the last file failed. Shutting down my VM and restarting also does not work. The only thing I found that resolves this issue is to completely restart samba.

 

What is going on here and is there a way to tune SMB to prevent this error?

Edited by johnsanc

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.