Results 1 to 9 of 9

Thread: Apache symbol lookup error

Hybrid View

  1. #1

    Default 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:
    Code:
    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

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    30,706

    Default Re: Apache symbol lookup error

    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
    Code:
    systemctl status apache
    to see if it provides more information?
    Henk van Velden

  3. #3

    Default Re: Apache symbol lookup error

    Yeah, this is what I see:
    Code:
    :~ # 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:
    Code:
    :~ # 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.

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    7,082

    Default AW: Apache symbol lookup error

    Post:
    Code:
    zypper lr -d
    Code:
    zypper se -si apr

  5. #5

    Default Re: Apache symbol lookup error

    Here are the results:
    Code:
    :~ # 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

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    30,706

    Default Re: Apache symbol lookup error

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

  7. #7

    Default Re: Apache symbol lookup error

    Hmm, apparently that was a hold over from when I installed Apache originally, using the steps at: https://software.opensuse.org/downlo...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.

  8. #8
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    7,082

    Default AW: Apache symbol lookup error

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

  9. #9

    Default Re: Apache symbol lookup error

    Ran into this issue after upgrading from OpenSUSE 15.2 to 15.3 and this was the solution for me:
    Code:
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •