Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: CUPS server error

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

    CUPS server error

    After upgrading to Karmic, my printer was nowhere to be found. I tried adding a new printer System->Administration->Printing... but whenever I do, I get the following error:
    CUPS server error
    There was an error during the CUPS operation: 'client-error-bad-request'
    I spent about 2 hours trying to figure out what the problem might be but to no avail. I reinstall cups but nothing... Any suggestions?

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

    Re: CUPS server error

    It is a shame nobody got a clue

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

    Re: CUPS server error

    Ok, when I did
    tail /var/log/cups/error_log
    , I get the following error.
    Request from "localhost" using invalid Host: field ""
    How do I change the localhost name?

  4. #4
    Join Date
    Jul 2007
    Location
    Austin, TX
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: CUPS server error

    Quote Originally Posted by atentik View Post
    Ok, when I did , I get the following error.

    How do I change the localhost name?

    Sounds like the update screwed your /etc/cups/cupsd.conf file. You need to open it up and fix things by hand.

    Here's a generic one that I made:
    http://bozosort.com/dloads/cupsd.conf

    You need to edit the ip's at the bottom to match your LAN.

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

    Re: CUPS server error

    Quote Originally Posted by Queue29 View Post
    Sounds like the update screwed your /etc/cups/cupsd.conf file. You need to open it up and fix things by hand.

    Here's a generic one that I made:
    http://bozosort.com/dloads/cupsd.conf

    You need to edit the ip's at the bottom to match your LAN.
    Thanks for the information. I tried modifying my cupsd.conf file to reflect the one you sent but the error message
    Request from "localhost" using invalid Host: field ""
    persist. I changed the IP address as you advised. Any other alternative?

  6. #6
    Join Date
    Mar 2007
    Location
    New Mexico
    Beans
    21
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: CUPS server error

    I'm certainly no expert and arrive at this thread whilst dinking around with my own CUPS issues, but perhaps it would be helpful to post your /etc/cups/cupsd.conf file here. Could be something as simple as a typo that another pair of eyes catches.

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

    Re: CUPS server error

    Quote Originally Posted by sloopveedub View Post
    I'm certainly no expert and arrive at this thread whilst dinking around with my own CUPS issues, but perhaps it would be helpful to post your /etc/cups/cupsd.conf file here. Could be something as simple as a typo that another pair of eyes catches.
    Hey, thanks. That's a good idea. Here we go.
    LogLevel warn
    MaxLogSize 1m
    SystemGroup lpadmin
    # Allow remote access
    ServerName 123.456.78.9
    ServerAlias *
    Port 631
    Listen /var/run/cups/cups.sock
    # Share local printers on the local network.
    Browsing On
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseRemoteProtocols
    BrowseAddress @LOCAL
    BrowseLocalProtocols cups

    DefaultAuthType Basic

    <Location />
    # Allow shared printing...
    Order allow,deny
    Allow all
    </Location>
    <Location /admin>
    # Restrict access to the admin pages...
    Order allow,deny
    </Location>
    <Location /admin/conf>
    AuthType Default
    Require user @SYSTEM
    # Restrict access to the configuration files...
    Order allow,deny
    </Location>

    <Policy default>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    <Policy authenticated>
    <Limit Create-Job Print-Job Print-URI>
    AuthType Default
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order allow,deny
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order allow,deny
    </Limit>
    <Limit All>
    Order allow,deny
    </Limit>
    </Policy>

  8. #8
    Join Date
    Mar 2007
    Location
    New Mexico
    Beans
    21
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: CUPS server error

    Are you able to access the CUPS web interface?

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

    Re: CUPS server error

    Quote Originally Posted by sloopveedub View Post
    Are you able to access the CUPS web interface?
    Yes. I am able to do that. When I did that though, only the computers that have Ubuntu system connected to the server were able to print. All the others are unable to print, including the main server.

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

    Re: CUPS server error

    My eyes are hurting reading from the monitor everyday. Still can't print from my server. Any suggestion?

Page 1 of 2 12 LastLast

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
  •