Package Details: seahub 7.0.4-1

Git Clone URL: (read-only)
Package Base: seahub
Description: The web frontend for seafile server
Upstream URL:
Licenses: Apache
Submitter: eolianoe
Maintainer: Joffrey
Last Packager: Joffrey
Votes: 6
Popularity: 0.000029
First Submitted: 2017-07-03 09:48
Last Updated: 2019-08-20 16:19

Pinned Comments

Joffrey commented on 2018-02-13 10:56


Prerequisites :

  • The seafile-server daemon must be stopped
  • You must use seafile user
  • You must be placed in /your/instance/seafile-server/

Make a seahub backup :

mv seahub seahub-old

Copy the new directories

cp -r /usr/share/seafile-server/{upgrade,seahub} ./

Run an upgrade :


Otherly you can use my script seafile-helper available on AUR.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

Joffrey commented on 2018-01-25 10:47

Gunicorn is already installed on your system?

pacman -Qs gunicorn

kuzalj commented on 2018-01-25 02:58

@Joffrey as user seafile,

[seafile@xxxxxxxxxxx xxxxxxxxxx]$ seafile-admin start

Starting seafile-server...
Starting seahub...
Traceback (most recent call last):
  File "/usr/bin/seafile-admin", line 979, in <module>
  File "/usr/bin/seafile-admin", line 975, in main
  File "/usr/bin/seafile-admin", line 905, in start_seafile
  File "/usr/bin/seafile-admin", line 696, in start_seahub_gunicorn
    if run_argv(argv, cwd=conf[CONF_SEAHUB_DIR], env=env) != 0:
  File "/usr/bin/seafile-admin", line 170, in run_argv
  File "/usr/lib64/python2.7/", line 390, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/", line 1025, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
[seafile@xxxxxxxxxxxxx xxxxxxxxxxxxx]$

Joffrey commented on 2018-01-24 23:12

@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

@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/", 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/", 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]: Failed with result 'exit-code'.

Joffrey commented on 2018-01-23 23:15

@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

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

Exactly! It's now by default

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

Would be good.

eolianoe commented on 2018-01-07 15:38

@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

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')
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

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.