upgrade Deb 9 to Deb 10

swaptoo

Verified User
Joined
May 2, 2016
Messages
9
Hi All,

I have a strange problem. i have upgraded my server yesterday. created thank god a Snapshot before upgrading...
It was just a simpel upgrade from deb 9 to 10.... i used the following commands:

cp /etc/apt/sources.list /etc/apt/sources.list.bak
cat >/etc/apt/sources.list <<EOF
deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org buster/updates main
EOF
apt update
apt upgrade
apt dist-upgrade
reboot
apt --purge autoremove
apt update; apt install wget gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules-5.28 libperl-dev libperl4-corelibs-perl libwww-perl libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \
libncurses5 libncurses5-dev libsystemd-dev bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl libnuma-dev libnuma1 ipset libjpeg-dev
cd /usr/local/directadmin/custombuild
./build exim
cd /usr/local/directadmin
./directadmin p
cd scripts
./update.sh
service directadmin restart
cd /usr/local/directadmin/custombuild
./build update; ./build all d
reboot

after this, Pure-FTPD failed to start and HTTPD failed to start.
Pure could not find the .pem certificate. but it was there, i deleted it rebuild, same issue...
Httpd failed with exit code 1. and in the logfile AH00016 config failed.

i did a strace on httpd. and found the following:

28856 openat(AT_FDCWD, "/etc/httpd/conf/ssl.crt/server.crt.combined", O_RDONLY) = 1552
28856 fstat(1552, {st_mode=S_IFREG|0644, st_size=11214, ...}) = 0
28856 read(1552, "-----BEGIN CERTIFICATE-----\nMIID"..., 4096) = 4096
28856 close(1552) = 0
28856 openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 1552
28856 fstat(1552, {st_mode=S_IFREG|0644, st_size=2949, ...}) = 0
28856 fstat(1552, {st_mode=S_IFREG|0644, st_size=2949, ...}) = 0
28856 read(1552, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\0\0\0\16\0\0\0\0"..., 4096) = 2949
28856 lseek(1552, -1855, SEEK_CUR) = 1094
28856 read(1552, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\0\0\0\16\0\0\0\0"..., 4096) = 1855
28856 close(1552) = 0
28856 getpid() = 28856
28856 write(10, "[Tue Aug 30 22:32:07.732143 2022"..., 209) = 209
28856 getpid() = 28856
28856 write(10, "[Tue Aug 30 22:32:07.732705 2022"..., 165) = 165
28856 write(2, "AH00016: Configuration Failed\n", 30) = 30
28856 select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=10000}) = 0 (Timeout)

I would say it has no issues in the combined cert,but fails on the localtime?

I did a reinstall of tzdata, checked the timezone, removed the combined cert recreated it. rebuiled apache...
No luck...

I hope that maybe someone got an idea?
 
Try building apache separately, maybe something failed but ./build all d skipped to the next install:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build apache
./build rewrite_confs

After that, try rebuilding Pure-FTPd.
 
i did that to, same issues, a rebuild of apache did the same. still issues.
 
Did you initially generate an SSL certificate for your services through DA? Try regenerating the certificate:

Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single `hostname` 4096

And rebuild.
 
yesterday i talked to a colleague, he told me could it be that SE linux ha become active. the ttroubles sound similar that he had in the past. Anyone got experience with that?
 
Back
Top