[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2010-07-01 Thread Joshua Coombs
Just had the problem occur again, this time dmcrypt wasn't in use on the
volume with the hosted share.  dmcrypt is in use on the system though?
Machine is hung badly enough that my serial console isn't functional so
I can't grab any additional debug info from this instance.  Looks like
this may be #474089 instead?

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2010-06-30 Thread Joshua Coombs
I've run up against this twice now.

Linux forgery 2.6.32-22-server #36-Ubuntu SMP Thu Jun 3 20:38:33 UTC
2010 x86_64 GNU/Linux

The box is running smbd with the only share being on a dmcrypted
partition.  I have a dozen Windows systems running everything from Win2k
to 2k3 pushing nightly NTBackup dumps to the box.  These dumps generate
9GB to 250GB files that are streamed to the box, and then read back by
the host windows system to verify the dump.  This works cleanly for
about a week, when it fails one or more smbd processes will be pegging
the cpu, along with a flush process.  Any attempts to kill those
processes hangs the shell, as does trying to do anything with the file
system in question.  Trying to reboot or shutdown -h also just hangs the
current shell.


Jun 29 22:56:20 forgery in.rshd: Connection from bac...@xerox.gwi for backup
Jun 29 23:26:21 forgery in.rshd: Connection from bac...@xerox.gwi for backup
Jun 29 23:56:22 forgery in.rshd: Connection from bac...@xerox.gwi for backup
Jun 30 00:26:23 forgery in.rshd: Connection from bac...@xerox.gwi for backup
Jun 30 00:50:30 forgery kernel: [443134.639157] CPU 4 
Jun 30 00:50:30 forgery kernel: [443134.641505] Modules linked in: nfsd 
exportfs nfs lockd nfs_acl
 auth_rpcgss cryptd aes_x86_64 aes_generic dm_crypt sunrpc lp parport usbhid 
hid fbcon tileblit fo
nt bitblit softcursor ahci vga16fb tg3 vgastate cciss
Jun 30 00:50:30 forgery kernel: [443134.663020] Pid: 11710, comm: smbd Not 
tainted 2.6.32-22-serve
r #36-Ubuntu ProLiant DL120 G6
Jun 30 00:50:30 forgery kernel: [443134.672521] RIP: 0010:[811dc694]  
[811dc694
] T.1113+0x1e4/0x1f0
Jun 30 00:50:30 forgery kernel: [443134.681167] RSP: :88009fd77908  
EFLAGS: 00010297
Jun 30 00:50:30 forgery kernel: [443134.687180] RAX: 0035 RBX: 
8800466bc920 RCX: 0
154
Jun 30 00:50:30 forgery kernel: [443134.695229] RDX: 0036 RSI: 
0035 RDI: 0
153
Jun 30 00:50:30 forgery kernel: [443134.703278] RBP: 88009fd77958 R08: 
 R09: 0
000
Jun 30 00:50:30 forgery kernel: [443134.711326] R10: 10f0eda2 R11: 
 R12: f
fff8800466bc880
Jun 30 00:50:30 forgery kernel: [443134.719374] R13: 0035 R14: 
012038b4 R15: f
fff8800466bcbe8
Jun 30 00:50:30 forgery kernel: [443134.727425] FS:  7f3d87fd2720() 
GS:88000570(00
00) knlGS:
Jun 30 00:50:30 forgery kernel: [443134.736539] CS:  0010 DS:  ES:  
CR0: 8005003b
Jun 30 00:50:30 forgery kernel: [443134.743029] CR2: 7f3d87fe5000 CR3: 
3788f000 CR4: 0
6e0
Jun 30 00:50:30 forgery kernel: [443134.751076] DR0:  DR1: 
 DR2: 0
000
Jun 30 00:50:30 forgery kernel: [443134.759123] DR3:  DR6: 
0ff0 DR7: 0
400
Jun 30 00:50:30 forgery kernel: [443134.767171] Process smbd (pid: 11710, 
threadinfo 88009fd76
000, task 880138582de0)
Jun 30 00:50:30 forgery kernel: [443134.778715]  8800 
880139e7c400 000
0 012038b4
Jun 30 00:50:30 forgery kernel: [443134.786898] 0 0041 
880070cac380 
 8800466bc920
Jun 30 00:50:30 forgery kernel: [443134.795588] 0 012038b4 
 88009fd7
7988 811decd0
Jun 30 00:50:30 forgery kernel: [443134.807311]  [811decd0] 
ext4_da_get_block_prep+0xc0/
0x100
Jun 30 00:50:30 forgery kernel: [443134.814395]  [8116f113] 
__block_prepare_write+0x1e3/
0x570
Jun 30 00:50:30 forgery kernel: [443134.821475]  [811dec10] ? 
ext4_da_get_block_prep+0x0
/0x100
Jun 30 00:50:30 forgery kernel: [443134.828653]  [8116f634] 
block_write_begin+0x64/0x100
Jun 30 00:50:30 forgery kernel: [443134.835252]  [811e1485] 
ext4_da_write_begin+0x135/0x
270
Jun 30 00:50:30 forgery kernel: [443134.842140]  [811dec10] ? 
ext4_da_get_block_prep+0x0
/0x100
Jun 30 00:50:30 forgery kernel: [443134.849315]  [8113ba38] ? 
mem_cgroup_get_reclaim_sta
t_from_page+0x18/0x70
Jun 30 00:50:30 forgery kernel: [443134.857948]  [810f2bb2] 
generic_perform_write+0xc2/0
x1d0
Jun 30 00:50:30 forgery kernel: [443134.864938]  [810f3d43] 
generic_file_buffered_write+
0x73/0xd0
Jun 30 00:50:30 forgery kernel: [443134.872412]  [810f5330] 
__generic_file_aio_write+0x2
40/0x470
Jun 30 00:50:30 forgery kernel: [443134.879790]  [81460d99] ? 
sock_aio_read+0x159/0x160
Jun 30 00:50:30 forgery kernel: [443134.886290]  [81460af0] ? 
sock_aio_write+0x0/0x150
Jun 30 00:50:30 forgery kernel: [443134.892696]  [810f55cf] 
generic_file_aio_write+0x6f/
0xe0
Jun 30 00:50:30 forgery kernel: [443134.899681]  [811d70b9] 
ext4_file_write+0x39/0xb0
Jun 30 00:50:30 forgery kernel: [443134.905981]  [8114311a] 
do_sync_write+0xfa/0x140
Jun 30 00:50:30 forgery kernel: [443134.912194]  [81084fa0] ? 

[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2010-04-12 Thread Thierry Carrez
Subscribing Dustin for reproduction/advice on the encrypted directory part of 
things...
Do you see any reason why libsmbclient-powered transfers of large files would 
fail on encrypted home directories ?

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2010-04-12 Thread Dustin Kirkland
Those should work, Thierry (under the rest of the normal assumptions
... file size after padding isn't bigger than the disk, file name
after padding isn't  256 characters, etc.

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2010-03-28 Thread gervin23
Confirmed here with 30GB postgres backup from XP to Ubuntu 9.10 with
encrypted home directory. Exact behaviour as described above (smb 100%,
etc...)

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2010-03-22 Thread Thierry Carrez
That would point to an issue in libsmbclient, which is also used by
gvfsd-smb to access shares.

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2010-03-20 Thread Christoph E
So, today I had some time to test with the new Ubuntu Lucid Lynx Beta 1.
Result: The problem is still persistent with the same effect. But today
I also tested the copy process from another Ubuntu 9.10 to the 10.4
system. It behaves slightly different:

1) Copy process starts immediately
2) On the 10.4 samba system, a process called gvfsd-smb rises the CPU to 100% 
(on a core 2 duo @ 3,2GHz). smbd stays at 14%
3) The copy process works fine, but after I cancelled it, gvfsd-smb stays at 
100%. But instead when copying from a windows machine (s...@100%), I could kill 
gvfsd-smb easily.

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2010-03-10 Thread Chuck Short
Thank you for taking the time to report this bug and helping to make
Ubuntu better. The issue that you reported is one that should be
reproducible with the live environment of the Desktop CD of the
development release - Lucid Lynx. It would help us greatly if you could
test with it so we can work on getting it fixed in the next release of
Ubuntu. You can find out more about the development release at
http://www.ubuntu.com/testing/  . Thanks again and we appreciate your
help.

** Changed in: samba (Ubuntu)
   Status: Confirmed = Triaged

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2009-11-23 Thread Chuck Short
** Changed in: samba (Ubuntu)
   Status: Incomplete = Confirmed

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2009-11-13 Thread Thierry Carrez
Which process exactly ends up consuming 100% CPU ? smbd ? nmbd ? or
something else ? When it fails at 3500 Mb, does letting it run for 30
minutes more result in success or failure ?

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2009-11-13 Thread Christoph E
its smbd which consumes 100% CPU.  I can't run it for another 30Minutes
as the the client immediately receives an error messagen saying
permission denied and at the same time the samba's server harddisk
stops working. The 100% smbd process then runs forever.

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2009-11-12 Thread Thierry Carrez
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 ?

** Changed in: samba (Ubuntu)
   Importance: Undecided = Medium

** Changed in: samba (Ubuntu)
   Status: New = Incomplete

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2009-11-12 Thread Christoph E
I am sorry for the misleading term crashes in the titel, but I didn't
find any better expression while writing the bug report. samba does not
crash/segfault, rather it raises the CPU load to 100%. Don't know how to
call this.

Today I tested several file sizes and stopped at about 3500MB. It seems
that there is no static border as a file with this size works in some
case and it several others, it does not work and causes the above
described problem. If a file is below this threshold, the probability is
very high that the transmission will work.

I also raised the log level in samba to see what happens within samba
and found the following:

[2009/11/12 21:00:24,  0] lib/util_sock.c:730(write_data)
[2009/11/12 21:00:24,  0] lib/util_sock.c:1468(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  write_data: write failure in writing to client 0.0.0.0. Error Connection 
reset by peer
[2009/11/12 21:00:24,  0] smbd/process.c:62(srv_send_smb)
  Error writing 62 bytes to client. -1. (Transport endpoint is not connected)
[2009/11/12 21:00:24,  0] lib/util_sock.c:730(write_data)
[2009/11/12 21:00:24,  0] lib/util_sock.c:1468(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  write_data: write failure in writing to client 0.0.0.0. Error Broken pipe
[2009/11/12 21:00:24,  0] smbd/process.c:62(srv_send_smb)
  Error writing 104 bytes to client. -1. (Transport endpoint is not connected)
[2009/11/12 21:00:24,  0] lib/util_sock.c:1468(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
[2009/11/12 21:00:24,  0] lib/util_sock.c:730(write_data)
[2009/11/12 21:00:24,  0] lib/util_sock.c:1468(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  write_data: write failure in writing to client 0.0.0.0. Error Broken pipe
[2009/11/12 21:00:24,  0] smbd/process.c:62(srv_send_smb)
  Error writing 60 bytes to client. -1. (Transport endpoint is not connected)
[2009/11/12 21:00:24,  0] lib/util_sock.c:730(write_data)
[2009/11/12 21:00:24,  0] lib/util_sock.c:1468(get_peer_addr_internal)
  getpeername failed. Error was Transport endpoint is not connected
  write_data: write failure in writing to client 0.0.0.0. Error Broken pipe
[2009/11/12 21:00:24,  0] smbd/process.c:62(srv_send_smb)
  Error writing 53 bytes to client. -1. (Transport endpoint is not connected)
[2009/11/12 21:00:24,  2] smbd/close.c:612(close_normal_file)
  christoph closed file large.001 (numopen=0) NT_STATUS_OK

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 480849] Re: Samba daemon crashes when transfering large files to share in encrypted home dir

2009-11-11 Thread Christoph E

** Attachment added: smb.conf
   http://launchpadlibrarian.net/35544771/smb.conf

** Attachment added: Dependencies.txt
   http://launchpadlibrarian.net/35544772/Dependencies.txt

** Attachment added: ProcMaps.txt
   http://launchpadlibrarian.net/35544773/ProcMaps.txt

** Attachment added: ProcStatus.txt
   http://launchpadlibrarian.net/35544774/ProcStatus.txt

** Attachment added: XsessionErrors.txt
   http://launchpadlibrarian.net/35544775/XsessionErrors.txt

-- 
Samba daemon crashes when transfering large files to share in encrypted home dir
https://bugs.launchpad.net/bugs/480849
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs