Closed steveowashere closed 6 years ago
Hello,
What is the result if you type that : bash -x /etc/init.d/seafile-server restart
And if you type that :
tail -n 20 /var/www/seafile/log/seafile.init.log
tail -n 20 /var/www/seafile/log/seahub.init.log
tail -n 20 /var/www/seafile/log/seafile.log
tail -n 20 /var/www/seafile/log/seahub.log
Output of bash -x /etc/init.d/seafile-server restart
:
+ seafile_dir=/var/www/seafile
+ script_path=/var/www/seafile/seafile-server-latest
+ seafile_init_log=/var/www/seafile/logs/seafile.init.log
+ seahub_init_log=/var/www/seafile/logs/seahub.init.log
+ fastcgi=false
+ seahub_web_port=8000
+ case "$1" in
+ sudo -u www-data /var/www/seafile/seafile-server-latest/seafile.sh restart
+ '[' false = true ']'
+ sudo -u www-data /var/www/seafile/seafile-server-latest/seahub.sh restart 8000
Output of tail -n 20 /var/www/seafile/log/seafile.init.log
Output of tail -n 20 /var/www/seafile/log/seahub.hub.log
Output of tail -n 20 /var/www/seafile/log/seafile.log
Output of tail -n 20 /var/www/seafile/log/seahub.log
I should have also pointed out, that when I try to go to Seafile I get a 502 bad gateway nginx page, so I checked the seahub.error.log in /var/log/nginx and it keeps spamming:
2018/01/10 06:25:05 [error] 1379#0: *4730 connect() failed (111: Connection refused) while connecting to upstream, client: my.ip.number, server: mydomain.com, request: "GET /seafile/api2/repos/ HTTP/1.1", up1", upstream: "http://127.0.0.1:8000/seafile/api2/repos/", host: "mydomain.com"
It look like that your log are empty so could your give me the result of these following command :
ls -la /var/www/seafile
ls -la /var/www/seafile/log
When did you install seafile ? Did try to reboot your server ?
Output of ls -la /var/www/seafile
:
total 60
drwxr-xr-x 12 www-data www-data 4096 Jan 9 09:12 .
drwxr-xr-x 10 root root 4096 Dec 4 09:22 ..
-rw-r--r-- 1 www-data www-data 415 Sep 11 18:20 add_sso_conf.py
drwx------ 3 www-data www-data 4096 Jan 10 06:35 ccnet
drwx------ 2 www-data www-data 4096 Dec 4 08:30 conf
-rwxr-xr-x 1 www-data www-data 351 Sep 11 18:20 first_launch.exp
drwxr-xr-x 2 www-data www-data 4096 Jan 9 09:12 installed
drwxr-xr-x 2 www-data www-data 4096 Sep 13 10:41 logs
drwxr-xr-x 2 www-data www-data 4096 Jan 10 06:35 pids
-rw-r--r-- 1 www-data www-data 325 Sep 11 18:20 remove_sso_conf.py
drwxr-xr-x 2 www-data www-data 4096 Sep 11 18:20 seafile-data
drwxr-xr-x 6 www-data www-data 4096 Sep 11 18:20 seafile-server-6.1.2
drwxr-xr-x 6 www-data www-data 4096 Oct 13 09:11 seafile-server-6.2.2
drwxr-xr-x 6 www-data www-data 4096 Jan 9 09:12 seafile-server-6.2.3
lrwxrwxrwx 1 www-data www-data 20 Jan 9 09:12 seafile-server-latest -> seafile-server-6.2.3
drwxr-xr-x 4 www-data www-data 4096 Sep 11 18:28 seahub-data
Output of ls -la /var/www/seafile/log
:
ls: cannot access /var/www/seafile/log: No such file or directory
Did you mean, ls -la /var/www/seafile/logs
? I have many log files for seafile in that directory:
total 8712
drwxr-xr-x 2 www-data www-data 4096 Sep 13 10:41 .
drwxr-xr-x 12 www-data www-data 4096 Jan 9 09:12 ..
-rw-r--r-- 1 www-data www-data 8109536 Jan 10 09:28 ccnet.log
-rw-r--r-- 1 www-data www-data 29869 Jan 10 06:35 controller.log
-rw-r--r-- 1 www-data www-data 547999 Jan 10 09:28 seafdav.log
-rw-r--r-- 1 www-data www-data 0 Sep 13 10:41 seaf-fuse.log
-rw-r--r-- 1 www-data www-data 5010 Jan 10 06:35 seafile.init.log
-rw-r--r-- 1 www-data www-data 36252 Jan 10 19:30 seafile.log
-rw-r--r-- 1 www-data www-data 19383 Jan 9 09:21 seahub_django_request.log
-rw-r--r-- 1 www-data www-data 4459 Jan 10 06:36 seahub.init.log
-rw-r--r-- 1 www-data www-data 123847 Dec 31 15:05 seahub.log
Seafile is installed to: mydomain.com/seafile. I installed it via the admin webpage if that makes any difference. I have tried to reboot my server twice, but it still doesn't want to start.
ok so could you get the log in /var/www/logs
And if you type that :
tail -n 20 /var/www/seafile/logs/seafile.init.log
tail -n 20 /var/www/seafile/logs/seahub.init.log
tail -n 20 /var/www/seafile/logs/seafile.log
tail -n 20 /var/www/seafile/logs/seahub.log
Output of tail -n 20 /var/www/seafile/logs/seafile.init.log:
Seafile controller is already running, pid 2661
Seafile controller is already running, pid 2661
Stopping seafile server ...
[01/10/18 06:32:33] ../common/session.c(132): using config file /var/www/seafile/conf/ccnet.conf
Starting seafile server, please wait ...
Seafile server started
Done.
Stopping seafile server ...
[01/10/18 06:35:56] ../common/session.c(132): using config file /var/www/seafile/conf/ccnet.conf
Starting seafile server, please wait ...
Seafile server started
Done.
Output of tail -n 20 /var/www/seafile/logs/seahub.init.log:
Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again
Seahub is not running
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again
Seahub is not running
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again
Output of tail -n 20 /var/www/seafile/logs/seafile.log:
[01/10/2018 06:30:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 06:35:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 06:40:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 06:45:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 06:50:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 06:55:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:00:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:05:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:10:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:15:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:20:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:25:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:30:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:35:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:40:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:45:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:50:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 07:55:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 08:00:58 PM] size-sched.c(96): Repo size compute queue size is 0
[01/10/2018 08:05:58 PM] size-sched.c(96): Repo size compute queue size is 0
Output of tail -n 20 /var/www/seafile/logs/seahub.log:
2017-12-23 18:31:08,611 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/c7acd2aaad8c21fb064e8bc7f2fde0be03887e0e'
2017-12-23 18:31:09,232 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/f1d935fc41203532d7e03b243aaaf4c8dc9156fe'
2017-12-23 18:31:09,889 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/33b2b45ac4b84f7becf0df7f9a70ad87da6c6997'
2017-12-23 18:31:10,643 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/9b7798c26f67a69a03592fb7e0047da9bc175800'
2017-12-23 18:31:11,472 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/5f750e9a3fdfa74b456a20a3018bb3d4273b4d43'
2017-12-23 18:31:12,104 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/383273214934ec797882ef73ac56f0e9db7463ce'
2017-12-23 18:31:12,939 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/aca9287775bc6bfe8fdd068324edcab47cd1c668'
2017-12-23 18:31:13,729 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/24ed111d558fe053e9f8cefcd076716dff217acb'
2017-12-23 18:31:14,443 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/66c943dfc8ef00eb0b197b096244f011f112afe7'
2017-12-23 18:31:15,615 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/b0969f51fe51507a4f6385b83abd1b219f9801c4'
2017-12-23 18:31:16,177 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/94ccd0c8877b6abb87f67572269c88dc9d11910f'
2017-12-23 18:31:16,959 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/9c679bc54ed781b56fe3aa04885883733c7b220a'
2017-12-23 18:31:17,675 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/71e10afc7d73542a9adf9aee81506ffb55270f2c'
2017-12-23 18:31:18,350 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/14d485e925046ce2310024185535566f24662e81'
2017-12-27 17:51:17,897 [ERROR] seahub.thumbnail.views:207 share_link_latest_ent ry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/s eahub/seahub/../../../seahub-data/thumbnail/1024/14c73e75870dc6beb207367edbb1998 3550567d8'
2017-12-29 07:49:46,343 [ERROR] seahub.thumbnail.views:77 latest_entry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/seahub/seahub /../../../seahub-data/thumbnail/1024/c74c64e41d86a6d9f83b3dbf579562e45230dff0'
2017-12-29 08:02:32,743 [ERROR] seahub.thumbnail.views:207 share_link_latest_ent ry [Errno 2] No such file or directory: '/var/www/seafile/seafile-server-6.1.2/s eahub/seahub/../../../seahub-data/thumbnail/1024/e9ae5f247777d2067d1a52ab8f44dfd 68d293fbc
Could you try this command :
bash -x /var/www/seafile/seafile-server-6.2.3/seahub.sh start
This command outputs:
+ echo ''
++ readlink -f /var/www/seafile/seafile-server-6.2.3/seahub.sh
+ SCRIPT=/var/www/seafile/seafile-server-6.2.3/seahub.sh
++ dirname /var/www/seafile/seafile-server-6.2.3/seahub.sh
+ INSTALLPATH=/var/www/seafile/seafile-server-6.2.3
++ dirname /var/www/seafile/seafile-server-6.2.3
+ TOPDIR=/var/www/seafile
+ default_ccnet_conf_dir=/var/www/seafile/ccnet
+ central_config_dir=/var/www/seafile/conf
+ manage_py=/var/www/seafile/seafile-server-6.2.3/seahub/manage.py
+ gunicorn_conf=/var/www/seafile/seafile-server-6.2.3/runtime/seahub.conf
+ pidfile=/var/www/seafile/seafile-server-6.2.3/runtime/seahub.pid
+ errorlog=/var/www/seafile/seafile-server-6.2.3/runtime/error.log
+ accesslog=/var/www/seafile/seafile-server-6.2.3/runtime/access.log
+ gunicorn_exe=/var/www/seafile/seafile-server-6.2.3/seahub/thirdpart/gunicorn
+ script_name=/var/www/seafile/seafile-server-6.2.3/seahub.sh
+ [[ start != \s\t\a\r\t ]]
+ [[ start == \s\t\a\r\t ]]
+ [[ 1 == 2 ]]
+ [[ 1 == 1 ]]
+ [[ 1 == 2 ]]
+ port=8000
+ case $1 in
+ start_seahub
+ before_start
+ prepare_env
+ check_python_executable
+ [[ '' != '' ]]
+ which python2.7
+ PYTHON=python2.7
+ validate_ccnet_conf_dir
+ [[ ! -d /var/www/seafile/ccnet ]]
+ read_seafile_data_dir
+ seafile_ini=/var/www/seafile/ccnet/seafile.ini
+ [[ ! -f /var/www/seafile/ccnet/seafile.ini ]]
++ cat /var/www/seafile/ccnet/seafile.ini
+ seafile_data_dir=/home/yunohost.app/seafile-data
+ [[ ! -d /home/yunohost.app/seafile-data ]]
+ [[ -z en_US.UTF-8 ]]
+ [[ -z '' ]]
+ echo 'LC_ALL is not set in ENV, set to en_US.UTF-8'
LC_ALL is not set in ENV, set to en_US.UTF-8
+ export LC_ALL=en_US.UTF-8
+ LC_ALL=en_US.UTF-8
+ export CCNET_CONF_DIR=/var/www/seafile/ccnet
+ CCNET_CONF_DIR=/var/www/seafile/ccnet
+ export SEAFILE_CONF_DIR=/home/yunohost.app/seafile-data
+ SEAFILE_CONF_DIR=/home/yunohost.app/seafile-data
+ export SEAFILE_CENTRAL_CONF_DIR=/var/www/seafile/conf
+ SEAFILE_CENTRAL_CONF_DIR=/var/www/seafile/conf
+ export PYTHONPATH=/var/www/seafile/seafile-server-6.2.3/seafile/lib/python2.6/site-packages:/var/www/seafile/seafile-server-6.2.3/seafile/lib64/python2.6/site-packages:/var/www/seafile/seafile-server-6.2.3/sea
hub:/var/www/seafile/seafile-server-6.2.3/seahub/thirdpart:
+ PYTHONPATH=/var/www/seafile/seafile-server-6.2.3/seafile/lib/python2.6/site-packages:/var/www/seafile/seafile-server-6.2.3/seafile/lib64/python2.6/site-packages:/var/www/seafile/seafile-server-6.2.3/seahub:/va
r/www/seafile/seafile-server-6.2.3/seahub/thirdpart:
+ export PYTHONPATH=/var/www/seafile/seafile-server-6.2.3/seafile/lib/python2.7/site-packages:/var/www/seafile/seafile-server-6.2.3/seafile/lib64/python2.7/site-packages:/var/www/seafile/seafile-server-6.2.3/sea
file/lib/python2.6/site-packages:/var/www/seafile/seafile-server-6.2.3/seafile/lib64/python2.6/site-packages:/var/www/seafile/seafile-server-6.2.3/seahub:/var/www/seafile/seafile-server-6.2.3/seahub/thirdpart:
+ PYTHONPATH=/var/www/seafile/seafile-server-6.2.3/seafile/lib/python2.7/site-packages:/var/www/seafile/seafile-server-6.2.3/seafile/lib64/python2.7/site-packages:/var/www/seafile/seafile-server-6.2.3/seafile/li
b/python2.6/site-packages:/var/www/seafile/seafile-server-6.2.3/seafile/lib64/python2.6/site-packages:/var/www/seafile/seafile-server-6.2.3/seahub:/var/www/seafile/seafile-server-6.2.3/seahub/thirdpart:
+ warning_if_seafile_not_running
+ pgrep -f 'seafile-controller -c /var/www/seafile/ccnet'
+ validate_seahub_running
+ pgrep -f /var/www/seafile/seafile-server-6.2.3/seahub/manage.py
+ pgrep -f seahub.wsgi:application
+ prepare_seahub_log_dir
+ logdir=/var/www/seafile/logs
+ [[ -d '' ]]
+ mkdir -p /var/www/seafile/logs
+ export SEAHUB_LOG_DIR=/var/www/seafile/logs
+ SEAHUB_LOG_DIR=/var/www/seafile/logs
+ echo 'Starting seahub at port 8000 ...'
Starting seahub at port 8000 ...
+ check_init_admin
+ check_init_admin_script=/var/www/seafile/seafile-server-6.2.3/check_init_admin.py
+ python2.7 /var/www/seafile/seafile-server-6.2.3/check_init_admin.py
+ python2.7 /var/www/seafile/seafile-server-6.2.3/seahub/thirdpart/gunicorn seahub.wsgi:application -c /var/www/seafile/seafile-server-6.2.3/runtime/seahub.conf -b 0.0.0.0:8000 --preload
+ sleep 5
+ pgrep -f seahub.wsgi:application
+ echo
+ echo 'Seahub is started'
Seahub is started
+ echo
+ echo Done.
Done.
+ echo ''
It seems this has started Seafile Server, but the page is still down. Instead of a 502 bad gateway error, I get this page. All the Seafile services like Seadav and Seadrive are also still down.
And if you type https://domain.tld/seafhttp
what do you get ?
Could you also upgrade a new time by this command :
sudo yunohost app upgrade -u https://github.com/YunoHost-Apps/seafile_ynh --verbose seafile
And give me the result.
https://domain.tld/seafhttp
This results in a 404 error.
Running the upgrade command outputs this. It says successful, but the status is unchanged.
Did you have installed an other app recently ?
No, I haven't install any app in sometime. I have been using ynh seafile since 6.1.2, and just upgrading through the admin page the whole time.
I can try to remove Seafile completely and do a fresh install, maybe that would help?
I can try to remove Seafile completely and do a fresh install, maybe that would help?
Yes if you don't have to much data to restore.
Unfortunately I have around 50gb, so I will download that overnight and then remove Seafile and do a fresh install.
Will update when I have done that. Thanks for you help this far! š
Sorry, but I never found a good way to debug this app and to get a really good log.
So you could also try that to see if seafile is listening on some port : netstat -lp
Hello again, I've totally remove Seafile and did a fresh install. Everything is working again now. Not sure what went wrong. I noticed that my old Seafile install was located in /var/www/seafile
the new install is (hopefully correctly) located in /opt/yunohost/seafile
.
I just need to restore the backup and I should be good to go :)
Yes it's normal. I had changed the default directory. But normally the old directory /var/www/seafile
should also run.
Thank you for your report
Thanks for the help š You can close this issue if you are done with it.
One final question, if I can.
I backed up /home/yunohost.app/seafile-data/
and var/www/seafile/
. I copy everything from seafile-data
back into place, but none of the files show up on my new install of Seafile. I think everything might be lost because I didn't dump the SQL databases like the guide says. Any suggestions? (Yes, i'm sort of an idiot)
Yes probably It's the reason because I tried to find a way to solve the issue.
I understand. Thanks again!
Hello, I just updated Seafile via the Yunohost admin page, and seafile no longer starts. I attempt to start it by using
sudo service seafile-server start
This outputs:
I'm not totally sure what the problem could be. I tried googling a few of the errors, but this releaves not apparent causes.
Note: 'mydomain.com' is just a replacement of my actual domain.