Package Details: seahub 11.0.8-1

Git Clone URL: https://aur.archlinux.org/seahub.git (read-only, click to copy)
Package Base: seahub
Description: The web frontend for seafile server
Upstream URL: https://github.com/haiwen/seahub
Licenses: Apache
Submitter: eolianoe
Maintainer: Joffrey
Last Packager: Joffrey
Votes: 7
Popularity: 0.000000
First Submitted: 2017-07-03 09:48 (UTC)
Last Updated: 2024-04-20 09:42 (UTC)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 13 Next › Last »

ChuckHL commented on 2024-04-29 18:40 (UTC) (edited on 2024-04-30 00:41 (UTC) by ChuckHL)

@Joffrey, I finally managed to make it work. After the system upgrade, i ended up rebuilding all AUR packages related to seahub (and also related to seafile since seahub depends on seafile). This means I also ended also rebuilding seafile and reinstalling it before rebuilding seahub and reinstalling it.

After all of that, it finally works fine. (Time to update my system backup file)

I trully appreciate it. Tysm.

Joffrey commented on 2024-04-29 17:51 (UTC)

libsearpc and seafile-server also have a Python API.

ChuckHL commented on 2024-04-29 16:35 (UTC)

Just to clarify/verify, these are the 6 packages i rebuild from AUR: python-django-formtools, python-django-ranged-response, python-django-saml2, python-django-simple-captcha, python-django-statici18n, python-django-webpack-loader

ChuckHL commented on 2024-04-29 16:12 (UTC)

[root@ArchPC ~]# systemctl status seahub × seahub.service - The web frontend for seafile server. Loaded: loaded (/usr/lib/systemd/system/seahub.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Mon 2024-04-29 10:09:34 CST; 1s ago Duration: 8h 30min 19.196s Process: 43377 ExecStart=/usr/share/seafile/seafile-server/seahub.sh start (code=exited, status=1/FAILURE) CPU: 165ms

Apr 29 10:09:34 ArchPC systemd[1]: Starting The web frontend for seafile server.... Apr 29 10:09:34 ArchPC seahub.sh[43381]: awk: fatal: cannot open file `/usr/share/seafile/seafile-server/pro/python/seafevents/seafevents_api.py' for reading: No such file or directory Apr 29 10:09:34 ArchPC seahub.sh[43377]: Starting seahub at port 8000 ... Apr 29 10:09:34 ArchPC seahub.sh[43387]: Traceback (most recent call last): Apr 29 10:09:34 ArchPC seahub.sh[43387]: File "/usr/share/seafile/seafile-server/check_init_admin.py", line 19, in <module> Apr 29 10:09:34 ArchPC seahub.sh[43387]: from seaserv import ccnet_api Apr 29 10:09:34 ArchPC seahub.sh[43387]: ModuleNotFoundError: No module named 'seaserv' Apr 29 10:09:34 ArchPC systemd[1]: seahub.service: Control process exited, code=exited, status=1/FAILURE Apr 29 10:09:34 ArchPC systemd[1]: seahub.service: Failed with result 'exit-code'. Apr 29 10:09:34 ArchPC systemd[1]: Failed to start The web frontend for seafile server..

ChuckHL commented on 2024-04-29 16:11 (UTC)

I disable seafile/seahub from starting. Upgraded all my system. Reboot. Redownload the AUR packages and rebuild them (after reinstalling some of the packages decreased in size). Restarted seafile and seahub. Seafile started but seahub still continues to fail to start.

Joffrey commented on 2024-04-29 09:04 (UTC)

@ChuckHL for now don't touch to the scripts, just upgrade your system and rebuild AUR packages that use Python.

trap000d commented on 2024-04-28 20:03 (UTC) (edited on 2024-04-28 20:07 (UTC) by trap000d)

@ChuckHL, That's not gunicorn, this is Seafile. They've mix up startup script of Community and Pro editions. Community does not include seafevents module, however it's not checked properly. In particular, they blindly start seafile-monitor.sh, which in turn is trying to load seafevents. So you need to make some changes in seafile.sh and seahub.sh

find and comment out (or remove) the following line (seafile.sh:L149)

${INSTALLPATH}/seafile-monitor.sh &>> ${TOPDIR}/logs/seafile-monitor.log &

Set variable to False instead of calling awk (appears in 3 or 4 scripts)

IS_PRO_SEAFEVENTS='False'

Remove config file (if exists) -> conf/seafevents.conf

ChuckHL commented on 2024-04-28 16:46 (UTC) (edited on 2024-04-28 19:04 (UTC) by ChuckHL)

The latest python packages updates (without upgrading gunicorn) breaks seahub the following way (dbus-python-1.3.2-3 mpdecimal-4.0.0-2 python-3.12.3-1 python-annotated-types-0.6.0-3 python-asgiref-3.7.2-2 python-attrs-23.2.0-3 python-autocommand-2.2.2-6 python-automat-22.10.0-4 python-bleach-6.1.0-2 python-build-1.2.1-3 python-cairo-1.26.0-2 python-cffi-1.16.0-2 python-chardet-5.2.0-2 python-charset-normalizer-3.3.2-2 python-click-8.1.7-3 python-configobj-5.0.8-5 python-constantly-23.10.0-2 python-cryptography-42.0.5-2 python-dateutil-2.9.0-5 python-defusedxml-0.7.1-6 python-distro-1.9.0-2 python-django-4.2.11-2 python-django-appconf-1.0.6-2 python-django-picklefield-3.1.0-3 python-django-rest-framework-3.15.1-3 python-dulwich-0.21.7-2 python-elementpath-4.4.0-2 python-et-xmlfile-1.1-5 python-fastbencode-0.2-3 python-fastjsonschema-2.19.1-3 python-future-1.0.0-1 python-geoip-1.3.2-15 python-gobject-3.48.2-1 python-hyperlink-21.0.0-6 python-idna-3.6-2 python-ifaddr-0.2.0-4 python-incremental-22.10.0-5 python-inflect-7.2.1-2 python-installer-0.7.0-8 python-jaraco.context-4.3.0-4 python-jaraco.functools-4.0.0-3 python-jaraco.text-3.12.0-3 python-ldap-3.4.4-2 python-lxml-5.1.0-3 python-mako-1.3.3-2 python-markdown-3.6-3 python-markupsafe-2.1.5-2 python-merge3-0.0.14-3 python-more-itertools-10.2.0-2 python-mysqlclient-2.2.4-1 python-oauthlib-3.2.2-3 python-openpyxl-3.1.2-4 python-ordered-set-4.1.0-5 python-packaging-23.2-3 python-patiencediff-0.2.14-3 python-pillow-10.3.0-2 python-pip-24.0-2 python-platformdirs-4.2.0-3 python-ply-3.11-13 python-pyasn1-0.5.1-1 python-pyasn1-modules-0.3.0-2 python-pycparser-2.22-2 python-pycryptodome-3.20.0-2 python-pydantic-2.7.1-2 python-pydantic-core-1:2.18.2-2 python-pygments-2.17.2-3 python-pyjwt-2.8.0-2 python-pymysql-1.1.0-3 python-pyopenssl-24.0.0-2 python-pypng-0.20231004.0-2 python-pyproject-hooks-1.0.0-7 python-pysaml2-7.5.0-2 python-pytz-2024.1-2 python-pyxdg-0.28-3 python-qrcode-7.4.2-4 python-rencode-1.0.6-9 python-requests-2.31.0-3 python-requests-oauthlib-1.3.1-4 python-service-identity-23.1.0-2 python-setproctitle-1.3.3-2 python-setuptools-1:69.0.3-6 python-setuptools-scm-8.0.4-3 python-simplejson-3.19.2-4 python-six-1.16.0-9 python-sqlparse-0.4.4-2 python-tomli-2.0.1-4 python-trove-classifiers-2024.4.10-1 python-twisted-24.3.0-2 python-typeguard-4.2.1-2 python-typing_extensions-4.11.0-1 python-urllib3-1.26.18-3 python-validate-pyproject-0.13-3 python-webencodings-0.5.1-11 python-wheel-0.43.0-4 python-xmlschema-1:2.5.1-2 python-yaml-6.0.1-3 python-zope-interface-6.3-1):

Apr 28 10:45:15 ArchPC systemd[1]: Starting The web frontend for seafile server.... Apr 28 10:45:15 ArchPC seahub.sh[1442]: awk: fatal: cannot open file `/usr/share/seafile/seafile-server/pro/python/seafevents/seafevents_api.py' for reading: No such file or directory Apr 28 10:45:15 ArchPC seahub.sh[1433]: Starting seahub at port 8000 ... Apr 28 10:45:15 ArchPC seahub.sh[1459]: Traceback (most recent call last): Apr 28 10:45:15 ArchPC seahub.sh[1459]: File "/usr/share/seafile/seafile-server/check_init_admin.py", line 19, in <module> Apr 28 10:45:15 ArchPC seahub.sh[1459]: from seaserv import ccnet_api Apr 28 10:45:15 ArchPC seahub.sh[1459]: ModuleNotFoundError: No module named 'seaserv' Apr 28 10:45:15 ArchPC systemd[1]: seahub.service: Control process exited, code=exited, status=1/FAILURE Apr 28 10:45:15 ArchPC systemd[1]: seahub.service: Failed with result 'exit-code'. Apr 28 10:45:15 ArchPC systemd[1]: Failed to start The web frontend for seafile server..

ChuckHL commented on 2024-04-28 16:24 (UTC) (edited on 2024-04-28 18:56 (UTC) by ChuckHL)

The latest gunicorn-22.0.0-2 breaks seahub the following way:

Apr 28 10:23:44 ArchPC seahub.sh[1549]: Starting seahub at port 8000 ... Apr 28 10:23:45 ArchPC seahub.sh[1562]: Traceback (most recent call last): Apr 28 10:23:45 ArchPC seahub.sh[1562]: File "/usr/bin/gunicorn", line 5, in <module> Apr 28 10:23:45 ArchPC seahub.sh[1562]: from gunicorn.app.wsgiapp import run Apr 28 10:23:45 ArchPC seahub.sh[1562]: ModuleNotFoundError: No module named 'gunicorn' Apr 28 10:23:50 ArchPC seahub.sh[1549]: Error:Seahub failed to start. Apr 28 10:23:50 ArchPC seahub.sh[1549]: Please try to run "./seahub.sh start" again Apr 28 10:23:50 ArchPC systemd[1]: seahub.service: Control process exited, code=exited, status=1/FAILURE Apr 28 10:23:50 ArchPC systemd[1]: seahub.service: Failed with result 'exit-code'. Apr 28 10:23:50 ArchPC systemd[1]: Failed to start The web frontend for seafile server..