[Bug 64639] New: last debian 10.4 , last apache avail from repo hangs on install (and start phase)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 64639] New: last debian 10.4 , last apache avail from repo hangs on install (and start phase)

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64639

            Bug ID: 64639
           Summary: last debian 10.4 , last apache avail from repo hangs
                    on install (and start phase)
           Product: Apache httpd-2
           Version: 2.4.38
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

I have fresh debian 10 install, OS after full upgrade with:
`apt-get upgrade` and
`apt-get dist-upgrade`

I want to install apache2 packages, it hang on install (on post-install phase
when apache starts):

(*my findings why is below)

apt-get install apache2  
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 libjansson4 liblua5.2-0
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 libjansson4 liblua5.2-0
0 upgraded, 11 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/2,606 kB of archives.
After this operation, 8,885 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libapr1:amd64.
(Reading database ... 85650 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.6.5-1+b1_amd64.deb ...
Unpacking libapr1:amd64 (1.6.5-1+b1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.6.1-4_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.1-4) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-4_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-4) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.6.1-4_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.1-4) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../04-libbrotli1_1.0.7-2_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.7-2) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../05-libjansson4_2.12-1_amd64.deb ...
Unpacking libjansson4:amd64 (2.12-1) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../06-liblua5.2-0_5.2.4-1.1+b2_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-1.1+b2) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../07-apache2-bin_2.4.38-3+deb10u3_amd64.deb ...
Unpacking apache2-bin (2.4.38-3+deb10u3) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../08-apache2-data_2.4.38-3+deb10u3_all.deb ...
Unpacking apache2-data (2.4.38-3+deb10u3) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../09-apache2-utils_2.4.38-3+deb10u3_amd64.deb ...
Unpacking apache2-utils (2.4.38-3+deb10u3) ...
Selecting previously unselected package apache2.
Preparing to unpack .../10-apache2_2.4.38-3+deb10u3_amd64.deb ...
Unpacking apache2 (2.4.38-3+deb10u3) ...
Setting up libbrotli1:amd64 (1.0.7-2) ...
Setting up libapr1:amd64 (1.6.5-1+b1) ...
Setting up libjansson4:amd64 (2.12-1) ...
Setting up liblua5.2-0:amd64 (5.2.4-1.1+b2) ...
Setting up apache2-data (2.4.38-3+deb10u3) ...
Setting up libaprutil1:amd64 (1.6.1-4) ...
Setting up libaprutil1-ldap:amd64 (1.6.1-4) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-4) ...
Setting up apache2-utils (2.4.38-3+deb10u3) ...
Setting up apache2-bin (2.4.38-3+deb10u3) ...
Setting up apache2 (2.4.38-3+deb10u3) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service →
/etc/systemd/system/apache2.service.
Created symlink
/etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service →
/lib/systemd/system/apache-htcacheclean.service.

here it hangs. and after some time ....

Job for apache2.service failed because a timeout was exceeded.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "start" failed.
● apache2.service - Apache 2 HTTP Web Server
   Loaded: loaded
(]8;;file://b09/etc/systemd/system/apache2.service/etc/systemd/system/apache2.service]8;;;
enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: timeout) since Fri 2020-07-31
10:01:08 EDT; 12ms ago
  Process: 2640 ExecStart=/usr/sbin/apache2ctl start (code=killed, signal=KILL)
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...


Accorinding to a process state it hangs and wait for a start.

strace -fF systemctl start apache2
....[skip irrelevant]...
[pid  5563] access("/etc/selinux/config", F_OK) = -1 ENOENT (No such file or
directory)
[pid  5563] openat(AT_FDCWD, "/proc/self/stat", O_RDONLY|O_CLOEXEC) = 3
[pid  5563] fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid  5563] read(3, "5563 (systemd-tty-ask) R 5562 55"..., 1024) = 317
[pid  5563] read(3, "", 1024)           = 0
[pid  5563] close(3)                    = 0
[pid  5563] getpid()                    = 5563
[pid  5563] ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
[pid  5563] umask(022)                  = 022
[pid  5563] openat(AT_FDCWD, "/proc/self/stat", O_RDONLY|O_CLOEXEC) = 3
[pid  5563] fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid  5563] read(3, "5563 (systemd-tty-ask) R 5562 55"..., 1024) = 317
[pid  5563] read(3, "", 1024)           = 0
[pid  5563] close(3)                    = 0
[pid  5563] stat("/run/systemd/ask-password-block", {st_mode=S_IFDIR|0700,
st_size=80, ...}) = 0
[pid  5563] mknod("/run/systemd/ask-password-block/136:0", S_IFIFO|0600) = -1
EEXIST (File exists)
[pid  5563] openat(AT_FDCWD, "/run/systemd/ask-password-block/136:0",
O_RDONLY|O_NOCTTY|O_NONBLOCK|O_CLOEXEC) = 3
[pid  5563] stat("/run/systemd", {st_mode=S_IFDIR|0755, st_size=460, ...}) = 0
[pid  5563] mkdir("/run/systemd/ask-password", 0755) = -1 EEXIST (File exists)
[pid  5563] stat("/run/systemd/ask-password", {st_mode=S_IFDIR|0755,
st_size=40, ...}) = 0
[pid  5563] inotify_init1(IN_CLOEXEC)   = 4
[pid  5563] inotify_add_watch(4, "/run/systemd/ask-password",
IN_CLOSE_WRITE|IN_MOVED_TO) = 1
[pid  5563] rt_sigprocmask(SIG_SETMASK, [INT TERM], NULL, 8) = 0
[pid  5563] signalfd4(-1, [INT TERM], 8, SFD_CLOEXEC|SFD_NONBLOCK) = 5
[pid  5563] openat(AT_FDCWD, "/run/systemd/ask-password",
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 6
[pid  5563] fstat(6, {st_mode=S_IFDIR|0755, st_size=40, ...}) = 0
[pid  5563] getdents64(6, /* 2 entries */, 32768) = 48
[pid  5563] getdents64(6, /* 0 entries */, 32768) = 0
[pid  5563] close(6)                    = 0
[pid  5563] poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1

here it hangs.

Plus, apache (at least in debian) don't honor the

vi /etc/apache2/mods-available/ssl.conf
        #SSLPassPhraseDialog  exec:/usr/share/apache2/ask-for-passphrase
        SSLPassPhraseDialog  exec:/passphrase-script

I can't even disable it to/or avoid it.
BTW, I never had any passport, the configuration is pretty fresh (from dpkg
install scripts) and it should works out of the box, but it is broken out of
the box somehow.

I am tried to point SSLPassPhraseDialog to my own scrip that echoes some pass
and comment out SSLPassPhraseDialog - no luck apache never call my
'/passphrase-script' script instead it hangs in the same place in the same
manner (strace output the same).

Also I tried to rename *ask-password* related directories and scripts, also no
luck.

Please help! Any solution is appreciated.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]