Syntax error during Seafile Server 6.1.1 for Raspberry Pi setup

Hello everybody,

I’m setting up a cluster of PIs with Seafile nodes according to the manual https://manual.seafile.com/deploy_pro/deploy_in_a_cluster.html .

So I installed Python and Memcached on the PI which is supposed to be the Seafile Node. I followed this instructions to install Seafile: https://manual.seafile.com/deploy/using_mysql.html

But I cannot execute the scripts setup-seafile.sh neither setup-seafile-mysql.sh . For both bash scripts an syntax error is thrown:
setup-seafile-mysql.sh: 16: setup-seafile-mysql.sh: Syntax error: “(” unexpected
setup-seafile.sh: 18: setup-seafile.sh: Syntax error: “(” unexpected

I can’t seem to find that syntax error.

Does anybody know how to track down this issue?

Thanks in advance!

I’m not sure the cause of your error, but for a cluster I believe that you have to use the Pro Edition of Seafile. There is not a Pro Edition for the Pi, only the Community Edition AFAIK.

I actually overlooked the fact that this might be a pro feature only.

Nevertheless, I’d still like to figure out why I can’t get Seafile installed regardless of future configurations.

I don’t know exactly, but maybe some of these are missing (I used SQlite): python2.7 python-setuptools python-simplejson python-imaging sqlite3

These are the commands which I used for installing Python

sudo aptitude -y install python2.7 python-setuptools python-simplejson python-imaging sqlite3
sudo apt-get install python-dev

I resolved the issue by triggering the script using ./setup-seafile.sh instead of using the sh command. I guess that’s typical for the Debian distribution. I’m biased towards the use of Ubuntu so.

1 Like