LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2003, 09:59 AM   #1
frankieboy
LQ Newbie
 
Registered: Aug 2003
Location: Germany/Hessen/Kassel
Distribution: RedHat 9.0A
Posts: 11

Rep: Reputation: 0
Question Connection refused at localhost:631


Hallo forum,

I have a big problem setting up cups. I installed RedHat 9.0A and have the problem that I cannot connect to cups.

Cupsd is running, cups.conf is set up, a firewall is not enabled. If I now type localhost:631 in my browser, the browser reports connection to localhost refused.

I don't have any ideas how to solve this problem. Thanks to everyone who can help me.

Best regards
Frank
 
Old 09-30-2003, 10:56 AM   #2
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
I suggest that you take another look at your cupsd.conf file, paying particular attention to the <Location /> section. I believe you must specifically permit access by localhost (a 127.0.0.1 line or so) in addition to whatever other nets you want to configure for. I'd also suggest that you post your cupsd.conf if you're still having problems. One more thing, take a look in /var/log/cups/ for useful info.
 
Old 10-01-2003, 02:10 AM   #3
frankieboy
LQ Newbie
 
Registered: Aug 2003
Location: Germany/Hessen/Kassel
Distribution: RedHat 9.0A
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you, Prob solved

I added the following at the end of cupsd.conf

<Location />
Order Deny, Allow
Deny From All
Allow From 127.0.0.1
</Location>

It would be a great deal if others post their final solution if a problem is solved. In many forums I can see that a possible solution is posted and the original poster doesn't give any feedback if the tip was right.

Thanks for your help.

Frank
 
Old 10-01-2003, 02:21 AM   #4
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
deny all shouldn't be above allow should it
it hits the deny all and ignoes the rest , right
or am I totally wrong again


EDIT
dohhh
thinkin access lists on routers and firewalls

dohhh

Last edited by ehdwuld; 10-01-2003 at 02:28 AM.
 
Old 10-23-2003, 06:40 PM   #5
roguefalcon
LQ Newbie
 
Registered: Jul 2003
Location: Nashville
Distribution: Fedora CORE 1.0
Posts: 17

Rep: Reputation: 0
hmmm....

Cups was great.... now.... ok here is the deal.

Everything was working... I moved our print server to a new office and changed from 192.168.x.x to 10.0.x.x and everythig stopped working. All I did was replace the lines. I even backed up the file first and then did a diff. Cups will start but I get connection refused.

Here is the params

<Location /printers>
Order Deny,Allow
Deny From All
Allow From 10.0.0.*
</Location>
<Location /printers/epsonc82>
Order Deny,Allow
Deny From All
Allow From 10.0.0.*
AuthType None
</Location>
<Location />
Allow From 10.0.0.*
</Location>
Browsing On
BrowseProtocols cups
BrowseAllow from 127.0.0.*
BrowseAllow from 10.0.0.*

When I nmap the box port 631 is not opened. Am I missing something simple. Perhaps I messed up the file prior to backing it up.

TIA.
 
Old 10-24-2003, 11:03 AM   #6
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
What happens if you drop your old config back in, restart cupsd, and try connecting from localhost? (I assume that's what you're saying has now broken, rather than just remote access)
 
Old 10-24-2003, 11:33 AM   #7
roguefalcon
LQ Newbie
 
Registered: Jul 2003
Location: Nashville
Distribution: Fedora CORE 1.0
Posts: 17

Rep: Reputation: 0
I reinstalled CUPS and now redhat-config-printer hoses. I can add the printper but If I print a test page cups dies. I tried adding the printer through the CUPS's web GUI and it adds fine until I try to print a test page and then CUPS just dies. It is an epson stylus 82c. Like I said it wos working.

I am not sure where the problem is. I will post here if I find it.
 
Old 07-18-2012, 06:47 PM   #8
cicciuzzu
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Can't access 631

Hi all-
I'm using 64 bit Slack 13.37.
I was configuring cups and when localhost 631 asked me for a name and password I stupidly gave my login and associated password instead of root and its password. Now I can't access 631 at all. I have ascertained all daemons are listening and have chmod +x /etc/rc.d/rc.cups; stopped and restarted rc.cups and rebooted. All to no avail. Short of ripping out cups and reinstalling it I don't know what to do. Here's the error log for cups:

root@mediabox:~# cat /var/log/cups/error_log
E [17/Jul/2012:17:22:38 -0700] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [17/Jul/2012:17:26:15 -0700] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Jul/2012:17:26:15 -0700] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [17/Jul/2012:17:27:18 -0700] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Jul/2012:17:28:31 -0700] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Jul/2012:17:28:31 -0700] [CGI] CUPS-Get-Devices request failed with status 401: Forbidden
E [17/Jul/2012:17:28:39 -0700] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [17/Jul/2012:18:10:13 -0700] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [18/Jul/2012:16:00:41 -0700] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [18/Jul/2012:16:25:25 -0700] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
root@mediabox:~#
I hope I'm not hijacking this thread.
Can any one help me? TIA
Cicciuzzu (a Sicilian nickname for Frank)
 
  


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! "localhost:631, connection refused"!!! robbow52 Debian 5 03-04-2009 01:27 PM
Connection Refused http://localhost:631/ mlsbraves Linux - General 12 11-30-2004 05:57 PM
Connection to localhost refused?!? a_priebe47 Slackware 4 09-01-2004 09:05 PM
connection to localhost refused digitalgravy Linux - Networking 5 05-03-2004 04:27 PM
RH 9: ftp localhost connection refused jinx92 Linux - General 2 02-28-2004 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:34 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