lp lpstat : LP print services isn't running or can't be reached

Hi,

After last weekend's server reboot, our Solaris 8 server's print service is no more
working (have been working fine all these while).  I'm not aware of any change & I
can see that "printer" service is enabled in /etc/inetd.conf :

grep -i printer /etc/inetd.conf
printer         stream  tcp6    nowait  root    /usr/lib/print/in.lpd   in.lpd

I've done "pkill -HUP inetd"  to refresh the inetd but it did not help.

Error messages appended :

# lpstat slacdhp1
UX:lpstat: ERROR: The LP print service isn't running or can't be
                  reached.
          TO FIX: Your request can't be completely handled
                  without the LP print service. If this
                  problem continues, get help from your
                  system administrator.

# lp -d  slacdhp1 /etc/hosts
UX:lp: ERROR: Can't establish contact with the LP print service.
      TO FIX: Either the LP print service has stopped,
              or all message channels are busy. If the
              problem continues, get help from your
              system administrator.
sunhuxAsked:
Who is Participating?
 
Brian UtterbackConnect With a Mentor Principle Software EngineerCommented:
Run this command to verify that the service really is listening as the inetd.conf file implies:

netstat -an | grep 515 | grep LISTEN

Did you get a line of output?

Okay, if so, then check the /var/adm/messages file for any messages relating to printing or inetd.

If you don't find anything, try running the lpstat command using truss:

truss -o /tmp/lps.truss -faled lpstat

Then look for the point in the truss file where the error message is printed and work backwards from there looking for an in explained error.

Try that, and let us know.
0
 
sunhuxAuthor Commented:
a) there are 2 lines (thought it should be one listening process only)
>netstat -an | grep 515 | grep -i listen
      *.515                *.*                0      0 24576      0 LISTEN
      *.515                             *.*                             0      0 24576      0 LISTEN


b) /var/adm/messages has several queue related messages :
Nov 20 06:45:01 slasun02 ntpdate[21236]: [ID 774510 daemon.notice] step time server 10.51.1.9 offset 0.585674 sec
Nov 20 06:50:00 slasun02 sendmail[21377]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-I
Pv4: cannot bind: Address already in use
Nov 20 06:50:00 slasun02 sendmail[21377]: [ID 702911 mail.alert] daemon MTA-IPv4: problem creating SMTP socket
Nov 20 06:50:05 slasun02 sendmail[21377]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-I
Pv4: cannot bind: Address already in use
Nov 20 06:50:05 slasun02 sendmail[21377]: [ID 702911 mail.alert] daemon MTA-IPv4: problem creating SMTP socket
Nov 20 06:50:10 slasun02 sendmail[21377]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-I
Pv4: cannot bind: Address already in use
Nov 20 06:50:10 slasun02 sendmail[21377]: [ID 702911 mail.alert] daemon MTA-IPv4: problem creating SMTP socket
Nov 20 06:50:15 slasun02 sendmail[21377]: [ID 801593 mail.crit] NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA-I
Pv4: cannot bind: Address already in use

c) I've issued the commands (in case faled is a typo, I've used 'failed' as well) & attached outputs :
truss -o /tmp/lpfaled.txt -faled lpstat
truss -o /tmp/lpfailed.txt -failed lpstat


lpfaled.txt
lpfailed.txt
0
 
Brian UtterbackConnect With a Mentor Principle Software EngineerCommented:
Okay, lpstat is complaining because the daemon lpsched is not running. I don't know why it is not running. Check, and try starting it is it isn't running.
0
 
sunhuxAuthor Commented:
So, I restart lpsched  just by typing "lpsched"?

This is what I get now :
# lpstat -a
dvsy01 accepting requests since Thu Apr 19 09:15:31 2007
sds1_hp1 accepting requests since Tue Sep 28 11:50:23 2004

# lp -d slacdhp1 dailyback.18112008
request id is slacdhp1-25386 (1 file(s))

Printing now, thanks a lot

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.