LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums HCL Reviews Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2004, 09:04 AM   #1
lefevre2
LQ Newbie
 
Registered: May 2004
Location: New caledonia
Distribution: mandrake 9.2
Posts: 1

Rep: Reputation: 0
CUPS : unable to connect to server


Hi,

After using mandrake 8.2 over the last two years, i meet some trouble with my printer setting since i install mdk 9.2.
I have looked through several forums, read CUPS, Man, but i have not any progress with CUPS and why i have CUPS Server error (See below).
I'm root and my epson stylus 870 (USB) is a local printer.
I suspect it is something very basic but what ???...

Below are some diagnostic output. If anyone can help me get this sorted out i would be very
grateful.

Best regards, jérome


K E R N E L C O N F I G
Mandrake 9.2
Kernel : 2.6.1.
Architecture : gigabyte ga-7N400 pro2 (NFORCE)

# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_UHCI_HCD=m

# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y

DMESG
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
drivers/usb/core/file.c: looking for a minor, starting at 0
ehci_hcd 0000:00:02.2: GetStatus port 3 status 003402 POWER OWNER sig=k CSC
hub 1-0:1.0: port 3, status 0, change 1, 12 Mb/s
ehci_hcd 0000:00:02.2: GetStatus port 5 status 003402 POWER OWNER sig=k CSC
hub 1-0:1.0: port 5, status 0, change 1, 12 Mb/s
ehci_hcd 0000:00:02.2: GetStatus port 6 status 003802 POWER OWNER sig=j CSC
hub 1-0:1.0: port 6, status 0, change 1, 12 Mb/s
usb 3-3: hcd_unlink_urb f7daa4c0 fail -22
usb 3-3: hcd_unlink_urb f7daa540 fail -22
usb 3-3: hcd_unlink_urb f7daa540 fail -22
lp0: using parport0 (polling).
usb 3-3: hcd_unlink_urb f7daa540 fail -22
usb 3-3: hcd_unlink_urb f7daa4c0 fail -22
usb 3-3: hcd_unlink_urb f7daa540 fail -22


L S U S B
[root@localhost IMPRIMANTE]# lsusb
Output : nothing

C U P S W E B A D M I NI S T R A T I O N T O O L
//localhost:631/
Unable to connect to localhost (port 631)


W E B M I N : A D D A N E W P R I N T E R
//localhost:10000/lpadmin/save_printer.cgi

Failed to save printer : lpadmin failed :

lpadmin: Unable to connect to server: Connection refused


R U N N I N G P R O C E S S E S
3061 root 22:14 cupsd

H O S T S S E T T I N G
[root@localhost IMPRIMANTE]# cat /etc/hosts
127.0.0.1 localhost

C U P S D . C O N F
[root@localhost IMPRIMANTE]# cat /etc/cups/cupsd.conf
BrowseInterval 0
Browsing On
BrowsePoll 127.0.0.1:631

LogLevel debug
TempDir /var/spool/cups/tmp
<Location />Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

C L I E N T . C O N F
[root@localhost IMPRIMANTE]# cat /etc/cups/client.conf

#ServerName myhost.domain.com
ServerName 127.0.0.1

#Encryption Always
Encryption Never
#Encryption Required
#Encryption IfRequested

C U P S R E S T A R T
[root@localhost backend]# /etc/init.d/cups restart
Arrêt du service d'impression CUPS : [ OK ]
Ajout du périphérique « loopback » à la table d'acheminement ...
SIOCADDRT: File exists

ATTENTION: je ne peux ajouter de périphérique virtuel « loopback » à la table d'acheminement,
CUPS pourrait ne pas fonctionner correctement.

Lancement du service d'impression CUPS : [ OK ]

C U P S E R R O R _ L O G
E [21/May/2004:23:03:01 +0200] Scheduler shutting down due to SIGTERM.
D [21/May/2004:23:03:01 +0200] StopListening: closing all listen sockets.
D [21/May/2004:23:03:02 +0200] AddLocation: added location '/'
D [21/May/2004:23:03:02 +0200] DenyIP: / deny 00000000/00000000
D [21/May/2004:23:03:02 +0200] AllowIP: / allow 7f000001/ffffffff
D [21/May/2004:23:03:02 +0200] AddLocation: added location '/admin'
D [21/May/2004:23:03:02 +0200] DenyIP: /admin deny 00000000/00000000
D [21/May/2004:23:03:02 +0200] AllowIP: /admin allow 7f000001/ffffffff
I [21/May/2004:23:03:02 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [21/May/2004:23:03:02 +0200] Configured for up to 100 clients.
I [21/May/2004:23:03:02 +0200] Allowing up to 100 client connections per host.
I [21/May/2004:23:03:02 +0200] Full reload is required.
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "parallel:/dev/lp0"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "http"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "ipp"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "lpd"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "scsi"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "pdf"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "socket"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb://EPSON/Stylus%20Photo%20870"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp1"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp2"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp3"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp4"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp5"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp6"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp7"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp8"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp9"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp10"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp11"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp12"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp13"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp14"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp15"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "canon:/dev/lp0"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "canon:/dev/usb/lp0"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "epson:/dev/lp0"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "epson:/dev/usb/lp0"...
I [21/May/2004:23:03:02 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 749 PPDs...
I [21/May/2004:23:03:02 +0200] LoadPPDs: No new or changed PPDs...
D [21/May/2004:23:03:02 +0200] LoadAllJobs: Scanning /var/spool/cups...
I [21/May/2004:23:03:02 +0200] Full reload complete.
D [21/May/2004:23:03:02 +0200] StartListening: NumListeners=0
D [21/May/2004:23:03:02 +0200] StartPolling: Started polling daemon for 127.0.0.1:631, pid = 3711
E [21/May/2004:23:03:02 +0200] [cups-polld 127.0.0.1:631] Unable to connect to 127.0.0.1 on port 631: Connection refused
E [21/May/2004:23:03:32 +0200] [cups-polld 127.0.0.1:631] Unable to connect to 127.0.0.1 on port 631: Connection refused
E [21/May/2004:23:04:02 +0200] [cups-polld 127.0.0.1:631] Unable to connect to 127.0.0.1 on port 631: Connection refused
E [21/May/2004:23:04:32 +0200] [cups-polld 127.0.0.1:631] Unable to connect to 127.0.0.1 on port 631: Connection refused

T E S T
[root@localhost IMPRIMANTE]# echo "hello" > epson
bash: epson: Read-only file system

L P R E R R O R S
[root@localhost proc]# cat /var/log/lpr/errors
Nothing

L P I N F O
[root@localhost proc]# lpinfo -v
lpinfo: Unable to connect to server: Connection refused

L P S T A T
[root@localhost proc]# lpstat -v
lpstat: Unable to connect to server: Connection refused

P R I N T E R C O N F
[root@localhost root]# cat /etc/cups/printers.conf
Not set

F O O M A T I C
[root@localhost root]# ls /etc/foomatic/cups/
epson.ppd
 
Old 05-24-2004, 04:25 PM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
The impression I get is that for some reason the CUPS daemon isn't listening on port 631. If I were you I would add a "Port 631" or "Listen 127.0.0.1:631" line to the cupsd.conf file to force it to listen on 127.0.0.1:631 as this is what it is currently refusing to do.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba + CUPS "Access denied, unable to connect" error lirik Linux - Networking 10 10-13-2011 02:09 PM
smbd unable to connect to CUPS in 10.2 cor67393 Slackware 8 08-24-2007 06:23 PM
Unable to connect to remote server Suresh Chowta Linux - Networking 1 02-13-2005 07:29 AM
[CUPS] Unable to connect to server: Success nysander Slackware 1 10-22-2004 08:37 PM
Suddenly unable to connect to my web server and my ftp server. HELP! Silly22 Linux - Software 4 05-23-2004 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration