LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   CUPS problem! "localhost:631, connection refused"!!! (https://www.linuxquestions.org/questions/debian-26/cups-problem-localhost-631-connection-refused-105519/)

robbow52 10-18-2003 07:37 AM

CUPS problem! "localhost:631, connection refused"!!!
 
I'm a newbie with Debian (a couple of weeks now) and I'm having a terrible time setting up CUPS printing. I'm trying to print to a printer on a Windows pc on my home network. I've installed and configured SAMBA and I've installed CUPS. I've checked settings everywhere that I can find...

My /etc/hosts file:

127.0.0.1 debian localhost


# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)


::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
debian:/etc#

A section from my /etc/network/interfaces file:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet DHCP

A section from my /etc/cups/cupsd.conf:

#Port 80
#Port 443
Port 631
Listen 127.0.0.1:631

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

And finally, the listing from ifconfig:

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:2697 errors:0 dropped:0 overruns:0 frame:0
TX packets:2697 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:231072 (225.6 KiB) TX bytes:231072 (225.6 KiB)

I've changed various settings in various files, restarted CUPS and still when I try to connect with localhost:631 to administer CUPS (using Mozilla), I receive a "connection refused" error. I'm at my wit's end!!! I "had" it working a few days ago (I could get to the html administration utility, I couldn't get the printer working!), but gave up in frustration! Since then, I've "changed" a number of things (I'm running Woody 3.0r1) and upgraded to Gnome2.2 and xfree86 1.4. I don't "think" this had an effect on things but...

Does anyone have an idea of where I might look?

Thanks in advance for your help!

snerfu 10-20-2003 04:13 PM

It almost sounds like cups is not running. If you run "/etc/init.d/cupsys start" does that fix it?

or

does "ps -auxw | grep cups" show a cupsd process in the background?

robbow52 10-21-2003 06:07 PM

CUPS/Localhost:631 Fixed...
 
I have fixed my CUPS problem with the "connection refused" when trying to connect with the html CUPS configuration program (localhost:631). I had to enable "hostnamelookups" in the cupsd.conf file.

I have not fixed my printing problem yet but at least I can get to the CUPS HTML administration utility! I was able to set up and configure the printer but print jobs are "aborted"!

My printing problem may be driver related... I have to enable debugging on the CUPS error_log file to get a better idea where the process is failing...

I'm printing to a Windows PC (via SAMBA)... Yes I know I would be better going the other way but this is my "learning" pc!!!! It has been cobbled together from spare parts and does not have USB. I have $22 (US) in it and I don't want to spend an more on it!!

The error is "stopped with status 22!" and I hope to research things a bit more.

I would appreciate any thoughts!

johnzoet 03-04-2009 01:16 AM

Quote:

Originally Posted by robbow52 (Post 544983)
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>


Have you tried:
<Location />
Order Deny,Allow
Deny From All
Allow From All
</Location>

AlucardZero 03-04-2009 01:24 PM

Do you bump six year old posts often?

farslayer 03-04-2009 01:27 PM

Bah, <kicks self for not looking at date>


All times are GMT -5. The time now is 12:11 AM.