Comment 2 for bug 37986

Revision history for this message
casualprogrammer (casualprogrammer) wrote :

Hi Patrice,

not sure what configuration files exactly you need, please specify.

The process again is:

1. Start Firefox
2. Enter http://localhost:631
3. In the page titled "Common UNIX Printing System 1.2svn" click on the tab "Administration"
4. Select / Deselect from "Basic Server Settings"
5. Press "Change Settings"
6. A page titled "Change Settings" appears, asking to "stand by..."
7. A page titled "Unable to connect" appears.

Starting cups with "$ sudo cupsd" is required to get on.

The configuration file(from the admin interface ) shows:

# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup lpadmin
RunAsUser Yes
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</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>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <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>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  # Only the owner or an administrator can cancel a job...
  <Limit Cancel-Job>
    Order deny,allow
    Require user @OWNER @SYSTEM
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
Include /etc/cups/cups.d/ports.conf
Include /etc/cups/cups.d/browse.conf
# Allow remote access
Listen *:631
Listen /var/run/cups/cups.sock

The access log (from the administration page) shows:

localhost - - [04/Apr/2006:11:55:01 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - - [04/Apr/2006:11:55:01 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - - [04/Apr/2006:11:55:02 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - root [04/Apr/2006:11:55:02 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 201 1862 - -
localhost - - [04/Apr/2006:11:54:46 +0200] "POST /admin HTTP/1.1" 200 3449 - -
localhost - - [04/Apr/2006:11:55:58 +0200] "GET /admin HTTP/1.1" 200 0 - -
localhost - - [04/Apr/2006:11:55:59 +0200] "POST / HTTP/1.1" 200 1382 CUPS-Get-Devices -
localhost - - [04/Apr/2006:11:55:58 +0200] "GET /admin HTTP/1.1" 200 5349 - -
localhost - - [04/Apr/2006:11:56:03 +0200] "POST /admin HTTP/1.1" 200 96 - -
localhost - - [04/Apr/2006:11:56:03 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - root [04/Apr/2006:11:56:04 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 201 1862 - -
localhost - - [04/Apr/2006:11:56:03 +0200] "POST /admin HTTP/1.1" 200 3450 - -
localhost - - [04/Apr/2006:11:58:16 +0200] "GET /admin HTTP/1.1" 200 0 - -
localhost - - [04/Apr/2006:11:58:16 +0200] "POST / HTTP/1.1" 200 1382 CUPS-Get-Devices -
localhost - - [04/Apr/2006:11:58:16 +0200] "GET /admin HTTP/1.1" 200 5349 - -
localhost - - [04/Apr/2006:11:58:23 +0200] "GET /admin?op=config-server HTTP/1.1" 200 0 - -
localhost - - [04/Apr/2006:11:58:23 +0200] "GET /admin?op=config-server HTTP/1.1" 200 8277 - -
localhost - - [04/Apr/2006:11:58:24 +0200] "GET /images/use-default-config.gif HTTP/1.1" 200 864 - -
localhost - - [04/Apr/2006:11:58:25 +0200] "GET /images/save-changes.gif HTTP/1.1" 200 580 - -

Where the line "localhost - - [04/Apr/2006:11:55:01 +0200] "PUT /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -" had been appearing >100 times before the first occurence.

On pressing "View error log" from the admin page, a page appears indicating "You have chosen to open error_log which is a BIN file, what should firefox do...

On pressing "Page log" from the admin page just two entries show:

Canon-PIXMA-iP4000 cjp 10 [04/Apr/2006:08:48:13 +0200] 1 1 - localhost
Canon-PIXMA-iP4000 cjp 10 [04/Apr/2006:11:37:28 +0200] 1 1 - localhost

Hope this clarifies.

Casual