after updating system, apache won't start

Peace to you, and blessings… here is the error it throws out:

Nov 01 10:55:51 proxy start_apache2[18048]: /usr/sbin/httpd-prefork: symbol lookup error: /usr/sbin/httpd-prefork: undefined symbol: apr_atomic_read64

searching for a solution didn’t solve the problem, hence i came for aid.

No information, no aid. Show details:

**erlangen:~ #** zypper if lamp_server 
Loading repository data... 
Reading installed packages... 


package 'lamp_server' not found. 

Information for pattern lamp_server: 
------------------------------------ 
Repository      : openSUSE-Tumbleweed-Oss 
Name            : lamp_server 
Version         : 20210330-2.3 
Arch            : x86_64 
Vendor          : openSUSE 
Installed       : Yes 
Visible to User : Yes 
Summary         : Web and LAMP Server 
Description     :  
    Software to set up a Web server that is able to serve static, dynamic, and interactive content (like a Web shop). This includes Apache HTTP Server, the database management system MySQL, and scripting languages such as PHP, Python, Ruby on Rails, or Perl. 
Contents        :  
    S  | Name                        | Type    | Dependency 
    ---+-----------------------------+---------+------------ 
    i+ | apache2                     | package | Required 
    i+ | patterns-base-basesystem    | package | Required 
       | patterns-microos-basesystem | package | Required 
    i+ | patterns-server-lamp_server | package | Required 
    i  | apache2-manual              | package | Recommended 
    i+ | apache2-mod_php7            | package | Recommended 
    i+ | apache2-prefork             | package | Recommended 
    i  | mariadb                     | package | Recommended 
    i  | perl                        | package | Recommended 
    i+ | yast2-http-server           | package | Recommended 

**erlangen:~ #**
zypper if lamp_server
Loading repository data...
Reading installed packages...


package 'lamp_server' not found.

Information for pattern lamp_server:
------------------------------------
Repository      : openSUSE-Tumbleweed-Oss
Name            : lamp_server
Version         : 20210330-2.3
Arch            : x86_64
Vendor          : openSUSE
Installed       : No
Visible to User : Yes
Summary         : Web and LAMP Server
Description     : 
    Software to set up a Web server that is able to serve static, dynamic, and interactive content (like a Web shop). This includes Apache HTTP Server, the database
    management system MySQL, and scripting languages such as PHP, Python, Ruby on Rails, or Perl.
Contents        : 
    S  | Name                        | Type    | Dependency
    ---+-----------------------------+---------+------------
    i+ | apache2                     | package | Required
       | patterns-base-basesystem    | package | Required
       | patterns-microos-basesystem | package | Required
       | patterns-server-lamp_server | package | Required
       | apache2-doc                 | package | Recommended
       | apache2-example-pages       | package | Recommended
       | apache2-manual              | package | Recommended
       | apache2-mod_php7            | package | Recommended
    i  | apache2-prefork             | package | Recommended
    i  | libapr-util1                | package | Recommended
    i  | libapr1                     | package | Recommended
    i+ | mariadb                     | package | Recommended
    i  | perl                        | package | Recommended
       | yast2-http-server           | package | Recommended

You didn’t install the pattern. I installed the pattern years ago and apache here is working fine since then. Install it on your machine.

sudo zypper install patterns-base-basesystem

Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  patterns-base-basesystem

The following NEW pattern is going to be installed:
  basesystem

1 new package to install.
Overall download size: 126.8 KiB. Already cached: 0 B. After the operation, additional 56.0 B will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package patterns-base-basesystem-20200505-24.1.x86_64                                                                  (1/1), 126.8 KiB (   56   B unpacked)
Retrieving: patterns-base-basesystem-20200505-24.1.x86_64.rpm ...................................................................................................[done]

Checking for file conflicts: ....................................................................................................................................[done]
(1/1) Installing: patterns-base-basesystem-20200505-24.1.x86_64 .................................................................................................[done]

~> sudo systemctl restart apache2

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.

:~> sudo systemctl status apache2

× apache2.service - The Apache Webserver
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Wed 2021-11-03 11:35:12 +03; 11s ago
    Process: 14927 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=127)
   Main PID: 14927 (code=exited, status=127)
        CPU: 86ms

Nov 03 11:35:11 adv systemd[1]: Starting The Apache Webserver...
Nov 03 11:35:12 adv start_apache2[14927]: /usr/sbin/httpd-prefork: symbol lookup error: /usr/sbin/httpd-prefork: undefined symbol: apr_atomic_read64
Nov 03 11:35:12 adv systemd[1]: apache2.service: Main process exited, code=exited, status=127/n/a
Nov 03 11:35:12 adv systemd[1]: apache2.service: Failed with result 'exit-code'.
Nov 03 11:35:12 adv systemd[1]: Failed to start The Apache Webserver.

No problem here:

# systemctl status apache2

* apache2.service - The Apache Webserver
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2021-11-03 08:03:29 CET; 3h 6min ago
   Main PID: 1033 (httpd-prefork)
     Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec:   0 B/sec"
      Tasks: 6
        CPU: 740ms
     CGroup: /system.slice/apache2.service
             |-1033 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include /etc/apache2/sysconfig.d//include.conf" -DSYSTEMD -DFOREGROUND -k start
             |-1136 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include /etc/apache2/sysconfig.d//include.conf" -DSYSTEMD -DFOREGROUND -k start
             |-1137 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include /etc/apache2/sysconfig.d//include.conf" -DSYSTEMD -DFOREGROUND -k start
             |-1138 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include /etc/apache2/sysconfig.d//include.conf" -DSYSTEMD -DFOREGROUND -k start
             |-1139 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include /etc/apache2/sysconfig.d//include.conf" -DSYSTEMD -DFOREGROUND -k start
             `-1140 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.conf" -f /etc/apache2/httpd.conf -c "Include /etc/apache2/sysconfig.d//include.conf" -DSYSTEMD -DFOREGROUND -k start

Nov 03 08:03:29 MACH01 systemd[1]: Starting The Apache Webserver...
Nov 03 08:03:29 MACH01 start_apache2[1033]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Nov 03 08:03:29 MACH01 systemd[1]: Started The Apache Webserver.

Please show the results of

**# cat /etc/os-release**

NAME="openSUSE Tumbleweed"
# VERSION="20211031"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20211031"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20211031"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
#
**# zypper se -si apache***

Loading repository data...
Reading installed packages...

S  | Name                   | Type    | Version    | Arch   | Repository
---+------------------------+---------+------------+--------+------------------------
i  | apache-commons-logging | package | 1.2-10.2   | noarch | openSUSE Tumbleweed Oss
i+ | apache2                | package | 2.4.51-1.2 | x86_64 | openSUSE Tumbleweed Oss
i+ | apache2-mod_php7       | package | 7.4.25-1.1 | x86_64 | openSUSE Tumbleweed Oss
i  | apache2-prefork        | package | 2.4.51-1.3 | x86_64 | openSUSE Tumbleweed Oss
i  | apache2-utils          | package | 2.4.51-1.1 | x86_64 | openSUSE Tumbleweed Oss
#
**# zypper se -si libapr*
**
Loading repository data...
Reading installed packages...

S | Name           | Type    | Version   | Arch   | Repository
--+----------------+---------+-----------+--------+------------------------
i | libapr-util1-0 | package | 1.6.1-8.2 | x86_64 | openSUSE Tumbleweed Oss
i | libapr1-0      | package | 1.7.0-3.1 | x86_64 | openSUSE Tumbleweed Oss
#
**# ls -la /lib64/libapr***

lrwxrwxrwx 1 root root     17 Oct 29 22:41 /lib64/libapr-1.so -> libapr-1.so.0.7.0
lrwxrwxrwx 1 root root     17 Oct 29 22:41 /lib64/libapr-1.so.0 -> libapr-1.so.0.7.0
-rwxr-xr-x 1 root root 251216 Oct 29 22:41 /lib64/libapr-1.so.0.7.0
lrwxrwxrwx 1 root root     21 Oct 29 23:10 /lib64/libaprutil-1.so.0 -> libaprutil-1.so.0.6.1
-rwxr-xr-x 1 root root 189168 Oct 29 23:10 /lib64/libaprutil-1.so.0.6.1
#

Regards

susejunky

Again: Install the pattern ‘zypper in --type pattern lamp_server’.

Why should OP do so?

# zypper se lamp_server

Loading repository data...
Reading installed packages...

S  | Name                              | Summary             | Type
---+-----------------------------------+---------------------+--------
   | lamp_server                       | Web and LAMP Server | pattern
 l | patterns-server-lamp_server       | Web and LAMP Server | package
 l | patterns-server-lamp_server-32bit | Web and LAMP Server | package
#

To avoid “bloatware” i do not install any patterns at all. Nevertheless APACHE runs fine here:

# systemctl status apache2

* apache2.service - The Apache Webserver
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2021-11-03 08:03:29 CET; 4h 43min ago
   Main PID: 1033 (httpd-prefork)
     Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec:   0 B/sec"
      Tasks: 6
        CPU: 1.033s
     CGroup: /system.slice/apache2.service
             |-1033 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.co>
             |-1136 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.co>
             |-1137 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.co>
             |-1138 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.co>
             |-1139 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.co>
             `-1140 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "Include /etc/apache2/sysconfig.d//global.co>

Nov 03 08:03:29 MACH01 systemd[1]: Starting The Apache Webserver...
Nov 03 08:03:29 MACH01 start_apache2[1033]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directiv>
Nov 03 08:03:29 MACH01 systemd[1]: Started The Apache Webserver.
# 

Regards

susejunky

I did it because it’s a single click in yast.

Well, i guess there are a lot of “single clicks” that can be done in yast but not all of them will help to solve OPs problem ?

Regards

susejunky

cat /etc/os-release

NAME="openSUSE Tumbleweed"
# VERSION="20211101"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20211101"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20211101"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo-Tumbleweed"
sudo zypper se -si apache*
Loading repository data...
Reading installed packages...
No matching items found.
zypper se -si libapr*
Loading repository data...
Reading installed packages...

S | Name         | Type    | Version   | Arch   | Repository
--+--------------+---------+-----------+--------+--------------------
i | libapr-util1 | package | 1.6.1-5.3 | x86_64 | openSUSE-20190708-0
i | libapr1      | package | 1.6.5-2.3 | x86_64 | openSUSE-20190708-0

ls -la /lib64/libapr*
lrwxrwxrwx 1 root root     17 Jun 12  2019 /lib64/libapr-1.so -> libapr-1.so.0.6.5
lrwxrwxrwx 1 root root     17 Nov  1 09:47 /lib64/libapr-1.so.0 -> libapr-1.so.0.6.5
-rwxr-xr-x 1 root root 230528 Jun 12  2019 /lib64/libapr-1.so.0.6.5
lrwxrwxrwx 1 root root     21 Jun 12  2019 /lib64/libaprutil-1.so.0 -> libaprutil-1.so.0.6.1
-rwxr-xr-x 1 root root 189048 Jun 12  2019 /lib64/libaprutil-1.so.0.6.1

OK, you are on the latest release while i’m still one behind. However from 20211031 to 20211101 there are no apache-updates.

??? Where does your apache server come from?

Those are not the versions i see on my openSUSE Tumbleweed 20211031 system!

Please show the result of

zypper lr -uEP

Regards

susejunky

zypper lr -uEP
# | Alias               | Name                                          | Enabled | GPG Check | Refresh | Priority | URI
--+---------------------+-----------------------------------------------+---------+-----------+---------+----------+-------------------------------------------------------------------------------------
1 | home_ecsos_server   | various server software (openSUSE_Tumbleweed) | Yes     | (r ) Yes  | No      |   99     | http://download.opensuse.org/repositories/home:/ecsos:/server/openSUSE_Tumbleweed/
2 | openSUSE-20190708-0 | openSUSE-20190708-0                           | Yes     | (r ) Yes  | No      |   99     | cd:/?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001
4 | repo-non-oss        | openSUSE-Tumbleweed-Non-Oss                   | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/tumbleweed/repo/non-oss/
5 | repo-oss            | openSUSE-Tumbleweed-Oss                       | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/tumbleweed/repo/oss/
7 | repo-update         | openSUSE-Tumbleweed-Update                    | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/tumbleweed/

sudo zypper install apache2
Loading repository data...
Reading installed packages...
'apache2' is already installed.
No update candidate for 'apache2-2.4.51-1.2.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.

You are mixing some home/factory repository (http://download.opensuse.org/repositories/home:/ecsos:/server/openSUSE_Tumbleweed/) with openSUSE Tumbleweed repositories (oss, non-oss, update)!

I can’t tell you if that is going to work and/or if that is the root of your problem.

However here is what i would do:

  1. Disable repositories 1 and 2
  2. zypper -dup --allow-vendor-change

This should give you a working openSUSE Tumbleweed BUT it might break some of the stuff you installed from repository 1.

You can afterwards

  1. re-enable repository 1
  2. re-install the packages you wish from repository 1
  3. disable repository 1 again

Regards

susejunky

man it worked!
it even upgraded a needed package!
it also removed lots of, seemingly unneeded packages.

Nope. Only clicking pattern ‘lamp_server’ will work. Prerequisites are a tidy list of repos and a proper ‘zypper dist-upgrade’. Given both the single click will do the trick.:wink:

well, you are just another man not to listen to ;O