Skip to content
This repository has been archived by the owner on Mar 17, 2018. It is now read-only.

seafile-server 5.1.4 cannot start server #510

Closed
michgeek opened this issue Jan 13, 2017 · 7 comments
Closed

seafile-server 5.1.4 cannot start server #510

michgeek opened this issue Jan 13, 2017 · 7 comments

Comments

@michgeek
Copy link

michgeek commented Jan 13, 2017

I used default installation and settings but the server can't start:

The router is an Asus RT-AC68U, it's an arm7 CPU.

port of seafile fileserver:   8082
port of seahub:               8000

Starting the server :

root@router:/opt/share# /opt/etc/init.d/S66seafile start

[01/14/17 00:05:08] ../common/session.c(132): using config file /opt/share/seafile/conf/ccnet.conf
Starting seafile server, please wait ...
Failed to start seafile server

The logs don't help much, but maybe you can spot something

root@router:/opt/share/seafile/logs# tail -n 500  -f ccnet.log controller.log seafile.log 
==> ccnet.log <==
[01/14/17 00:05:09] ../common/session.c(132): using config file /opt/share/seafile/conf/ccnet.conf
[01/14/17 00:05:09] ../common/session.c(484): Listen on /opt/share/seafile/ccnet/ccnet.sock for local clients
[01/14/17 00:05:09] ../common/session.c(290): Update pubinfo file
[01/14/17 00:05:10] ../common/session.c(398): Accepted a local client
[01/14/17 00:05:10] ../common/session.c(398): Accepted a local client
[01/14/17 00:05:10] ../common/session.c(398): Accepted a local client
[01/14/17 00:05:10] ../common/session.c(398): Accepted a local client

==> controller.log <==
[01/14/17 00:05:09] seafile-controller.c(154): starting ccnet-server ...
[01/14/17 00:05:09] seafile-controller.c(73): spawn_process: ccnet-server -F /opt/share/seafile/conf -c /opt/share/seafile/ccnet -f /opt/share/seafile/logs/ccnet.log -d -P /opt/var/run/seafile/ccnet.pid
[01/14/17 00:05:09] seafile-controller.c(88): spawned ccnet-server, pid 2468
[01/14/17 00:05:10] seafile-controller.c(555): ccnet daemon connected.
[01/14/17 00:05:10] seafile-controller.c(186): starting seaf-server ...
[01/14/17 00:05:10] seafile-controller.c(73): spawn_process: seaf-server -F /opt/share/seafile/conf -c /opt/share/seafile/ccnet -d /opt/share/seafile/seafile-data -l /opt/share/seafile/logs/seafile.log -P /opt/var/run/seafile/seaf-server.pid
[01/14/17 00:05:10] seafile-controller.c(88): spawned seaf-server, pid 2472
[01/14/17 00:05:10] seafile-controller.c(528): seafdav not enabled.

==> seafile.log <==
[01/14/2017 12:05:10 AM] ../common/mq-mgr.c(60): [mq client] mq cilent is started
[01/14/2017 12:05:10 AM] ../common/mq-mgr.c(106): [mq mgr] publish to heartbeat mq: seaf_server.heartbeat

Despite the message saying Failed to start seafile server It seems that I can connect via telnet on port 8082 and can see the process are running

root@router:/opt/share# ps | grep seafile
 2469 root     11012 S    /opt/bin/seafile-controller -c /opt/share/seafile/ccnet -d /opt/share/seafile/seafile-data -F /opt/share/seafile/conf
 2471 root     14444 S    ccnet-server -F /opt/share/seafile/conf -c /opt/share/seafile/ccnet -f /opt/share/seafile/logs/ccnet.log -d -P /opt/var/run/seafile/ccnet.pid
 2473 root      434m S    seaf-server -F /opt/share/seafile/conf -c /opt/share/seafile/ccnet -d /opt/share/seafile/seafile-data -l /opt/share/seafile/logs/seafile.log -P /opt/var/run/seafile/seaf-server.pid
 2603 root      1164 S    tail -n 500 -f ccnet.log controller.log seafile.log
 3858 root      1164 R    grep seafile

If I tried to start seahub, I will get this

root@router:/opt/share# /opt/etc/init.d/S67seahub start

LANG is not set in ENV, set to en_US.UTF-8
LC_ALL is not set in ENV, set to en_US.UTF-8

Warning: seafile-controller not running. Have you run "./seafile.sh start" ?

Anyone encountered this problem?

@michgeek michgeek changed the title seafile-server 5.1.4 Can not start server seafile-server 5.1.4 cannot start server Jan 13, 2017
@zyxmon
Copy link
Member

zyxmon commented Jan 13, 2017

Seafile installation is tricky!
Probably there was an error when installing seafile and running post install script. It asks some questions to setup seafile.
The next installation step is to run seahub as suggested by the first script and answer more questions.
You can uninstall seafile* packages, manually remove creteted seafile dirs and start from scratch. If there is an error when running these scripts - post it here.

Here is the correct installation log - http://pastebin.com/jk4jPnNL
Seafile may be to heavy for your Asus RT-AC68U

@zyxmon
Copy link
Member

zyxmon commented Jan 13, 2017

LANG is not set in ENV, set to en_US.UTF-8

It is better to setup locale in your profile.

@zyxmon
Copy link
Member

zyxmon commented Jan 13, 2017

It looks like seafile is broken in the last build. Probably one of the packages seafile depends on is now incompatible or broken.
I suggest to try install archive versions of dependent packages one by one and find the guilty one.

@michgeek
Copy link
Author

I hope it's not a python package that broke it... there are so many! Is there a tutorial somewhere about installing from archive?

@zyxmon
Copy link
Member

zyxmon commented Jan 14, 2017

archived packages are here - http://pkg.entware.net/binaries/armv7/archive/
Use opkg command to install them with force-(downgrade, reinstall) flags. You can also try manual package unpacking.
I'll try to find what is wrong with seafile later.

@zyxmon
Copy link
Member

zyxmon commented Jan 14, 2017

Seafile is working fine, after swap was enabled (it was temporary disabled for some tests).
Tested on Tomato by Shibby on an arm router similar to RT-AC68U, but with only 128Mb ram.
The issue is closed.

@zyxmon zyxmon closed this as completed Jan 14, 2017
@michgeek
Copy link
Author

Thanks for trying to help, my swap was enabled too. I tried with the previous package version of seafile without success, will wait for a new release I guess.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants