Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] CUPS test page ok but can't print from command line
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
stephandale
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2006
Posts: 86

PostPosted: Thu Feb 08, 2007 1:12 pm    Post subject: [SOLVED] CUPS test page ok but can't print from command line Reply with quote

Hi all.

I have an odd problem with my USB printer. It installed fine, I can see it from localhost:631 and print a test page. However, I can't do anything from the command line and the printer isn't picked up from any applications. There are no errors written to the error logs.

Any ideas anyone? Thanks.

Code:
# cat /etc/hosts
[...cut...]
127.0.0.1       localhost
[...cut...]

# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.041 ms
[...cut...]

# cat /etc/cups/cupsd.conf
[...cut...]
Listen localhost:631
[...cut...]

# lpstat -p -d         
lpstat: Unable to connect to server

# lpstat -hlocalhost -p -d
printer HPLJ25501 is idle.  enabled since Thu Feb  8 11:47:11 2007
system default destination: HPLJ25501

# echo "testing testing 123" | lpr
lpr: Error - scheduler not responding!

# echo "testing testing 123" | lpr -P HPLJ25501
lpr: No route to host

# tail /var/log/cups/access_log
localhost - - [08/Feb/2007:11:53:34 +0000] "POST / HTTP/1.1" 200 414 CUPS-Get-Printers successful-ok
localhost - - [08/Feb/2007:11:53:34 +0000] "POST / HTTP/1.1" 200 268 Get-Jobs successful-ok
localhost - - [08/Feb/2007:12:47:47 +0000] "POST / HTTP/1.1" 200 351 CUPS-Get-Printers successful-ok
localhost - - [08/Feb/2007:12:47:47 +0000] "POST / HTTP/1.1" 200 351 CUPS-Get-Classes successful-ok
localhost - - [08/Feb/2007:12:47:47 +0000] "POST / HTTP/1.1" 200 75 CUPS-Get-Default successful-ok
localhost - - [08/Feb/2007:12:47:47 +0000] "POST / HTTP/1.1" 200 414 CUPS-Get-Printers successful-ok
localhost - - [08/Feb/2007:13:04:06 +0000] "POST / HTTP/1.1" 200 351 CUPS-Get-Printers successful-ok
localhost - - [08/Feb/2007:13:04:06 +0000] "POST / HTTP/1.1" 200 351 CUPS-Get-Classes successful-ok
localhost - - [08/Feb/2007:13:04:06 +0000] "POST / HTTP/1.1" 200 75 CUPS-Get-Default successful-ok
localhost - - [08/Feb/2007:13:04:06 +0000] "POST / HTTP/1.1" 200 414 CUPS-Get-Printers successful-ok

# tail /var/log/cups/error_log
I [08/Feb/2007:11:53:32 +0000] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [08/Feb/2007:11:53:32 +0000] Configured for up to 100 clients.
I [08/Feb/2007:11:53:32 +0000] Allowing up to 100 client connections per host.
I [08/Feb/2007:11:53:32 +0000] Using policy "default" as the default!
I [08/Feb/2007:11:53:32 +0000] Full reload is required.
I [08/Feb/2007:11:53:32 +0000] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [08/Feb/2007:11:53:32 +0000] Loading job cache file "/var/cache/cups/job.cache"...
I [08/Feb/2007:11:53:32 +0000] Full reload complete.
I [08/Feb/2007:11:53:32 +0000] Listening to 127.0.0.1:631 on fd 2...
I [08/Feb/2007:11:53:32 +0000] Listening to /var/run/cups/cups.sock on fd 3...

_________________
Stephan Dale
http://mindspill.net/computing/linux-notes/gentoo/
gentoo(a)mindspill.net


Last edited by stephandale on Thu Feb 08, 2007 3:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
stephandale
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jan 2006
Posts: 86

PostPosted: Thu Feb 08, 2007 3:07 pm    Post subject: Reply with quote

I have found the problem. /etc/cups/client.conf contained reference to an old server. I simply changed it to the following and all works fine now.

Code:
ServerName localhost

_________________
Stephan Dale
http://mindspill.net/computing/linux-notes/gentoo/
gentoo(a)mindspill.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum