Hi i am trying to start seahub 7.0.5 on my raspberry pi 4 and was getting this error
LC_ALL is not set in ENV, set to en_US.UTF-8
./seahub.sh: line 208: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
Starting seahub (fastcgi) at 127.0.0.1:8000 …
Traceback (most recent call last):
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/core/management/init.py”, line 338, in execute
django.setup()
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/init.py”, line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/apps/registry.py”, line 85, in populate
app_config = AppConfig.create(entry)
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/Django-1.11.16-py2.7.egg/django/apps/config.py”, line 94, in create
module = import_module(entry)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/social_django/init.py”, line 4, in
from social_core.backends.base import BaseAuth
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/social_auth_core-1.7.0-py2.7.egg/social_core/backends/base.py”, line 3, in
from requests import request, ConnectionError
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/requests-2.20.1-py2.7.egg/requests/init.py”, line 112, in
from . import utils
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/requests-2.20.1-py2.7.egg/requests/utils.py”, line 24, in
from . import certs
File “/home/jonathan/temp/seafile-server-7.0.5/seahub/thirdpart/requests-2.20.1-py2.7.egg/requests/certs.py”, line 15, in
from certifi import where
ImportError: No module named certifi
I then tried to create a unit called seahub.service inside etc/systemd/system with the followin:
[Unit]
Description=Seafile hub
After=network.target seafile.service[Service]
change start to start-fastcgi if you want to run fastcgi
Environment=“LC_ALL=C”
ExecStart=/home/jonathan/temp/seafile-server-7.0.5/seahub.sh start-fastcgi
ExecStop=/home/jonathan/temp/seafile-server-7.0.5/seahub.sh stop
User=seafile
Group=seafile
Type=oneshot
RemainAfterExit=yes[Install]
WantedBy=multi-user.target
I then got this error when executing sudo systemctl daemon-reload and sudo systemctl start seahub.service
Job for seahub.service failed because the control process exited with error code.
See “systemctl status seahub.service” and “journalctl -xe” for details.
And the output for checking the status logs via sudo journalctl -u seahub.service is below:
Oct 23 19:38:38 raspberrypi systemd[1]: Starting Seafile hub…
Oct 23 19:38:38 raspberrypi systemd[6309]: seahub.service: Failed to determine user credentials: No such process
Oct 23 19:38:38 raspberrypi systemd[6309]: seahub.service: Failed at step USER spawning /home/jonathan/temp/seafile-s
Oct 23 19:38:38 raspberrypi systemd[1]: seahub.service: Main process exited, code=exited, status=217/USER
Oct 23 19:38:38 raspberrypi systemd[1]: seahub.service: Failed with result ‘exit-code’.
Oct 23 19:38:38 raspberrypi systemd[1]: Failed to start Seafile hub.