LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-29-2006, 10:03 PM   #1
Perps
Member
 
Registered: Apr 2006
Distribution: openSUSE 10.2
Posts: 62

Rep: Reputation: 16
Can't Access Cups Admin @ Http://localhost:631


Greets to all.

I'm trying to setup my first printer using cups, and from what I've read, cups can be administered by navigating to http://localhost:631. Unfortunately, everytime I try this, my browser (Konqueror) returns:

An error occurred while loading http://localhost:631:
Connection to host localhost is broken.

I've also tried using the add printer control within YaST to no avail, when attempting to detect the printer YaST just hangs at around the 50% complete mark and doesn't budge. At this point, system performance is degraded severely.

I've also checked that I have cups installed properly using rpm -qa | grep cups which returns:

cups-drivers-stp-1.1.23-11
cups-drivers-1.1.23-11
libgnomecups-0.2.2-0.2
cups-libs-1.1.23-21
cups-SUSE-ppds-dat-1.1.20-106
gnome-cups-manager-0.31-3
cups-1.1.23-21.2
cups-client-1.1.23-21

I also have the hplip software installed (for a hp printer) which I checked with rpm -qa | grep hp which returns:

hplip-0.9.4-4
hplip-hpijs-0.9.4-4

Any ideas on this one? The fact that I can't even access the cups admin through the browser is quite a concern, as every other online source documenting printer setup using cups assumes that you are able to access cups admin at http://localhost:631.

Many thanks,

- Perps
 
Old 07-29-2006, 10:13 PM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
first i would make sure the process is running
ps aux | grep cupsd
next i would see if its accualy listening on port 631
netstat -tuanp
 
Old 07-29-2006, 10:17 PM   #3
Perps
Member
 
Registered: Apr 2006
Distribution: openSUSE 10.2
Posts: 62

Original Poster
Rep: Reputation: 16
Thanks for the super quick reply AAnarchYY.

ps aux | grep cupsd returns:

lp 6126 0.0 0.1 7184 3320 ? Ss 10:24 0:00 /usr/sbin/cupsd

1000 10148 0.0 0.0 2728 672 pts/0 R+ 11:15 0:00 grep cupsd

netstat -tuanp returns:

(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:32772 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:745 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 10.1.1.3:19251 72.14.223.104:80 TIME_WAIT -
tcp 0 0 10.1.1.3:17968 66.102.7.99:80 TIME_WAIT -
tcp 0 0 10.1.1.3:26276 72.14.223.147:80 TIME_WAIT -
tcp 0 0 10.1.1.3:26269 72.14.223.147:80 TIME_WAIT -
tcp 0 0 :::22 :::* LISTEN -
tcp 0 0 ::1:25 :::* LISTEN -
udp 0 0 0.0.0.0:32768 0.0.0.0:* -
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
udp 0 0 0.0.0.0:32770 0.0.0.0:* -
udp 0 0 0.0.0.0:744 0.0.0.0:* -
udp 0 0 0.0.0.0:5353 0.0.0.0:* -
udp 0 0 0.0.0.0:111 0.0.0.0:* -
udp 0 0 0.0.0.0:631 0.0.0.0:*

Any ideas?

Many thanks,

- Perps
 
Old 07-29-2006, 10:24 PM   #4
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
hrm... looks as though cups is running and is listening on port 631, did you try accessing it with any other brouser than konqueror? like forinstance, firefox.
 
Old 07-29-2006, 10:31 PM   #5
Perps
Member
 
Registered: Apr 2006
Distribution: openSUSE 10.2
Posts: 62

Original Poster
Rep: Reputation: 16
Just tried with Firefox and Epiphany to no avail, which don't even return any kind of error message like Konqueror does.

Many thanks,

- PerpsTherapy
 
Old 07-29-2006, 10:39 PM   #6
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
check your cupsd.conf file (/etc/cups/cupsd.conf)
under <Location /> make sure there is a line reading Allow From 127.0.0.1 and that it isnt commented
also, just for the hell of it, instead of looking for localhost, try 127.0.0.1
 
Old 07-30-2006, 04:24 AM   #7
Perps
Member
 
Registered: Apr 2006
Distribution: openSUSE 10.2
Posts: 62

Original Poster
Rep: Reputation: 16
I checked cupsd.conf, everything between the location tags was as it should be. I also tried http://127.0.0.1:631 and the internal IP address of the my machine:631 to no avail.

- PerpsTherapy
 
Old 07-30-2006, 06:30 AM   #8
Perps
Member
 
Registered: Apr 2006
Distribution: openSUSE 10.2
Posts: 62

Original Poster
Rep: Reputation: 16
Problem solved, I added the following to hosts.allow and now I can access cups web admin:

cupsd : 127.0.0.1 : ALLOW

- PerpsTherapy
 
1 members found this post helpful.
Old 12-26-2018, 02:36 AM   #9
Telo
LQ Newbie
 
Registered: Jun 2017
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
Smile

While fussing in the cups web control page, I had unchecked "Advanced, Allow printing from the Internet", and suddenly my cups web control at http://localhost:631/admin stopped working. (I couldn't browse to this address).

Looking to see what had changed I found that in /etc/cups/cupsd.conf, and then inside the <location />...</location> tags, it had removed
Code:
Allow all
and replaced it with
Code:
Order allow,deny
I reverted this change, and restarted the server with

Code:
/etc/init.d/cups restart
and this fixed the problem, so I can now use the cups web server again.

Last edited by Telo; 12-26-2018 at 02:37 AM.
 
  


Reply



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
Unable to log in to localhost:631/admin FibonacciPrower Linux - Hardware 1 06-10-2006 02:52 PM
CUPS http://localhost:631/ LUB997 Linux - Software 1 09-26-2005 07:52 PM
How to connect to http://localhost:631 to install CUPS ch.keller Linux - Hardware 3 06-07-2005 09:25 PM
CUPS Problem - can not access localhost:631 ch.keller Linux - Hardware 3 06-06-2005 05:56 PM
can't access http://localhost:631 (for cups printing) TheOneAndOnlySM Slackware 4 10-14-2003 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration