Hi, i need help
When i start seafile & seahub :
root@seafile2 seafile]# systemctl start seafile <<<<< OK
[root@seafile2 seafile]# systemctl start seahub >>>>>> NOK
Job for seahub.service failed because the control process exited with error code. See âsystemctl status seahub.serviceâ and âjournalctl -xeâ for details.
[root@seafile2 seafile]# systemctl status seahub.service
â seahub.service - Seafile Seahub
Loaded: loaded (/etc/systemd/system/seahub.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since lun. 2021-11-15 10:29:18 CET; 46s ago
Process: 3521 ExecStop=/opt/seafile/seafile-server-latest/seahub.sh stop (code=exited, status=0/SUCCESS)
Process: 29363 ExecStart=/opt/seafile/seafile-server-latest/seahub.sh start 8000 (code=exited, status=1/FAILURE)
Main PID: 29363 (code=exited, status=1/FAILURE)
nov. 15 10:29:18 seafile2 systemd[1]: Starting Seafile Seahub...
nov. 15 10:29:18 seafile2 seahub.sh[29363]: LC_ALL is not set in ENV, set to en_US.UTF-8
nov. 15 10:29:18 seafile2 systemd[1]: seahub.service: main process exited, code=exited, status=1/FAILURE
nov. 15 10:29:18 seafile2 systemd[1]: Failed to start Seafile Seahub.
nov. 15 10:29:18 seafile2 systemd[1]: Unit seahub.service entered failed state.
nov. 15 10:29:18 seafile2 systemd[1]: seahub.service failed.
-- L'unité (unit) seafile.service a commencé à démarrer.
nov. 15 10:29:15 seafile2 seafile-control[29341]: seafile-controller.c(1009): loading seafdav config from /opt/seafile/conf/seafdav.conf
nov. 15 10:29:15 seafile2 seafile.sh[29322]: [11/15/21 10:29:15] ../common/session.c(162): using config file /opt/seafile/conf/ccnet.conf
nov. 15 10:29:15 seafile2 seafile.sh[29322]: [11/15/21 10:29:15] ../common/license.c(437): Loading license file /opt/seafile/seafile-license.txt ..
nov. 15 10:29:15 seafile2 seafile.sh[29322]: Starting seafile server, please wait ...
nov. 15 10:29:15 seafile2 seafile-control[29347]: seafile-controller.c(1009): loading seafdav config from /opt/seafile/conf/seafdav.conf
nov. 15 10:29:18 seafile2 seafile.sh[29322]: Seafile server started
nov. 15 10:29:18 seafile2 seafile.sh[29322]: Done.
nov. 15 10:29:18 seafile2 systemd[1]: Started Seafile Server.
-- Subject: L'unité (unit) seafile.service a terminé son démarrage
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) seafile.service a terminé son démarrage, avec le résultat done.
nov. 15 10:29:18 seafile2 polkitd[718]: Unregistered Authentication Agent for unix-process:29316:173681055 (system bus name :1.1353, object path /org/freedesktop/PolicyKit1/AuthenticationAge
nov. 15 10:29:18 seafile2 polkitd[718]: Registered Authentication Agent for unix-process:29357:173681385 (system bus name :1.1354 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path
nov. 15 10:29:18 seafile2 systemd[1]: Starting Seafile Seahub...
-- Subject: L'unité (unit) seahub.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) seahub.service a commencé à démarrer.
nov. 15 10:29:18 seafile2 seahub.sh[29363]: LC_ALL is not set in ENV, set to en_US.UTF-8
nov. 15 10:29:18 seafile2 seahub.sh[29363]: Seahub is already running.
nov. 15 10:29:18 seafile2 systemd[1]: seahub.service: main process exited, code=exited, status=1/FAILURE
nov. 15 10:29:18 seafile2 systemd[1]: Failed to start Seafile Seahub.
-- Subject: L'unité (unit) seahub.service a échoué
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) seahub.service a échoué, avec le résultat failed.
nov. 15 10:29:18 seafile2 systemd[1]: Unit seahub.service entered failed state.
nov. 15 10:29:18 seafile2 polkitd[718]: Unregistered Authentication Agent for unix-process:29357:173681385 (system bus name :1.1354, object path /org/freedesktop/PolicyKit1/AuthenticationAge
nov. 15 10:29:18 seafile2 systemd[1]: seahub.service failed.
When seahub is start with root, service is Ok but i have a : Page Unabailable after login
and seahub.log
2021-11-15 10:27:38,972 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /accounts/login/
Traceback (most recent call last):
File "/opt/seafile/seafile-pro-server-7.1.22/seafile/lib64/python3.6/site-packages/pysearpc/named_pipe.py", line 88, in _get_transport
transport = self._pool.get(False)
File "/usr/lib64/python3.6/queue.py", line 161, in get
raise Empty
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/seafile/seafile-pro-server-7.1.22/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/opt/seafile/seafile-pro-server-7.1.22/seahub/thirdpart/django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "/opt/seafile/seafile-pro-server-7.1.22/seahub/thirdpart/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/opt/seafile/seafile-pro-server-7.1.22/seahub/thirdpart/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/seafile/seafile-pro-server-7.1.22/seahub/thirdpart/django/utils/decorators.py", line 149, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/opt/seafile/seafile-pro-server-7.1.22/seahub/thirdpart/django/views/decorators/cache.py", line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/opt/seafile/seafile-pro-server-7.1.22/seahub/seahub/auth/views.py", line 123, in login
redirect_to, remember_me)
File "/opt/seafile/seafile-pro-server-7.1.22/seahub/seahub/auth/views.py", line 80, in _handle_login_form_valid
seafile_api.set_role_quota(user_role, quota)
File "/opt/seafile/seafile-pro-server-7.1.22/seafile/lib64/python3.6/site-packages/seaserv/api.py", line 871, in set_role_quota
return seafserv_threaded_rpc.set_role_quota(role, quota)
File "/opt/seafile/seafile-pro-server-7.1.22/seafile/lib64/python3.6/site-packages/pysearpc/client.py", line 126, in newfunc
ret_str = self.call_remote_func_sync(fcall_str)
File "/opt/seafile/seafile-pro-server-7.1.22/seafile/lib64/python3.6/site-packages/pysearpc/named_pipe.py", line 100, in call_remote_func_sync
transport = self._get_transport()
File "/opt/seafile/seafile-pro-server-7.1.22/seafile/lib64/python3.6/site-packages/pysearpc/named_pipe.py", line 90, in _get_transport
transport = self._create_transport()
File "/opt/seafile/seafile-pro-server-7.1.22/seafile/lib64/python3.6/site-packages/pysearpc/named_pipe.py", line 83, in _create_transport
transport.connect()
File "/opt/seafile/seafile-pro-server-7.1.22/seafile/lib64/python3.6/site-packages/pysearpc/named_pipe.py", line 47, in connect
self.pipe.connect(self.socket_path)
FileNotFoundError: [Errno 2] No such file or directory
[root@seafile2 logs]# tailf /opt/seafile/logs/seafile.log [11/15/21 10:43:36] seafile-session.c(75): Temp file dir /opt/seafile/seafile-data/tmpfiles does not exist and is unable to create [11/15/21 10:43:36] seaf-server.c(1499): Failed to create seafile session. [11/15/21 10:43:46] seafile-session.c(75): Temp file dir /opt/seafile/seafile-data/tmpfiles does not exist and is unable to create [11/15/21 10:43:46] seaf-server.c(1499): Failed to create seafile session. [11/15/21 10:43:56] seafile-session.c(75): Temp file dir /opt/seafile/seafile-data/tmpfiles does not exist and is unable to create [11/15/21 10:43:56] seaf-server.c(1499): Failed to create seafile session. [11/15/21 10:44:06] seafile-session.c(75): Temp file dir /opt/seafile/seafile-data/tmpfiles does not exist and is unable to create [11/15/21 10:44:06] seaf-server.c(1499): Failed to create seafile session. [11/15/21 10:44:16] seafile-session.c(75): Temp file dir /opt/seafile/seafile-data/tmpfiles does not exist and is unable to create [11/15/21 10:44:16] seaf-server.c(1499): Failed to create seafile session. [11/15/21 10:44:26] seafile-session.c(75): Temp file dir /opt/seafile/seafile-data/tmpfiles does not exist and is unable to create [11/15/21 10:44:26] seaf-server.c(1499): Failed to create seafile session. ^C [root@seafile2 logs]# cd /opt/seafile/seafile-data/tmpfiles/ [root@seafile2 tmpfiles]# l /opt/seafile/seafile-data/tmpfiles/ total 9,7M drwxr-xr-x. 1 seafile seafile 470 14 nov. 20:05 . drwxrwxrwx. 1 seafile seafile 114 27 févr. 2017 .. -rwxr-xr-x. 1 seafile seafile 0 12 déc. 2018 0affb1b0114693baf616a14d16573caeb3154244.38M4TZ -rw-------. 1 seafile seafile 3,1K 12 déc. 2018 3e0b7c0fadc050f32ff43a093cc797cd93e46ff8.VEN4TZ -rwxr-xr-x. 1 seafile seafile 0 19 oct. 21:08 5bf958e57b1660946443ee1a97159bea72adad81.53BWC1 -rw-------. 1 seafile seafile 2,5M 18 mai 2020 7b296b9145025def5c8e6340b8bafcbf4b264678.UCKLL0 -rw-------. 1 seafile seafile 7,3M 11 déc. 2018 7efa0d670a7fa3e02b8a398c97bdb1b3d2c4570b.HJNRTZ [root@seafile2 tmpfiles]# l /opt/seafile/seafile-data/ total 4,0K drwxrwxrwx. 1 seafile seafile 114 27 févr. 2017 . dr-xr-xr-x. 25 root root 4,0K 25 oct. 17:23 .. drwxr-xr-x. 1 seafile seafile 0 30 août 2016 commits drwxr-xr-x. 1 seafile seafile 0 30 août 2016 fs drwxrwxrwx. 1 seafile seafile 28 14 nov. 19:14 httptemp drwxr-xr-x. 1 seafile seafile 40 30 août 2016 library-template drwxr-xr-x. 1 seafile seafile 42 6 nov. 2019 storage drwxr-xr-x. 1 seafile seafile 470 14 nov. 20:05 tmpfiles drwxr-xr-x. 1 seafile seafile 0 22 avril 2021 webdavtmp [root@seafile2 tmpfiles]#
Any ideas ?