Rick Flower
1998-May-08 22:42 UTC
After almost every reboot, Samba printing is DOA under Solaris 2.6...
I just thought that I would put this out there and see if anyone else sees this problem with Samba 1.9.18p4 (under Solaris 2.6). It appears that after some reboots of Solaris, Samba printing is partly dead. What I see in the logs are below, and what happens is that the file to be printed is spooled to /var/spool/samba, like always, but when the lpr command is issued it croaks. I've been able to play with it and sometimes find that once I get it working, it is good until the next reboot (of Solaris). Now, the return status is 256, which really doesn't tell me anything as the man page for the Solaris lpr command states : EXIT STATUS The following exit values are returned: 0 Successful completion. non-zero An error occurred. Now, the interesting thing is that I CAN issue the same exact lpr command by hand and it works fine (after the fact). The one thing that bothers me is that according to the logs, Samba is closing the file AFTER the lpr command is issued! I'm wondering if this is just a simple file-locking issue?!? my current protection settings on the /var/spool/samba directory are as follows : drwxrwxrwx 2 root other 512 May 8 15:25 samba Any ideas are appreciated! -- Rick 05/04/1998 14:17:08 Transaction 7224 of length 4146 switch message SMBwrite (pid 12659) chdir to / chdir to /var/spool/samba 05/04/1998 14:17:08 write fnum=96 cnum=92 num=4094 wrote=4094 05/04/1998 14:17:08 Transaction 7225 of length 1496 switch message SMBwrite (pid 12659) 05/04/1998 14:17:08 write fnum=96 cnum=92 num=1444 wrote=1444 05/04/1998 14:17:08 Transaction 7226 of length 46 switch message SMBclose (pid 12659) del_share_modes Deleting share mode entry dev=8388608 ino=25042 del_share_modes num entries = 0, deleting share_mode dev=8388608 ino=25042 fd_attempt_close on file_fd_struct 16, fd = 23, dev = 800000, inode = 61d2, open_flags = 2, ref_count = 1. Running the command `lpr -r -Pb201_1718_bay /var/spool/samba/FLOWER.0KnWXI' gave 256 05/04/1998 14:17:08 flower closed file FLOWER.0KnWXI (numopen=0) 05/04/1998 14:17:08 close fd=-1 fnum=96 cnum=92 (numopen=0) 05/04/1998 14:17:11 Transaction 7227 of length 120 switch message SMBtrans (pid 12659) chdir to / chdir to /tmp trans <\PIPE\LANMAN> data=0 params=36 setup=0 ========================== SMB.CONF ==============================;======================= Global Settings ====================================[global] debuglevel = 3 workgroup = dh comment = Justice Samba Server admin users = root log file = /usr/local/samba/var/log.%m username map = /usr/local/samba/lib/users.map max log size = 50 hide dot files = yes browseable = yes preserve case = yes short preserve case = yes guest account = guest encrypt passwords = yes status = yes dead time = 60 keep alive = 60 oplocks = false lock directory = /usr/local/samba/var/locks locking = yes domain master = no local master = yes preferred master = yes os level = 65 share modes = yes wins support = no wins server = 129.193.108.22 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=16384 SO_RCVBUF=16384 security = user load printers = no printing = sysv print command = lpr -r -P%p %s printcap name = lpstat lpq command = lpq -P%p lprm command = lprm -P%p %j ;============================ Share Definitions ============================= [201_1718] comment = Network printer queue for HP Laserjet 5 in Bldg 201/1718 Bay browseable = yes available = yes public = yes guest ok = yes writeable = no printable = yes printer name = b201_1718_bay printer driver = HP LaserJet 5/5M PostScript path = /var/spool/samba -------------- next part -------------- HTML attachment scrubbed and removed
Cliff Green
1998-May-09 16:22 UTC
After almost every reboot, Samba printing is DOA under Solaris 2.6...
> Date: Fri, 8 May 1998 15:42:06 -0700 > From: "Rick Flower" <Rick.Flower@trw.com> > To: "Samba Listserv" <samba@samba.anu.edu.au> > Subject: After almost every reboot, Samba printing is DOA underSolaris 2.6...> Message-ID: <006a01bd7ad2$876eac60$0f900481@p02634211.SP.TRW.COM> > > This is a multi-part message in MIME format.BTW - Could you submit to the list in plaintext from now on? It just makes it easier to read and understand your questions, let alone answer them...> It appears that after some reboots of Solaris, Samba printing ispartly=20> dead. What I see in the logs are below, and what happens is that the > file to be printed is spooled to /var/spool/samba, like always, but > when the lpr command is issued it croaks. I've been able to play > with it and sometimes find that once I get it working, it is gooduntil> the next reboot (of Solaris). Now, the return status is 256, which > really doesn't tell me anything as the man page for the Solaris lpr > command states :Actually, we've seen something like this under hpux, so I don't think it's related to your OS.> print command =3D lpr -r -P%p %sThis could be your problem. Put the full path for the lpr command in here (e.g., /usr/sbin/lpr, or whatever it is for you). When your system reboots, it's probably not setting up the path for printing adequately. Are you restarting samba from inetd or from init.d? (We use init.d for our production machines, so that's where it happens for us). -c
Rick Flower
1998-May-11 16:13 UTC
After almost every reboot, Samba printing is DOA under Solaris 2.6...
Ok.. I've taken your suggestion and changed the lpr commands so that they fully specify the lpr commands (ie. "/usr/ucb/lpr" instead of just "lpr" under Solaris 2.6). I've restarted Samba and it is working fine now -- so far. I'll keep an eye on it and see if the problem is still lurking around after the next scheduled reboot (next Sunday). If the problem does go away, perhaps this needs to be put in the Printing.doc file. Also, we are starting our Samba from the /etc/rc2.d startup directory, and not from inetd. P.S. Sorry about the Mime crud.. I didn't notice until the message already went out (and I got a copy of it through the list) that I sent it with Mime/HTML formatting. I've rectified the situation and all of my listservs are now set for plain-text only.>Actually, we've seen something like this under hpux, so I don't think >it's related to your OS. > >> print command =3D lpr -r -P%p %s > >This could be your problem. Put the full path for the lpr command in >here (e.g., /usr/sbin/lpr, or whatever it is for you). When your >system reboots, it's probably not setting up the path for printing >adequately. Are you restarting samba from inetd or from init.d? (We >use init.d for our production machines, so that's where it happens for >us).
Reasonably Related Threads
- Problem with visual C++ and samba
- SOLVED : (NEW Printing FAQ Question) : After almost every reboot, Samba printing is DOA under Solaris 2.6...
- Samba 1.9.16pl11: dropping connections between Solaris 2.5.1 and WinNT4SP3
- Directories show empty after some time ...
- Slow writes continued