• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Error on dlopen

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We have upgraded the existing OS from RHEL 6.10 to RHEL 8.4. Later when we try to start httpd service, the service is not starting and we got the below error.


/usr/xxx/xxx/apache/bin/httpd: symbol lookup error: /usr/xxx/xxx/apache/lib/libapr-1.so.0: undefined symbol: dlopen

Also, we have tried installing the "libapr*" Package but we got the below error,

No match for argument: libapr1
Error: Unable to find a match: libapr1

Quick responses are highly appreciated.

Thanks,
Ashok
 
Ranch Hand
Posts: 59
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The name of the rpm package containing libapr-1.so should be simply 'apr'.

When httpd is installed from RHEL yum repos apr should be installed as depenendency of httpd.
 
Ashok Raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply.

Even we tried that also. Along with apr, we installed apr-util, httpd. But it doesn't help us to overcome this error.

 
Roland Mueller
Ranch Hand
Posts: 59
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ashok Raj wrote:

Even we tried that also. Along with apr, we installed apr-util, httpd. But it doesn't help us to overcome this error.



Thus, more data is needed. Assuming, that httpd and apr are installed through yum and rpm you should run the following commands:

... possible installation issues with the httpd and apr packages:


... information about the packages


... logs of starting httpd

and / or

 
Ashok Raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your reply.

Please find the below details for the execution of commands and the result. Please note that I have removed the apr & httpd packages and reinstalled also.



[root@testvms84 ~]# rpm -V httpd apr
[root@testvms84 ~]#



[root@testvms84 ~]# rpm -qi httpd apr
Name        : httpd
Version     : 2.4.37
Release     : 39.module+el8.4.0+9658+b87b2deb
Architecture: x86_64
Install Date: Sun 26 Sep 2021 08:52:06 AM IST
Group       : System Environment/Daemons
Size        : 4486208
License     : ASL 2.0
Signature   : RSA/SHA256, Tue 02 Feb 2021 12:54:18 AM IST, Key ID 199e2f91fd431d51
Source RPM  : httpd-2.4.37-39.module+el8.4.0+9658+b87b2deb.src.rpm
Build Date  : Wed 27 Jan 2021 05:53:38 PM IST
Build Host  : x86-vm-07.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>;
Vendor      : Red Hat, Inc.
URL         : https://httpd.apache.org/
Summary     : Apache HTTP Server
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.
Name        : apr
Version     : 1.6.3
Release     : 11.el8
Architecture: x86_64
Install Date: Sun 26 Sep 2021 08:51:50 AM IST
Group       : System Environment/Libraries
Size        : 266382
License     : ASL 2.0 and BSD with advertising and ISC and BSD
Signature   : RSA/SHA256, Thu 11 Jun 2020 03:56:29 PM IST, Key ID 199e2f91fd431d51
Source RPM  : apr-1.6.3-11.el8.src.rpm
Build Date  : Thu 11 Jun 2020 02:24:51 PM IST
Build Host  : x86-vm-09.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>;
Vendor      : Red Hat, Inc.
URL         : http://apr.apache.org/
Summary     : Apache Portable Runtime library
Description :
The mission of the Apache Portable Runtime (APR) is to provide a
free library of C data structures and routines, forming a system
portability layer to as many operating systems as possible,
including Unices, MS Win32, BeOS and OS/2.
[root@testvms84 ~]#




[root@testvms84 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
  Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
  Active: inactive (dead)
    Docs: man:httpd.service(8)
[root@testvms84 ~]#




-- Logs begin at Sun 2021-09-26 09:41:56 IST, end at Sun 2021-09-26 09:51:00 IST. --
Sep 26 09:42:14 localhost.localdomain systemd[1]: Started Kernel process accounting.
-- Subject: Unit psacct.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit psacct.service has finished starting up.
--
-- The start-up result is done.
Sep 26 09:42:14 localhost.localdomain avahi-daemon[1413]: chroot.c: open() failed: No such file or directory
Sep 26 09:42:14 localhost.localdomain avahi-daemon[1283]: Failed to open /etc/resolv.conf: Invalid argument
Sep 26 09:42:14 localhost.localdomain avahi-daemon[1283]: No service file found in /etc/avahi/services.
Sep 26 09:42:14 localhost.localdomain avahi-daemon[1283]: System host name is set to 'localhost'. This is not a suitable mDNS hos>
Sep 26 09:42:14 localhost.localdomain avahi-daemon[1283]: Network interface enumeration completed.
Sep 26 09:42:14 localhost.localdomain avahi-daemon[1283]: Server startup complete. Host name is linux.local. Local service cookie>
Sep 26 09:42:14 localhost.localdomain systemd[1]: Started NTP client/server.
-- Subject: Unit chronyd.service has finished start-up
-- Defined-By: systemd
-- Support: https://access.redhat.com/support

**Other than this, I could not able to see other errors.


Please have a look on above details and let us know the way to solve the issue..




 
Roland Mueller
Ranch Hand
Posts: 59
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cannot see any smoking gun from these results.

How by the way did you tried to start the Apache server? In my CentOS box I use systemctl.

After that one can check the status.
 
Ashok Raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Previously in RHEL 6.10 we used the command "service httpd start". On RHEL 8.4, we tried to use the same command, but there we got the error. Please find the below command and the result.



[root@testvms84 ~]# systemctl httpd start
Unknown operation httpd.

[root@testvms84 ~]# systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@testvms84 ~]#




[root@testvms84 ~]# systemctl status  httpd.service
● httpd.service - The Apache HTTP Server
  Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
  Active: failed (Result: exit-code) since Mon 2021-09-27 11:27:22 IST; 23s ago
    Docs: man:httpd.service(8)
 Process: 326943 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=127)
Main PID: 326943 (code=exited, status=127)

Sep 27 11:27:21 testvms84 systemd[1]: Starting The Apache HTTP Server...
Sep 27 11:27:22 testvms84 httpd[326943]: /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open sh>
Sep 27 11:27:22 testvms84 systemd[1]: httpd.service: Main process exited, code=exited, status=127/n/a
Sep 27 11:27:22 testvms84 systemd[1]: httpd.service: Failed with result 'exit-code'.
Sep 27 11:27:22 testvms84 systemd[1]: Failed to start The Apache HTTP Server.


In the above message, it says libaprutil-1.so.0 cannot open. Shall we need to give any extra command to make the library workable.


Thanks,
Ashok Raj
 
Roland Mueller
Ranch Hand
Posts: 59
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In RHEL8 systemctl replaces service command. Latter is still there but should in principle just use the new init system. In a similar way dnf replaced yum.

The error message in the logs shown by systemctl status is different from the one in your first message:

Sep 27 11:27:22 testvms84 httpd[326943]: /usr/sbin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open sh>


Can you check whether you have package apr-util installed? It should be there as dependency of apr and httpd. You could also check whether something is not OK with apr-util with rpm -V apr-util.

 
Ashok Raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for your reply.

We installed the apr-util package and tried to start the httpd service. The httpd service got started, but still, our initial error exists.

/usr/xxx/xxx/apache/bin/httpd: symbol lookup error: /usr/xxx/xxx/apache/lib/libapr-1.so.0: undefined symbol: dlopen




And we didn't get any result for the below command.



Please let me know if you need any details.

Kindly help us to overcome this issue.

Thanks,
Ashok Raj
 
Roland Mueller
Ranch Hand
Posts: 59
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seams that I am running slowly out of options. You can try to install apr-util.

 
Roland Mueller
Ranch Hand
Posts: 59
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That advice from previous message should not help because you said  that 'rpm -V apt-util- has no output. That means it's already installed and has no issues related to rpm packaging.
Sorry for confusion!

Roland Mueller wrote:Seams that I am running slowly out of options. You can try to install apr-util.

 
Ashok Raj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

We also don't know how to proceed further. We think to check the LD_LIBRARY_PATH.

Do you know any properties which assist to check dlopen().

Thanks,
Ashok Raj
 
Roland Mueller
Ranch Hand
Posts: 59
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are two tools for detecting issues with shared libs. Every of these tools has man pages. The links below are pointing to some tutorial -like sites.

* ldd shows which libraries a binary or shared lib try to use https://linoxide.com/ldd-command-examples-linux/
* nm can be used to list symbols in libraries and binaries  https://www.howtoforge.com/linux-nm-command/

My suspicion is that something happened during the upgrade and you may have conflicts between some basic libraries. If this is true there should be other problems too. You can also look with 'rpm -V -a' for other things that are wrong with all installed packages.

Last not least - it's a bit late that this comes to my mind: if you are using RHEL you may have also a support contract with Redhat. In this case there is a tool 'sosreport' for collecting evidences to a single report file. THis report is then meant to be sent to Redhat support.

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic