[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2008-11-18
4
Medium Priority
?
3,131 Views
Last Modified: 2013-12-27
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.
0
Comment
Question by:sunhux
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Brian Utterback earned 1440 total points
ID: 22993703
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
 

Author Comment

by:sunhux
ID: 23002400
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
 
LVL 22

Assisted Solution

by:Brian Utterback
Brian Utterback earned 1440 total points
ID: 23003256
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
 

Author Comment

by:sunhux
ID: 23003352
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

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question