Skip to content

Migrating From Debian 8 to Debian 9

Aaron D Borden edited this page Sep 28, 2019 · 4 revisions

It is possible to upgrade from Jessie to Stretch in place. The approach is straightforward and not nearly as disruptive as the switch from Debian 7 to Debian 8. Summary:

  • Prepare by backing up important data.
  • Upgrade the server in place. I used instructions here.
  • Run the sovereign playbook to install additional, upgraded packages and update configurations reset by the upgrade.

Summary of changes going to Stretch

Upgrades!

  • Owncloud 10.2
  • Roundcube 1.3.9
  • Selfoss 2.17
  • Z-push 2.5.1

Also some notes for under the hood.

  • Upgrade to tomcat8 for mail search
  • Upgrade to php7 and drop all dependencies on php5

MySQL is no longer required. The server can be run on postgres and sqlite.

Upgrade preparation

I had to make no special preparations for the upgrade. I was coming from Roundcube 1.2.4 and Owncloud 9.x (last stable release supported on jessie), and database migrations were handled by those packages after install.

Make backups.

Upgrade details

You will temporarily break some configurations during the upgrade, so I recommend stopping services until you are done: apache2, postfix, dovecot, openvpn.

During the upgrade, some package installs will ask if you want to overwrite configurations with the package maintainer's version or keep your modified version. Choose the package maintainer's version. You will use sovereign to fix configuration files after the upgrade.

It should not be necessary to reboot if you are not upgrading the kernel. Upgrade, purge removed packages per instructions, and rerun your sovereign playbook.

Cleanup

Check /etc/apache2/mods-enabled. Because php5 was configured for use, the php7 package did not enable it on Apache. I had to make this switch by hand.

You may also need to restart apache2 after running the roles that add php7 extensions so that they are loaded. Specific example: roundcube and php7.0-mbstring.

You may need to remove php5 manually using apt.

You may need to remove /etc/logrotate.d/z-push as the package installs /etc/logrotate.d/z-push.lr along-side of it.

With owncloud, you will go through its normal upgrade process the first time you hit its landing page.

With roundcube and the web client, I had to go to settings and enable view of several folders the first time I logged in.

For solr (mail search), update the permissions on /decrypted/solr e.g. chown -R tomcat8:tomcat8 /decrypted/solr.