How to solve Seafile Page unavailiable

After i’ve run the 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:

admin@cloud:/opt/seafile/seafile-server-latest$ sudo ./ 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 ./ start

Seafile controller is already running, pid 1057

—end cut—

These are my log-files:


[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/ Permission denied
[10/20/16 11:16:37] ccnet-server.c(324): Failed to write pidfile


[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

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/”, $
response = middleware_method(request)
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/auth/”, 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/”, line 9, in get
request._cached_user = get_user(request)
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/auth/”, line 118, in get_user
user = backend.get_user(username) or AnonymousUser()
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/base/”, line 300, in get_user
user = self.get_user_with_import(username)
File “/opt/seafile/seafile-server-5.0.3/seahub/seahub/base/”, 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/”, 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/”, 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/”, 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/”, line 29, in get_cl$
client = self._create_client()
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/ccnet/”, line 21, in _creat$
File “/opt/seafile/seafile-server-5.0.3/seafile/lib64/python2.6/site-packages/ccnet/”, 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/”, line 110, in con$
raise NetworkError(“Can’t connect to daemon”)
NetworkError: Can’t connect to daemon

Kind Regards


show that maybe you should first stop Seafile/Seahub,

./ stop
./ stop

and then start Seafile/Seahub,

./ start
./ 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 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 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

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.

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/ 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 script as sudo ??

Tnx everybody for thinking with me.

Kind Regards