Bug 192628
| Summary: | 'Unable to connect to server' but CUPS is running | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | euphgeek <wbaker+rhn> | ||||||
| Component: | cups | Assignee: | Tim Waugh <twaugh> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | |||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 5 | ||||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | i386 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | 1.2.1-1.7 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2006-06-20 09:45:43 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | 192930 | ||||||||
| Bug Blocks: | 150223 | ||||||||
| Attachments: |
|
||||||||
|
Description
euphgeek
2006-05-21 23:45:35 UTC
Created attachment 129788 [details]
/var/log/cups/error_log
Thanks. There's some more information I need: 1. What's the history of this machine? Did it start out as a fresh FC5 install, or was it running FC4 before? 2. Have you installed any non-Fedora print drivers? 3. Does 'setenforce 0' (to turn off SELinux) make any difference? 4. Please run this command: strace /usr/bin/lpstat.cups -s 2>lpstat.log and attach the lpstat.log file that is created. Thanks! 1. This machine has been upgraded from FC4. 2. No non-Fedora print drivers are on my system. 3. No it doesn't. Created attachment 129832 [details]
lpstat.log
4. Here is the output of 'strace /usr/bin/lpstat.cups -s'
Looks like it's having trouble resolving 'localhost.localdomain'. What's in /etc/hosts? $ cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 primary 127.0.0.1 localhost.localdomain According to 'ls -l' it's been like that for over a year. You're missing 'localhost' from the end of the second 127.0.0.1 line. So adjust it like this: 127.0.0.1 primary 127.0.0.1 localhost.localdomain localhost Any idea why /etc/hosts is like it is? Hmm, looking at the code, CUPS is meant to handle 'localhost' failures specially for just situations like this. Investigating. Reported upstream: http://cups.org/str.php?L1723 I don't know why it's that way. It may have been set up like that when I installed Fedora. I don't think I changed it, but anything's possible. Anyway, adding 'localhost' to the end of the second line seems to have fixed it. This test update should fix the problem: https://www.redhat.com/archives/fedora-test-list/2006-June/msg00081.html With it, your original /etc/hosts file should work without any CUPS problems. |