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 |
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.
|
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 |
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 :D |
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. |
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)
|
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. |
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) |
All times are GMT -5. The time now is 09:40 AM. |