Closed egroeper closed 8 years ago
I tried to setup a debugging/testing environment, but that didn't get me any further:
cd /data/seafile/seafile-server-latest
LD_LIBRARY_PATH=./seafile/lib/:./seafile/lib64:${LD_LIBRARY_PATH} ./seafile/bin/ccnet-server -c /data/seafile/ccnet -f /data/seafile/logs/ccnet_debug.log -d -M 50 -P /data/seafile/pids/ccnet.pid -D all
LD_LIBRARY_PATH=./seafile/lib/:./seafile/lib64:${LD_LIBRARY_PATH} ./seafile/bin/seaf-server -c /data/seafile/ccnet -d /data/seafile/seafile-data -l /data/seafile/logs/seafile_debug.log -P /data/seafile/pids/seaf-server.pid -D all
LD_LIBRARY_PATH=./seafile/lib/:./seafile/lib64:${LD_LIBRARY_PATH} ./seafile/bin/fileserver -c /data/seafile/ccnet -d /data/seafile/seafile-data -l /data/seafile/logs/fileserver_debug.log -P /data/seafile/pids/fileserver.pid -D all
export INSTALLPATH=`pwd`
export PYTHONPATH=${INSTALLPATH}/seafile/lib/python2.6/site-packages:${INSTALLPATH}/seafile/lib64/python2.6/site-packages:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH
export PYTHONPATH=${INSTALLPATH}/seafile/lib/python2.7/site-packages:${INSTALLPATH}/seafile/lib64/python2.7/site-packages:$PYTHONPATH
export PYTHONPATH=$PYTHONPATH:${INSTALLPATH}/pro/python
export PYTHONPATH=$PYTHONPATH:${INSTALLPATH}/seahub-extra/
export PYTHONPATH=$PYTHONPATH:${INSTALLPATH}/seahub-extra/thirdparts
export CCNET_CONF_DIR=/data/seafile/ccnet/
export SEAFILE_CONF_DIR=/data/seafile/seafile-data
/usr/bin/python2.7 -m seafevents.main --config-file /data/seafile/pro-data/seafevents.conf --loglevel debug --logfile /data/seafile/logs/seafevents.log -P /data/seafile/pids/seafevents.pid &
./seahub.sh start-fastcgi
If I remember correctly, a very similar setup worked fine using seafile-pro 3.1.1.
I now downgraded to 3.1.1 (since there are no db schema changes, it's no problem) and can confirm, that in 3.1.1 it's no problem to create libraries.
Can you try the v3.1.7 beta?
v3.1.7 beta works.
@freeplant: This issue seems to be back. At least I got it with seafile-pro-4.2.1 and seafile-pro.4.1.1. Some regression? Or do you have a hint which config issues could cause this? When does this happen? ccnet runs locally on each node, doesn't it? So this is a problem when seahub want to communicate with ccnet on the same node?
It seems to be a problem that the Seafile server spend too much time in creating a library. Maybe this is related to the Ceph backend?
@freeplant You are right. I found the problem. There was a problem with our firewall. The setup changed and I forgot to update the settings at one place. Now it works fine. Sorry.
But it makes me wonder, that there weren't any error messages in seafile.log (or ccnet.log?). I'm sure there have been proper error messages when such things happened during my tests in the past. Because there weren't any now, I erroneously excepted the connection to the ceph cluster as root cause. Thinking about that: Perhaps I'm confusing that with ceph authentication issues I had in the past (non admin user).
Anyway: I'm happy that it works now. Perhaps you could guard against (my) stupidity with proper error messages in the future. ;-)
@egroeper The error messages are still there. The error can't be detected until the connection times out since it's blocked by firewall.
@killing I can't confirm that. After stopping seahub.sh the KeyboardInterrupt message from above appears in the logs. I can't find any "[Block backend] Cannot connect to cluster" messages. The cluster ran for several hours. That should be enough for timeouts, shouldn't it? Perhaps they are somehow hidden now (don't get executed because of the system waiting for other stuff)?
This message seems to be generated in seaf-server. Could it be, that it doesn't get executed on a fresh install with no libraries/repositories, yet? Perhaps it only gets executed when trying to access data and not when trying to create a repository? I would have a look at it myself, but that part of the code is proprietary, afaik.
Hi, this could be a configuration issue, but I can't find anything. I'm running seafile-pro 3.1.6 with ceph backend, cluster setup, mysql, nginx (HTTPS) and of course memcached. At this step I don't use a load balancer and only have a single seafile-node. After logging in I try to create a library. The Web-UI window doesn't show any reaction after clicking submit. With web debugging I see a POST request to
https://<cluster-url>/ajax/repo/create/
. After some time this request ends with a 504 gateway timeout (according to web debugger. The Web-UI window still doesn't show any change).At this point I'm following the logs with
tail -f
to see when something happens. During the request I don't see anything in the logs (seafile.log, seahub_django_request.log, ccnet.log, fileserver.log).By chance I found out, that I get some interesting (and useful?) information when stopping seahub:
To me it seems like the problem is somewhere in the communication between seahub and another component (seaf-server?). If I try to create the library twice, I get two exceptions when stopping seahub.
If I remember correctly, a very similar setup worked fine using seafile-pro 3.1.1.