Changes between Version 11 and Version 12 of stretch-buster-upgrade


Ignore:
Timestamp:
Oct 31, 2019, 3:00:11 PM (6 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • stretch-buster-upgrade

    v11 v12  
    1 == Stretch to Buster Upgrade ==
     1= Stretch to Buster Upgrade =
    22
    3 Notes so far:
    43
    5  * Upgrade needsrestart first and set NEEDRESTART_SUSPEND=1 to avoid be prompted to restart services (they will all be restarted on reboot)
    6  * `dpkg: error processing archive /var/cache/apt/archives/needrestart_3.4-5_all.deb (--unpack): unable to create '/etc/apt/disabled.apt.conf.d/99needrestart.dpkg-new' (while processing './etc/apt/apt.conf.d/99needrestart'): No such file or directory`. I think I got this message because I set the environment variable `NEEDRESTART_SUSPEND=1` before upgrading needrestart. I fixed with:
     4Notes and issues are tracked via #15136
     5
     6== Upgrade ==
     7
     8These are the general steps if you are NOT upgrading a MOSH (see below for MOSH's), but please read this full page before starting!
     9
    710{{{
    8 mkdir -p /etc/apt/disabled.apt.conf.d/
     11rm /etc/apt/sources.list.d/*
     12rm /etc/apt/preferences.d/*
     13sed -i "s/jessie/stretch/" /etc/apt/sources.list
     14apt update
     15apt dist-upgrade
     16gpg --change-passphrase root@$(hostname).mayfirst.org
     17freepuppet-run
     18freepuppet-run # again
     19apt dist-upgrade # again
     20shutdown -h now # or shutdown -r now for physical hosts
    921}}}
    10 I should have fixed with unsetting the env variable and installing needrestart again
    11  * php curl packages seem to be removed on upgrade (7.0, 7.1 and 7.2), there seems to be some fundamental incompatibilities at play:
    12 {{{
    13 dpkg: dependency problems prevent configuration of php7.0-curl:
    14  php7.0-curl depends on php7.0-common (= 7.0.27-0+deb9u1); however:
    15   Version of php7.0-common on system is 7.0.33-0+deb9u5.
    16  php7.0-curl depends on libcurl3 (>= 7.18.0); however:
    17   Package libcurl3 is not installed.
    18  php7.3-common (7.3.4-2) breaks php7.0-curl (<< 7.0.33-1~) and is installed.
    19   Version of php7.0-curl to be configured is 7.0.27-0+deb9u1.
    20 }}}
    21 Are we going to have to force upgade everyone to php 7.3? I manually fixed on octavia my moving all php 7.0 pools to 7.3 and updatig apache by hand.
    22  * `doveconf: Warning: Obsolete setting in /etc/dovecot/conf.d/99-mfpl.conf:27: ssl_protocols has been replaced by ssl_min_protocol` (fixed via puppet)
    23  * `doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 13: ssl_key: Can't open file /etc/dovecot/private/dovecot.key: No such file or directory` (see [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867593 debian bug]) - fix with `ln -s /etc/dovecot/private/dovecot.pem /etc/dovecot/private/dovecot.key`
    24  * `Errors were encountered while processing: postfwd` but when I reran `apt install postfwd` it went through without error
    25  * After reboot postfwd was not started (and not enabled). Should be fixed in puppet.
    26  * `resourcehog` fails - resource hog expects the time output of `pidstat` to be a time stamp. The buster version displays as human readable time and requires -H to show as time stamp. The stretch version displays as time stamp and does not have the -H option - it throws an error if you pass it.
     22
     23== Upgrading a mosh ==
     24
     25Run: mf-dist-upgrade-mosh
     26
     27It will warn you about problems and try to run the entire upgrade with minimal intervention.
    2728
    2829== Prompted config files ==