[SOLVED] Lost config with distro and zm version upgrade

Discussions related to the 1.36.x series of ZoneMinder
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

[SOLVED] Lost config with distro and zm version upgrade

Post by cookiemonster »

Help please, some ideas.
I have a working installation of zm, but the timezone change bit me again and although I made the change (mysql only needed), I realised I needed to update OS distro. It was on Ubuntu 22.04.x.
1 - update apt and packages. All done.
2 - upgrade all packages. It left me with some held back packages (a lot). Solved by installing them in bulk so dependencies get solved for each one.
3 - Upgraded ZM from (I think) 1.34.5 to 1.34.6. Here I had no errors but would not start. It was the mysql schema upgrade that failed with the inability of the script to insert a new nullable column to a table. I got the answer from this forum in a search, leading to a solution in github.
So far, so good, upgrade of ZM succeeded. Time to move to OS.
4 - do-dist-upgrade after a round of apt update, apt upgrade. All good, rebooted and ZM working.
5 - I was prompted by apt I think to upgrade packages. It came with zoneminder. Same version, different distro version i.e. 1.36.6-jammy to 1.36.6-noble. Proceeded to the upgrade. No errors shown but http://ip:/zm now went dark.

Investigating, it seems there is no zm configuration for apache. Apache /etc/apache2/sites-available/ has only 000-default.conf and default-ssl.conf.
Sites enabled doesn't have it.
I'm tempted to copy from /usr/share/docs/zoneminder/apache.conf but anyone has ideas what else I might need?
Last edited by cookiemonster on Sat Apr 26, 2025 11:41 pm, edited 1 time in total.
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

I have copied the file /usr/share/doc/zoneminder/examples/apache.conf to /etc/apache2/sites-available/ as zoneminder.conf.
Then disabled the apache 000-default and enabled the zoneminder site with a2ensite/a2dissite but a restart of apache still fails hard.

Code: Select all

Apr 23 22:50:24 venus apachectl[2506]: AH00534: apache2: Configuration error: No MPM loaded.
My tinternet searches have come up short. Any ideas please?

an strace for clues (that I so far fail to spot):

Code: Select all

penguin@venus:/etc/apache2$ sudo strace -Ff apachectl start
[sudo] password for penguin: 
strace: deprecated option -F ignored
execve("/usr/sbin/apachectl", ["apachectl", "start"], 0x7fff50b19a70 /* 13 vars */) = 0
brk(NULL)                               = 0x6289b39f1000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7dfca34f8000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=36499, ...}) = 0
mmap(NULL, 36499, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7dfca34ef000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\243\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
fstat(3, {st_mode=S_IFREG|0755, st_size=2125328, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 2170256, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7dfca3200000
mmap(0x7dfca3228000, 1605632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7dfca3228000
mmap(0x7dfca33b0000, 323584, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b0000) = 0x7dfca33b0000
mmap(0x7dfca33ff000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1fe000) = 0x7dfca33ff000
mmap(0x7dfca3405000, 52624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7dfca3405000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7dfca34ec000
arch_prctl(ARCH_SET_FS, 0x7dfca34ec740) = 0
set_tid_address(0x7dfca34eca10)         = 2665
set_robust_list(0x7dfca34eca20, 24)     = 0
rseq(0x7dfca34ed060, 0x20, 0, 0x53053053) = 0
mprotect(0x7dfca33ff000, 16384, PROT_READ) = 0
mprotect(0x628996fcb000, 8192, PROT_READ) = 0
mprotect(0x7dfca3530000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7dfca34ef000, 36499)           = 0
getuid()                                = 0
getgid()                                = 0
getpid()                                = 2665
rt_sigaction(SIGCHLD, {sa_handler=0x628996fc0cd0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7dfca3245330}, NULL, 8) = 0
geteuid()                               = 0
getrandom("\xad\x31\xcd\x09\xe0\xb5\xa7\x24", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x6289b39f1000
brk(0x6289b3a12000)                     = 0x6289b3a12000
getppid()                               = 2662
getcwd("/etc/apache2", 4096)            = 13
openat(AT_FDCWD, "/usr/sbin/apachectl", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10)                   = 10
close(3)                                = 0
fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
geteuid()                               = 0
getegid()                               = 0
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x628996fc0cd0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7dfca3245330}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7dfca3245330}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7dfca3245330}, NULL, 8) = 0
read(10, "#!/bin/sh\n#\n# Licensed to the Ap"..., 8192) = 7434
newfstatat(AT_FDCWD, "/etc/apache2/envvars", {st_mode=S_IFREG|0644, st_size=1782, ...}, 0) = 0
openat(AT_FDCWD, "/etc/apache2/envvars", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10)                   = 11
close(3)                                = 0
fcntl(11, F_SETFD, FD_CLOEXEC)          = 0
read(11, "# envvars - default environment "..., 8192) = 1782
read(11, "", 8192)                      = 0
close(11)                               = 0
pipe2([3, 4], 0)                        = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLDstrace: Process 2672 attached
, child_tidptr=0x7dfca34eca10) = 2672
[pid  2672] set_robust_list(0x7dfca34eca20, 24 <unfinished ...>
[pid  2665] close(4 <unfinished ...>
[pid  2672] <... set_robust_list resumed>) = 0
[pid  2665] <... close resumed>)        = 0
[pid  2672] close(10 <unfinished ...>
[pid  2665] read(3,  <unfinished ...>
[pid  2672] <... close resumed>)        = 0
[pid  2672] close(3)                    = 0
[pid  2672] dup2(4, 1)                  = 1
[pid  2672] close(4)                    = 0
[pid  2672] newfstatat(AT_FDCWD, "/usr/local/sbin/id", 0x7ffeb14dd390, 0) = -1 ENOENT (No such file or directory)
[pid  2672] newfstatat(AT_FDCWD, "/usr/local/bin/id", 0x7ffeb14dd390, 0) = -1 ENOENT (No such file or directory)
[pid  2672] newfstatat(AT_FDCWD, "/usr/sbin/id", 0x7ffeb14dd390, 0) = -1 ENOENT (No such file or directory)
[pid  2672] newfstatat(AT_FDCWD, "/usr/bin/id", {st_mode=S_IFREG|0755, st_size=39432, ...}, 0) = 0
[pid  2672] execve("/usr/bin/id", ["id", "-u"], 0x6289b39f1cd8 /* 19 vars */) = 0
[pid  2672] brk(NULL)                   = 0x5a95790e6000
[pid  2672] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ae699c76000
[pid  2672] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid  2672] openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
[pid  2672] fstat(3, {st_mode=S_IFREG|0644, st_size=36499, ...}) = 0
[pid  2672] mmap(NULL, 36499, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ae699c6d000
[pid  2672] close(3)                    = 0
[pid  2672] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
[pid  2672] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2672] fstat(3, {st_mode=S_IFREG|0644, st_size=174472, ...}) = 0
[pid  2672] mmap(NULL, 181960, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ae699c40000
[pid  2672] mmap(0x7ae699c46000, 118784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7ae699c46000
[pid  2672] mmap(0x7ae699c63000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x7ae699c63000
[pid  2672] mmap(0x7ae699c69000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29000) = 0x7ae699c69000
[pid  2672] mmap(0x7ae699c6b000, 5832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ae699c6b000
[pid  2672] close(3)                    = 0
[pid  2672] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
[pid  2672] read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\243\2\0\0\0\0\0"..., 832) = 832
[pid  2672] pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
[pid  2672] fstat(3, {st_mode=S_IFREG|0755, st_size=2125328, ...}) = 0
[pid  2672] pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
[pid  2672] mmap(NULL, 2170256, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ae699a00000
[pid  2672] mmap(0x7ae699a28000, 1605632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7ae699a28000
[pid  2672] mmap(0x7ae699bb0000, 323584, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b0000) = 0x7ae699bb0000
[pid  2672] mmap(0x7ae699bff000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1fe000) = 0x7ae699bff000
[pid  2672] mmap(0x7ae699c05000, 52624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ae699c05000
[pid  2672] close(3)                    = 0
[pid  2672] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = 3
[pid  2672] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2672] fstat(3, {st_mode=S_IFREG|0644, st_size=625344, ...}) = 0
[pid  2672] mmap(NULL, 627472, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ae699966000
[pid  2672] mmap(0x7ae699968000, 450560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7ae699968000
[pid  2672] mmap(0x7ae6999d6000, 163840, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x70000) = 0x7ae6999d6000
[pid  2672] mmap(0x7ae6999fe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x97000) = 0x7ae6999fe000
[pid  2672] close(3)                    = 0
[pid  2672] mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ae699c3d000
[pid  2672] arch_prctl(ARCH_SET_FS, 0x7ae699c3d800) = 0
[pid  2672] set_tid_address(0x7ae699c3dad0) = 2672
[pid  2672] set_robust_list(0x7ae699c3dae0, 24) = 0
[pid  2672] rseq(0x7ae699c3e120, 0x20, 0, 0x53053053) = 0
[pid  2672] mprotect(0x7ae699bff000, 16384, PROT_READ) = 0
[pid  2672] mprotect(0x7ae6999fe000, 4096, PROT_READ) = 0
[pid  2672] mprotect(0x7ae699c69000, 4096, PROT_READ) = 0
[pid  2672] mprotect(0x5a953db3b000, 4096, PROT_READ) = 0
[pid  2672] mprotect(0x7ae699cae000, 8192, PROT_READ) = 0
[pid  2672] prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
[pid  2672] munmap(0x7ae699c6d000, 36499) = 0
[pid  2672] statfs("/sys/fs/selinux", 0x7ffe6dc2fef0) = -1 ENOENT (No such file or directory)
[pid  2672] statfs("/selinux", 0x7ffe6dc2fef0) = -1 ENOENT (No such file or directory)
[pid  2672] getrandom("\xda\xee\xa1\xfd\xcd\x24\xf0\xe5", 8, GRND_NONBLOCK) = 8
[pid  2672] brk(NULL)                   = 0x5a95790e6000
[pid  2672] brk(0x5a9579107000)         = 0x5a9579107000
[pid  2672] openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3
[pid  2672] fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid  2672] read(3, "nodev\tsysfs\nnodev\ttmpfs\nnodev\tbd"..., 1024) = 400
[pid  2672] read(3, "", 1024)           = 0
[pid  2672] close(3)                    = 0
[pid  2672] access("/etc/selinux/config", F_OK) = -1 ENOENT (No such file or directory)
[pid  2672] geteuid()                   = 0
[pid  2672] fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid  2672] write(1, "0\n", 2 <unfinished ...>
[pid  2665] <... read resumed>"0\n", 128) = 2
[pid  2672] <... write resumed>)        = 2
[pid  2665] read(3,  <unfinished ...>
[pid  2672] close(1 <unfinished ...>
[pid  2665] <... read resumed>"", 128)  = 0
[pid  2672] <... close resumed>)        = 0
[pid  2665] close(3 <unfinished ...>
[pid  2672] close(2 <unfinished ...>
[pid  2665] <... close resumed>)        = 0
[pid  2672] <... close resumed>)        = 0
[pid  2665] wait4(-1,  <unfinished ...>
[pid  2672] exit_group(0)               = ?
[pid  2672] +++ exited with 0 +++
<... wait4 resumed>[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2672
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2672, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 2672
wait4(-1, 0x7ffeb14dd45c, WNOHANG, NULL) = -1 ECHILD (No child processes)
prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=1024, rlim_max=1024*1024}) = 0
prlimit64(0, RLIMIT_NOFILE, {rlim_cur=8*1024, rlim_max=8*1024}, NULL) = 0
newfstatat(AT_FDCWD, "/var/run/apache2", {st_mode=S_IFDIR|0755, st_size=60, ...}, 0) = 0
newfstatat(AT_FDCWD, "/var/run/apache2/socks", {st_mode=S_IFDIR|0755, st_size=40, ...}, 0) = 0
newfstatat(AT_FDCWD, "/var/lock/apache2", {st_mode=S_IFDIR|0755, st_size=40, ...}, 0) = 0
openat(AT_FDCWD, "/var/run/apache2/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
getdents64(3, 0x6289b39f6530 /* 3 entries */, 32768) = 80
getdents64(3, 0x6289b39f6530 /* 0 entries */, 32768) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/var/run/apache2/*ssl_scache*", 0x7ffeb14dd260, 0) = -1 ENOENT (No such file or directory)
pipe2([3, 4], 0)                        = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLDstrace: Process 2679 attached
, child_tidptr=0x7dfca34eca10) = 2679
[pid  2679] set_robust_list(0x7dfca34eca20, 24 <unfinished ...>
[pid  2665] close(4 <unfinished ...>
[pid  2679] <... set_robust_list resumed>) = 0
[pid  2665] <... close resumed>)        = 0
[pid  2679] close(10 <unfinished ...>
[pid  2665] read(3,  <unfinished ...>
[pid  2679] <... close resumed>)        = 0
[pid  2679] close(3)                    = 0
[pid  2679] dup2(4, 1)                  = 1
[pid  2679] close(4)                    = 0
[pid  2679] newfstatat(AT_FDCWD, "/usr/local/sbin/readlink", 0x7ffeb14dd240, 0) = -1 ENOENT (No such file or directory)
[pid  2679] newfstatat(AT_FDCWD, "/usr/local/bin/readlink", 0x7ffeb14dd240, 0) = -1 ENOENT (No such file or directory)
[pid  2679] newfstatat(AT_FDCWD, "/usr/sbin/readlink", 0x7ffeb14dd240, 0) = -1 ENOENT (No such file or directory)
[pid  2679] newfstatat(AT_FDCWD, "/usr/bin/readlink", {st_mode=S_IFREG|0755, st_size=43432, ...}, 0) = 0
[pid  2679] execve("/usr/bin/readlink", ["readlink", "-f", "/proc/1/exe"], 0x6289b39f52f0 /* 19 vars */) = 0
[pid  2679] brk(NULL)                   = 0x5b408675e000
[pid  2679] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7095df76c000
[pid  2679] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid  2679] openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
[pid  2679] fstat(3, {st_mode=S_IFREG|0644, st_size=36499, ...}) = 0
[pid  2679] mmap(NULL, 36499, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7095df763000
[pid  2679] close(3)                    = 0
[pid  2679] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
[pid  2679] read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\243\2\0\0\0\0\0"..., 832) = 832
[pid  2679] pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
[pid  2679] fstat(3, {st_mode=S_IFREG|0755, st_size=2125328, ...}) = 0
[pid  2679] pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
[pid  2679] mmap(NULL, 2170256, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7095df400000
[pid  2679] mmap(0x7095df428000, 1605632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7095df428000
[pid  2679] mmap(0x7095df5b0000, 323584, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b0000) = 0x7095df5b0000
[pid  2679] mmap(0x7095df5ff000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1fe000) = 0x7095df5ff000
[pid  2679] mmap(0x7095df605000, 52624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7095df605000
[pid  2679] close(3)                    = 0
[pid  2679] mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7095df760000
[pid  2679] arch_prctl(ARCH_SET_FS, 0x7095df760740) = 0
[pid  2679] set_tid_address(0x7095df760a10) = 2679
[pid  2679] set_robust_list(0x7095df760a20, 24) = 0
[pid  2679] rseq(0x7095df761060, 0x20, 0, 0x53053053) = 0
[pid  2679] mprotect(0x7095df5ff000, 16384, PROT_READ) = 0
[pid  2679] mprotect(0x5b405a35e000, 4096, PROT_READ) = 0
[pid  2679] mprotect(0x7095df7a4000, 8192, PROT_READ) = 0
[pid  2679] prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
[pid  2679] munmap(0x7095df763000, 36499) = 0
[pid  2679] getrandom("\x73\xee\xc1\x78\xec\x9a\xe6\x4a", 8, GRND_NONBLOCK) = 8
[pid  2679] brk(NULL)                   = 0x5b408675e000
[pid  2679] brk(0x5b408677f000)         = 0x5b408677f000
[pid  2679] readlink("/proc", 0x7ffd1793f3b0, 1023) = -1 EINVAL (Invalid argument)
[pid  2679] readlink("/proc/1", 0x7ffd1793f3b0, 1023) = -1 EINVAL (Invalid argument)
[pid  2679] readlink("/proc/1/exe", "/usr/lib/systemd/systemd", 1023) = 24
[pid  2679] readlink("/usr", 0x7ffd1793f3b0, 1023) = -1 EINVAL (Invalid argument)
[pid  2679] readlink("/usr/lib", 0x7ffd1793f3b0, 1023) = -1 EINVAL (Invalid argument)
[pid  2679] readlink("/usr/lib/systemd", 0x7ffd1793f3b0, 1023) = -1 EINVAL (Invalid argument)
[pid  2679] readlink("/usr/lib/systemd/systemd", 0x7ffd1793f3b0, 1023) = -1 EINVAL (Invalid argument)
[pid  2679] fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid  2679] write(1, "/usr/lib/systemd/systemd\n", 25 <unfinished ...>
[pid  2665] <... read resumed>"/usr/lib/systemd/systemd\n", 128) = 25
[pid  2679] <... write resumed>)        = 25
[pid  2665] read(3,  <unfinished ...>
[pid  2679] close(1 <unfinished ...>
[pid  2665] <... read resumed>"", 128)  = 0
[pid  2679] <... close resumed>)        = 0
[pid  2665] close(3 <unfinished ...>
[pid  2679] close(2 <unfinished ...>
[pid  2665] <... close resumed>)        = 0
[pid  2679] <... close resumed>)        = 0
[pid  2665] wait4(-1,  <unfinished ...>
[pid  2679] exit_group(0)               = ?
[pid  2679] +++ exited with 0 +++
<... wait4 resumed>[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2679
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2679, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 2679
wait4(-1, 0x7ffeb14dd30c, WNOHANG, NULL) = -1 ECHILD (No child processes)
write(1, "Invoking 'systemctl start apache"..., 36Invoking 'systemctl start apache2'.
) = 36
write(1, "Use 'systemctl status apache2' f"..., 46Use 'systemctl status apache2' for more info.
) = 46
newfstatat(AT_FDCWD, "/usr/local/sbin/systemctl", 0x7ffeb14dd490, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/local/bin/systemctl", 0x7ffeb14dd490, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/sbin/systemctl", 0x7ffeb14dd490, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/bin/systemctl", {st_mode=S_IFREG|0755, st_size=1501304, ...}, 0) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], NULL, 8) = 0
vfork(strace: Process 2680 attached
 <unfinished ...>
[pid  2680] rt_sigprocmask(SIG_SETMASK, [], ~[KILL STOP RTMIN RT_1], 8) = 0
[pid  2680] execve("/usr/bin/systemctl", ["systemctl", "start", "apache2"], 0x6289b39f52f0 /* 19 vars */ <unfinished ...>
[pid  2665] <... vfork resumed>)        = 2680
[pid  2665] rt_sigprocmask(SIG_SETMASK, [], ~[KILL STOP RTMIN RT_1], 8) = 0
[pid  2665] wait4(-1,  <unfinished ...>
[pid  2680] <... execve resumed>)       = 0
[pid  2680] brk(NULL)                   = 0x59cf7aa0b000
[pid  2680] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75f5e3483000
[pid  2680] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/glibc-hwcaps/x86-64-v3/libcap.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/glibc-hwcaps/x86-64-v3/", 0x7fff83d55140, 0) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/glibc-hwcaps/x86-64-v2/libcap.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/glibc-hwcaps/x86-64-v2/", 0x7fff83d55140, 0) = -1 ENOENT (No such file or directory)
--continues---
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

Code: Select all

[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libcap.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid  2680] openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=36499, ...}) = 0
[pid  2680] mmap(NULL, 36499, PROT_READ, MAP_PRIVATE, 3, 0) = 0x75f5e347a000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\201\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=51536, ...}) = 0
[pid  2680] mmap(NULL, 49224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e346d000
[pid  2680] mmap(0x75f5e3470000, 24576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x75f5e3470000
[pid  2680] mmap(0x75f5e3476000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x75f5e3476000
[pid  2680] mmap(0x75f5e3478000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x75f5e3478000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/liblz4.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/liblz4.so.1", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=137440, ...}) = 0
[pid  2680] mmap(NULL, 135264, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e344b000
[pid  2680] mmap(0x75f5e344e000, 110592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x75f5e344e000
[pid  2680] mmap(0x75f5e3469000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x75f5e3469000
[pid  2680] mmap(0x75f5e346b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x75f5e346b000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libselinux.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=174472, ...}) = 0
[pid  2680] mmap(NULL, 181960, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e341e000
[pid  2680] mmap(0x75f5e3424000, 118784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x75f5e3424000
[pid  2680] mmap(0x75f5e3441000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x75f5e3441000
[pid  2680] mmap(0x75f5e3447000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29000) = 0x75f5e3447000
[pid  2680] mmap(0x75f5e3449000, 5832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x75f5e3449000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/liblzma.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=202904, ...}) = 0
[pid  2680] mmap(NULL, 200728, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e33ec000
[pid  2680] mmap(0x75f5e33ef000, 139264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x75f5e33ef000
[pid  2680] mmap(0x75f5e3411000, 45056, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x75f5e3411000
[pid  2680] mmap(0x75f5e341c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x30000) = 0x75f5e341c000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libzstd.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libzstd.so.1", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=755864, ...}) = 0
[pid  2680] mmap(NULL, 757816, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e3332000
[pid  2680] mmap(0x75f5e3336000, 684032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x75f5e3336000
[pid  2680] mmap(0x75f5e33dd000, 53248, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xab000) = 0x75f5e33dd000
[pid  2680] mmap(0x75f5e33ea000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb7000) = 0x75f5e33ea000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=952616, ...}) = 0
[pid  2680] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75f5e3330000
[pid  2680] mmap(NULL, 950296, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e3247000
[pid  2680] mmap(0x75f5e3257000, 520192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x75f5e3257000
[pid  2680] mmap(0x75f5e32d6000, 360448, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8f000) = 0x75f5e32d6000
[pid  2680] mmap(0x75f5e332e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe7000) = 0x75f5e332e000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libblkid.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libblkid.so.1", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=236592, ...}) = 0
[pid  2680] mmap(NULL, 238520, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e320c000
[pid  2680] mmap(0x75f5e3213000, 147456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x75f5e3213000
[pid  2680] mmap(0x75f5e3237000, 36864, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2b000) = 0x75f5e3237000
[pid  2680] mmap(0x75f5e3240000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x33000) = 0x75f5e3240000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgcrypt.so.20", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=1340976, ...}) = 0
[pid  2680] mmap(NULL, 1340272, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e30c4000
[pid  2680] mmap(0x75f5e30d3000, 999424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x75f5e30d3000
[pid  2680] mmap(0x75f5e31c7000, 241664, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x103000) = 0x75f5e31c7000
[pid  2680] mmap(0x75f5e3202000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13e000) = 0x75f5e3202000
[pid  2680] mmap(0x75f5e320b000, 880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x75f5e320b000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libmount.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libmount.so.1", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=309960, ...}) = 0
[pid  2680] mmap(NULL, 311896, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e3077000
[pid  2680] mmap(0x75f5e3080000, 212992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x75f5e3080000
[pid  2680] mmap(0x75f5e30b4000, 53248, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3d000) = 0x75f5e30b4000
[pid  2680] mmap(0x75f5e30c1000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x49000) = 0x75f5e30c1000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libcrypto.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcrypto.so.3", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=5305304, ...}) = 0
[pid  2680] mmap(NULL, 5319632, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e2a00000
[pid  2680] mmap(0x75f5e2ab3000, 3354624, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb3000) = 0x75f5e2ab3000
[pid  2680] mmap(0x75f5e2de6000, 831488, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3e6000) = 0x75f5e2de6000
[pid  2680] mmap(0x75f5e2eb1000, 389120, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4b0000) = 0x75f5e2eb1000
[pid  2680] mmap(0x75f5e2f10000, 11216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x75f5e2f10000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\243\2\0\0\0\0\0"..., 832) = 832
[pid  2680] pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
[pid  2680] fstat(3, {st_mode=S_IFREG|0755, st_size=2125328, ...}) = 0
[pid  2680] pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
[pid  2680] mmap(NULL, 2170256, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e2600000
[pid  2680] mmap(0x75f5e2628000, 1605632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x75f5e2628000
[pid  2680] mmap(0x75f5e27b0000, 323584, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b0000) = 0x75f5e27b0000
[pid  2680] mmap(0x75f5e27ff000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1fe000) = 0x75f5e27ff000
[pid  2680] mmap(0x75f5e2805000, 52624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x75f5e2805000
[pid  2680] close(3)                    = 0
[pid  2680] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75f5e3075000
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=625344, ...}) = 0
[pid  2680] mmap(NULL, 627472, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e2fdb000
[pid  2680] mmap(0x75f5e2fdd000, 450560, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x75f5e2fdd000
[pid  2680] mmap(0x75f5e304b000, 163840, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x70000) = 0x75f5e304b000
[pid  2680] mmap(0x75f5e3073000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x97000) = 0x75f5e3073000
[pid  2680] close(3)                    = 0
[pid  2680] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libgpg-error.so.0", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2680] fstat(3, {st_mode=S_IFREG|0644, st_size=149760, ...}) = 0
[pid  2680] mmap(NULL, 147880, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x75f5e2fb6000
[pid  2680] mmap(0x75f5e2fba000, 90112, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x75f5e2fba000
[pid  2680] mmap(0x75f5e2fd0000, 36864, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x75f5e2fd0000
[pid  2680] mmap(0x75f5e2fd9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x75f5e2fd9000
[pid  2680] close(3)                    = 0
[pid  2680] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75f5e2fb4000
[pid  2680] mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x75f5e2fb1000
[pid  2680] arch_prctl(ARCH_SET_FS, 0x75f5e2fb18c0) = 0
[pid  2680] set_tid_address(0x75f5e2fb1b90) = 2680
[pid  2680] set_robust_list(0x75f5e2fb1ba0, 24) = 0
[pid  2680] rseq(0x75f5e2fb21e0, 0x20, 0, 0x53053053) = 0
[pid  2680] mprotect(0x75f5e27ff000, 16384, PROT_READ) = 0
{snipped for length}
[pid  2680] mprotect(0x75f5e34bb000, 8192, PROT_READ) = 0
[pid  2680] prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
[pid  2680] munmap(0x75f5e347a000, 36499) = 0
[pid  2680] getrandom("\x2a\xbd\xe6\x8c\x69\xb7\xc2\xd1", 8, GRND_NONBLOCK) = 8
[pid  2680] brk(NULL)                   = 0x59cf7aa0b000
[pid  2680] brk(0x59cf7aa2c000)         = 0x59cf7aa2c000
[pid  2680] statfs("/sys/fs/selinux", 0x7fff83d55ef0) = -1 ENOENT (No such file or directory)
[pid  2680] statfs("/selinux", 0x7fff83d55ef0) = -1 ENOENT (No such file or directory)
[pid  2680] openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3
[pid  2680] fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid  2680] read(3, "nodev\tsysfs\nnodev\ttmpfs\nnodev\tbd"..., 1024) = 400
[pid  2680] read(3, "", 1024)           = 0
[pid  2680] close(3)                    = 0
[pid  2680] access("/etc/selinux/config", F_OK) = -1 ENOENT (No such file or directory)
[pid  2680] prctl(PR_CAPBSET_READ, CAP_MAC_OVERRIDE) = 1
[pid  2680] prctl(PR_CAPBSET_READ, 0x30 /* CAP_??? */) = -1 EINVAL (Invalid argument)
[pid  2680] prctl(PR_CAPBSET_READ, CAP_CHECKPOINT_RESTORE) = 1
[pid  2680] prctl(PR_CAPBSET_READ, 0x2c /* CAP_??? */) = -1 EINVAL (Invalid argument)
[pid  2680] prctl(PR_CAPBSET_READ, 0x2a /* CAP_??? */) = -1 EINVAL (Invalid argument)
[pid  2680] prctl(PR_CAPBSET_READ, 0x29 /* CAP_??? */) = -1 EINVAL (Invalid argument)
[pid  2680] getpid()                    = 2680
[pid  2680] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=512*1024, rlim_max=512*1024}, NULL) = 0
[pid  2680] rt_sigaction(SIGBUS, {sa_handler=0x59cf631c0e90, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x75f5e2645330}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
[pid  2680] openat(AT_FDCWD, "/proc/", O_RDONLY|O_NOCTTY|O_CLOEXEC|O_PATH) = 3
[pid  2680] fstatfs(3, {f_type=PROC_SUPER_MAGIC, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={val=[0x18, 0]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_NOSUID|ST_NODEV|ST_NOEXEC|ST_RELATIME}) = 0
[pid  2680] close(3)                    = 0
[pid  2680] newfstatat(AT_FDCWD, "/proc/1/root", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid  2680] newfstatat(AT_FDCWD, "/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
[pid  2680] faccessat2(AT_FDCWD, "/run/systemd/system/", F_OK, AT_SYMLINK_NOFOLLOW) = 0
[pid  2680] geteuid()                   = 0
[pid  2680] getrandom("\x7d\x1f\xbf\x6a\x87\x34\xb3\x9f", 8, GRND_INSECURE) = 8
[pid  2680] futex(0x59cf632a4f00, FUTEX_WAKE_PRIVATE, 2147483647) = 0
[pid  2680] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
[pid  2680] prctl(PR_GET_NAME, "systemctl") = 0
[pid  2680] getrandom("\xf4\x26\x20\x4b\x1d\x21\x06\x76", 8, GRND_INSECURE) = 8
[pid  2680] bind(3, {sa_family=AF_UNIX, sun_path=@"7606211d4b2026f4/bus/systemctl/"}, 34) = 0
[pid  2680] getsockopt(3, SOL_SOCKET, SO_RCVBUF, [212992], [4]) = 0
[pid  2680] setsockopt(3, SOL_SOCKET, SO_RCVBUF, [8388608], 4) = 0
[pid  2680] getsockopt(3, SOL_SOCKET, SO_RCVBUF, [425984], [4]) = 0
[pid  2680] setsockopt(3, SOL_SOCKET, SO_RCVBUFFORCE, [8388608], 4) = 0
[pid  2680] getsockopt(3, SOL_SOCKET, SO_SNDBUF, [212992], [4]) = 0
[pid  2680] setsockopt(3, SOL_SOCKET, SO_SNDBUF, [8388608], 4) = 0
[pid  2680] getsockopt(3, SOL_SOCKET, SO_SNDBUF, [425984], [4]) = 0
[pid  2680] setsockopt(3, SOL_SOCKET, SO_SNDBUFFORCE, [8388608], 4) = 0
[pid  2680] connect(3, {sa_family=AF_UNIX, sun_path="/run/systemd/private"}, 23) = 0
[pid  2680] getsockopt(3, SOL_SOCKET, SO_PEERCRED, {pid=1, uid=0, gid=0}, [12]) = 0
[pid  2680] getsockopt(3, SOL_SOCKET, SO_PEERSEC, "unconfined", [64 => 10]) = 0
[pid  2680] getsockopt(3, SOL_SOCKET, SO_PEERGROUPS, 0x59cf7aa0c2f0, [256 => 0]) = 0
[pid  2680] getpeername(3, {sa_family=AF_UNIX, sun_path="/run/systemd/private"}, [127 => 23]) = 0
[pid  2680] fstat(3, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
[pid  2680] getsockopt(3, SOL_SOCKET, SO_ACCEPTCONN, [0], [4]) = 0
[pid  2680] getsockname(3, {sa_family=AF_UNIX, sun_path=@"7606211d4b2026f4/bus/systemctl/"}, [128 => 34]) = 0
[pid  2680] sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0AUTH EXTERNAL\r\nDATA\r\n", iov_len=22}, {iov_base="NEGOTIATE_UNIX_FD\r\n", iov_len=19}, {iov_base="BEGIN\r\n", iov_len=7}], msg_iovlen=3, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 48
[pid  2680] getsockopt(3, SOL_SOCKET, SO_PEERCRED, {pid=1, uid=0, gid=0}, [12]) = 0
[pid  2680] ioctl(0, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
[pid  2680] gettid()                    = 2680
[pid  2680] rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
[pid  2680] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLDstrace: Process 2681 attached
 <unfinished ...>
[pid  2681] set_robust_list(0x75f5e2fb1ba0, 24) = 0
[pid  2680] <... clone resumed>, child_tidptr=0x75f5e2fb1b90) = 2681
[pid  2681] getpid( <unfinished ...>
[pid  2680] rt_sigprocmask(SIG_SETMASK, [],  <unfinished ...>
[pid  2681] <... getpid resumed>)       = 2681
[pid  2680] <... rt_sigprocmask resumed>NULL, 8) = 0
[pid  2681] prctl(PR_SET_NAME, "(sd-askpwagent)"... <unfinished ...>
[pid  2680] geteuid( <unfinished ...>
[pid  2681] <... prctl resumed>)        = 0
[pid  2680] <... geteuid resumed>)      = 0
[pid  2681] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0},  <unfinished ...>
[pid  2680] getrandom( <unfinished ...>
[pid  2681] <... capget resumed>NULL)   = 0
[pid  2681] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=0},  <unfinished ...>
[pid  2680] <... getrandom resumed>"\xd6\xa4\x4b\x10\x78\x3d\x7a\x02\x46\x82\x07\x7d\x4a\x8a\x92\xaf", 16, GRND_INSECURE) = 16
[pid  2681] <... capget resumed>{effective=1<<CAP_CHOWN|1<<CAP_DAC_OVERRIDE|1<<CAP_DAC_READ_SEARCH|1<<CAP_FOWNER|1<<CAP_FSETID|1<<CAP_KILL|1<<CAP_SETGID|1<<CAP_SETUID|1<<CAP_SETPCAP|1<<CAP_LINUX_IMMUTABLE|1<<CAP_NET_BIND_SERVICE|1<<CAP_NET_BROADCAST|1<<CAP_NET_ADMIN|1<<CAP_NET_RAW|1<<CAP_IPC_LOCK|1<<CAP_IPC_OWNER|1<<CAP_SYS_MODULE|1<<CAP_SYS_RAWIO|1<<CAP_SYS_CHROOT|1<<CAP_SYS_PTRACE|1<<CAP_SYS_PACCT|1<<CAP_SYS_ADMIN|1<<CAP_SYS_BOOT|1<<CAP_SYS_NICE|1<<CAP_SYS_RESOURCE|1<<CAP_SYS_TIME|1<<CAP_SYS_TTY_CONFIG|1<<CAP_MKNOD|1<<CAP_LEASE|1<<CAP_AUDIT_WRITE|1<<CAP_AUDIT_CONTROL|1<<CAP_SETFCAP|1<<CAP_MAC_OVERRIDE|1<<CAP_MAC_ADMIN|1<<CAP_SYSLOG|1<<CAP_WAKE_ALARM|1<<CAP_BLOCK_SUSPEND|1<<CAP_AUDIT_READ|1<<CAP_PERFMON|1<<CAP_BPF|1<<CAP_CHECKPOINT_RESTORE, permitted=1<<CAP_CHOWN|1<<CAP_DAC_OVERRIDE|1<<CAP_DAC_READ_SEARCH|1<<CAP_FOWNER|1<<CAP_FSETID|1<<CAP_KILL|1<<CAP_SETGID|1<<CAP_SETUID|1<<CAP_SETPCAP|1<<CAP_LINUX_IMMUTABLE|1<<CAP_NET_BIND_SERVICE|1<<CAP_NET_BROADCAST|1<<CAP_NET_ADMIN|1<<CAP_NET_RAW|1<<CAP_IPC_LOCK|1<<CAP_IPC_OWNER|1<<CAP_SYS_MODULE|1<<CAP_SYS_RAWIO|1<<CAP_SYS_CHROOT|1<<CAP_SYS_PTRACE|1<<CAP_SYS_PACCT|1<<CAP_SYS_ADMIN|1<<CAP_SYS_BOOT|1<<CAP_SYS_NICE|1<<CAP_SYS_RESOURCE|1<<CAP_SYS_TIME|1<<CAP_SYS_TTY_CONFIG|1<<CAP_MKNOD|1<<CAP_LEASE|1<<CAP_AUDIT_WRITE|1<<CAP_AUDIT_CONTROL|1<<CAP_SETFCAP|1<<CAP_MAC_OVERRIDE|1<<CAP_MAC_ADMIN|1<<CAP_SYSLOG|1<<CAP_WAKE_ALARM|1<<CAP_BLOCK_SUSPEND|1<<CAP_AUDIT_READ|1<<CAP_PERFMON|1<<CAP_BPF|1<<CAP_CHECKPOINT_RESTORE, inheritable=0}) = 0
[pid  2681] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...>
[pid  2680] futex(0x59cf632a5960, FUTEX_WAKE_PRIVATE, 2147483647 <unfinished ...>
[pid  2681] <... mmap resumed>)         = 0x75f5e3482000
[pid  2680] <... futex resumed>)        = 0
[pid  2681] prctl(PR_SET_MM, PR_SET_MM_ARG_START, 0x75f5e3482000, 0, 0 <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... prctl resumed>)        = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="DATA\r\nOK 7ed9e496ba884d0a82e7f1c"..., iov_len=256}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 58
[pid  2681] prctl(PR_SET_MM, PR_SET_MM_ARG_END, 0x75f5e3482010, 0, 0 <unfinished ...>
[pid  2680] sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\4\1 \0\0\0\1\0\0\0\240\0\0\0\1\1o\0\31\0\0\0/org/fre"..., iov_len=176}, {iov_base="\17\0\0\0apache2.service\0\7\0\0\0replace\0", iov_len=32}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL <unfinished ...>
[pid  2681] <... prctl resumed>)        = 0
[pid  2681] prctl(PR_SET_PDEATHSIG, SIGTERM <unfinished ...>
[pid  2680] <... sendmsg resumed>)      = 208
[pid  2680] recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
[pid  2680] ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=24, tv_nsec=999212000}, NULL, 8 <unfinished ...>
[pid  2681] <... prctl resumed>)        = 0
[pid  2680] <... ppoll resumed>)        = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=24, tv_nsec=999211409})
[pid  2681] rt_sigaction(SIGHUP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2681] rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1S\3\0\0\1\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1035}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1035
[pid  2681] rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1\320\3\0\0\2\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] rt_sigaction(SIGILL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1160}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1160
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1@\0\0\0\3\0\0\0\231\0\0\0\1\1o\0\31\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1\0\0\0\0\0\0\0"..., iov_len=216}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 216
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1'\0\0\0\4\0\0\0007\0\0\0\5\1u\0\1\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\7\1s\0\30\0\0\0org.freedesktop.systemd1"..., iov_len=87}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 87
[pid  2681] rt_sigaction(SIGTRAP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\4\1\24\0\0\0\2\0\0\0\227\0\0\0\1\1o\0\31\0\0\0/org/fre"..., iov_len=168}, {iov_base="\17\0\0\0apache2.service\0", iov_len=20}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... sendmsg resumed>)      = 188
[pid  2681] rt_sigaction(SIGABRT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330}, NULL, 8) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] rt_sigaction(SIGBUS, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1S\3\0\0\5\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] rt_sigaction(SIGFPE, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1035}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1035
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] rt_sigaction(SIGUSR1, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1\320\3\0\0\6\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] rt_sigaction(SIGSEGV, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1160}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1160
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] rt_sigaction(SIGUSR2, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330}, NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1L\0\0\0\7\0\0\0\246\0\0\0\1\1o\0\31\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] rt_sigaction(SIGPIPE, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1\0\0\0\0\0\0\0"..., iov_len=236}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 236
[pid  2681] rt_sigaction(SIGALRM, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1S\3\0\0\10\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1035}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1035
[pid  2681] rt_sigaction(SIGSTKFLT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1\330\3\0\0\t\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2681] rt_sigaction(SIGCONT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1168}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1168
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] rt_sigaction(SIGTSTP, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1H\0\0\0\n\0\0\0\256\0\0\0\1\1o\0\"\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] rt_sigaction(SIGTTIN, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/job/26"..., iov_len=240}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 240
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2681] rt_sigaction(SIGTTOU, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\0015\0\0\0\v\0\0\0007\0\0\0\5\1u\0\2\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] rt_sigaction(SIGURG, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\7\1s\0\30\0\0\0org.freedesktop.systemd1"..., iov_len=101}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 101
[pid  2681] rt_sigaction(SIGXCPU, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\4\19\0\0\0\3\0\0\0\250\0\0\0\1\1o\0000\0\0\0/org/fre"..., iov_len=184}, {iov_base="\35\0\0\0org.freedesktop.systemd1.Uni"..., iov_len=57}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... sendmsg resumed>)      = 241
[pid  2681] rt_sigaction(SIGXFSZ, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330}, NULL, 8) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] rt_sigaction(SIGVTALRM, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\10\0\0\0\f\0\0\0007\0\0\0\5\1u\0\3\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2681] rt_sigaction(SIGPROF, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\7\1s\0\30\0\0\0org.freedesktop.systemd1"..., iov_len=56}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 56
[pid  2681] rt_sigaction(SIGWINCH, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2680] <... recvmsg resumed>{msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
[pid  2681] rt_sigaction(SIGIO, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330},  <unfinished ...>
[pid  2680] ppoll([{fd=3, events=POLLIN}], 1, NULL, NULL, 8 <unfinished ...>
[pid  2681] <... rt_sigaction resumed>NULL, 8) = 0
[pid  2681] rt_sigaction(SIGPWR, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330}, NULL, 8) = 0
[pid  2681] rt_sigaction(SIGSYS, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330}, NULL, 8) = 0
{snipped for length}
[pid  2681] rt_sigaction(SIGRT_30, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330}, NULL, 8) = 0
[pid  2681] rt_sigaction(SIGRT_31, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330}, NULL, 8) = 0
[pid  2681] rt_sigaction(SIGRT_32, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x75f5e2645330}, NULL, 8) = 0
[pid  2681] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid  2681] getppid()                   = 2680
[pid  2681] close_range(3, 2147483647, 0) = 0
[pid  2681] prlimit64(0, RLIMIT_NOFILE, NULL, {rlim_cur=512*1024, rlim_max=512*1024}) = 0
[pid  2681] openat(AT_FDCWD, "/proc/sys/fs/nr_open", O_RDONLY|O_CLOEXEC) = 3
[pid  2681] fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid  2681] read(3, "1048576\n", 1024)  = 8
[pid  2681] ioctl(3, TCGETS, 0x7fff83d55460) = -1 ENOTTY (Inappropriate ioctl for device)
[pid  2681] read(3, "", 1024)           = 0
[pid  2681] close(3)                    = 0
[pid  2681] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=512*1024}, NULL) = 0
[pid  2681] ioctl(1, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
[pid  2681] ioctl(2, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
[pid  2681] execve("/usr/bin/systemd-tty-ask-password-agent", ["/usr/bin/systemd-tty-ask-passwor"..., "--watch"], 0x7fff83d560b8 /* 19 vars */) = 0
[pid  2681] brk(NULL)                   = 0x56eac69aa000
[pid  2681] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7c89b33cc000
[pid  2681] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid  2681] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/glibc-hwcaps/x86-64-v3/libsystemd-shared-255.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid  2681] newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/glibc-hwcaps/x86-64-v3/", 0x7ffc49878050, 0) = -1 ENOENT (No such file or directory)
[pid  2681] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/glibc-hwcaps/x86-64-v2/libsystemd-shared-255.so", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid  2680] <... ppoll resumed>)        = 1 ([{fd=3, revents=POLLIN}])
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... openat resumed>)       = -1 ENOENT (No such file or directory)
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1L\0\0\0\r\0\0\0\246\0\0\0\1\1o\0\31\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] newfstatat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/glibc-hwcaps/x86-64-v2/",  <unfinished ...>
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1\0\0\0\0\0\0\0"..., iov_len=236}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 236
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1S\3\0\0\16\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... newfstatat resumed>0x7ffc49878050, 0) = -1 ENOENT (No such file or directory)
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libsystemd-shared-255.so", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1035}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1035
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1\320\3\0\0\17\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1160}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1160
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1K\0\0\0\20\0\0\0\242\0\0\0\1\1o\0\31\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1\0\0\0\0\0\0\0"..., iov_len=235}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 235
[pid  2680] sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\4\0013\0\0\0\4\0\0\0\250\0\0\0\1\1o\0000\0\0\0/org/fre"..., iov_len=184}, {iov_base=" \0\0\0org.freedesktop.systemd1.Ser"..., iov_len=51}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 235
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] <... openat resumed>)       = 3
[pid  2680] <... recvmsg resumed>{msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
[pid  2681] read(3,  <unfinished ...>
[pid  2680] ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=24, tv_nsec=999929000}, NULL, 8 <unfinished ...>
[pid  2681] <... read resumed>"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
[pid  2681] fstat(3, {st_mode=S_IFREG|0644, st_size=3750936, ...}) = 0
[pid  2681] mmap(NULL, 3761904, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7c89b3000000
[pid  2681] mmap(0x7c89b306a000, 2387968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6a000) = 0x7c89b306a000
[pid  2681] mmap(0x7c89b32b1000, 806912, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2b1000) = 0x7c89b32b1000
[pid  2681] mmap(0x7c89b3376000, 126976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x375000) = 0x7c89b3376000
[pid  2681] mmap(0x7c89b3395000, 5872, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7c89b3395000
[pid  2681] close(3 <unfinished ...>
[pid  2680] <... ppoll resumed>)        = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=24, tv_nsec=998861034})
[pid  2680] recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1S\3\0\0\21\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... close resumed>)        = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/systemd/libc.so.6", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1035}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1035
[pid  2681] <... openat resumed>)       = -1 ENOENT (No such file or directory)
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1\260\3\0\0\22\0\0\0\276\0\0\0\1\1o\0000\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... openat resumed>)       = 3
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] fstat(3,  <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/systemd1/unit/a"..., iov_len=1128}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 1128
[pid  2681] <... fstat resumed>{st_mode=S_IFREG|0644, st_size=36499, ...}) = 0
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] mmap(NULL, 36499, PROT_READ, MAP_PRIVATE, 3, 0 <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\22\0\0\0\23\0\0\0007\0\0\0\5\1u\0\4\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
[pid  2681] <... mmap resumed>)         = 0x7c89b33c3000
[pid  2680] recvmsg(3,  <unfinished ...>
[pid  2681] close(3 <unfinished ...>
[pid  2680] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\7\1s\0\30\0\0\0org.freedesktop.systemd1"..., iov_len=66}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 66
[pid  2681] <... close resumed>)        = 0
[pid  2680] ioctl(1, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
[pid  2680] ioctl(2, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
[pid  2680] ioctl(2, TCGETS, {c_iflag=ICRNL|IXON|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD, c_lflag=ISIG|ICANON|ECHO|ECHOE|ECHOK|IEXTEN|ECHOCTL|ECHOKE, ...}) = 0
[pid  2681] openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC <unfinished ...>
[pid  2680] writev(2, [{iov_base="\33[0;1;31m", iov_len=9}, {iov_base="Job for apache2.service failed b"..., iov_len=82}, {iov_base="\33[0m", iov_len=4}, {iov_base="\r\n", iov_len=2}], 4Job for apache2.service failed because the control process exited with error code.
 <unfinished ...>
[pid  2681] <... openat resumed>)       = 3
[pid  2680] <... writev resumed>)       = 97
[pid  2681] read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\243\2\0\0\0\0\0"..., 832) = 832
[pid  2680] writev(2, [{iov_base="\33[0;1;31m", iov_len=9}, {iov_base="See \"systemctl status apache2.se"..., iov_len=89}, {iov_base="\33[0m", iov_len=4}, {iov_base="\r\n", iov_len=2}], 4 <unfinished ...>
[pid  2681] pread64(3, See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
"\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
[pid  2680] <... writev resumed>)       = 104
[pid  2681] fstat(3,  <unfinished ...>
[pid  2680] close(3 <unfinished ...>
[pid  2681] <... fstat resumed>{st_mode=S_IFREG|0755, st_size=2125328, ...}) = 0
[pid  2680] <... close resumed>)        = 0
[pid  2681] pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
[pid  2680] kill(2681, SIGTERM <unfinished ...>
[pid  2681] mmap(NULL, 2170256, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7c89b2c00000
[pid  2680] <... kill resumed>)         = 0
[pid  2681] --- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=2680, si_uid=0} ---
[pid  2680] kill(2681, SIGCONT <unfinished ...>
[pid  2681] +++ killed by SIGTERM +++
[pid  2680] <... kill resumed>)         = 0
[pid  2680] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=2681, si_uid=0, si_status=SIGTERM, si_utime=0, si_stime=0} ---
[pid  2680] waitid(P_PID, 2681, {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=2681, si_uid=0, si_status=SIGTERM, si_utime=0, si_stime=0}, WEXITED, NULL) = 0
[pid  2680] exit_group(1)               = ?
[pid  2680] +++ exited with 1 +++
<... wait4 resumed>[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 2680
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=2680, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]})                 = 2680
wait4(-1, 0x7ffeb14dd3ec, WNOHANG, NULL) = -1 ECHILD (No child processes)
exit_group(1)                           = ?
+++ exited with 1 +++
User avatar
iconnor
Posts: 3356
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Lost config with distro and zm version upgrade

Post by iconnor »

apache has sevral mpms. I think the only one that works without serious work is mpm_prefork. So try a2enmod mpm_prefork
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

Thank you Mr C for taking the time to respond to this one.

Code: Select all

penguin@venus:~$ sudo a2enmod mpm_prefork
[sudo] password for penguin:
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Any other ideas I'm all ears. I have BTW in desperation, re-installed zoneminder. Your ppa is enabled. No errors nor warinings reported but still the same situation. I seem to have some reason why the installer doesn't set apache or maybe php up, but I have no way of knowing what is suppossed to be done. It's not like done by scripts it seems. I'll be happy to be corrected.
Edit:
Does it look as it should ?

Code: Select all

penguin@venus:~$ sudo apachectl -M
AH00534: apache2: Configuration error: No MPM loaded.
penguin@venus:~$ sudo apachectl -t -D DUMP_MODULES
AH00534: apache2: Configuration error: No MPM loaded.
penguin@venus:~$ sudo a2query -m
access_compat (enabled by maintainer script)
authz_user (enabled by maintainer script)
status (enabled by maintainer script)
rewrite (enabled by site administrator)
mime (enabled by maintainer script)
env (enabled by maintainer script)
expires (enabled by site administrator)
setenvif (enabled by maintainer script)
mpm_prefork (enabled by maintainer script)
cgi (enabled by site administrator)
authn_file (enabled by maintainer script)
auth_basic (enabled by maintainer script)
negotiation (enabled by maintainer script)
filter (enabled by maintainer script)
autoindex (enabled by maintainer script)
deflate (enabled by maintainer script)
dir (enabled by maintainer script)
alias (enabled by maintainer script)
authn_core (enabled by maintainer script)
headers (enabled by site administrator)
authz_host (enabled by maintainer script)
reqtimeout (enabled by maintainer script)
authz_core (enabled by maintainer script)
php8.1 (enabled by maintainer script)

penguin@venus:~$ which php
/usr/bin/php

penguin@venus:~$ ls /etc/php/
8.1  8.3
Perhaps the OS upgrade brought a newer php and I have to do something about it?

Edit 2:
a2dismod php8.1 followed by a2enmod php8.3 - no change. Still fails to start with the same code.
adam.robertson
Posts: 23
Joined: Tue Mar 25, 2025 2:19 pm

Re: Lost config with distro and zm version upgrade

Post by adam.robertson »

Can you post what your apache config file? Are you using the /zm path? I switched mine to root / folder level since my server is ONLY doing zoneminder. I can post my apache config if you want, which is currently working with 1.37 on Debian 12.
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

Hi there.
The apache config is completely virgin from what I see:

Code: Select all

/etc/apache2/apache2.conf
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#       /etc/apache2/
#       |-- apache2.conf
#       |       `--  ports.conf
#       |-- mods-enabled
#       |       |-- *.load
#       |       `-- *.conf
#       |-- conf-enabled
#       |       `-- *.conf
#       `-- sites-enabled
#               `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
#Mutex file:${APACHE_LOCK_DIR} default

#
# The directory where shm and other runtime files will be stored.
#

DefaultRuntimeDir ${APACHE_RUN_DIR}

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
#IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride None
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

#<Directory /srv/>
#       Options Indexes FollowSymLinks
#       AllowOverride None
#       Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
        Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
Now, I've copied the example config file given by zm into /etc/apache2/sites-available/zoneminder.conf and its contents are these:

Code: Select all

#
# PLEASE NOTE THAT THIS FILE IS INTENDED FOR GUIDANCE ONLY AND MAY NOT BE APPROPRIATE FOR YOUR DISTRIBUTION
#
# Sample configuration file for running ZoneMinder as name based virtual host
# Some values may need to manually adjusted to suit your setup
#
<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot "/usr/share/zoneminder/www"

    # Order matters. This alias must come first.
    Alias /zm/cache "/var/cache/zoneminder/cache"
    <Directory "/var/cache/zoneminder/cache">
        Options -Indexes +FollowSymLinks
        AllowOverride None
        <IfModule mod_authz_core.c>
           # Apache 2.4
           Require all granted
        </IfModule>
        <IfModule !mod_authz_core.c>
            # Apache 2.2
            Order deny,allow
            Allow from all
        </IfModule>
    </Directory>

    Alias /zm "/usr/share/zoneminder/www"
    <Directory "/usr/share/zoneminder/www">
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
        <IfModule mod_authz_core.c>
           # Apache 2.4
           Require all granted
        </IfModule>
        <IfModule !mod_authz_core.c>
            # Apache 2.2
            Order deny,allow
            Allow from all
        </IfModule>
    </Directory>

    # Remember to enable cgi mod (i.e. "a2enmod cgi").
    ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
    <Directory "/usr/lib/zoneminder/cgi-bin">
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        AllowOverride All
        <IfModule mod_authz_core.c>
           # Apache 2.4
           Require all granted
        </IfModule>
        <IfModule !mod_authz_core.c>
            # Apache 2.2
            Order deny,allow
            Allow from all
        </IfModule>
    </Directory>

    # For better visibility, the following directives have been migrated from the
    # default .htaccess files included with the CakePHP project.
    # Parameters not set here are inherited from the parent directive above.
    <Directory "/usr/share/zoneminder/www/api">
       RewriteEngine on
       RewriteRule ^$ app/webroot/ [L]
       RewriteRule (.*) app/webroot/$1 [L]
       RewriteBase /zm/api
    </Directory>

    <Directory "/usr/share/zoneminder/www/api/app">
       RewriteEngine on
       RewriteRule ^$ webroot/ [L]
       RewriteRule (.*) webroot/$1 [L]
       RewriteBase /zm/api
    </Directory>

    <Directory "/usr/share/zoneminder/www/api/app/webroot">
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]
        RewriteBase /zm/api
    </Directory>

    # Use the first option to have Apache logs written to the general log
    # directory, or the second to have them written to the regular Apache
    # directory (you may have to change the path to that used on your system)
    ErrorLog /var/log/zm/apache-error.log
    #ErrorLog /var/log/httpd/zm-error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel debug #warn

    # Use the first option to have Apache logs written to the general log
    # directory, or the second to have them written to the regular Apache
    # directory (you may have to change the path to that used on your system)
    CustomLog /var/log/zm/apache-access.log combined
    #CustomLog /var/log/httpd/zm-access.log combined

</VirtualHost>
So yes I'm trawling the internet for "other examples of zm web config" but mostly focused on "how to fix the apache error". Because a) I have disabled zm vhost and enabled the default from apache and still the same error; b) it might be zm is working otherwise, just the apache front end isn't. So very reluctant to reinstall OS completely. So yes your offer would be helpful please.
User avatar
iconnor
Posts: 3356
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Lost config with distro and zm version upgrade

Post by iconnor »

You can always go full nuclear and do sudo apt remove --purge apache2* libapache2*

Then sudo apt install apache2

You may need to actually move out of the way the contents of /etc/apache2 in between if it doesn't clean itself up entirely.

That should get a fresh, working apache2 install. Then you can go on to apt install zoneminder
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

Wonderful idea. On it.
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

purging was needed. Fresh apache now at least gets me to the apache default page. Them moved to reinistall zm. I can't get to zm but it at least it recognised a reinstallation. I'm going to get digging, it should be less "broken" at this point.
Mostly for my own reference:

Code: Select all

Selecting previously unselected package apache2-bin.
(Reading database ... 152403 files and directories currently installed.)
Preparing to unpack .../apache2-bin_2.4.58-1ubuntu8.6_amd64.deb ...
Unpacking apache2-bin (2.4.58-1ubuntu8.6) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.58-1ubuntu8.6_all.deb ...
Unpacking apache2-data (2.4.58-1ubuntu8.6) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../apache2-utils_2.4.58-1ubuntu8.6_amd64.deb ...
Unpacking apache2-utils (2.4.58-1ubuntu8.6) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.58-1ubuntu8.6_amd64.deb ...
Unpacking apache2 (2.4.58-1ubuntu8.6) ...
Setting up apache2-bin (2.4.58-1ubuntu8.6) ...
Setting up apache2-data (2.4.58-1ubuntu8.6) ...
Setting up apache2-utils (2.4.58-1ubuntu8.6) ...
Setting up apache2 (2.4.58-1ubuntu8.6) ...
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 → /usr/lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /usr/lib/systemd/system/apache-htcacheclean.service.
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for ufw (0.36.2-6) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
penguin@venus:~$ sudo apt reinstall zoneminder
zoneminder      zoneminder-dbg  zoneminder-doc
penguin@venus:~$ sudo apt reinstall zoneminder
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libavcodec58 libavformat58 libavutil56 libcodec2-1.0 libdav1d5 libjwt-gnutls0 libmfx1 libsrt1.4-gnutls
  libswresample3 libswscale5 libvpx7 libx264-163 mailcap
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
Need to get 4,605 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/iconnor/zoneminder-1.36/ubuntu noble/main amd64 zoneminder amd64 1.36.35-noble1 [4,605 kB]
Fetched 4,605 kB in 2s (2,097 kB/s)
(Reading database ... 153074 files and directories currently installed.)
Preparing to unpack .../zoneminder_1.36.35-noble1_amd64.deb ...
Unpacking zoneminder (1.36.35-noble1) over (1.36.35-noble1) ...
Setting up zoneminder (1.36.35-noble1) ...
chown: cannot dereference '/var/cache/zoneminder/skins_classic_js_jquery-ui-1.12.1_jquery-ui.structure.min-base-1639175790.css': No such file or directory
The cgi module is not enabled in apache2.  I am enabling it using a2enmod cgi.
apache2_invoke: Enable module cgi
detected systemd
Detected db service is mysql.service
Checking for db
Db exists.
Updating permissions for user zmuser@localhost

Initiating database upgrade to version 1.36.35 from version 1.36.35

Upgrading database to version 1.36.35

Database upgrade to version 1.36.35 successful.


Freshening configuration in database
Migratings passwords, if any...
Loading config from DB 227 entries
Saving config to DB 227 entries
Done Updating
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

I have a more informational error now, good news. Upon starting apache:

Code: Select all

Apr 24 16:57:25 venus apachectl[15634]: AH00526: Syntax error on line 64 of /etc/apache2/sites-enabled/zoneminder.conf:
Apr 24 16:57:25 venus apachectl[15634]: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
line 64 is:

Code: Select all

RewriteEngine on
Strange that I don't remember setting up zm in apache last time I installed it but my memory might be fuzzy about it.
So is it expected to go and grab the example from the zm installer and put it into apache, working out what modules it might need? Just trying to figure out what I need to do (with people's help).
I'll go and find which module I need to enable for RewriteEngine.
adam.robertson
Posts: 23
Joined: Tue Mar 25, 2025 2:19 pm

Re: Lost config with distro and zm version upgrade

Post by adam.robertson »

sudo a2enmod rewrite
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

thanks indeed following from https://zoneminder.readthedocs.io/en/la ... 2-04-jammy with

Code: Select all

a2enmod rewrite headers cgi

That probably answers my question but now just got another error, but it is looking a lot more positive. Thanks adam
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

Finally now apache starts without error. Last one was due to my enabling debug and leaving a the warn after a # thinking it would be parsed as comment from there on but seems not.
Apache is now started but can't get to zm yet. I'm digging in.
Edit:
Suspecting 000-default is getting in the way I think:

Code: Select all

penguin@venus:/etc/apache2$ sudo apachectl -S
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
         port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
         port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/zoneminder.conf:7)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: ENABLE_USR_LIB_CGI_BIN
User: name="www-data" id=33
Group: name="www-data" id=33
I'll see about disabling default. I don't think I had it eabled in the past.
cookiemonster
Posts: 64
Joined: Sat Aug 15, 2015 1:46 pm

Re: Lost config with distro and zm version upgrade

Post by cookiemonster »

Got to ZM !
Nearly there. I can finally get to ip:/zm but the thumbnail of the cameras is not showing anything, like when we used to have to enable cambozola or similar name. I'll start looking around to finish these bits.
Thanks for all the help. I'll set the thread as solved as soon as I get any remaining gremlins taken care of.
Post Reply