[Samba] Printing failure through PDC

Rich West Rich.West at wesmo.com
Sat Mar 22 20:12:26 GMT 2008


I recently went through a system upgrade, which resulted in an upgrade 
of Samba to 3.0.28a.  This is for a home network, so it isn't heavily 
taxed (only by family members), but I do use the environment as a 
sandbox of sorts for stuff that I plan to roll in to production in the 
office.

I had some funky issues with authentication to start with after the 
upgrade, so I went through the (somewhat) painful steps to set up 
ldapsam.  I managed to get all of the users set up within LDAP, and all 
of the machine accounts configured within LDAP, and logging in and out 
of the domain with roaming profiles (using samba to create the machine 
accounts and user accounts turned out to be the right way to do it 
rather than to hand modify the LDAP accounts).

The only remaining issue is with regard to printing: When a Windows user 
connects to the printer (hppsc2510) and sends a test page, they get an 
error stating that the job failed to print (unable to create print 
job).  In the log.<system name> file, I can see:
[2008/03/22 15:03:04, 1] smbd/service.c:make_connection_snum(1033)
  cortex (192.168.56.5) connect to service windows_user initially as 
user windows_user (uid=17361, gid=17362) (pid 26541)
[2008/03/22 16:04:06, 1] smbd/service.c:make_connection_snum(1033)
  cortex (192.168.56.5) connect to service hppsc2510 initially as user 
windows_user (uid=17361, gid=17362) (pid 29537)
[2008/03/22 16:04:06, 0] lib/fault.c:fault_report(41)
  ===============================================================
[2008/03/22 16:04:06, 0] lib/fault.c:fault_report(42)
  INTERNAL ERROR: Signal 11 in pid 29537 (3.0.28a-0.fc8)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2008/03/22 16:04:06, 0] lib/fault.c:fault_report(44)

  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2008/03/22 16:04:06, 0] lib/fault.c:fault_report(45)
  ===============================================================
[2008/03/22 16:04:06, 0] lib/util.c:smb_panic(1655)
  PANIC (pid 29537): internal error
[2008/03/22 16:04:06, 0] lib/util.c:log_stack_trace(1759)
  BACKTRACE: 10 stack frames:
   #0 smbd(log_stack_trace+0x1c) [0x2aaaaaccf59c]
   #1 smbd(smb_panic+0x43) [0x2aaaaaccf683]
   #2 smbd [0x2aaaaacbd040]
   #3 /lib64/libpthread.so.0 [0x2aaaac42f540]
   #4 smbd(reply_printopen+0x7e) [0x2aaaaab480de]
   #5 smbd [0x2aaaaab81274]
   #6 smbd(smbd_process+0x7b1) [0x2aaaaab82211]
   #7 smbd(main+0xa20) [0x2aaaaad84260]
   #8 /lib64/libc.so.6(__libc_start_main+0xf4) [0x2aaaad968074]
   #9 smbd [0x2aaaaab13479]
[2008/03/22 16:04:06, 0] lib/fault.c:dump_core(181)
  dumping core in /var/log/samba/cores/smbd
[2008/03/22 16:04:06, 1] smbd/service.c:make_connection_snum(1033)
  cortex (192.168.56.5) connect to service hppsc2510 initially as user 
windows_user (uid=17361, gid=17362) (pid 29540)
[2008/03/22 16:04:06, 0] lib/fault.c:fault_report(41)
  ===============================================================
[2008/03/22 16:04:06, 0] lib/fault.c:fault_report(42)
  INTERNAL ERROR: Signal 11 in pid 29540 (3.0.28a-0.fc8)
  Please read the Trouble-Shooting section of the Samba3-HOWTO
[2008/03/22 16:04:06, 0] lib/fault.c:fault_report(44)

  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2008/03/22 16:04:06, 0] lib/fault.c:fault_report(45)
  ===============================================================
[2008/03/22 16:04:06, 0] lib/util.c:smb_panic(1655)
  PANIC (pid 29540): internal error
[2008/03/22 16:04:06, 0] lib/util.c:log_stack_trace(1759)
  BACKTRACE: 10 stack frames:
   #0 smbd(log_stack_trace+0x1c) [0x2aaaaaccf59c]
   #1 smbd(smb_panic+0x43) [0x2aaaaaccf683]
   #2 smbd [0x2aaaaacbd040]
   #3 /lib64/libpthread.so.0 [0x2aaaac42f540]
   #4 smbd(reply_printopen+0x7e) [0x2aaaaab480de]
   #5 smbd [0x2aaaaab81274]
   #6 smbd(smbd_process+0x7b1) [0x2aaaaab82211]
   #7 smbd(main+0xa20) [0x2aaaaad84260]
   #8 /lib64/libc.so.6(__libc_start_main+0xf4) [0x2aaaad968074]
   #9 smbd [0x2aaaaab13479]
[2008/03/22 16:04:06, 0] lib/fault.c:dump_core(181)
  dumping core in /var/log/samba/cores/smbd
---
Unfortunately, it doesn't actually place anything in 
/var/log/samba/cores/smbd.  At least, it hasn't in the past couple of days.

I turned up the debugging to "9" and went through the same test of 
printing a test page, and I got:
[2008/03/22 14:43:25, 6] smbd/process.c:process_smb(1067)
  got message type 0x0 of len 0x23
[2008/03/22 14:43:25, 3] smbd/process.c:process_smb(1068)
  Transaction 20 of length 39
[2008/03/22 14:43:25, 5] lib/util.c:show_msg(506)
[2008/03/22 14:43:25, 5] lib/util.c:show_msg(516)
  size=35
  smb_com=0x71
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=1
  smb_pid=65279
  smb_uid=101
  smb_mid=64832
  smt_wct=0
  smb_bcc=0
[2008/03/22 14:43:25, 3] smbd/process.c:switch_message(926)
  switch message SMBtdis (pid 25593) conn 0x2aaaaaeaa4b0
[2008/03/22 14:43:25, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_nt_user_token(448)
  NT user token: (NULL)
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_unix_user_token(474)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2008/03/22 14:43:25, 5] smbd/uid.c:change_to_root_user(288)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/03/22 14:43:25, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_nt_user_token(448)
  NT user token: (NULL)
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_unix_user_token(474)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2008/03/22 14:43:25, 5] smbd/uid.c:change_to_root_user(288)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/03/22 14:43:25, 3] smbd/service.c:close_cnum(1230)
  synapse (192.168.56.254) closed connection to service IPC$
[2008/03/22 14:43:25, 3] smbd/connection.c:yield_connection(69)
  Yielding connection to IPC$
[2008/03/22 14:43:25, 4] smbd/vfs.c:vfs_ChDir(665)
  vfs_ChDir to /
[2008/03/22 14:43:25, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_nt_user_token(448)
  NT user token: (NULL)
[2008/03/22 14:43:25, 5] auth/auth_util.c:debug_unix_user_token(474)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2008/03/22 14:43:25, 5] smbd/uid.c:change_to_root_user(288)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/03/22 14:43:25, 5] lib/util.c:show_msg(506)
[2008/03/22 14:43:25, 5] lib/util.c:show_msg(516)
  size=35
  smb_com=0x71
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51201
  smb_tid=1
  smb_pid=65279
  smb_uid=101
  smb_mid=64832
  smt_wct=0
  smb_bcc=0

--
At this point, I'm truly unsure of what is failing.  I've made sure that 
/var/spool/samba exists and is world writeable.  I tried moving it out 
of the way and testing, and samba gave an appropriate error in the log 
file.  I tried shutting down CUPS and doing the same test, and samba 
gave an appropriate error then, too.

I can print via the command line on the samba server (a Fedora 8 box) as 
the same user who is logged in on the windows box...

Any ideas?

-Rich


More information about the samba mailing list