Changes between Version 49 and Version 50 of wheezy-jessie-upgrade


Ignore:
Timestamp:
Mar 5, 2016, 5:11:39 PM (8 years ago)
Author:
Steve Revilak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • wheezy-jessie-upgrade

    v49 v50  
    3636
    3737Here's my list of servers to upgrade:
    38 
    39 == Exceptional Cases ==
    40 
    41 '''Zimmerman'''.  apt-get dist-upgrade proceeded to
    42 {{{
    43 Selecting previously unselected package dmeventd.
    44 Preparing to unpack .../dmeventd_2%3a1.02.90-2.2_amd64.deb ...
    45 Unpacking dmeventd (2:1.02.90-2.2) ...
    46 Setting up init-system-helpers (1.22) ...
    47 Setting up dmeventd (2:1.02.90-2.2) ...
    48 Failed to parse message: No such device or address
    49 }}}
    50 and then hung.  Unresponsive from ssh session I used for the upgrade; wouldn't accept new ssh connections.  We ended up killing zimmermann's kvm process, restarting, and continuing the upgrade from the console.
    51 
    52 Later error:
    53 {{{
    54 Setting up sks (1.1.5-3) ...
    55 debian-sks uid check: ok
    56 debian-sks homedir check: ok
    57 db5.3_upgrade: BDB0671 /var/lib/sks/DB/DB_CONFIG~: unrecognized file type
    58 db5.3_upgrade: DB->upgrade: /var/lib/sks/DB/DB_CONFIG~: Invalid argument
    59 dpkg: error processing package sks (--configure):
    60  subprocess installed post-installation script returned error exit status 1
    61 Setting up ca-certificates (20141019+deb8u1) ...
    62 }}}
    63 Removed the emacs backup file, then {{{dpkg --configure -a}}}.  Next error
    64 
    65 {{{
    66 0 zimmermann:~# dpkg --configure -a
    67 Setting up sks (1.1.5-3) ...
    68 debian-sks uid check: ok
    69 debian-sks homedir check: ok
    70 cp: error writing '/var/backups/sks/20160305-143824/DB/key': No space left on device
    71 cp: failed to extend '/var/backups/sks/20160305-143824/DB/key': No space left on device
    72 dpkg: error processing package sks (--configure):
    73  subprocess installed post-installation script returned error exit status 1
    74 Errors were encountered while processing:
    75  sks
    76 }}}
    77 
    78 This was harder to sort out
    79 {{{
    80 cd /var/lib/sks/DB
    81 db5.1_recover -v complained about an unrecognized file format
    82 db5.3_recover -v ran recovery successfully
    83 }}}
    84 /var/lib/sks/berkeley_db.active contained "5.1".  I changed this to
    85 "5.3", since the files seem to be readable by 5.3 rather than 5.1.
    86 
    87 After that, dpkg --configure -a succeeded.
    88 
    89 
    90 '''Stallman'''.  Convert postgres 9.1 -> 9.4
    91 {{{
    92 pg_dumpall --verbose > pg91.out
    93 
    94 # Verify roundcube databases not in 9.4
    95 psql -p 5433 --list
    96 
    97 # load dump into 9.4
    98 psql -p 5433 < pg91.out
    99 
    100 # check
    101 psql -p 5433 --list
    102 }}}
    103 
    104 Next, stop all postgres instances, and switch 9.4 from the alternate
    105 port to the main port.
    106 
    107 {{{
    108 systemctl stop postgresql@9.1-main.service
    109 systemctl stop postgresql@9.4-main.service
    110 }}}
    111 
    112 Set {{{port = 5432}}} in /etc/postgresql/9.4/main/postgresql.conf
    113 
    114 {{{
    115 systemctl start postgresql@9.4-main.service
    116 systemctl disable postgresql@9.1-main.service
    117 
    118 0 roundcube@stallman:~$ psql -U roundcube roundcube
    119 psql (9.4.6)
    120 }}}
    121 
    12238
    12339
     
    14258 * ~~pietri:wheezy (nat)~~ AWAITS REBOOT
    14359 * revueltas:wheezy (airtime)
    144  * robideau:squeeze
     60 * robideau:squeeze (steve)
    14561 * ~~sankara:wheezy (nat)~~
    14662 * ~~stallman:wheezy~~ (roundcube) (steve)
     
    224140negri:wheezy
    225141}}}
     142
     143
     144
     145== Exceptional Cases (aka `surprises') ==
     146
     147'''Zimmerman'''.  apt-get dist-upgrade proceeded to
     148{{{
     149Selecting previously unselected package dmeventd.
     150Preparing to unpack .../dmeventd_2%3a1.02.90-2.2_amd64.deb ...
     151Unpacking dmeventd (2:1.02.90-2.2) ...
     152Setting up init-system-helpers (1.22) ...
     153Setting up dmeventd (2:1.02.90-2.2) ...
     154Failed to parse message: No such device or address
     155}}}
     156and then hung.  Unresponsive from ssh session I used for the upgrade; wouldn't accept new ssh connections.  We ended up killing zimmermann's kvm process, restarting, and continuing the upgrade from the console.
     157
     158Later error:
     159{{{
     160Setting up sks (1.1.5-3) ...
     161debian-sks uid check: ok
     162debian-sks homedir check: ok
     163db5.3_upgrade: BDB0671 /var/lib/sks/DB/DB_CONFIG~: unrecognized file type
     164db5.3_upgrade: DB->upgrade: /var/lib/sks/DB/DB_CONFIG~: Invalid argument
     165dpkg: error processing package sks (--configure):
     166 subprocess installed post-installation script returned error exit status 1
     167Setting up ca-certificates (20141019+deb8u1) ...
     168}}}
     169Removed the emacs backup file, then {{{dpkg --configure -a}}}.  Next error
     170
     171{{{
     1720 zimmermann:~# dpkg --configure -a
     173Setting up sks (1.1.5-3) ...
     174debian-sks uid check: ok
     175debian-sks homedir check: ok
     176cp: error writing '/var/backups/sks/20160305-143824/DB/key': No space left on device
     177cp: failed to extend '/var/backups/sks/20160305-143824/DB/key': No space left on device
     178dpkg: error processing package sks (--configure):
     179 subprocess installed post-installation script returned error exit status 1
     180Errors were encountered while processing:
     181 sks
     182}}}
     183
     184This was harder to sort out
     185{{{
     186cd /var/lib/sks/DB
     187db5.1_recover -v complained about an unrecognized file format
     188db5.3_recover -v ran recovery successfully
     189}}}
     190/var/lib/sks/berkeley_db.active contained "5.1".  I changed this to
     191"5.3", since the files seem to be readable by 5.3 rather than 5.1.
     192
     193After that, dpkg --configure -a succeeded.
     194
     195
     196'''Stallman'''.  Convert postgres 9.1 -> 9.4
     197{{{
     198pg_dumpall --verbose > pg91.out
     199
     200# Verify roundcube databases not in 9.4
     201psql -p 5433 --list
     202
     203# load dump into 9.4
     204psql -p 5433 < pg91.out
     205
     206# check
     207psql -p 5433 --list
     208}}}
     209
     210Next, stop all postgres instances, and switch 9.4 from the alternate
     211port to the main port.
     212
     213{{{
     214systemctl stop postgresql@9.1-main.service
     215systemctl stop postgresql@9.4-main.service
     216}}}
     217
     218Set {{{port = 5432}}} in /etc/postgresql/9.4/main/postgresql.conf
     219
     220{{{
     221systemctl start postgresql@9.4-main.service
     222systemctl disable postgresql@9.1-main.service
     223
     2240 roundcube@stallman:~$ psql -U roundcube roundcube
     225psql (9.4.6)
     226}}}