Hi, I have been running debian stretch on vultr vps for quite sometime now. It was suggested before by you good folks to update to latest debian OS. In that case what are the steps that needed to be taken. I have about 4 commercial sites and could not even cover the cost of the VPS. Hence, please do not suggest me to use the migration kit. As you could have figured out this is a standalone server (no Master Slave). I will be grateful to you if you provide me with the steps. Thank you in anticipation.
Upgrading Debian ISPConfig servers: https://www.howtoforge.com/update-the-ispconfig-perfect-server-from-debian-10-to-debian-11/ The Migration Toolkit is used to migrate servers, it is not used for upgrading the OS of a server anyway.
I never knew that such a thing exists. Thanks till. However I am struck with very old debian. Does the guide still applies. Code: $ uname -a Linux server1 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux EDIT: i figured out the quickest and fastest route. change the sources.list from stretch to buster and did the update in batches. Only problem is it could not upgrade opendkim. So i remove it and continued the upgrade. Now trying to install opendkim and i get the same erorr. Code: apt install opendkim Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libmilter1.0.1 Suggested packages: unbound The following NEW packages will be installed: libmilter1.0.1 opendkim 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/439 kB of archives. After this operation, 725 kB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package libmilter1.0.1:amd 64. (Reading database ... 74202 files and directories currentl y installed.) Preparing to unpack .../libmilter1.0.1_8.15.2-14~deb10u1_a md64.deb ... Unpacking libmilter1.0.1:amd64 (8.15.2-14~deb10u1) ... Selecting previously unselected package opendkim. Preparing to unpack .../opendkim_2.11.0~alpha-12_amd64.deb ... Unpacking opendkim (2.11.0~alpha-12) ... Setting up libmilter1.0.1:amd64 (8.15.2-14~deb10u1) ... Setting up opendkim (2.11.0~alpha-12) ... [opendkim.conf:1] Line references path below legacy direct ory /var/run/, updating /var/run/opendkim → /run/opendkim; please update the tmpfiles.d/ drop-in file accordingly. Job for opendkim.service failed because the control proces s exited with error code. See "systemctl status opendkim.service" and "journalctl -x e" for details. invoke-rc.d: initscript opendkim, action "start" failed. ● opendkim.service - OpenDKIM DomainKeys Identified Mail ( DKIM) Milter Loaded: loaded (/lib/systemd/system/opendkim.service; e nabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) s ince Fri 2022-07-29 22:47:42 IST; 11ms ago Docs: man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html Process: 4970 ExecStart=/usr/sbin/opendkim -x /etc/opend kim.conf (code=exited, status=78) Jul 29 22:47:42 server1 systemd[1]: opendkim.service: Cont rol process exited, code=exited, status=78/CONFIG Jul 29 22:47:42 server1 systemd[1]: opendkim.service: Fail ed with result 'exit-code'. Jul 29 22:47:42 server1 systemd[1]: Failed to start OpenDK IM DomainKeys Identified Mail (DKIM) Milter. dpkg: error processing package opendkim (--configure): installed opendkim package post-installation script subpr ocess returned error exit status 1 Processing triggers for systemd (241-7~deb10u8) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+deb10u1) ... Errors were encountered while processing: opendkim E: Sub-process /usr/bin/dpkg returned an error code (1) could anyone advise how to restore the dkim
That's the kernel version, not the Debian version. You were on Debian 9. What happens when you run Code: systemctl restart opendkim ? and what is the status after that? Code: systemctl status opendkim
dang, i have to hit myself in the head. why i didn't know that first i installed opendkim again Code: $ systemctl restart opendkim Code: $ systemctl status opendkim opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2022-07-30 04:39:02 IST; 11s ago Docs: man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html Process: 29075 ExecStart=/usr/sbin/opendkim -x /etc/opendkim.conf (code=exited, status=0/SUCCESS) Main PID: 29076 (opendkim) lines 1-12...skipping... s 1-2 ● opendkim Loaded: ines 1-2...skipping... ● opendkim.service - OpenDKIM DomainKeys Identified Mail ( Loaded: loaded (/lib/systemd/system/opendkim.service; e Active: active (running) since Sat 2022-07-30 04:39:02 Docs: man:opendkim(8) man:opendkim.conf(5) man:opendkim-genkey(8) man:opendkim-genzone(8) man:opendkim-testadsp(8) man:opendkim-testkey http://www.opendkim.org/docs.html Process: 29075 ExecStart=/usr/sbin/opendkim -x /etc/open Main PID: 29076 (opendkim) Tasks: 6 (limit: 1166) Memory: 1.9M CGroup: /system.slice/opendkim.service └─29076 /usr/sbin/opendkim -x /etc/opendkim.con Jul 30 04:39:02 server1 systemd[1]: Starting OpenDKIM Doma Jul 30 04:39:02 server1 systemd[1]: opendkim.service: Can' Jul 30 04:39:02 server1 systemd[1]: Started OpenDKIM Domai Jul 30 04:39:02 server1 opendkim[29076]: OpenDKIM Filter v ~ Bad news however is in between i force updated ispconfig and messed up while installing SSL/Letsencrypt. I will come to that later. Meanwhile, Thanks mate for your helpful answer.
Upgrading Debian GNU/Linux should be done following the Debian Release Notes instructions. https://www.debian.org/releases/oldstable/releasenotes https://www.debian.org/releases/bullseye/releasenotes The ISPConfig parts of the upgrade are described in the link @till posted in #2.
In my humble opinion Debian dropped the ball... badly. I tried MANY, MANY times to upgrade from 9 to 11 and always failed. In the end I just built a new Debian 11 server (with the ISPConfig script tool) and rsynced www and vmail to new server. rsync -a /var/vmail/ [email protected]:/var/vmail/ rsync -a /var/www/ [email protected]:/var/www/ After that all you really need is to clone the ispconfig DB to new server. After you shutdown the old server and switch IP's run dpkg-reconfigure postfix on the new server. (WWW folder permissions also need /etc/shadow and /etc/group files from the old server. webX and clientX) I wonder if ISPconfig | Tools | resync would re-create the users/groups in Linux? (If you are using SSL on your sites/services you need to check/renew Letsencrypt.) Lastly remember to run ispconfig_update.sh --force. Works fine. There are some changes that you need to check. PHP and Rspam configs come to mind.
And you did upgrade first 9 to 10, and then 10 to 11? I agree it might be easier to install a new Debian 11 and copy over data from old system instead of doing two dist-upgrades.
Trust me. I tried everything I could think of. The big problem was that there were so many upgrade "leaps" with different services like PHP and new services like rspamd. Upgrading many servers from 9 to 10 and then to 11 and then figuring out why they don't work would take years...