You are not logged in.

#1 2013-02-04 18:40:22

rsplenum
Member
Registered: 2013-01-10
Posts: 25

[SOLVED]cups web interface bad request error

Installed cups, libcups and all the other pckages mentioned in CUPS archwiki page and also insatlled cups-pdf. Avahi-daemon is enabled and so does cupsd but on accessing web interface at archlinux:631 it give "Bad Request" message. Basically all I need is a virtual pdf printer like cups-pdf and my hp offficejet 5610 printer connected. any help is much appreciated.

Last edited by rsplenum (2013-02-04 20:10:28)

Offline

#2 2013-02-04 19:23:38

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED]cups web interface bad request error

Have you enabled cups (systemctl enable cups and reboot)? Try to access the web intercae with http://127.0.0.1:631

Offline

#3 2013-02-04 19:39:09

rsplenum
Member
Registered: 2013-01-10
Posts: 25

Re: [SOLVED]cups web interface bad request error

olive wrote:

Have you enabled cups (systemctl enable cups and reboot)? Try to access the web intercae with http://127.0.0.1:631

cupsd was enabled and running and so was avahi-daemon but localhost:631 was giving Bad Request error and 127.0.1.1:631 works, i wonder why the former doesn't work ?
anyway BIG thanks to you.

Offline

#4 2013-02-04 19:46:00

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED]cups web interface bad request error

rsplenum wrote:

cupsd was enabled and running and so was avahi-daemon but localhost:631 was giving Bad Request error and 127.0.1.1:631 works, i wonder why the former doesn't work ?
anyway BIG thanks to you.

What's the content of /etc/hosts? You should have something like

127.0.0.1       archlinux.athome.net   archlinux       localhost

and have archlinux in /etc/hostname. If that is not setup correctly, you will experience other problems.

Last edited by olive (2013-02-04 19:46:42)

Offline

#5 2014-01-23 20:31:19

theodoreward
Member
Registered: 2013-04-05
Posts: 20

Re: [SOLVED]cups web interface bad request error

Just an FYI: I was getting bad request when trying to access localhost:631 as well, netstat showed cups was only listening for IPv6 connection so I had to add

::1        localhost.localdomain    localhost

to /etc/hosts after which it worked fine.

Offline

#6 2014-02-04 19:47:57

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED]cups web interface bad request error

Was this a really recent change? I haven't had ipv6 enabled since I can remember in /etc/hosts, and only just today got this error for localhost:631.

Is there a way to stop this behavior and force ipv4?

Offline

#7 2014-02-09 15:00:32

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: [SOLVED]cups web interface bad request error

I too have this problem, and I'm not sure how OP solved it... simply starting the service??? anyhow I opened a new topic, since this is mark as solved, here

Offline

#8 2014-02-09 18:52:13

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED]cups web interface bad request error

On my home computer, I still have my ipv6 host address commented out, yet I can access localhost:631 just fine. On my work laptop, the fix above works fine. I can open a new topic, but wondered if anyone who participated here could provide other ways to track down the issue, since it appears it's not entirely related to /etc/hosts. I can't find much at all on this from googling around, at least that's recent. I think it's related to 1.7.1, which was released around the time some of these issues started appearing.

Offline

#9 2014-02-09 20:11:14

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED]cups web interface bad request error

As stated, my home laptop could still access localhost:631 with my ipv6 host line commented out in /etc/hosts. I just updated another post with what I think the problem is, which is a ListenStream=631 line in /usr/lib/systemd/system/cups.socket which did not exist in the 1.7.0 version of cups. The 1.7.1 version was pushed out sometime last month, which might explain these posts only coming up now (there's at least three I've found). Read more via my post in the other thread.

I know this is solved, but wanted to leave breadcrumbs in related threads in case the solution here doesn't work for those who stumble on this.

Last edited by jwhendy (2014-02-09 20:15:08)

Offline

#10 2014-02-09 21:45:28

jwhendy
Member
Registered: 2010-04-01
Posts: 621

Re: [SOLVED]cups web interface bad request error

For any interested, I was going to post a bug report, but in searching first, one had already been filed back on 1/27. I added links to the three pertinent threads there and will be following along.

Offline

#11 2014-02-27 12:36:58

Gnux
Member
Registered: 2006-09-27
Posts: 26

Re: [SOLVED]cups web interface bad request error

theodoreward wrote:

Just an FYI: I was getting bad request when trying to access localhost:631 as well, netstat showed cups was only listening for IPv6 connection so I had to add

::1        localhost.localdomain    localhost

to /etc/hosts after which it worked fine.

That works for me, thanks for the tip wink

Offline

Board footer

Powered by FluxBB