CUPS : Unable to connect to server ??

Anonymous anonymous at easysw.com
Sat May 22 20:53:44 PDT 2004


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 at 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 at localhost IMPRIMANTE]# cat /etc/hosts
127.0.0.1 localhost

C U P S D . C O N F
[root at 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 at 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 at 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 at localhost IMPRIMANTE]# echo "hello" > epson
bash: epson: Read-only file system

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

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

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

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

F O O M A T I C
[root at localhost root]# ls /etc/foomatic/cups/
epson.ppd




More information about the cups mailing list