Bug 76128

Summary: Can't resolve 'localhost'
Product: [Retired] Red Hat Linux Reporter: Need Real Name <icostigan>
Component: anacondaAssignee: Michael Fulbright <msf>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-17 11:47:23 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:
Attachments:
Description Flags
Not sure
none
hosts none

Description Need Real Name 2002-10-17 08:53:02 UTC
Description of Problem:

Can't print a test page from printconf gui


Version-Release number of selected component (if applicable):

printconf-gui 0.4.24

How Reproducible:

Always

Steps to Reproduce:
1. Start terminal
2. Log in a su and enter command printconf &
3. Test> <Print a test page type>

Actual Results:
"There was an error trying to print the test page."

Expected Results:
Should print a test page

Additional Information:
When starting printconf in term as su, the following error message is dumped in
the term window:
(printconf:1867): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to
`GObject'

(printconf:1867): GLib-GObject-CRITICAL **: file gobject.c: line 972
(g_object_get): assertion `G_IS_OBJECT (object)' failed

(printconf:1867): GLib-GObject-WARNING **: invalid cast from (NULL) pointer to
`GObject'

(printconf:1867): GLib-GObject-CRITICAL **: file gobject.c: line 972
(g_object_get): assertion `G_IS_OBJECT (object)' failed

I am also on a cable modem. 	

I cannot print from other means either

I setup my HPLJ 1100 as per stated on the redhat website explaining installs for
local printers (my printer is locally connected via parallel)

Comment 1 Tim Waugh 2002-10-17 08:58:15 UTC
What does 'alternatives --display print' say?  Also please attach
/etc/alchemist/namespace/printconf/local.adl.  Thanks.

Comment 2 Need Real Name 2002-10-17 10:30:36 UTC
Created attachment 80764 [details]
Not sure

Comment 3 Need Real Name 2002-10-17 10:31:23 UTC
[root@dhcp-813-225 root]# alternatives --display print
print - status is auto.
 link currently points to /usr/bin/lpr.LPRng
/usr/bin/lpr.LPRng - priority 30
 slave print-lprman: /usr/share/man/man1/lpr-LPRng.1.gz
 slave print-lp: /usr/bin/lp.LPRng
 slave print-lpman: /usr/share/man/man1/lp-LPRng.1.gz
 slave print-lpq: /usr/bin/lpq.LPRng
 slave print-lpqman: /usr/share/man/man1/lpq-LPRng.1.gz
 slave print-lprm: /usr/bin/lprm.LPRng
 slave print-lprmman: /usr/share/man/man1/lprm-LPRng.1.gz
 slave print-lpstat: /usr/bin/lpstat.LPRng
 slave print-lpstatman: /usr/share/man/man1/lpstat-LPRng.1.gz
 slave print-cancel: /usr/bin/cancel.LPRng
 slave print-cancelman: /usr/share/man/man1/cancel-LPRng.1.gz
 slave print-lpc: /usr/sbin/lpc.LPRng
 slave print-lpcman: /usr/share/man/man8/lpc-LPRng.8.gz
Current `best' version is /usr/bin/lpr.LPRng.

Comment 4 Tim Waugh 2002-10-17 10:33:49 UTC
After trying to print the test page, please do 'lpq' and look for a file called
/var/spool/lpd/HPJ/lpq.0.  Are there any useful error messages in there?

Comment 5 Need Real Name 2002-10-17 10:52:26 UTC
No file lpq.0 but instead this error message dumped into term
[root@dhcp-813-225 HPJ]# lpq
Get_local_host: 'localhost' IP address not available!

Thanking you in advance

Comment 6 Tim Waugh 2002-10-17 11:21:03 UTC
You need to be able to resolve 'localhost'.  The installer ought to have sorted
this out.  Changing component.

Comment 7 Tim Waugh 2002-10-17 11:21:47 UTC
Reassigning.

Comment 8 Need Real Name 2002-10-17 11:27:27 UTC
using optus@home in australia if that helps. It is a cable modem service


Comment 9 Tim Waugh 2002-10-17 11:29:11 UTC
No, it should be 127.0.0.1, and doesn't need an external network connection. 
What's in /etc/hosts?

Comment 10 Need Real Name 2002-10-17 11:39:41 UTC
Created attachment 80766 [details]
hosts

Comment 11 Tim Waugh 2002-10-17 11:42:08 UTC
And you didn't edit that?

Comment 12 Need Real Name 2002-10-17 11:47:10 UTC
I had to o/w i'd get an error message on startup telling me to enter dhcp871-335
in /etc/hosts. It couldn't resolve a host.

Comment 13 Tim Waugh 2002-10-17 11:51:17 UTC
You should change it back.  Use redhat-config-network to configure your DNS
servers (provided by the ISP).

Comment 14 Need Real Name 2002-10-17 12:08:00 UTC
what wsa the original entry? 
the only thing i changed was the ending of the /etc/hosts file. What was the
last entry on the line? Or the original one?