cups deamon not accessable

SUSE 11.1

I am having problems geting a printer to work. The cupsd is running but not accessible on Port 631

the config as as below

Listen localhost:631
Listen /var/run/cups/cups.sock

the error log output is:

I [21/Feb/2009:17:12:04 +0000] Listening to ::1:631 (IPv6)
I [21/Feb/2009:17:12:04 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [21/Feb/2009:17:12:04 +0000] Loaded configuration file “/etc/cups/cupsd.conf”
I [21/Feb/2009:17:12:04 +0000] Configured for up to 100 clients.
I [21/Feb/2009:17:12:04 +0000] Allowing up to 100 client connections per host.
I [21/Feb/2009:17:12:04 +0000] Full reload is required.
I [21/Feb/2009:17:12:04 +0000] Loaded MIME database from ‘/etc/cups’: 37 types, 40 filters…
I [21/Feb/2009:17:12:04 +0000] Loading job cache file “/etc/cups/yes/job.cache”…
I [21/Feb/2009:17:12:04 +0000] Full reload complete.
E [21/Feb/2009:17:12:04 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
I [21/Feb/2009:17:12:04 +0000] Listening to /var/run/cups/cups.sock on fd 1…
I [21/Feb/2009:17:12:04 +0000] Resuming new connection processing…
D [21/Feb/2009:17:12:04 +0000] Discarding unused server-started event…
D [21/Feb/2009:17:12:05 +0000] Report: clients=0
D [21/Feb/2009:17:12:05 +0000] Report: jobs=0
D [21/Feb/2009:17:12:05 +0000] Report: jobs-active=0
D [21/Feb/2009:17:12:05 +0000] Report: printers=0
D [21/Feb/2009:17:12:05 +0000] Report: printers-implicit=0
D [21/Feb/2009:17:12:05 +0000] Report: stringpool-string-count=170
D [21/Feb/2009:17:12:05 +0000] Report: stringpool-alloc-bytes=4888
D [21/Feb/2009:17:12:05 +0000] Report: stringpool-total-bytes=3648

I have disabled ip v6 wherever I can find it.

but it still fails with :
Unable to open listen socket for address ::1:631 - Address family not supported by protocol.

when I run:

LINUXSUSE111:~ # lpstat -h localhost -r
lpstat: Unable to connect to server
LINUXSUSE111:~ #

Can anyone help to get the cupsd running correctly

many thanks

Check here
CUPS - Explained - openSUSE Forums

IPv6 is disabled globally in your network settings

On Sat February 21 2009 03:26 pm, caf4926 wrote:

>
> Check here
> ‘CUPS - Explained - openSUSE Forums’ (http://tinyurl.com/6bd4kb)
>
>
> IPv6 is disabled globally in your network settings
>
>
markyboi;
To disable IPv6 globally:
YAST → Network Devices → Network Card

I don’t think that IPv6 is your actual problem; could be wrong. If after
reading the link given by caf4926 you are still having problems, it might
help if you posted the contents of your /etc/cups/cupsd.conf. You might also
want to verify that /etc/xinetd.d/cups-lpd has “disable” set to “no”.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

if have set

/etc/xinetd.d/cups-lpd has “disable” set to “no”.

set to no It was at Yes but made no difference.

content of cupsd.conf is :


#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug

# Administrator user group...
SystemGroup sys root


# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
#Listen *:631

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow 127.0.0.2
  Allow 10.0.0.4
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an administrator...
  <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>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <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>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

DefaultPolicy default

# easy is a very relaxed policy
<Policy easy>
  # Job-related operations must be done by the owner or an administrator...
  <Limit All>
    Satisfy any
    Order allow,deny
  </Limit>
</Policy>

# paranoid is a very restricted policy
<Policy paranoid>
  # Job-related operations must be done by the owner
  <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>
    Require user @OWNER
    Allow from 127.0.0.0/8
    Order deny,allow
  </Limit>
  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Allow from 127.0.0.0/8
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <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
    Allow from 127.0.0.0/8
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER
    Allow from 127.0.0.0/8
    Order deny,allow
  </Limit>

  <Limit All>
    Require user @OWNER @SYSTEM
    Allow from 127.0.0.0/8
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#


O/P complete error is :


I [22/Feb/2009:08:05:26 +0000] Saving job cache file "/etc/cups/yes/job.cache"...
I [22/Feb/2009:08:05:27 +0000] Listening to ::1:631 (IPv6)
I [22/Feb/2009:08:05:27 +0000] Listening to /var/run/cups/cups.sock (Domain)
I [22/Feb/2009:08:05:27 +0000] Loaded configuration file "/etc/cups/cupsd.conf"
I [22/Feb/2009:08:05:27 +0000] Configured for up to 100 clients.
I [22/Feb/2009:08:05:27 +0000] Allowing up to 100 client connections per host.
I [22/Feb/2009:08:05:27 +0000] Full reload is required.
I [22/Feb/2009:08:05:27 +0000] Loaded MIME database from '/etc/cups': 37 types, 40 filters...
I [22/Feb/2009:08:05:27 +0000] Loading job cache file "/etc/cups/yes/job.cache"...
I [22/Feb/2009:08:05:27 +0000] Full reload complete.
E [22/Feb/2009:08:05:27 +0000] Unable to open listen socket for address ::1:631 - Address family not supported by protocol.
I [22/Feb/2009:08:05:27 +0000] Listening to /var/run/cups/cups.sock on fd 1...
I [22/Feb/2009:08:05:27 +0000] Resuming new connection processing...
D [22/Feb/2009:08:05:27 +0000] Discarding unused server-started event...
D [22/Feb/2009:08:05:28 +0000] Report: clients=0
D [22/Feb/2009:08:05:28 +0000] Report: jobs=0
D [22/Feb/2009:08:05:28 +0000] Report: jobs-active=0
D [22/Feb/2009:08:05:28 +0000] Report: printers=0
D [22/Feb/2009:08:05:28 +0000] Report: printers-implicit=0
D [22/Feb/2009:08:05:28 +0000] Report: stringpool-string-count=170
D [22/Feb/2009:08:05:28 +0000] Report: stringpool-alloc-bytes=4888
D [22/Feb/2009:08:05:28 +0000] Report: stringpool-total-bytes=3648

when I open the printers icon in yast it comes up with restart the server in 30 secs some advice

and then

/usr/bin/lpstat: Unable to connect to server

IF I OK that then I I get:

DNS fwd/rev mismatch: localhost != nil
localhost [127.0.0.1] 631 (ipp) : Connection refused

My local ip address is 10.0.0.4 on my internal network

when I try http://localhost:631/

I get unable to connect

I this a bug?

many thanks

PS

In the cupsd.conf I have added:

listen *:631

Which didn’t work

and also

Allow 10.0.0.4

the problem is your hosts file (/etc/hosts)

add this to it and it will work

127.0.0.1 localhost localhost

or add it through yast, network services, hostnames

Here is my original hosts


#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#    
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#

127.0.0.1       nil

# special IPv6 addresses
::1             localhost ipv6-localhost ipv6-loopback

fe00::0         nil

ff00::0         nil
ff02::1         nil
ff02::2         nil
ff02::3         nil
10.0.0.4        LINUXSUSE111 LINUXSUSE111
127.0.0.2       LINUXSUSE111.home LINUXSUSE111 

and her is the new one with your suggestion. Note I have hashed out the ip6 referenced one.

#
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.
# Syntax:
#    
# IP-Address  Full-Qualified-Hostname  Short-Hostname
#
127.0.0.1 localhost localhost
127.0.0.1       nil

# special IPv6 addresses
#::1             localhost ipv6-localhost ipv6-loopback

fe00::0         nil

ff00::0         nil
ff02::1         nil
ff02::2         nil
ff02::3         nil
10.0.0.4        LINUXSUSE111 LINUXSUSE111
127.0.0.2       LINUXSUSE111.home LINUXSUSE111

and it WORKS!!!

or at least I am further on than before to the next problem

I might be interesting to know ( for anyone searching on this problem ) how all of those hosts got there. I have certainly never edited it?

many thanks well done