[Samba] smbd hangs when printing.

Esben Laursen lists at hyber.dk
Mon Jan 12 18:08:42 GMT 2004


I have a Samba 3.0.1 where I have 2 printers connected. A Canon LBP4+ and a HP OfficeJet G85.

When I'm printing to the canon, no problem, it works like a charm, but when I try to print to the HP printer the smbd service hangs and the only way to stop it are with a kill -9

There are no difference between the 2 printers setup exept the printer driver on the windows machine, and ofcouse the printer.
I cant figure out what's wrong, can anybody help?

--
Esben

Here are som info about my system:

Debian 3.0r1 (with a costum 2.4.22 kernel)
Samba 3.0.1-2 (deb package from samba.org)
lprng 3.8.10 ( have also tryed with lpr its the same)

And some output from Samba:

[2004/01/12 17:10:55, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(544)
  free_pipe_context: destroying talloc pool of size 0
[2004/01/12 17:10:59, 3] smbd/process.c:process_smb(890)
  Transaction 545 of length 1094
[2004/01/12 17:10:59, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 4997)
[2004/01/12 17:10:59, 3] smbd/ipc.c:reply_trans(538)
  trans <\PIPE\> data=1006 params=0 setup=2
[2004/01/12 17:10:59, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <> name
[2004/01/12 17:10:59, 3] smbd/ipc.c:api_fd_reply(296)
  Got API command 0x26 on pipe "spoolss" (pnum 76d3)free_pipe_context: destroying talloc pool of size 0
[2004/01/12 17:10:59, 3] rpc_server/srv_pipe.c:api_rpcTNP(1509)
  api_rpcTNP: rpc command: SPOOLSS_OPENPRINTEREX
  checking name: \\linux\hp
[2004/01/12 17:10:59, 3] rpc_server/srv_spoolss_nt.c:set_printer_hnd_printertype(447)
  Setting printer type=\\linux\hp
[2004/01/12 17:10:59, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(544)
  free_pipe_context: destroying talloc pool of size 896
[2004/01/12 17:10:59, 3] smbd/process.c:process_smb(890)
  Transaction 546 of length 3424
[2004/01/12 17:10:59, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 4997)
[2004/01/12 17:10:59, 3] smbd/ipc.c:reply_trans(538)
  trans <\PIPE\> data=3336 params=0 setup=2
[2004/01/12 17:10:59, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <> name
[2004/01/12 17:10:59, 3] smbd/ipc.c:api_fd_reply(296)
  Got API command 0x26 on pipe "spoolss" (pnum 76d3)free_pipe_context: destroying talloc pool of size 0
[2004/01/12 17:10:59, 3] rpc_server/srv_pipe.c:api_rpcTNP(1509)
  api_rpcTNP: rpc command: SPOOLSS_GETPRINTER
[2004/01/12 17:10:59, 3] rpc_server/srv_pipe_hnd.c:free_pipe_context(544)
  free_pipe_context: destroying talloc pool of size 6264
[2004/01/12 17:10:59, 3] smbd/process.c:process_smb(890)
  Transaction 547 of length 3424
[2004/01/12 17:10:59, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 4997)
[2004/01/12 17:10:59, 3] smbd/ipc.c:reply_trans(538)
  trans <\PIPE\> data=3336 params=0 setup=2
[2004/01/12 17:10:59, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <> name
[2004/01/12 17:10:59, 3] smbd/ipc.c:api_fd_reply(296)
  Got API command 0x26 on pipe "spoolss" (pnum 76d3)free_pipe_context: destroying talloc pool of size 0
[2004/01/12 17:10:59, 3] rpc_server/srv_pipe.c:api_rpcTNP(1509)
  api_rpcTNP: rpc command: SPOOLSS_GETPRINTER

And the smb.conf file:

[global]
        socketoptions             = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF
        invalidusers              = bin deamon sys man mail ftp
        adminusers                = root
        idmapuid                  = 15000-20000
        logon path                = \\%L\profiles\%U
        passwdprogram             = /usr/bin/passwd %u
        adduserscript             = /usr/sbin/useradd -m -g users %u
        preferredmaster           = Yes
        logonscript               = script\logon.bat
        deletesharecommand        =
/etc/samba/scripts/modify_samba_config.pl
#       addmachinescript          = /usr/sbin/useradd -d /dev/null -g
machines -s /bin/false -M %u
        addmachinescript          = /usr/sbin/useradd -g machines -d
/dev/null -s /bin/false %u
        idmapgid                  = 15000-20000
        domainlogons              = Yes
        logon drive               = h:
        maxlogsize                = 10000
        dnsproxy                  = No
        deletegroupscript         = /usr/sbin/groupdel %g
        serverstring              = %L on (Samba %v)
        deleteuserfromgroupscript = /usr/bin/gpasswd -d %u %g
        addsharecommand           =
/etc/samba/scripts/modify_samba_config.pl
        hidedotfiles              = yes
        netbiosname               = linux
        passdbbackend             = tdbsam
        domainmaster              = Yes
        guestok                   = no
        changesharecommand        =
/etc/samba/scripts/modify_samba_config.pl
        time server               = Yes
        addusertogroupscript      = /usr/bin/gpasswd -a %u %g
        workgroup                 = samba
        logfile                   = /var/log/samba/log.%m
        log level                 = 3
        setprimarygroupscript     = /usr/sbin/usermod -g '%g' '%u'
        addgroupscript            = /etc/samba/scripts/smbgrpadd.sh %g
        syslog                    = 0
        oslevel                   = 99
        hostsallow                = 192.168. 127. 10.0.
        wins support              = yes
        preferred master          = yes
## Shares ##
<snip>
[printers]
        printable                 = yes
        print command             = /usr/bin/lpr -r -P%p %s
        browseable                = no
        path                      = /tmp
        guest ok                  = yes


#[canon]
#        printable                = yes
#        print command            = /usr/bin/lpr -Pcanon -r %s
#        printer                  = Canon Printer
#        printing                 = BSD
#        path                     = /tmp
#       guest ok                  = yes
#        valid users              = root, at users
#        printer admin            = root, at admins, at users
#[hp]
#        printable                = yes
#        print command            = /usr/bin/lpr -Php -r %s
#        printer                  = Canon Printer
#        printing                 = BSD
#        path                     = /tmp
#       guest ok                  = yes
#        valid users              = root, at users
#        printer admin            = root, at admins, at users

(I have tryed both with [printers] share and the [hp] share witch are commented out.

And at last my printcab file:

canon|Generic dot-matrix printer entry:\
        :lp=:\
        :rm=192.168.1.50:\
        :rp=L2:\
        :sd=/var/spool/lpd/lp:\
        :af=/var/log/lp-acct:\
        :lf=/var/log/lp-errs:\
        :pl#66:\
        :pw#80:\
        :pc#150:\
        :mx#0:\
        :sh:

hp|Generic dot-matrix printer entry:\
        :lp=:\
        :rm=192.168.1.50:\
        :rp=L1:\
        :sd=/var/spool/lpd/lp:\
        :af=/var/log/lp-acct:\
        :lf=/var/log/lp-errs:\
        :pl#66:\
        :pw#80:\
        :pc#150:\
        :mx#0:\
        :sh:




More information about the samba mailing list