Seafile Server 6.1.0 (Beta) for Raspberry Pi is ready! 12.05.2017

Thank you for your work @jobenvil!
I just updated from 6.0.9, but now when trying to access seahub I get an error stating

Unhandled Exception - An unhandled exception was thrown by the application.

I checked all log files, but only /var/logs/nginx/seahub.error.log had relevant information in it:

2017/05/12 19:56:25 [error] 739#0: *270 FastCGI sent in stderr: "Traceback (most recent call last):
  File "/home/seafile/seafile-server-6.1.0/seahub/thirdpart/flup-1.0.2-py2.7.egg/flup/server/fcgi_base.py", line 558, in run
    protocolStatus, appStatus = self.server.handler(self)
  File "/home/seafile/seafile-server-6.1.0/seahub/thirdpart/flup-1.0.2-py2.7.egg/flup/server/fcgi_base.py", line 1118, in handler
    result = self.application(environ, start_response)
  File "/home/seafile/seafile-server-6.1.0/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/wsgi.py", line 170, in __call__
    self.load_middleware()
  File "/home/seafile/seafile-server-6.1.0/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py", line 52, in load_middleware
    mw_instance = mw_class()
  File "/home/seafile/seafile-server-6.1.0/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/middleware/locale.py", line 24, in __init__
    for url_pattern in get_resolver(None).url_patterns:
  File "/home/seafile/seafile-server-6.1.0/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/urlresolvers.py", line 401, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/home/seafile/seafile-server-6.1.0/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/urlresolvers.py", line 395, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/seafile/seafile-server-6.1.0/seahub/seahub/utils/rooturl.py", line 41, in <module>
    (r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
  File "/home/seafile/seafile-server-6.1.0/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/conf/urls/__init__.py", line 33, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/seafile/seafile-server-6.1.0/seahub/seahub/urls.py", line 12,

According to earlier findings of this error message, it was due to python-urllib3 missing. But it was installed, additionally, pip list gives:

argparse (1.2.1)
chardet (2.3.0)
colorama (0.3.2)
decorator (4.0.11)
gpiozero (1.3.2)
html5lib (0.999)
imageio (2.1.2)
lxkeymap (0.1)
mcpi (0.1.1)
moviepy (0.2.3.2)
ndg-httpsclient (0.3.2)
numpy (1.8.2)
olefile (0.44)
picamera (1.13)
pifacecommon (4.2.1)
pifacedigitalio (3.1.0)
Pillow (4.1.1)
pip (1.5.6)
pyasn1 (0.1.7)
pygame (1.9.2a0)
pygobject (3.14.0)
pyOpenSSL (0.13.1)
pyserial (2.6)
python-dateutil (2.2)
python-ldap (2.4.10)
python-memcached (1.58)
requests (2.14.2)
RPi.GPIO (0.6.3)
RTIMULib (7.2.1)
sense-hat (2.2.0)
setuptools (5.5.1)
six (1.8.0)
spidev (3.0)
tqdm (4.11.2)
urllib3 (1.19.1)
virtualenv (1.11.6)
wheel (0.24.0)
wsgiref (0.1.2)

Any ideas why this error still occurs? Am I supposed to install or update some additional dependencies?

Edit: Turns out it was already reported here.

1 Like

Let’s do further troubleshooting on GitHub for this issue and post the progress there. .

@nscuro thanks for your great cooperation in GitHub!

I see that we have some kind of issues. Let’s post with which Distro is working and not working in order to do fault three isolation.

The rpi-Seafile Server build environment is like follows:

Distro:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 7.11 (wheezy)
Release:        7.11
Codename:       wheezy

Kernel and ARM architecture:

$ uname -a
Linux thor 4.9.25+ #994 Fri Apr 28 16:46:40 BST 2017 armv6l GNU/Linux

Hardware:

dmesg | grep -i machine
[    0.000000] OF: fdt:Machine model: Raspberry Pi Model B Plus Rev 1.2

Working :+1:

Distro:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

Kernel and ARM architecture:

uname -a
Linux hiperborea 4.9.21-g8abd6e9-dirty #1 SMP PREEMPT Sat Apr 8 20:31:35 CEST 2017 armv7l armv7l armv7l GNU/Linux

Hardware:

 dmesg | grep -i machine
[    0.000000] OF: fdt:Machine model: Hardkernel Odroid XU4

:-1: Not working here

     No LSB modules are available.
     Distributor ID: Debian
     Description:    Debian GNU/Linux 8.8 (jessie)
     Release:        8.8
     Codename:       jessie

Linux orangepiplus 3.4.113-sun8i #10 SMP PREEMPT Thu Feb 23 19:55:00 CET 2017 armv7l GNU/Linux

[ 0.000000] Machine: sun8i

1 Like

Updated my Cubietruck flawlessly as usual.
@jobenvil Thanks again for the great job. :slight_smile:

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.8 (jessie)
Release:        8.8
Codename:       jessie

uname -a
Linux nasserver 4.10.12-sunxi #7 SMP Wed Apr 26 02:44:12 CEST 2017 armv7l GNU/Linux
1 Like

thanks @Tjelfe !

I see that we have two Jessie, the one working, the other not. Ok, we are getting closer. This is probably an unmet dependency from a Phyton module.

Could you please post the list of your phyton module?
Use this command: pip list --format=columns | sort

In my system, which it works, looks like this:

$ pip list --format=columns | sort
---------------- -----------
attrs            15.2.0
chardet          2.3.0
configobj        5.0.6
cryptography     1.2.3
decorator        4.0.11
dnspython        1.12.0
docopt           0.6.2
enum34           1.1.2
gyp              0.1
idna             2.0
imageio          2.1.2
ipaddress        1.0.16
Landscape-Client 16.3+bzr834
moviepy          0.2.3.2
mysqlclient      1.3.7
ndg-httpsclient  0.4.0
ngxtop           0.0.2
numpy            1.12.1
Package          Version
PAM              0.4.2
Pillow           3.1.2
pip              9.0.1
pyasn1           0.1.9
pyasn1-modules   0.0.7
pycrypto         2.6.1
pyOpenSSL        0.15.1
pyparsing        2.1.1
pyserial         3.0.1
python-apt       1.1.0b1
python-debian    0.1.27
python-memcached 1.53
requests         2.9.1
service-identity 16.0.0
setuptools       20.7.0
simplejson       3.8.1
six              1.10.0
tabulate         0.7.5
tqdm             4.11.2
Twisted          16.0.0
urllib3          1.13.1
wheel            0.29.0
zope.interface   4.1.3

In this way I will compare with they didn’t work.

@jobenvil Here it is:

pip list -format=columns | sort
apsw (3.8.6-r1)
argparse (1.2.1)
BeautifulSoup (3.2.1)
chardet (2.3.0)
CherryPy (3.6.0)
colorama (0.3.2)
cssselect (0.9.1)
cssutils (0.9.10)
decorator (4.0.11)
dnspython (1.12.0)
feedparser (5.1.3)
html5lib (0.999)
imageio (2.1.2)
iotop (0.6)
lxml (3.4.0)
Markdown (2.5.1)
mechanize (0.2.5)
moviepy (0.2.3.2)
netifaces (0.10.4)
numpy (1.12.1)
Pillow (2.6.1)
pip (1.5.6)
pycrypto (2.6.1)
pyparsing (2.0.3)
python-apt (0.9.3.12)
python-dateutil (2.2)
python-memcached (1.53)
repoze.lru (0.6)
requests (2.4.3)
Routes (2.0)
setuptools (5.5.1)
simplejson (3.6.5)
six (1.8.0)
smbus (1.1)
tqdm (4.11.2)
Unidecode (0.04.16)
urllib3 (1.9.1)
virtualenv (1.11.6)
Warning: cannot find svn location for apsw==3.8.6-r1
wsgiref (0.1.2)

By the way: The distro I use is armbian.

argparse (1.2.1)
cffi (0.8.6)
characteristic (0.1.0)
chardet (2.3.0)
colorama (0.3.2)
cryptography (0.6.1)
deluge (1.3.10)
dnspython (1.12.0)
html5lib (0.999)
iotop (0.6)
Mako (1.0.0)
MarkupSafe (0.23)
Pillow (2.6.1)
pip (1.5.6)
ply (3.4)
pyasn1 (0.1.7)
pyasn1-modules (0.0.5)
pycparser (2.10)
pycrypto (2.6.1)
pycurl (7.19.5)
pyOpenSSL (0.14)
python-apt (0.9.3.12)
python-libtorrent (0.16.18)
pyxdg (0.25)
requests (2.4.3)
service-identity (1.0.0)
setuptools (5.5.1)
six (1.8.0)
smbus (1.1)
Twisted-Core (14.0.2)
Twisted-Web (14.0.2)
urllib3 (1.9.1)
wsgiref (0.1.2)
zope.interface (4.1.1)

using armbian, too

Funny, i forgot pip install pillow moviepy , now i did that and it works…
Before i thought i don’t need video thumbnails, so i didnt install that.

1 Like

note that ‘ffmpeg ffmpeg-devel’ are now a dependency, if you don’t have it you end up with :
Unhandled Exception - An unhandled exception was thrown by the application.

in my case (Centos 7) I had to use these repo’s : http://li.nux.ro/repos.html
and edit the /etc/yum.repo.d/nux.repo to use el7server :
http://li.nux.ro/download/nux/dextop/el7Server/

Goodluck :slight_smile:

Yes, i installed ffmpeg from debian-multimedia repos, but without pip installed packages i had unhandled exception error :grin:

Ugh, this nut is hard to crack. Still no dice on the Raspberry Pi B+. Pillow (2.9.0) was already installed in the Seafile virtual environment. moviepy wasn’t. I tried to install it, and moviepy (0.2.3.2) got pulled and installed. After that I still am still getting ‘Unhandled Exception’. Which version of Pillow is required by Seafile server 6.1?

Hi,
i just wanted to ask if anyone has tried/explored if its possible to install Collabora/Only office on an ARM-System and maybe has written an howto?

No idea, if it works, will be probably with containers/dockers. I have no experience in this field.

@Captain_Rage would you like to check the workaround by @lins05 here

@all that they got the “Unhandled Exception” on ARMs, they could try if this issue is fixed disabling video thumbnails

Turns out ‘requests’ was also needed but wasn’t installed. ‘pip2 install requests’ inside the correct environment did the trick. It’s working now!! Thanks for the help!

@Captain_Rage: I did update the installation procedure according your input. Thanks again.

1 Like

My comment was referring to Arch Linux ARM, where packages related to python 2 fall under ‘pip2’. Since you have written ‘pip install pillow moviepy’ already I suppose that ‘requests’ should also go there: ‘pip install pillow moviepy requests’.
I’m not familiar with the package managment and naming in Ubuntu, however, but this is probably the case (since Seafile uses python 2, regardless of distro naming).
Glad to hear that it’s working for everyone. Likewise, thanks. :slight_smile:

Yes, pip2 or pip2.7 uses implicit python 2.7. but if you have installed python 3.* could be that pip python is linked to 3.* instead of 2.7. It’s a matter to check if not sure.

On my Seafile working end-system are following pip:

root@hiperborea ~ # pip [tab tab]
pip     pip2    pip2.7
root@hiperborea ~ # pip2.7 -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
root@hiperborea ~ # pip2 -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
root@hiperborea ~ # pip2.7 -V
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)

Edit: and all of them linked to python 2.7

1 Like