You are not logged in.
Hey all,
I recently reinstalled Archlinux x64 and when I set cups up I encounter the following problem:
Cups starts correctly, I succeed in setting up my printer. However, each time I try to print something on Gnome, the default "select printer" dialog contains my printer but the print button is grayed when I select it.
Each time the "select printer" dialog opens, the following entry is logged into /var/log/cups/error_log:
Request from "localhost" using invalid Host: field "::1"
I added the acl option in my fstab as suggested elsewhere in the forum but it didn't change anything for this error.
I suspect a policy problem but I don't know how to fix it, my /etc/hosts file is the following (TRN is the hostname in rc.conf):
127.0.0.1 localhost.localdomain localhost TRN
::1 localhost.localdomain localhost TRN
I'm using IPv6 to access internet. My cupsd.conf file is the default one.
Does someone has clue on this?
Thanks guys.
Last edited by The_Real_Neo (2009-04-22 20:27:25)
Offline
I resolved this by copying /etc/cups/cupsd.conf.default over to cupsd.conf. It seems the defaults changed somewhat by some recent update.
Don't forget to restart /etc/rc.d/cups to make the change effective:
/etc/rc.d/cups restart
To know or not to know ...
... the questions remain forever.
Offline
I resolved this by copying /etc/cups/cupsd.conf.default over to cupsd.conf. It seems the defaults changed somewhat by some recent update.
Thanks, bernarcher!
I ran into issues with CUPS earlier today, and I had decided that the ::1 issue would probably be fixed in a forthcoming version! Silly me!
Edit: There's a lengthier discussion of the overall issue here.
Last edited by ssjlegendx (2009-04-22 14:35:15)
#!/vim/rocks
Offline
Hi,
The solution for problem with:
Request from "localhost" using invalid Host: field "::1"
is to change /etc/cups/cupsd.conf
#Listen localhost:631
Listen 127.0.0.1:631
then restart cups and refresh your browser to see the difference.
Change above prevent cups to connect using an IPV6 address.
See this thread: http://www.cups.org/newsgroups.php?s1+g … 4+T0+Q%3A1
/xor
Offline
Yeah, it is all about Cups wanting to use IPv6 as default now. There should be no problems when you enabled IPv6 in your system -- but I probably won't unless it becomes really necessary.
To know or not to know ...
... the questions remain forever.
Offline
Hey guys,
Actually simply copying the cupsd.conf.default over the cupd.conf file worked very well.
I previously tried to listen 127.0.0.1 instead of localhost but my printer was not visible anymore in the default printer dialog even if it remained visible on the web interface.
Anyway, it's working now. Thank you very much !
Offline
I ran into this very problem yesterday.... and have updated the wiki to provide a solution
Offline
I delete all of /etc/cups and reinstall cups, and happens the same, then i disable the ipv6 module and reboot and works for me
Offline