LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-18-2007, 12:14 PM   #1
The PIT
Member
 
Registered: Nov 2005
Posts: 99

Rep: Reputation: 16
Alas Cups no more. Web admin page times out


If I type in http://localhost:631 in the web browser nothing happens the page times out.

If I go to admin and click on printer eventually after three minutes it'll come up.

The end result is no printing.

This is on etchy any quick ideas where I may look?? Everything seems okay and removing and re-installing cups via synaptic package manager doesn't make any difference.

At the moment the machines at work and I'm at home. I removed cups again and intend trying to install it via the command line.

Etchy is on the latest kernel any known bugs with this???
 
Old 10-18-2007, 12:22 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,673

Rep: Reputation: 122Reputation: 122
Are you on Debian Etch or Ubuntu Edgy? I don't recall seeing "etchy" somewhere

I'm having similar issues with rsync: takes forever to ask a password and build the file list to transfer. IIRC it has something to do with IPv6 resolving. Haven't come round to fix it. It might be the source of your trouble with Webmin.
 
Old 10-18-2007, 06:24 PM   #3
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 12 LXDE
Posts: 555

Rep: Reputation: 33
Please pardon me if this is a bit obvious, but you have to be a member of the lpadmin group. To check this, enter the command "groups" at the console. this will list your group memberships.
 
Old 10-19-2007, 01:45 AM   #4
The PIT
Member
 
Registered: Nov 2005
Posts: 99

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by mikieboy View Post
Please pardon me if this is a bit obvious, but you have to be a member of the lpadmin group. To check this, enter the command "groups" at the console. this will list your group memberships.
Logged on as root since it's a kiosk.

Heres the cups conf no errors listed by cups in the logs in fact theres no log file.

I've also checked thats cups is running and it seems that it is.

root 2688 1 0 08:43 ? 00:00:00 /usr/sbin/cupsd
root 3344 3312 0 09:03 pts/0 00:00:00 grep cupsd




#
#
# 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 warning

# Administrator user group...
SystemGroup lpadmin

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

# 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...
<Location />
Order allow,deny
Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
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>

#
#

#
# Printcap: the name of the printcap file. Default is /etc/printcap.
# Leave blank to disable printcap file generation.
#

Printcap /var/run/cups/printcap

#
# PrintcapFormat: the format of the printcap file, currently either
# BSD or Solaris. The default is "BSD".
#

#PrintcapFormat BSD
#PrintcapFormat Solaris

#
# PrintcapGUI: the name of the GUI options panel program to associate
# with print queues under IRIX. The default is "/usr/bin/glpoptions"
# from ESP Print Pro.
#
# This option is only used under IRIX; the options panel program
# must accept the "-d printer" and "-o options" options and write
# the selected printer options back to stdout on completion.
#

#PrintcapGUI /usr/bin/glpoptions

Last edited by The PIT; 10-19-2007 at 02:15 AM.
 
Old 10-19-2007, 02:30 AM   #5
The PIT
Member
 
Registered: Nov 2005
Posts: 99

Original Poster
Rep: Reputation: 16
Ah switched on error log

localhost - - [19/Oct/2007:08:56:24 +0100] "POST / HTTP/1.1" 200 351 CUPS-Get-Classes client-error-not-found
localhost - - [19/Oct/2007:08:56:41 +0100] "POST / HTTP/1.1" 200 351 CUPS-Get-Classes client-error-not-found
localhost - - [19/Oct/2007:08:56:41 +0100] "POST /admin/ HTTP/1.1" 200 138 Purge-Jobs client-error-bad-request
localhost - - [19/Oct/2007:08:56:59 +0100] "POST /admin/ HTTP/1.1" 200 149 Resume-Printer client-error-not-found
localhost - - [19/Oct/2007:08:58:17 +0100] "POST / HTTP/1.1" 200 351 CUPS-Get-Classes client-error-not-found
 
Old 10-19-2007, 08:21 AM   #6
The PIT
Member
 
Registered: Nov 2005
Posts: 99

Original Poster
Rep: Reputation: 16
Seems to be related to kernel 2.6.15

Actually I'm beginning to suspect iptables is the problem Prior to the above kernel it doesn't load as the installed kernel doesn't support it. I need the 2.6.15 kernel as the mouse and keyboard behaviour isn't consistent. Under 2.6.15 they work fine.

So I've gone back to original setup and removed iptables I'll then upgrade and see what happens.

Last edited by The PIT; 10-19-2007 at 11:46 AM.
 
Old 10-22-2007, 06:34 AM   #7
The PIT
Member
 
Registered: Nov 2005
Posts: 99

Original Poster
Rep: Reputation: 16
Removing iptables didn't do anything as upgrading the kernel caused them to be re-installed.
However I was right that the problem was with the iptables.
I tried opening the ports via the command line but this didn't work.
I then tried disabling iptables via command line but that didn't work either.
In the end I installed firestarter and soon as that came up it ran the wizard. When that finished up popped the admin page for cups problem solved.
So overall it was a case of a dodgy iptables install
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cups problem - viewing admin page in IE esdeedee Linux - Networking 0 08-08-2006 02:05 AM
OfficeJet G85, CUPS Web based Admin test print works, lpr/lp dose not. ptal-print OK. NLR Linux - Hardware 2 09-20-2004 02:59 PM
CUPS - cannot access admin page Vincent_Vega Linux - Software 0 03-18-2004 01:20 AM
CUPS installed in Gentoo but unable to access web admin tool darin3200 Linux - Software 4 12-26-2003 10:57 PM
System Admin: Server panic at random times digitalw00t Linux - General 4 04-13-2002 08:05 PM


All times are GMT -5. The time now is 10:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration