You are not logged in.

#1 2007-03-09 00:08:43

elgordo123
Member
Registered: 2007-02-18
Posts: 3

cups errors

I've tried to configure cups and I cannot get it working right.   I downloaded everything according the wiki and I got an error about it not binding 127.0.0.1:631.   I changed the cupsd.conf to just say Port 631 and it is now able to start.  (I can see it running when I do ps -A |grep cupsd.   
  The problem is I cannot connect to http://localhost:631.  It just times out.  I have posted the bottom of my error_log file.   I have tried restarting the computer, adding cups to the daemon list, and restarting the server many times.  It always looks like it loads cups, but still cannot connect.     Tried both firefox and epiphany and they both timeout.   I have also posted my cupsd.conf file.   I really love arch, but I have to be able to print!
Thanks in advance!   

Here is my error_log:
ps
I [08/Mar/2007:16:01:33 -0800] Loading job cache file "/var/cache/cups/job.cache"...
I [08/Mar/2007:16:01:33 -0800] Full reload complete.
d [08/Mar/2007:16:01:33 -0800] cupsdStartListening: 2 Listeners
I [08/Mar/2007:16:01:33 -0800] Listening to :::631 on fd 2...
I [08/Mar/2007:16:01:33 -0800] Listening to 0.0.0.0:631 on fd 3...
d [08/Mar/2007:16:01:33 -0800] cupsdSetEnv: CUPS_SERVER=localhost
d [08/Mar/2007:16:01:33 -0800] cupsdSetEnv: CUPS_ENCRYPTION=IfRequested
d [08/Mar/2007:16:01:33 -0800] cupsdSetEnv: IPP_PORT=631
d [08/Mar/2007:16:01:33 -0800] cupsdResumeListening: Setting input bits...
d [08/Mar/2007:16:01:33 -0800] cupsdResumeListening: Adding fd 2 to InputSet...
d [08/Mar/2007:16:01:33 -0800] cupsdResumeListening: Adding fd 3 to InputSet...
d [08/Mar/2007:16:01:33 -0800] cupsdStartBrowsing: Adding fd 4 to InputSet...
d [08/Mar/2007:16:01:33 -0800] cupsdStartServer: Adding fd 5 to InputSet...
d [08/Mar/2007:16:01:33 -0800] cupsdAddCert: adding certificate for pid 0
d [08/Mar/2007:16:01:33 -0800] cupsdAddCert: NumSystemGroups=2
E [08/Mar/2007:16:01:33 -0800] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
d [08/Mar/2007:16:01:33 -0800] cupsdCheckJobs: 0 active jobs, sleeping=0, reload=0
d [08/Mar/2007:16:01:34 -0800] stringpool: 167 strings, 4840 allocated, 3648 total bytes
d [08/Mar/2007:16:01:34 -0800] select_timeout: 86400 seconds to do nothing

here is my cupsd.conf file:
#
# "$Id: cupsd.conf,v 1.1 2006/07/06 13:11:10 tpowa Exp $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Disable ssl by default, you have to generate own certs to use this feature eg. by this command:
# openssl req -new -x509 -keyout /etc/cups/ssl/server.key -out /etc/cups/ssl/server.crt -days 365 -nodes
# for other certs please refer to openssl manpage.
# Setting Encryption to not required by default
DefaultEncryption IfRequested


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

# Administrator user group...
SystemGroup sys root

# Only listen for connections from the local machine.
#Listen localhost:631
Port 631
# Socket disabled by default it makes KDE fail on CUPS
# Listen /var/run/cups/cups.sock
# To allow remote connections add for example
# Listen <yourserverip>:631

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

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

# Restrict access to the server...
# By default only localhost connections are possible
<Location />
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
  # Encryption disabled by default
  #Encryption Required
  Order allow,deny
  Allow localhost
</Location>

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

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <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 adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes 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-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    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>

#
# End of "$Id: cupsd.conf,v 1.1 2006/07/06 13:11:10 tpowa Exp $".
#

Offline

#2 2007-03-09 04:30:11

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 266

Re: cups errors

do you change localhost name from localhost
if, try http://yourhostname:631

Offline

#3 2007-03-09 15:49:49

elgordo123
Member
Registered: 2007-02-18
Posts: 3

Re: cups errors

I have past the port binding problem.   The problem I am having is this: (as shown in my log above):

E [08/Mar/2007:16:01:33 -0800] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported

I think that is why I can't connect or cups doesn't load correctly.  I'm using everything default Arch, so nothing has been changed from a default install.

Offline

#4 2007-03-09 23:30:52

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: cups errors

do you use xfs filesystem?

Offline

#5 2007-03-15 14:47:07

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: cups errors

The only difference I see between what you have in your cupsd.conf and my is in the
<Limit All> tag. I am explicitly allowing localhost.

  <Limit All>
    Order deny,allow
    Allow localhost
    Allow 172.16.1.*
  </Limit>

Not sure if this helps.

Offline

Board footer

Powered by FluxBB