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.
Seafile Server 8.0.3 for ARM 64 Arch will come soon by the hand of of @Gustl22
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.
(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
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
@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)
@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
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.
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😊
@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.