3 Replies Latest reply on May 11, 2009 1:59 PM by Rafael Soares (Tuelho)

    Unable to load library 'augeas': libaugeas.so

    Rafael Soares (Tuelho) Novice

      Hello!

      Some times the following error appear on agent log:

      2009-05-11 12:17:48,686 DEBUG [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- Checking for updated resource configuration on: Resource[id=503665, type=Hosts, key=hosts, name=Hosts Service, parent=inepvm57.inep.gov.br, version=1.0]
      2009-05-11 12:17:48,710 DEBUG [ConfigurationManager.threadpool-1] (rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler)- Call to [org.rhq.plugins.hosts.HostsComponent.loadResourceConfiguration()] with args [] failed.
      java.util.concurrent.ExecutionException: java.lang.Exception: java.lang.UnsatisfiedLinkError: Unable to load library 'augeas': libaugeas.so: cannot open shared object file: No such file or directory
       at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232)
       at java.util.concurrent.FutureTask.get(FutureTask.java:91)
       at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invokeInNewThreadWithLock(ResourceContainer.java:418)
       at org.rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler.invoke(ResourceContainer.java:406)
       at $Proxy49.loadResourceConfiguration(Unknown Source)
       at org.rhq.core.pc.configuration.ConfigurationCheckExecutor.checkConfigurations(ConfigurationCheckExecutor.java:104)
       at org.rhq.core.pc.configuration.ConfigurationCheckExecutor.checkConfigurations(ConfigurationCheckExecutor.java:136)
       at org.rhq.core.pc.configuration.ConfigurationCheckExecutor.call(ConfigurationCheckExecutor.java:68)
       at org.rhq.core.pc.configuration.ConfigurationCheckExecutor.run(ConfigurationCheckExecutor.java:61)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
       at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
       at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.Exception: java.lang.UnsatisfiedLinkError: Unable to load library 'augeas': libaugeas.so: cannot open shared object file: No such file or directory
       at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:488)
       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
       ... 3 more
      Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'augeas': libaugeas.so: cannot open shared object file: No such file or directory
       at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:114)
       at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:157)
       at com.sun.jna.Library$Handler.<init>(Library.java:123)
       at com.sun.jna.Native.loadLibrary(Native.java:258)
       at com.sun.jna.Native.loadLibrary(Native.java:244)
       at net.augeas.LibAugeas.<clinit>(LibAugeas.java:35)
       at net.augeas.Augeas.<init>(Augeas.java:62)
       at org.rhq.plugins.hosts.HostsComponent.loadResourceConfiguration(HostsComponent.java:98)
       at org.rhq.plugins.hosts.HostsComponent.loadResourceConfiguration(HostsComponent.java:78)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:484)


      What it means? What component in RHQ use this lib?

      I am using Red Hat 5 as OS and Sun HotSpot 6 (Java HotSpot(TM) 64-Bit Server VM).