Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Mandriva Linux Help > [SOLVED] CUPS printing error (Request from localhost using invalid Host: field )

Forgot Password?
 Mandriva Linux Help   For help and discussion about Mandriva (formally Mandrake) Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 08-24-2009   #1 (permalink)
Just Joined!
 
sarlacii's Avatar
 
Join Date: May 2005
Location: South Africa
Posts: 81
[SOLVED] CUPS printing error (Request from localhost using invalid Host: field )

Greetings all

Have searched for similar posts and cannot find anything that matches exactly, so I'm posting the issue here, in a new thread.

Distro is PClinuxOS 2007 (with full dist-upgrade done as of 2009/08/10).
cups-1.3.10-6pclos2009
2.6.26.8.tex3 #1 SMP

The issue:

Post the upgrade, printing from Gnome apps (eg. Evolution) didn't work anymore. Printer appears in the print dialog (eg. HP M4345), but the "print" button was greyed out! However, one printer did still work and the difference was that it had an absolute URI reference (ipp://192.200.200.204:631/printers/Local-HPlj1020). The others had all been added using the HP tool, and used refs such as "ipp://::1/printers/HP_LaserJet_M4345_MFP".

Working with the CUPS webadmin tool resulted in a Firefox error message when trying to access user permissions for a printer, warning of trying to access a non-standard port. The log files pointed to the actual problem, contained entries such as,
Quote:
Request from "localhost" using invalid Host: field "::1"
.

A bit of searching led to a few such CUPS related errors, all posted after recent upgrades (mostly since April). The solutions varied... I did the following to get it to work:
  1. Open /etc/cups/cupsd.conf
  2. Add the line "ServerAlias *"
  3. Add the line "Port 631"
  4. Add the line "Listen /var/run/cups/cups.sock"
  5. Save the file and restart cups ("/etc/init.d/cups restart").

Hey presto, the HP Tool functions correctly, and so does the CUPS webadmin tool. All the printers appear in Evolution etc. with "Print" buttons enabled (and not greyed out).

Good luck.

Note, as an aside, that the entries made in the cupsd.conf file will mostly likely disappear with your next upgrade of CUPS, so beware.
sarlacii is offline  


Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:31 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2