Project

General

Profile

Updated about 2 years ago by Jessie Lee

Debian 7 to 8

Update sources list

vim /etc/apt/sources.list
:%s/wheezy/jessie/g

Upgrade the system

Check for Necessary Disk Space

apt-get -o APT::Get::Trivial-Only=true dist-upgrade

Update the sources

apt-get update

Minimal Upgrade

 apt-get upgrade

Full Upgrade

apt-get dist-upgrade

After Upgrade tasks

Reconfigure Apache configuration files

  • Sites must now use the .conf extension
  • mv /etc/apache2/sites-available/example.com /etc/apache2/sites-available/example.com.conf for all
  • optionally run the following script as root to mv all vhosts at once.
    #!/bin/bash
    # script filename: apache-add-conf.sh
    # rename apache vhost conf files to *.conf
    
    APACHE=/etc/apache2
    AVAILABLE=$APACHE/sites-available
    ENABLED=$APACHE/sites-enabled
    
    for file in $ENABLED/*
    do
        host=$(basename $file)
        [[ $host =~ \.conf$ ]] || {
            (mv $AVAILABLE/$host $AVAILABLE/$host.conf) && (a2ensite $host.conf) && (a2dissite $host)
        }
    done
           
  • edit .conf files directory to add Require all granted as below
    <VirtualHost *:80>
      ...
      <Directory /path/to/public/website/>
         Require all granted
      </Directory>
      ...
    </VirtualHost>

Common problems

Backupninja rsync errors

PT ticket #14171
If rsync backupninja jobs fail after upgrade, apply this patch to /usr/share/backupninja/rsync

   set_dest

   info "Syncing $SECTION on $dest_path..." 
-  debug $nice $rsync ${rsync_options[@]} $filelist_flag $excludes $batch_option $orig $dest_path
+  command="$rsync ${rsync_options[@]} --delete-excluded $filelist_flag $excludes $batch_option $orig $dest_path" 
+  debug $nice su -c "$command" 
   set_pipefail
-  $nice su -c "$rsync ${rsync_options[@]} --delete-excluded $filelist_flag $excludes $batch_option $orig $dest_path" | tee -a $log
+  $nice su -c "$command" | tee -a $log

   check_rsync_exit_status $?
   restore_pipefail

sources:
https://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.en.html#network

Also available in: PDF HTML TXT

Go to top
Add picture from clipboard (Maximum size: 40 MB)