Seafile Server 8.0.3 for Raspberry Pi is ready! 13.02.2021

You can get it from the Seafile download section.

:pushpin: Please remember:

  • Don’t forget to stop Seafile Server before the upgrade (i.e: service seafile-server stop or, another example: service seahub stop && service seafile stop)
  • Don’t forget to change the directory rights of Seafile after unpacking it (i.e: chown -R seafile:nogroup seafile-server-8.0.3 or, another example: sudo chown -R seafile:seafile seafile-server-8.0.3 )
  • Don’t forget to apply the upgrade script/s according your start release && with the properly user which in normal case should be seafile (i.e change to seafile user: su seafile -s /bin/bash or, another example: sudo su seafile)

Recommendations and clarifications

  • Install pymysql python modul python3 -m pip install PyMySQL if you hadn’t have.

  • Download the properly rpi version for your OS. There are: Debian Stretch, Buster or Ubuntu Bionic, Focal. These were compiled against his own native libraries inside linux containers.

  • Users who need to chose Debian Stretch, they must install Python3.6+ to run seafile. The native Python 3.5 is not enough. You can choose to download and compile Python3.6.10 by yourself or use pyenv to do it automatically. Here the suggestions on the forum and common pitfails while using pyenv.

:1st_place_medal: Seafile Server 8.0.3 for ARM 64 Arch will come soon by the hand of of @Gustl22

:eyes: We are still searching for ARM Arch volunteers. Let us a message in Seafile Forum

You can check Seafile release table to find the lifetime of each release and current supported OS.

Seafile Server ChangeLog here

Once again, thanks to the developers and Seafile Community.

have fun :blush:

9 Likes

What am I doing wrong? Upgrading from 7.1.5.

(Armbian 20.11 Focal with Linux 5.9.11-rockchip64)

Starting seafile server, please wait …
./seafile.sh: line 114: /seafile/seafile-server-8.0.3/seafile/bin/seafile-controller: No such file or directory
Failed to start seafile server

Its an ARM 64 board?

Yes I guess. The previous package is seafile-server-7.1.5-focal-arm64.tar.gz

@Howmann you have to wait a little :point_up_2: or try to build by yourself:

wget https://raw.githubusercontent.com/haiwen/seafile-rpi/master/build3.sh

chmod u+x build3.sh

./build3.sh 8.0.3

take a cup coffe and you will find the Seafile-Server package under built-seafile-server-pkgs

1 Like

Thank you for your answers! And sorry I didn’t notice.

1 Like

Hello :slight_smile:

I’ve just upgraded from 7.0.5 to 7.1.5 (on buster system) and it seems that everything is working fine.
So, I’ve tried to upgrade now from 7.1.5.to 8.0.3 but after pressing ENTER, I get this:

Updating seafile/seahub database ...

[INFO] You are using MySQL
[ERROR] Python pymysql module is not found

Failed to upgrade your database

Any idea how to solve this problem?

Thx for all the help :slight_smile:
LG, Jörg

SOLVED:

I had to do this:
sudo python3 -m pip install pymysql

now upgrade works :slight_smile:

@driftdoc yes, exactly I forgot to mention it and since the official manual doesn’t say anything about pymysql is very good that you reported it.

Here the whole upgrade logfile. In my case when I was upgrading to release 8.0.1. Maybe help others while googling.

seafile@hiperborea /media/sda/seafile/seafile-server-8.0.1/upgrade $ ./upgrade_7.1_8.0.sh

-------------------------------------------------------------
This script would upgrade your seafile server from 7.1 to 8.0
Press [ENTER] to contiune
-------------------------------------------------------------



Updating seafile/seahub database ...

[INFO] You are using MySQL
[ERROR] Python pymysql module is not found

Failed to upgrade your database



seafile@hiperborea /media/sda/seafile/seafile-server-8.0.1/upgrade $ python3 -m pip install PyMySQL

seafile@hiperborea /media/sda/seafile/seafile-server-8.0.1/upgrade $ ./upgrade_7.1_8.0.sh

-------------------------------------------------------------
This script would upgrade your seafile server from 7.1 to 8.0
Press [ENTER] to contiune
-------------------------------------------------------------



Updating seafile/seahub database ...

[INFO] You are using MySQL
[INFO] updating seahub database...
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.VirusFile' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.VirusFile' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.VirusFile' doesn't exist")
[WARNING] Failed to execute sql: (1146, "Table 'seahub-db.VirusFile' doesn't exist")
Done

migrating avatars ...

Done

updating /media/sda/seafile/seafile-server-latest symbolic link to /media/sda/seafile/seafile-server-8.0.1 ...

When I try to upgrade from 7.1.5 to seafile-server-8.0.3-buster-armv7.tar.gz on Ubuntu 18.04.5 LTS (GNU/Linux 4.14.180-178 armv7l), I get the following error

Starting seafile server, please wait …
/home/seafile/www/seafile-server-8.0.3/seafile/bin/seafile-controller: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.28’ not found (required by /home/seafile/www/seafile-server-8.0
.3/seafile/bin/seafile-controller)

Any ideas?

@N_Zilio why the heck you chose the buster package? You need BIonic, since your distro is Bionic (18.04.5 LTS).If you choose higher distro, your libs (like GLIBC) depencencies are not meet.

Ah yes, for some reason I thought I had to match the Debian version, rather than the Ubuntu one. Facepalm, sorry! Unfortunately, I now have another problem. When I try with seafile-server-8.0.3-bionic-armv7.tar.gz, it is seahub that has a problem. I get the error

NameError: name '_mysql' is not defined

I did install PyMySQL

I have the same problem on my odroid ubuntu 18.04 :
When i try a ./seahub.sh start or systemctl start seahub, i have an Error:Seahub failed to start.

If i try a /seahub.sh start-fastcgi, i receive :
version_info, _mysql.version_info, _mysql.file
NameError: name ‘_mysql’ is not defined
But pip3 list gives me :
asgiref (3.2.10)
asn1crypto (0.24.0)
certifi (2018.1.18)
chardet (3.0.4)
cryptography (2.1.4)
Django (3.0.8)
django-pylibmc (0.6.1)
django-ranged-response (0.2.0)
future (0.18.2)
idna (2.6)
Jinja2 (2.11.2)
keyring (10.6.0)
keyrings.alt (3.0)
MarkupSafe (1.1.1)
mysqlclient (2.0.3)
netifaces (0.10.4)
pip (9.0.1)
pyasn1 (0.4.8)
pycrypto (2.6.1)
pygobject (3.26.1)
pylibmc (1.6.1)
PyMySQL (1.0.2)
python-apt (1.6.5+ubuntu0.5)
python3-ldap (0.9.8.4)
pytz (2020.1)
pyxdg (0.25)
PyYAML (3.12)
requests (2.18.4)
SecretStorage (2.3.1)
setuptools (39.0.1)
six (1.11.0)
SQLAlchemy (1.3.18)
sqlparse (0.3.1)
ssh-import-id (5.7)
unattended-upgrades (0.1)
urllib3 (1.22)
wheel (0.30.0)

What can I do ?

While running the mysql setup script i get the following error:

What is the host of mysql server?
[ default “localhost” ]

What is the port of mysql server?
[ default “3306” ]

What is the password of the mysql root user?
[ root password ]

verifying password of user root …
verifying password of user root … done

Enter the name for mysql user of seafile. It would be created if not exists.
[ default “seafile” ]

Enter the password for mysql user “seafile”:
[ password for seafile ]

verifying password of user seafile …
Failed to connect to mysql server using user “seafile” and password “***”: Can’t connect to MySQL server on ‘127.0.0.1’ ([Errno 111] Connection refused)

Enter the name for mysql user of seafile. It would be created if not exists.
[ default “seafile” ]

I already tried to create the user seafile in my mariadb, but I still get the error.

@Gustl22 had released the x64 ARM packages on Github! Thank you!!

Ringing @Howmann :wave:

2 Likes

no idea ?

It is working fine after upgrade. As other users I am not sure how to set the ocm id for each servers.
I am willing to participate as a volunteer to the arm64v8, as long as my limited time allows it😊

@N_Zilio have you installed the release 8 depencencies, like exposed in the manual. Try that first.

@fret this is an well knwon issue with mysql when you use sockets or you don’t speficied passwords. I had myself that issue at the beginning. Here helps google.

@Howmann great, we will involve you. You can review the code, in your spare time or check how to improve it.

What do you mean here: “ocm” id for each servers?