cancel
Showing results for 
Search instead for 
Did you mean: 

Printer issue.

 
SOLVED
Go to solution
Highlighted
Respected Contributor

Printer issue.

We configured a printer on RHEL AS 4 update 2, But when we print a test page it gives the below error.

lpr:error-unable to print file: server-error-service-unavailable.

When i try to configure through firefox using
http://localhost:631
it says connection refused.

need some help me on this.
6 REPLIES 6
Highlighted
Honored Contributor

Re: Printer issue.

What is the output of:

service iptables status
getenforce
service cups status
lpc status
lpq


The problem may be related to:

Firewall blocking access
Cups not started
SELinux?
Printer misconfiguration (did you use system-config-printer?)
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Highlighted
Honored Contributor

Re: Printer issue.

check if you have restrction to port 631 or if that is configured well.

For the printer to work from unix the respective ports should be listening? do you have any other printers wokring on the same server?

# grep 515 /etc/services
printer 515/tcp spooler # line printer spooler
printer 515/udp spooler # line printer spooler

# netstat -an|grep :515|grep LISTEN
tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN
Highlighted
Respected Contributor

Re: Printer issue.

Below is the output of the command.

service iptables status
[root@erp42 init.d]# service iptables status
Firewall is stopped.

getenforce
[root@erp42 init.d]# getenforce
Disabled

service cups status
[root@erp42 init.d]# service cups status
cupsd (pid 18673) is running...

lpc status
[root@erp42 ~]# lpc status
[root@erp42 ~]#

lpq
[root@erp42 ~]# lpq
lpq: Unable to contact server!

Firewall blocking access
Cups not started started
SELinux? Disabled
Printer misconfiguration (did you use system-config-printer?)
yes i used system-config-printer


check if you have restrction to port 631 or if that is configured well.
no restriction.

For the printer to work from unix the respective ports should be listening? do you have any other printers wokring on the same server?
There are around 15 printers i need to configure on this server, all the 15 printers are already configured on another server and are working fine.

# grep 515 /etc/services
printer 515/tcp spooler # line printer spooler
printer 515/udp spooler # line printer spooler

# netstat -an|grep :515|grep LISTEN
no output for this particular command
Highlighted
Honored Contributor
Solution

Re: Printer issue.

See if that helps...


Issue:
Why do I receive the "lpr: unable to print file: server-error-service-unavailable" error message on Red Hat Linux 9? Resolution:Release Found: Red Hat Linux 9 and cups-1.1.17-13.3.0.3

Symptom:
Can't print to network printer after installation with the redhat-config-printer tool.

Steps to Reproduce:

Install printer with the redhat-config-printer tool
Complete the configuration and try to print a test page
Solution:

Check in /etc/hosts to see if the "127.0.0.1 localhost" is missing. If this is the case, do the following:

Change the /etc/hosts to add the localhost.
Check the cups log to see if /usr/lib/cups/filter/cupsomatic is missing.
If this is the case reinstall the foomatic package and try the print.
Highlighted
Respected Contributor

Re: Printer issue.

Thanks Santosh,
the entry "127.0.0.1 localhost" was commented, after removing the comment,
we are able to configure the printer.
thanks again.
Highlighted
Respected Contributor

Re: Printer issue.

Check in /etc/hosts to see if the "127.0.0.1 localhost" is missing.
do the following:
Change the /etc/hosts to add the localhost.