Samba daemon crashes when transfering large files to share in encrypted home dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: samba
1) 9.10 (Karmic)
2) Samba 2:3.4.0-3ubuntu5
3) I have set up an encrypted home directory which is automatically decrypted when logging in to the system. I have then set up a shared directory within my home dir. I expect to write to and read from this share from external clients when I am logged in at the server.
4) What actually happens is weird and not understood by me. Writing and reading most of the files works fine. Then I chose a file with a size of 9GB to write to the share. At first nothing happens and I can see that the hard disking is working at the server and that the CPU load of smbd rises very fast above 50%. After a few seconds the hdd stops working and the cpu load reaches 100%. The process cant be even killed in the usual way. The client (here a Windows 7 machine) gets an error message, which says that I dont have permissionen to write. (But other much smaller files in the same dir worked fine). But even with small files, the CPU load became extremely high (80%) when copying files from the client to the share.
Another problem happend when reading from the encrypted shared: It works most of the time, but in some case the client receives an error message that files could not be read.
Having an identical share on an unencrypted directory works fine in every case and the cpu load is just as usual below 20%.
I have to remark, that the cpu load also gets very high when copying or moving files between encrypted and unencrypted directories (no samba involved).
And last but not least, I had the same problem on the same machine with a previous RC install of Karmic a couple of weeks ago with a slightly different configuration of my partitions.
I am not sure what kind of other documentation is actually required to track this problem. My smb.conf is the default config with the two entries for the shares (see attachment). Encrypted share "Daten" does not work properly where as unencrypted share "Video" works fine.
ProblemType: Bug
Architecture: i386
Date: Wed Nov 11 19:16:08 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/sbin/smbd
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelMo
Package: samba 2:3.4.0-3ubuntu5
ProcEnviron: PATH=(custom, no user)
ProcVersionSign
SourcePackage: samba
Uname: Linux 2.6.31-14-generic i686
Changed in samba (Ubuntu): | |
status: | Incomplete → Confirmed |
You write that the "Samba daemon crashes" in your title, what do you mean by that ? One of the nmdd/smbd process segfaults ? Anything in the samba logs (/var/log/samba ?). If it's just that the file transfer appears to freeze and CPU use rises to 100%, then it's not really a "crash".
In the latter case, I wouldn't be surprised if load was up 100% when encrypting a 9Gb file and took what would appear forever. You mention copying smaller files with success. Could you please gradually try to increase file size and see what happens ?