paapereira.xyz

Upgrading Seafile from 7.1.x to 8.0.x

The new 8.0.0 Seafile version is out. Time to upgrade. I’m currently running 7.1.14.

Don’t forget to read the release notes from Seafile.

Before upgrading

Reading the release notes, this version needs the libmysqlclient-dev (I’m using mariadb-libs) package and new python modules.

I just upgraded pip, installed the new python modules and upgraded others.

1sudo /usr/bin/python -m pip install --upgrade pip
2
3sudo pip3 install --timeout=3600 future mysqlclient
4
5sudo pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 \
6	sqlalchemy django-pylibmc django-simple-captcha python3-ldap

Upgrading

I started by stopping the services:

1sudo systemctl stop seahub
2sudo systemctl stop seafile

Then I downloaded the latest version (I use the pro version) and executed the upgrade script.

1sudo -u seafile -s /bin/sh
2
3cd /srv/seafile
4wget "https://download.seafile.com/d/xxxxxxx/files/?p=/pro/seafile-pro-server_8.0.0_x86-64_CentOS.tar.gz&dl=1" -O seafile-pro-server_8.0.0_x86-64_CentOS.tar.gz
5tar -xzf seafile-pro-server_*
6
7cd seafile-pro-server-8.0.0/
8upgrade/upgrade_7.1_8.0.sh

Starting the services

1sudo systemctl start seafile
2sudo systemctl start seahub

#Linux #Arch Linux #Seafile