Diese Seite (Version-34) wurde zuletzt am 11-Jan.-2025 15:53 von Administrator geändert.

Diese Seite wurde am 28-März-2017 18:07 von Administrator erstellt.

Du bist nicht autorisiert, diese Seite umzubenennen.

Du bist nicht autorisiert, diese Seite zu löschen.

Versionsgeschichte der Seite

Version Zuletzt geändert Größe Autor Änderungen Kommentar
34 11-Jan.-2025 15:53 14 KB Administrator zur vorherigen
33 11-Jan.-2025 15:53 14 KB Administrator zur vorherigen | zur neuesten
32 11-Jan.-2025 15:52 14 KB Administrator zur vorherigen | zur neuesten
31 09-Mai-2024 09:59 14 KB Administrator zur vorherigen | zur neuesten
30 09-Mai-2024 09:52 14 KB Administrator zur vorherigen | zur neuesten
29 06-Mai-2024 20:10 13 KB Administrator zur vorherigen | zur neuesten
28 06-Mai-2024 20:08 13 KB Administrator zur vorherigen | zur neuesten
27 06-Mai-2024 20:08 13 KB Administrator zur vorherigen | zur neuesten
26 01-Sept.-2021 19:02 12 KB Administrator zur vorherigen | zur neuesten
25 29-Juli-2021 17:14 12 KB Administrator zur vorherigen | zur neuesten
24 29-Juli-2021 17:12 12 KB Administrator zur vorherigen | zur neuesten
23 29-Juli-2021 17:11 12 KB Administrator zur vorherigen | zur neuesten
22 29-Juli-2021 17:10 12 KB Administrator zur vorherigen | zur neuesten
21 28-März-2021 11:56 12 KB Administrator zur vorherigen | zur neuesten

Links

Eingehende Links Ausgehende Links

Versionsunterschiede

Unterschiede zwischen Version und .

Zeile 4: 155 Zeilen geändert.
[{TableOfContents }]
!General
* Check version with [https://www.inetone.de:444/api2/server-info/]\\
* Stop: cd $SF {{{./seahub.sh stop}}} + {{{./seafile.sh stop}}}
* Start: {{{./seafile.sh start}}} + {{{./seahub.sh start}}}
* Restart: {{{./seafile.sh restart}}} + {{{./seahub.sh restart}}}
* Log: /markus/seafile/logs seafdav.log + seafile.log + seahub.log
! Error "CSRF-Verifizierung fehlgeschlagen. Anfrage abgebrochen."
{{{
> sudo vi /markus/seafile/conf/seahub_settings.py
CSRF_TRUSTED_ORIGINS = ["https://<yourServerURL:Port>"] # add this line
}}}
Restart seafile + seahub
! Error "Seahub failed to start." with Debian 12 (bookworm) and Seafile Server 9.0.10
1. There is no entry in the logs, but you can have the console output if you disable the daemon mode at
vi ../conf/gunicorn.conf.py
{{{
daemon = False # originally True
}}}
./seahub.sh start
{{{
File "/markus/seafile/seafile-server-9.0.10/seahub/thirdpart/django/db/backends/mysql/base.py", line 17, in <module>
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
Error:Seahub failed to start.
}}}
Issue comes with Debian 12. \\
There are two options:\\
a) Based on [stackoverflow|https://stackoverflow.com/questions/15312732/django-core-exceptions-improperlyconfigured-error-loading-mysqldb-module-no-mo]:
In this way seafile is wrorking but without webdav, because some py files associate NOT 'django.db.backends.mysql' with SQLite (you need to tweak also the upgrade.sh, because this will fail, too)
{{{
1. vi ./conf/ccnet.conf
'ENGINE': 'mysql.connector.django', # old was 'django.db.backends.mysql'
2. pip install --break-system-packages mysql-connector-python
}}}
b) rcommended: Install all needed with --break-system-packages mode
{{{
pip install --break-system-packages sqlalchemy
pip install --break-system-packages djangosaml2
apt-get install python2-dev libsasl2-dev gcc
pip install --break-system-packages python-ldap
}}}
Here also webdav is working fine again. You can check webdav with following command, there must be a listener to your webdav port (8080):
{{{
netstat -tlpen
}}}
! Error "[[WARNING] django.security.csrf:228 log_response Forbidden (CSRF cookie not set.): /"
at /markus/seafile/logs/seahub.log
vi /markus/seafile/seafile-server-latest/seahub/seahub/settings.py
{{{
SITE_ROOT_URLCONF = 'seahub.urls'
ROOT_URLCONF = 'seahub.utils.rooturl'
# ME, 01.09.2021 changed
#SITE_ROOT = '/'
SITE_ROOT = '/markus/seafile/seafile-server-latest/' <===
}}}
!Minor upgrade 8.3 > 8.4
1. Download server version into /markus/seafile, gunzip, untar\\
2. Then you have another folder "seafile-server-8.0.4"\\
3. stop, cd <new folder>\\
4. ./upgrade/minor-upgrade.sh\\
5. start\\
! WebDav
base URL = https://www.inetone.de:444/seafdav
! WebDav: error HTTP MOVE 502 Bad Gateway
check seafdav.log\\
Fixed according to [forum|https://forum.seafile.com/t/seafdav-move-command-causing-502/11582/23]
with Apache conf added:
{{{
RequestHeader edit Destination ^https: http:
}}}
! Migrate from [7.1.5 to 8.0.3|https://manual.seafile.com/upgrade/upgrade_notes_for_8.0.x/]
# Check version, Stop
# [Download|https://www.seafile.com/en/download/], {{{ gunzip *, tar xvf *}}}\\
# extract and copy, run script (start upgrade scripts from base folder, not inside upgrade folder!
{{{
cp seafile-server-8.0.3 /markus/seafile
cd /markus/seafile/seafile-server-8.0.3
./upgrade/upgrade_7.1_8.0.sh
}}}
4. Start
!Config (17.02.2021)
See [Seafile admin manualConfig Seahub with Apache|https://manual.seafile.com/deploy/deploy_with_apache/#modify-ccnetconf] at "Modify ccnet.conf and seahub_setting.py"\\
Seafile > WebInterface > Avatar-Icon > Steam Administration > Settings
{{{
SERVICE_URL = https://www.inetone.de:444
FILE_SERVER_ROOT = https://www.inetone.de:444/seafhttp
}}}
Though the docu tells "if you set the value both via Web UI and config file, the setting via Web UI will take precedence", I edited the config files, too:\\
vi .../conf/seahub_settings.py
{{{
# add following
FILE_SERVER_ROOT = 'https://www.inetone.de:444/seafhttp'
}}}
vi .../conf/ccnet.conf
{{{
# change
SERVICE_URL = https://www.inetone.de:444
}}}
__Note: When you change service URLs clean your browser cache or hard reload each page !\\
It takes a some seconds until the new settings come into effect even if the seafile has started already, so keep reloading in case!__\\
\\
For Apache there is a [proxy config|https://manual.seafile.com/deploy/https_with_apache/].\\
vi /etc/apache2/sites-available/000-default-le-ssl.conf
{{{
<VirtualHost www.inetone.de:444>
ServerName www.inetone.de
ServerAlias inetone.de
DocumentRoot /var/www
ErrorLog ${APACHE_LOG_DIR}/seafile_443.log
Alias /media /markus/seafile/seafile-server-latest/seahub/media
RewriteEngine On
<Location /media>
Require all granted
</Location>
#
# seafile fileserver
#
ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]
#
# seahub
#
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/www.inetone.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.inetone.de/privkey.pem
</VirtualHost>
}}}
On Errors check Seafile [FAQ|https://manual.seafile.com/faq/].\\
!! Seafile
Zeile 178: 6 Zeilen gelöscht.
Note: Seafile 7.1.x will __NOT work with Debian 9__ because some required packages are not available there.\\
You will find error {{{django.request:135 handle_uncaught_exception Internal Server Error}}} at seafileHome\logs\seahub.log !
{{{
# on Debian 10/Ubuntu 18.04
apt-get update
apt-get install python3 python3-setuptools python3-pip -y
Zeile 185: 4 Zeilen gelöscht.
pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy \
django-pylibmc django-simple-captcha python3-ldap
}}}
Zeile 191: Eine Zeile gelöscht.
{{{
Zeile 206: Eine Zeile geändert.
[ server name ] inetone
~[ server name ~] inetone
Zeile 210: Eine Zeile geändert.
[ This server's ip or domain ] 185.244.195.4
~[ This server's ip or domain ~] 185.244.195.4
Zeile 213: Eine Zeile geändert.
[ default "8082" ]
~[ default "8082" ~]
Zeile 222: Eine Zeile geändert.
[ 1 or 2 ] 1
~[ 1 or 2 ~] 1
Zeile 225: Eine Zeile geändert.
[ default "localhost" ]
~[ default "localhost" ~]
Zeile 228: Eine Zeile geändert.
[ default "3306" ]
~[ default "3306" ~]
Zeile 231: Eine Zeile geändert.
[ root password ]
~[ root password ~]
Zeile 236: Eine Zeile geändert.
[ default "seafile" ]
~[ default "seafile" ~]
Zeile 239: Eine Zeile geändert.
[ password for seafile ]
~[ password for seafile ~]
Zeile 244: Eine Zeile geändert.
[ default "ccnet-db" ]
~[ default "ccnet-db" ~]
Zeile 247: Eine Zeile geändert.
[ default "seafile-db" ]
~[ default "seafile-db" ~]
Zeile 250: Eine Zeile geändert.
[ default "seahub-db" ]
~[ default "seahub-db" ~]
Zeile 321: Eine Zeile gelöscht.
}}}