How to solve Seafile Page unavailiable

After i’ve run the seafile-gc.sh script on my seafile CE running on linux debian i can not sync my client’s anymore.
Nor can i acces the webinterface

Does anybody have some time to help me with one or more of these things:

-getting it running again (duhuh)
-analyze the correct logging’s
-fix the problem
-getting to know the cause

When i try to start Seahub & seafile i get this:

—cut—
admin@cloud:/opt/seafile/seafile-server-latest$ sudo ./seahub.sh start
[sudo] password for beheer:

LC_ALL is not set in ENV, set to en_US.UTF-8
Seahub is already running.
admin@cloud:/opt/seafile/seafile-server-latest$ sudo ./seafile.sh start

Seafile controller is already running, pid 1057

admin@cloud:/opt/seafile/seafile-server-latest$
—end cut—

These are my log-files:

ccnet.log

[10/20/16 11:16:37] …/common/session.c(132): using config file /opt/seafile/conf/ccnet.conf
[10/20/16 11:16:37] …/common/ccnet-db.c(76): max_connections: 100
[10/20/16 11:16:37] …/common/session.c(455): socket file exists, delete it anyway
[10/20/16 11:16:37] …/common/session.c(484): Listen on /opt/seafile/ccnet/ccnet.sock for local clients
[10/20/16 11:16:37] …/common/session.c(290): Update pubinfo file
[10/20/16 11:16:37] ccnet-server.c(76): Failed to fopen() pidfile /opt/seafile/pids/ccnet.pid: Permission denied
[10/20/16 11:16:37] ccnet-server.c(324): Failed to write pidfile

controller.log

[10/20/16 11:16:37] seafile-controller.c(154): starting ccnet-server …
[10/20/16 11:16:37] seafile-controller.c(73): spawn_process: ccnet-server -F /opt/seafile/conf -c /opt/seafile/ccn$
[10/20/16 11:16:37] seafile-controller.c(88): spawned ccnet-server, pid 1056

Seahub.log is empty

seahub_django_request.log
NetworkError: Can’t connect to daemon
2016-10-20 11:38:23,040 [ERROR] django.request:210 handle_uncaught_exception Internal Server Error: /ajax/unseen-n$
Traceback (most recent call last):
File “/opt/seafile/seafile-server-5.0.3/seahub/thirdpart/Django-1.5.12-py2.6.egg/django/core/handlers/base.py”, $
response = middleware_method(request)
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/auth/middleware.py”, line 17, in process_request
if request.user.is_authenticated() and not request.user.is_active:
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/auth/middleware.py”, line 9, in get
request._cached_user = get_user(request)
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/auth/init.py”, line 118, in get_user
user = backend.get_user(username) or AnonymousUser()
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/base/accounts.py”, line 300, in get_user
user = self.get_user_with_import(username)
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/base/accounts.py”, line 282, in get_user_with_import
emailuser = seaserv.get_emailuser_with_import(username)
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/seaserv/service.py”, line 162, in $
return ccnet_threaded_rpc.get_emailuser_with_import(email)
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/pysearpc/client.py”, line 110, in $
ret_str = self.call_remote_func_sync(fcall_str)
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/ccnet/rpc.py”, line 71, in call_re$
client = self.pool.get_client()
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/ccnet/pool.py”, line 29, in get_cl$
client = self._create_client()
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/ccnet/pool.py”, line 21, in _creat$
client.connect_daemon()
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/ccnet/client.py”, line 128, in con$
return self.connect_daemon_with_pipe()
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/ccnet/client.py”, line 110, in con$
raise NetworkError(“Can’t connect to daemon”)
NetworkError: Can’t connect to daemon

Kind Regards
Gerard

and

show that maybe you should first stop Seafile/Seahub,

./seafile.sh stop
./seahub.sh stop

and then start Seafile/Seahub,

./seafile.sh start
./seahub.sh start

Tryed that allready,
I even restarted the complete server, and that didn’t work as wel.
Seems semothing is broke.
How do i find out WHAT is broke ?

With which User did you run seafile-gc.sh script?

Have you checked file permission of the whole seafile dir?

Why are you running seafile with sudo?

I am using a user, ie seafileuser.
Seafileserver and data is in its home dir.

su - seafileuser -s /bin/bash
Start server

Dear Fabian,

After running the seaf-gc.sh script with sudo my seafile server doesn’t run properly anymore.
Even after a reboot.
I find that strange, because a reboot should have the effect that all seafile processes shouold start automaticaly.

I need to know why seafile is not running and how to fix it.
Seafile is using a “saefile” user to run some processes but i am not familiar with all of these processes.

Which log files do i need to check to see WHAT is broke, so i can fix it.
Next step would be, knowing to give what commands with sudo user where neccesary.

Tnx for your time.

Kind regards
Gerard

Dear Lian,

Do you know what this tell’s me:
-LC_ALL is not set in ENV

i allready tryed a restart on both processes as sudo.
But as said, even a reboot didn’t help

I seem to understand from somebodu else i may have to use the saefile user permissions to run.
However Linux asks me for a password which i assume is the seafile users pwd, which i do not have.
Resetting the seafile users pwd would complicatie things even more at this time. so i do not think that is a good idea.

Solved
the ccnet.log gave it away
It said [10/21/16 08:08:50] ccnet-server.c(76): Failed to fopen() pidfile /opt/seafile/pids/ccnet.pid: Permission denied
[10/21/16 08:08:50] ccnet-server.c(324): Failed to write pidfile

i’ve set the perm’s to the seafile user again and a reboot did it.

It seems that this should not be the case.
I guess i shouldn’t have run the seaf-gc.sh script as sudo ??

Tnx everybody for thinking with me.

Kind Regards
Gerard