Linux Debian support - Error: The CUPS server could not be contacted. in Debian Testing

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > June 2005 > Error: The CUPS server could not be contacted. in Debian Testing





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Error: The CUPS server could not be contacted. in Debian Testing
Daniel D. O'Halloran

2005-06-03, 2:46 am

All,

I could use some help with a CUPS problem in Debian. I am sorry if this
is considered off topic. I have not found any good newsgroup for cups
problems and I did not find anything helpful at cups.org.

When using the gnome-cups-manager ver 0.25-2.1 and cupsys version
1.1.23.10, I get an error box"The CUPS server could not be contacted."
I am running a Debian 2.6 Kernel.

First, gnome-cups-manager did work initially. I was trying to install
an HP Desk jet 832c which I never got working before this problem
occurred. I had the printer installed but it would not print. When I
viewed the print job status, the jobs appeared to be canceled by root.

I have tried uninstalling and reinstalling both cupsys and
gnome-cups-manager with no success.

I have verified that cupsd is running with ps -A.

I am new at Linux and I am sure I have overlooked something simple
but I can't seem to find it. I did google but found only on reference
that I did not understand. I have included at the end of my text. Any
help would be appreciated.

Thanks,
Dan
****************************************
*******************************
Best Google result I could find:


http://bugzilla.gnome.org/show_bug.cgi?id=149225
gnome-print | gnome-cups-manager | Ver: unspecified

Summary: Can't connect to CUPS server in mixed ipv4/ipv6
Product: gnome-print
Version: unspecified
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gnome-cups-manager
AssignedTo: jody@gnome.org
ReportedBy: seb128@debian.org
CC: pkg-gnome-maintainers@lists.alioth.debian.org


This bug has been reported in the Debian BTS: http://bugs.debian.org/217257

"When running gnome-cups-manager it displays the following error and exits:

The CUPS server could not be contacted.

I have done some debugging and research, and apparently the bug is
caused by gethostbyname. I'm using a 2.6 kernel with both ipv4 and
ipv6 support, and this seems to cause the troubles.

The call to gnome_program_init in main sets the RES_USE_INET6 flag in
_res.options. After that all calls to gethostbyname returns an ipv6
address instead of ipv4. The function httpConnectEncrypt in libcups2
doesn't like ipv6 addresses and fails and then gnome_cups_check_daemon
in libgnomecups also fails.

One quick fix is to reset the RES_USE_INET6 flag after the call to
gnome_program_init:

_res.options &= ~RES_USE_INET6;"

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com