Apache symbol lookup error

Hello,
I had been running openSUSE Leap 15.1, and a few days ago decided to update to openSUSE Leap 15.3 using the normal upgrade process outlined at https://en.opensuse.org/SDB:System_upgrade. Everything appeared to upgrade fine. However, no my Apache2 install will not start, giving me this error message:

start_apache2[8413]: /usr/sbin/httpd-prefork: symbol lookup error: /usr/sbin/httpd-prefork: undefined symbol: apr_thread_mutex_timedlock

I have verified that libapr1 and libapr-util1 are both installed and located in /usr/lib64/. I even deleted the lamp_server pattern and reinstalled it, with no change in the error message. My system is running on a VM on my QNAP NAS, and has been running fine on that at various Leap versions for several years, most recently at 15.1.
Where is the next thing to check for this issue? I do this sort of stuff for work, but this has me baffled.
Thanks, Tim

This does not help you, but I have Apache running and no such problems after upgrading from 15.2. Same btw from 15.1 > 15.2.

Where did you see the message? Remember that in general we do not like to see some piece of output only. We like the command and the full output it generates. Makes interpretation on what one sees easier.
Did you check

systemctl status apache

to see if it provides more information?

Yeah, this is what I see:

:~ # systemctl status apache2.service
● apache2.service - The Apache Webserver
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Fri 2022-01-28 08:37:39 CST; 2h 21min ago
    Process: 8413 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=127)
   Main PID: 8413 (code=exited, status=127)

Jan 28 08:37:39  systemd[1]: Starting The Apache Webserver...
Jan 28 08:37:39  start_apache2[8413]: /usr/sbin/httpd-prefork: symbol lookup error: /usr/sbin/httpd-prefork: undefined symbol: apr_thread_mutex_timedlock
Jan 28 08:37:39  systemd[1]: apache2.service: Main process exited, code=exited, status=127/n/a
Jan 28 08:37:39  systemd[1]: apache2.service: Failed with result 'exit-code'.
Jan 28 08:37:39  systemd[1]: Failed to start The Apache Webserver.

And I get this just running httpd:

:~ # httpd -V
httpd: symbol lookup error: httpd: undefined symbol: apr_thread_mutex_timedlock

I figure this isn’t something “normal”, and that there is something odd going on with my system. But I can’t think what might be going on that would cause this. Everything I have checked seems like it is all configured properly.

Post:

zypper lr -d
zypper se -si apr

Here are the results:

:~ # zypper lr -d
# | Alias                       | Name                                                                                        | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                   | Service
--+-----------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------+--------+-----------------------------------------------------------------------+--------
1 | Apache                      | Apache                                                                                      | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://download.opensuse.org/repositories/Apache/openSUSE_Leap_15.3/ | 
2 | repo-backports-debug-update | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/update/leap/15.3/backports_debug/        | 
3 | repo-backports-update       | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/backports/              | 
4 | repo-non-oss                | openSUSE-leap/15.3-Non-Oss                                                                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/non-oss/     | 
5 | repo-oss                    | openSUSE-leap/15.3-Oss                                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.3/repo/oss/         | 
6 | repo-sle-debug-update       | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.3/sle/              | 
7 | repo-sle-update             | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/sle/                    | 
8 | repo-update                 | openSUSE-Leap-15.3-Update                                                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.3/oss/                    | 
You have new mail in /var/spool/mail/root
:~ # zypper se -si apr
Loading repository data...
Reading installed packages...

S | Name            | Type    | Version      | Arch   | Repository
--+-----------------+---------+--------------+--------+-------------------------------------------------------------
i | libapr-util1    | package | 1.6.1-18.2.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15
i | libapr1         | package | 1.6.3-3.3.8  | x86_64 | openSUSE-leap/15.3-Oss
i | libchromaprint1 | package | 1.4.3-1.20   | x86_64 | openSUSE-leap/15.3-Oss

Thus you added a specific Apache repo and thus pobably do not have the same Apache as I have.

Hmm, apparently that was a hold over from when I installed Apache originally, using the steps at: https://software.opensuse.org/download/package?package=apache2&project=Apache

That page shows installing that repository to install Apache. I just removed that repo and ran a zypper dup. That downgraded the versions of apache2 that were installed. And now it loads fine. PHP doesn’t appear to be working, but I think I’ll be able to figure out that issue.

Thanks for pointing out that discrepancy.

I think you have not switched properly to the apache Repo (zypper dup --from), also you do not have refreshed the Repo…

Ran into this issue after upgrading from OpenSUSE 15.2 to 15.3 and this was the solution for me:

zypper install libapr1-0

Apparently, the old library libapr1 is still being used but its version is currently older: 1.6.3-3.3.8. In the “openSUSE BuildService - Apache” repo, however, we can find libapr1-0 with version 1.7.0-lp153.46.1.

Now apache starts.