HowTo: Update Seafile Server for generic Linux to version 7.1.5 64bit

Seafile Server is an open source alternative to public cloud storage providers like Dropbox, Microsoft OneDrive, Apple iCloud, Google Drive and Citrix Sharefile. It works on free Linux Distributions like Debian and gives you the freedom to use the comfort of a modern synchronization client, the simplicity of a modern WebGUI, completed with the knowledge where your data is and who can access it.

Seafile Server for generic Linux 7.1.5 64bit

If you are searching for the update guide for Seafile 6.x to 7.0.x, please find the old article below. Thank you!

Changelog

  • 01.11.2020: Post updated for Seafile Server 7.1.5
  • 04.05.2020: Post updated for Seafile Server 7.1.3 and archived previous guide below, as it’s still relevant, if you want to upgrade from 6.x to 7.1.x
  • 24.12.2019: Post update for Seafile Server 7.0.5
    Reworked WordPress link structure, to point all update guides to a new static URL.


Since 22.09.2020 the fifth maintenance release version 7.1.5 is public available. Please see the official changelog:
https://download.seafile.com/published/seafile-manual/changelog/server-changelog.md

My Debian 10 GNU/Linux virtual machine:

  • Debian GNU/Linux 10.5 (buster) amd64
  • Apache 2.4 web server

Instructions

  1. You have to install new dependencies, due to the transition from Python 2 to Python 3, the following is for Debian 10 and Seafile Server community edition.
  2. Switch to the install path of your Seafile installation:
  3. Make yourself familiar with your folder layout structure. For me it’s organized in /opt/seafile:
  4. Download the latest version:
  5. Unpack the archive:
  6. The directory listing should look similar to this example:
  7. Stop the services before the update.
  8. List the available update scripts:
  9. Decide whether you have to perform a major upgrade (7.0.x to 7.1.x) or a minor upgrade (7.1.x to 7.1.x):
    1. The update from 7.0.x to 7.1.x is a major version upgrade, so we have to use the upgrade_7.0_7.1.sh script:
    2. The update from 7.1.x to 7.1.5 is a minor version upgrade, so we have to use the minor-upgrade.sh script:

       
  10. Revise the file system permissions:
  11. Clear the Seahub cache:
  12. Before we can start Seafile server again, we have to check the memchached configuration for seahub:
  13. Start the services:

Thank you for reading my blog and I hope I could help someone out there!

Source

https://download.seafile.com/published/seafile-manual/upgrade/upgrade.md
https://download.seafile.com/published/seafile-manual/upgrade/upgrade_notes_for_7.1.x.md


Archive: Update Seafile Server for generic Linux to version 7.0.5 64bit

Since 23.09.2019 the fifth maintenance release version 7.0.5 is public available.

My Debian 9 GNU/Linux virtual machine:

  • Debian GNU/Linux 9.11 (stretch) amd64
  • Apache 2.4 web server
  1. Switch to the install path of your Seafile installation:
  2. Make yourself familiar with your folder layout structure. For me it’s organized in /opt/seafile:

    1. Download the latest version:
  3. Unpack the archive:
  4. The directory listing should look similar to this example:
  5. Stop the services before the update.
  6. List the available update scripts:
  7. The update from 6.3.x to 7.0.x is a major version update, so have to use the upgrade_6.3_7.0.sh script:

    Caution: There is a bug in the update script upgrade_6.3_7.0.sh. It doesn’t distinguish between the community and pro version anymore, hence the errors above. These errors are no problem, if you use the community edition, because they don’t account to that version.
    Source: https://forum.seafile.com/t/got-mysql-warnings-when-upgraded-from-6-3-to-7-0/9122/4
  8. Revise the file system permissions:
  9. Before we can start seafile again, we have to check the init script and the apache.conf:

    From 6.3, With this upgrade, the fast-cgi mode is no longer supported. You need to config Seafile behind Nginx/Apache in WSGI mode. Two steps are needed to switch to WSGI mode:

    1. Change the config file of Nginx/Apache.
    2. Restart Seahub with ./seahub.sh start instead of ./seahub.sh start-fastcgi
  10. First let’s check the init script:
  11. And second edit the corresponding apache.conf:
  12. Reload the apache.conf:
  13. Start the services:

Thank you for reading my blog and I hope I could help someone out there!

Source: http://manual.seafile.com/deploy/upgrade.html

Author: Marco

Marco is an IT-System administrator and IT-Consultant with 10+ years experience. He is specialized in the delivery of virtual Apps and Desktops with Citrix solutions. In 2017 he has been awarded Citrix Technology Advocate by Citrix for his community work (#CTA). His second core area is availability & performance monitoring with Zabbix, a leading open-source solution. His employer is the German IT-Company ANAXCO, which is developing a Transport Management Software (TMS) based on Microsoft Dynamics AX. More about Marco

One thought on “HowTo: Update Seafile Server for generic Linux to version 7.1.5 64bit”

  1. Hello,

    Thank you for your blog. It helps me a lot !!!
    I was blocked into my migration from CE 7.05 to 7.1 and thanks to your 2 first lines about python solve my problem.
    The memchached configuration for seahub was already with the good value for me.
    Now I’ve to follow to migrate to the professional version.
    Thanks for your share

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.