paapereira.xyz

Upgrading Seafile from 7.1.x to 8.0.x

The new 9.0 Seafile version is out. Time to upgrade. I’m currently running 8.0.16.

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

Before upgrading

Reading the release notes, this version needs python modules. I also upgraded pip

1sudo /usr/bin/python -m pip install --upgrade pip
2
3sudo /usr/bin/python -m pip install pycryptodome==3.12.0
4sudo /usr/bin/python -m pip install cffi==1.14.0

I had cffi 1.15 in my system, I had to downgrade:

1sudo pacman -U /var/cache/pacman/pkg/python-cffi-1.14.6-2-x86_64.pkg.tar.zst

ElasticSearch now needs to be installed and managed individually.

As I currently have the search functionality disabled I skipped this for now.

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_user -s /bin/sh
2
3cd /srv/seafile
4wget "https://download.seafile.com/d/xxxxxxx/files/?p=/pro/seafile-pro-server_9.0.3_x86-64_CentOS.tar.gz&dl=1" -O seafile-pro-server_9.0.3_x86-64_CentOS.tar.gz
5
6tar -xzf seafile-pro-server_*.gz
7
8cd seafile-pro-server-8.0.0/
9upgrade/upgrade_8.0_9.0.sh

To use the new golang file-server I add the use_go_fileserver option in seafile.conf:

1vi conf/seafile.conf
1[fileserver]
2use_go_fileserver = true

Starting the services

1sudo systemctl start seafile
2sudo systemctl start seahub

See how to start seahub not as a daemon to see errors in this post.

I had to do this to find out I had to downgrade cffi.

#Linux #Arch Linux #Seafile