Create Real Time Backup Server tutorial Debian 10.4 seafile-pro-server_7.1.5_x86-64_Ubuntu

At the moment I try to set up two VM based on Debian 10.4 headless minimal installation.

One virtual machine is called seafile-master the other one seafile-slave.

Seafile will be hosted by gunicorn, no intermediate reverse proxy etc. for the sake of creating a tutorial.

I downloaded seafile-pro-server_7.1.5_x86-64_Ubuntu.tar.gz from https://customer.seafile.com/downloads/

Using mariadb on both vm with replication (that part works like a charm). There is one mariadb on each vm (localhost root access only).

But there are several problems:

  • ImportError: cannot import name ‘CaptchaField’ from ‘captcha.fields’ (No matter how I install captcha, apt or pip3 or by pip3 into a venv)

  • When Seafile replication runs, seaf-backup-cmd.sh status tells me that nothing is synchronized at all (zero) but mariadb replication works (even after several hours no Seafile sync).

  • Countless python issues (package versions are sometimes mutual exclusive, pillow for an example), even permission issues with the seafile user that runs seahub.sh as a systemd service when installed like tutorials show.

Problem 1: I miss the list of apt-get packages and pip3 packages that are needed to make it run.

Expected: A working set of commands for apt-get and pip3

Hint: Official documentation failed: https://download.seafile.com/published/seafile-manual/upgrade/upgrade_notes_for_7.1.x.md

Further problems will be discussed later.

Thanks for participating!

->pip3 list | grep -i cap
django-simple-captcha 0.5.6

=> Try pip3 install django-simple-captcha

Thanks germeier for your quick reply, here is the outcome

pip3 install django-simple-captcha

Requirement already satisfied: django-simple-captcha in /usr/local/lib/python3.7/dist-packages (0.5.12)
Requirement already satisfied: Pillow!=5.1.0,>=2.2.2 in /usr/local/lib/python3.7/dist-packages (from django-simple-captcha) (7.2.0)
Requirement already satisfied: django-ranged-response==0.2.0 in /usr/local/lib/python3.7/dist-packages (from django-simple-captcha) (0.2.0)
Requirement already satisfied: six>=1.2.0 in /usr/lib/python3/dist-packages (from django-simple-captcha) (1.12.0)
Requirement already satisfied: Django>=1.8 in /usr/local/lib/python3.7/dist-packages (from django-simple-captcha) (3.0.8)
Requirement already satisfied: asgiref~=3.2 in /usr/local/lib/python3.7/dist-packages (from Django>=1.8->django-simple-captcha) (3.2.10)
Requirement already satisfied: pytz in /usr/local/lib/python3.7/dist-packages (from Django>=1.8->django-simple-captcha) (2020.1)
Requirement already satisfied: sqlparse>=0.2.2 in /usr/local/lib/python3.7/dist-packages (from Django>=1.8->django-simple-captcha) (0.3.1)

On my Ubuntu 20.04 Server running Seafile 7.1.5 there is also installed:

->dpkg --list | grep -i captcha
ii  python3-django-captcha                0.5.6-2                             all          Django Simple Captcha Django application

At the moment I have no further idea what might be missing on your system.

My output is:
ii python3-django-captcha 0.5.6-1

Here is the list of packages on the system (resulted from last installation try)
I hope it will not scare off readers :slight_smile:

############################################################################
apt list --installed | grep python // Python related packages only
############################################################################

dh-python/stable,now 3.20190308 all [installed,automatic]
libpython-stdlib/stable,now 2.7.16-1 amd64 [installed,automatic]
libpython2-stdlib/stable,now 2.7.16-1 amd64 [installed,automatic]
libpython2.7-minimal/stable,now 2.7.16-2+deb10u1 amd64 [installed,automatic]
libpython2.7-stdlib/stable,now 2.7.16-2+deb10u1 amd64 [installed,automatic]
libpython3-dev/stable,now 3.7.3-1 amd64 [installed,automatic]
libpython3-stdlib/stable,now 3.7.3-1 amd64 [installed,automatic]
libpython3.7-dev/stable,now 3.7.3-2+deb10u1 amd64 [installed,automatic]
libpython3.7-minimal/stable,now 3.7.3-2+deb10u1 amd64 [installed,automatic]
libpython3.7-stdlib/stable,now 3.7.3-2+deb10u1 amd64 [installed,automatic]
libpython3.7/stable,now 3.7.3-2+deb10u1 amd64 [installed,automatic]
python-apt-common/stable,stable,now 1.8.4.1 all [installed,automatic]
python-asn1crypto/stable,now 0.24.0-1 all [installed,automatic]
python-cffi-backend/stable,now 1.12.2-1 amd64 [installed,automatic]
python-cryptography/stable,now 2.6.1-3+deb10u2 amd64 [installed,automatic]
python-django-common/stable,now 1:1.11.29-1~deb10u1 all [installed,automatic]
python-enum34/stable,now 1.1.6-2 all [installed,automatic]
python-idna/stable,now 2.6-1 all [installed,automatic]
python-ipaddress/stable,now 1.0.17-1 all [installed,automatic]
python-ldap/stable,now 3.1.0-2 amd64 [installed]
python-minimal/stable,now 2.7.16-1 amd64 [installed]
python-mysqldb/stable,now 1.3.10-2 amd64 [installed]
python-openssl/stable,now 19.0.0-1 all [installed,automatic]
python-pip-whl/stable,now 18.1-5 all [installed,automatic]
python-pkg-resources/stable,now 40.8.0-1 all [installed,automatic]
python-pyasn1-modules/stable,now 0.2.1-0.2 all [installed,automatic]
python-pyasn1/stable,now 0.4.2-3 all [installed,automatic]
python-setuptools/stable,now 40.8.0-1 all [installed]
python-six/stable,now 1.12.0-1 all [installed,automatic]
python-urllib3/stable,now 1.24.1-1 all [installed]
python2-minimal/stable,now 2.7.16-1 amd64 [installed,automatic]
python2.7-minimal/stable,now 2.7.16-2+deb10u1 amd64 [installed,automatic]
python2.7/stable,now 2.7.16-2+deb10u1 amd64 [installed]
python2/stable,now 2.7.16-1 amd64 [installed,automatic]
python3-apt/stable,stable,now 1.8.4.1 amd64 [installed,automatic]
python3-asn1crypto/stable,now 0.24.0-1 all [installed,automatic]
python3-certifi/stable,now 2018.8.24-1 all [installed,automatic]
python3-cffi-backend/stable,now 1.12.2-1 amd64 [installed,automatic]
python3-chardet/stable,now 3.0.4-3 all [installed,automatic]
python3-crypto/stable,now 2.6.1-9+b1 amd64 [installed,automatic]
python3-cryptography/stable,now 2.6.1-3+deb10u2 amd64 [installed,automatic]
python3-dbus/stable,now 1.2.8-3 amd64 [installed,automatic]
python3-debconf/stable,now 1.5.71 all [installed,automatic]
python3-debian/stable,now 0.1.35 all [installed,automatic]
python3-debianbts/stable,now 2.8.2 all [installed,automatic]
python3-dev/stable,now 3.7.3-1 amd64 [installed,automatic]
python3-distutils/stable,now 3.7.3-1 all [installed,automatic]
python3-django-captcha/stable,now 0.5.6-1 all [installed]
python3-django-ranged-response/stable,now 0.2.0-1 all [installed,automatic]
python3-django/stable,now 1:1.11.29-1~deb10u1 all [installed,automatic]
python3-entrypoints/stable,now 0.3-1 all [installed,automatic]
python3-gi/stable,now 3.30.4-1 amd64 [installed,automatic]
python3-httplib2/stable,now 0.11.3-2 all [installed,automatic]
python3-idna/stable,now 2.6-1 all [installed,automatic]
python3-keyring/stable,now 17.1.1-1 all [installed,automatic]
python3-keyrings.alt/stable,now 3.1.1-1 all [installed,automatic]
python3-lib2to3/stable,now 3.7.3-1 all [installed,automatic]
python3-minimal/stable,now 3.7.3-1 amd64 [installed,automatic]
python3-olefile/stable,now 0.46-1 all [installed,automatic]
python3-pil/stable,stable,now 5.4.1-2+deb10u1 amd64 [installed,automatic]
python3-pip/stable,now 18.1-5 all [installed]
python3-pkg-resources/stable,now 40.8.0-1 all [installed,automatic]
python3-pycurl/stable,now 7.43.0.2-0.1 amd64 [installed,automatic]
python3-pysimplesoap/stable,now 1.16.2-1 all [installed,automatic]
python3-reportbug/stable,now 7.5.3~deb10u1 all [installed]
python3-requests/stable,now 2.21.0-1 all [installed,automatic]
python3-secretstorage/stable,now 2.3.1-2 all [installed,automatic]
python3-setuptools/stable,now 40.8.0-1 all [installed]
python3-six/stable,now 1.12.0-1 all [installed,automatic]
python3-sqlparse/stable,now 0.2.4-1 all [installed,automatic]
python3-tz/stable,now 2019.1-1 all [installed,automatic]
python3-urllib3/stable,now 1.24.1-1 all [installed,automatic]
python3-venv/stable,now 3.7.3-1 amd64 [installed]
python3-wheel/stable,now 0.32.3-2 all [installed,automatic]
python3-xdg/stable,now 0.25-5 all [installed,automatic]
python3.7-dev/stable,now 3.7.3-2+deb10u1 amd64 [installed,automatic]
python3.7-minimal/stable,now 3.7.3-2+deb10u1 amd64 [installed,automatic]
python3.7-venv/stable,now 3.7.3-2+deb10u1 amd64 [installed,automatic]
python3.7/stable,now 3.7.3-2+deb10u1 amd64 [installed,automatic]
python3/stable,now 3.7.3-1 amd64 [installed]
python/stable,now 2.7.16-1 amd64 [installed]

############################################################################
pip3 freeze
############################################################################

aggdraw==1.3.11
asgiref==3.2.10
asn1crypto==0.24.0
attrs==19.3.0
boto==2.49.0
captcha==0.3
certifi==2018.8.24
chardet==3.0.4
cryptography==2.6.1
cycler==0.10.0
decorator==4.4.2
Django==3.0.8
django-pylibmc==0.6.1
django-ranged-response==0.2.0
django-recaptcha==2.0.6
django-simple-captcha==0.5.12
docopt==0.6.2
entrypoints==0.3
gunicorn==20.0.4
httplib2==0.11.3
idna==2.6
imageio==2.9.0
imageio-ffmpeg==0.4.2
Jinja2==2.11.2
keyring==17.1.1
keyrings.alt==3.1.1
kiwisolver==1.2.0
MarkupSafe==1.1.1
matplotlib==3.2.2
moviepy==1.0.3
networkx==2.4
numpy==1.19.0
olefile==0.46
Pillow==7.2.0
proglog==0.1.9
psd-tools==1.9.13
pyasn1==0.4.8
pycrypto==2.6.1
pycurl==7.43.0.2
PyGObject==3.30.4
pylibmc==1.6.1
pyparsing==2.4.7
PySimpleSOAP==1.16.2
python-apt==1.8.4.1
python-dateutil==2.8.1
python-debian==0.1.35
python-debianbts==2.8.2
python3-ldap==0.9.8.4
pytz==2020.1
PyWavelets==1.1.1
pyxdg==0.25
reportbug===7.5.3-deb10u1
requests==2.21.0
scikit-image==0.16.2
scipy==1.5.1
SecretStorage==2.3.1
six==1.12.0
SQLAlchemy==1.3.18
sqlparse==0.3.1
tqdm==4.47.0
urllib3==1.24.1

Anybody knows a good and working tutorial that creates Real Time Backup Server from scratch in one of the following scenarios using Ubuntu20.4 LTS or better Debian10.4?

  • Community -> Pro
  • Pro -> Pro

(The Arrow stands for “Real Time Backup synchronization”)

Please share!