Package Details: seahub 11.0.13-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-11-14 17:03 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 .. 9 10 11 12 13 14

Joffrey commented on 2018-01-24 23:12 (UTC) (edited on 2018-01-24 23:25 (UTC) by Joffrey)

@kuzalj it's strange, I don't understand why, can you start wsgi directly and give we the stderr?

cd /Your/instance/
sudo -u seafile seafile-admin start

We 'll have more infos than with systemd.

kuzalj commented on 2018-01-24 20:51 (UTC) (edited on 2018-01-24 20:52 (UTC) by kuzalj)

@Joffrey this change seemed to break my WSGI mode start of Seahub. Any ideas?

Jan 24 15:45:09 xxxxxxx seafile-admin[5277]:   File "/usr/bin/seafile-admin", line 170, in run_argv
Jan 24 15:45:09 xxxxxxx seafile-admin[5277]:     env=env)
Jan 24 15:45:09 xxxxxxx seafile-admin[5277]:   File "/usr/lib64/python2.7/subprocess.py", line 390, in __init__
Jan 24 15:45:09 xxxxxxx seafile-admin[5277]:     errread, errwrite)
Jan 24 15:45:09 xxxxxxx seafile-admin[5277]:   File "/usr/lib64/python2.7/subprocess.py", line 1025, in _execute_child
Jan 24 15:45:09 xxxxxxx seafile-admin[5277]:     raise child_exception
Jan 24 15:45:09 xxxxxxx seafile-admin[5277]: OSError: [Errno 2] No such file or directory
Jan 24 15:45:09 xxxxxxx systemd[1]: seafile-server@xxxxxxxx.service: Control process exited, code=exited status=1
Jan 24 15:45:09 xxxxxxx systemd[1]: seafile-server@xxxxxxxx.com.service: Failed with result 'exit-code'.

Joffrey commented on 2018-01-23 23:15 (UTC) (edited on 2018-01-24 00:26 (UTC) by Joffrey)

@DasGurke + @all sorry it's my fault, I have proposed to remove --system-site-packages for virtualenv creation. seaserv is brought by seafile package.. You 'll must recompile the package with --system-site-packages :/

-  virtualenv2 --no-wheel "${pkgdir}/usr/lib/seafile/seafileenv"
+  virtualenv2 --system-site-packages "${pkgdir}/usr/lib/seafile/seafileenv"

DasGurke commented on 2018-01-23 19:24 (UTC)

I have trouble running seahub with either version 6.2.4 or 6.2.5. When using fastcgi-mode I get ImportError: No module named seaserv. It seems that something in Pythons module resolution has changed, but I am not able to pin it down properly. Running seahub without fastcgi seems to work for the moment, but I would prefer continue to use fastcgi.

Joffrey commented on 2018-01-07 20:11 (UTC)

Exactly! It's now by default

virtualenv2 --no-wheel "${vitualenvpath}"

Would be good.

eolianoe commented on 2018-01-07 15:38 (UTC)

@Joffrey: updated, thanks again for the comments (--no-site-packages is deprecated from the manual of virtualenv).

Joffrey commented on 2018-01-07 12:57 (UTC) (edited on 2018-01-07 13:05 (UTC) by Joffrey)

Seahub libs is a vitualenv as much use it a maximum and add the deps in requierements, I use something similar:

[...]
license=('Apache' 'PSF' 'MIT' 'BSD')
depends=('seafile-server')
optdepends=('memcached' 'libmemcached')
makedepends=('python2-virtualenv' 'libmemcached')
[...]

prepare () {
    cd "${srcdir}/${pkgname}-${pkgver}-server"

    # Fix all script's python 2 requirement
    grep -s -l -r '#!/usr/bin/env python\b' ./ \
    | xargs sed -i -e '1 s|env python\b|env python2|'

    # Add python libs depends to requirements.txt
    {
        echo 'gunicorn'         # WSGI HTTP Server
        echo 'pylibmc'          # Required by memcached
        echo 'django-pylibmc'   # Required by memcached
    } >> "./requirements.txt"
}

@Armael python2-dateutil, and python2-qrcode are in requierements.txt your problem is elsewher.

PS: @eolianoe pip2 is installed with virtualenv deployement, you can remove it of makedepends and use:

package() {
    [...]
    virtualenv2 --no-site-packages --no-wheel "${virtualenvpath}"    

    # Activates the VirtualEnv
    source "${virtualenvpath}/bin/activate"

    # Install all requirements
    pip2 install --isolated --no-compile -r "./requirements.txt"
    [...]
}

--no-site-packages is an option more lighter than --system-site-packages and wheel is useless..

Happy New Year @all :)

Armael commented on 2018-01-05 18:56 (UTC)

Two dependencies seems to be missing: python2-dateutil, and python2-qrcode. The first one is caught by "seafile-admin setup", but the second one isn't, resulting in an uninformative "500 internal server error" message.

Joffrey commented on 2017-10-10 21:20 (UTC) (edited on 2017-12-24 14:17 (UTC) by Joffrey)

For use Memchached you must have django-pylibmc (python2-django-pylibmc) library.

Edit: Otherly you can add 'pylibmc' 'django-pylibmc' installation via pip2 in package function, 'pylibmc' require 'libmemcached' depend.