Upgrade manual
- If you build seafile server from source, please read the Upgrading Seafile Server section on that page, instead of this one.
- After upgrading, you may need to clean if it doesn’t behave as expect.
- If you are running a cluster, please read upgrade a Seafile cluster.
Please check the for any special configuration or changes before/while upgrading.
Suppose you are using version 4.3.0 and like to upgrade to version 5.0.0. First download and extract the new version. You should have a directory layout similar to this:
Now upgrade to version 5.0.0.
Shutdown Seafile server if it’s running
./seahub.sh stop
./seafile.sh stop
# or via service
/etc/init.d/seafile-server stop
Check the upgrade scripts in seafile-server-5.0.0 directory.
cd haiwen/seafile-server-5.0.0
ls upgrade/upgrade_*
You will get a list of upgrade files:
...
upgrade/upgrade_4.0_4.1.sh
upgrade/upgrade_4.2_4.3.sh
upgrade/upgrade_4.3_4.4.sh
-
upgrade/upgrade_4.3_4.4.sh
upgrade/upgrade_4.4_5.0.sh
Start Seafile server
If the new version works fine, the old version can be removed
rm -rf seafile-server-4.3.0/
Suppose you are using version 5.0.0 and like to upgrade to version 5.1.0. First download and extract the new version. You should have a directory layout similar to this:
haiwen
-- seafile-server-5.0.0
-- seafile-server-5.1.0
-- ccnet
-- seafile-data
Now upgrade to version 5.1.0.
Shutdown Seafile server if it’s running
cd haiwen/seafile-server-5.0.0
./seahub.sh stop
./seafile.sh stop
/etc/init.d/seafile-server stop
Check the upgrade scripts in seafile-server-5.1.0 directory.
cd haiwen/seafile-server-5.1.0
ls upgrade/upgrade_*
Start from your current version, run the script(s one by one)
upgrade/upgrade_5.0_5.1.sh
Start Seafile server
cd haiwen/seafile-server-5.1.0/
./seafile.sh start
./seahub.sh start # or "./seahub.sh start-fastcgi" if you're using fastcgi
# or via service
/etc/init.d/seafile-server start
If the new version works, the old version can be removed
rm -rf seafile-server-5.0.0/
A maintenance upgrade is for example an upgrade from 5.1.2 to 5.1.3.
Shutdown Seafile server if it’s running
For this type of upgrade, you only need to update the symbolic links (for avatar and a few other folders).
A script to perform a minor upgrade is provided with Seafile server (for history reasons, the script is calledminor-upgrade.sh
):upgrade/minor-upgrade.sh
If the new version works, the old version can be removed