haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

Init.d scrip failing #364

Closed swno closed 8 years ago

swno commented 11 years ago

Hi,

I'm having issue after upgrading from 1.7.0 to 1.8.5 on a raspberry pi (Raspian)

I narrowed it down this command in the init.d examples present in the wiki

sudo -u ${user} ${script_path}/seafile.sh start

Result is a segfault

Starting seafile server, please wait ... /home/seafile/Seafile/seafile-server-1.8.5/./seafile.sh: line 95: 7303 Segmentation fault LD_LIBRARY_PATH=$SEAFILE_LD_LIBRARY_PATH ${seaf_controller} -c "${default_ccnet_conf_dir}" -d "${seafile_data_dir}" Failed to start seafile server

I have no problem running seafile.sh with a simple sudo (so as root)...

Any help would be appreciated

Snwo

lins05 commented 10 years ago

Seafile should not be run with the root user. Once you run seafile as the root user, seafile server files will have their permissions messes up.

swno commented 10 years ago

Ok, didn't realize that. Anyway that's not intended. As you can see, I created a user "seafile" to run it. But for watherver reason it's causing a segfault... Will try to look more closely on this problem this weekend.

cibomato commented 10 years ago

same Problem here after trying the automatic start with /etc/init.d/... Can't start seafile and seahub as user seafile anymore, it results in s segfault. It works with sudo ./seafile.sh start but I realized that this is not the Intention!?