You are not logged in.

#1 2009-04-21 22:02:36

The_Real_Neo
Member
Registered: 2009-04-21
Posts: 5

[Solved] CUPS rejecting requests from ::1

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

#2 2009-04-21 22:12:01

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [Solved] CUPS rejecting requests from ::1

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

#3 2009-04-22 02:40:09

ssjlegendx
Member
Registered: 2008-01-01
Posts: 94
Website

Re: [Solved] CUPS rejecting requests from ::1

bernarcher wrote:

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

#4 2009-04-22 08:44:22

xor
Member
From: Sweden
Registered: 2003-03-20
Posts: 73

Re: [Solved] CUPS rejecting requests from ::1

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

#5 2009-04-22 09:43:59

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [Solved] CUPS rejecting requests from ::1

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

#6 2009-04-22 20:27:01

The_Real_Neo
Member
Registered: 2009-04-21
Posts: 5

Re: [Solved] CUPS rejecting requests from ::1

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

#7 2009-04-23 08:05:53

jarda-wien
Member
Registered: 2008-03-13
Posts: 104

Re: [Solved] CUPS rejecting requests from ::1

I ran into this very problem yesterday.... and have updated the wiki to provide a solution

Offline

#8 2009-04-23 16:41:10

aqamar
Member
Registered: 2008-09-01
Posts: 49

Re: [Solved] CUPS rejecting requests from ::1

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

Board footer

Powered by FluxBB