Link to home
Start Free TrialLog in
Avatar of etec
etec

asked on

I am getting an error when trying to create a new printer in RH Linux 3.0E

I am getting the following message when trying to enter printer config. Any help would be appreciated.


# redhat-config-printer
Initializing alchemist edit environment ...

** ERROR **: FATAL ERROR in AdmContext_ref:context != NULL was false.
aborting...
SOLUTION
Avatar of JammyPak
JammyPak
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of etec
etec

ASKER

I tried that also. Here are the results.

Initializing alchemist edit environment ...

** ERROR **: FATAL ERROR in AdmContext_ref:context != NULL was false.
aborting...
Aborted
I would guess you're missing a needed package.  How did you do the installation, and have you removed any packages since then?
Something wrong with your shared library or binary file.
Which RedHat vesion do you have?
Please do (as root)
printconf

and provide the output of:
ldd `which printconf`
rpm -q --whatprovides `which printconf`
Avatar of etec

ASKER

We are using redhat enterprise 3.0.
We have made no changes or updates to Linux in some time. We have created about 13 printers in the last couple of years without a problem.

# printconf
Initializing alchemist edit environment ...

** ERROR **: FATAL ERROR in AdmContext_ref:context != NULL was false.
aborting...
# ldd `which printconf`
which: no printconf in ((null))
ldd: missing file arguments
Try `ldd --help' for more information.
# rpm -q --whatprovides `which printconf`
which: no printconf in ((null))
rpmq: no arguments given for query
> which: no printconf in ((null))
Something wrong with your system, not just printconf.
Please try
ldd /usr/bin/printconf
rpm -q --whatprovides /usr/bin/printconf

Could you do reboot your RHEL box and do fsck at boot up?
shutdown -rF now
Avatar of etec

ASKER

# ldd /usr/bin/printconf
      libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb756d000)
      libc.so.6 => /lib/tls/libc.so.6 (0xb7436000)
      /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)
# rpm -q --whatprovides /usr/bin/printconf
redhat-config-printer-0.6.47.3.13-1
#

I did the reboot yesterday morning and didn't have any errors.

When logged in, run the commands "echo $PATH", "echo $LD_LIBRARY_PATH", "echo $HOME" and "id" and paste the results here.
Avatar of etec

ASKER

echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:usr/X11R6/bin:/root/bin

echo $LD_LIBRARY_PATH

echo $HOME
/root
id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
I'm a bit confused as to why "which" is not returning the info for printconf.  I suppose it's possible the permissions on it are damaged, which could explain a few things.

ls -ld /usr/bin/printconf
rpm -V redhat-config-printer

Those two commands should return any noteworthy information that would indicate corruption or improper permissions.
Avatar of etec

ASKER

# ls -ld /usr/bin/printconf
lrwxr-xr-x    1 root     root           13 Apr 23  2004 /usr/bin/printconf -> co
nsolehelper
# rpm -V redhat-config-printer
SM5....T c /etc/alchemist/namespace/printconf/local.adl
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of etec

ASKER



# ls -ld /usr/bin/consolehelper
-rwxr-xr-x    1 root     root         3664 Sep 25  2003 /usr/bin/consolehelper
# rpm -qf /usr/bin/consolehelper
usermode-1.68-5
# rpm -V usermode-1.68-5

I forced the filesystem check on reboot, but no errors were found.