Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: CUPS server error

  1. #11
    Join Date
    Jun 2007
    Location
    Online
    Beans
    156
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: CUPS server error

    Still no solution to this problem? I hope I am the only one having this problem... cause it is not pretty having this problem and i don't want anybody else to go through it...

  2. #12
    Join Date
    Dec 2007
    Location
    Newcastle-upon-Tyne - UK
    Beans
    109
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: CUPS server error

    Try adding;

    HTML Code:
    Listen 127.0.0.1:631
    Listen lan_ip_address:80
    If this works add;

    HTML Code:
    BrowseAllow from lan_ip_subnet (i.e. 192.168.1.0/24)
    BrowseOrder deny,allow
    to secure it again

    I had problems with the conf file recently; I also found them difficult to pin down!

  3. #13
    Join Date
    Jun 2007
    Location
    Online
    Beans
    156
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: CUPS server error

    Quote Originally Posted by Muttley99 View Post
    Try adding;

    HTML Code:
    Listen 127.0.0.1:631
    Listen lan_ip_address:80
    If this works add;

    HTML Code:
    BrowseAllow from lan_ip_subnet (i.e. 192.168.1.0/24)
    BrowseOrder deny,allow
    to secure it again

    I had problems with the conf file recently; I also found them difficult to pin down!
    Tried this but to no avail. I am out of options now. Thanks to all those that tried helping.

  4. #14
    Join Date
    Jun 2007
    Location
    Online
    Beans
    156
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: CUPS server error

    Can someone help?

  5. #15
    Join Date
    May 2006
    Beans
    4

    Re: CUPS server error

    Try adding:

    ServerAlias *

    to /etc/cups/cupsd.conf and restarting cups.

  6. #16
    Join Date
    Apr 2012
    Beans
    1

    Re: CUPS server error

    I was having a similar issue in logfile (and showing 'Bad Request' in browser), so I tried a bunch of things with curl, mainly mixing combinations of the Host header and the actual hostname (IP) used in the connection (ocean is my hostname, and resolves in DNS):

    Fail: curl -H 'Host: ocean:631' http://ocean:631/printers/
    Fail: curl -H 'Host: ocean' http://ocean:631/printers/
    Success: curl -H 'Host: localhost:631' http://localhost:631/printers/

    It turns out my first two lines of /etc/hosts were:

    127.0.0.1 localhost
    127.0.1.1 ocean


    I think this is a NetworkManager thing (oneiric)...

    So while cupsd.conf had a Listen 0.0.0.0:631 line, cups did not like connections coming in on 127.0.1.1.
    I removed the second line above and was able to connect...

  7. #17
    Join Date
    Mar 2013
    Beans
    2

    Re: CUPS server error

    Maybe I last, but when I'm trying to connect from my laptop to PC's printer server, using hostname "shvedPC" from /etc/hosts I geted same error and
    <code> Request from "192.168.0.100" using invalid Host: field "shvedPC"</code>
    lines in cups logs. Using real IP 192.168.0.100 in server's host addres solved my problem. Try to use 127.0.0.1 istead localhost.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •