Failed to get libraries / cannot connect to server - 5.1.3

Hi all - I’ve been a happy user of Seafile 5.1.3 for some time now. Recently, I’ve noticed multiple clients running the Windows client (I believe the newest one - file dates are 23-Jun) as well as my iPhone running the IOS client unable to connect to the server. I haven’t changed anything in the Seafile configuration and have rebooted the Windows 10 machine it’s running on as well as manually restarted seaf-server (currently running as a Windows service) with no luck. I’ve checked the logs but am not 100% sure what I’m looking for (or what log to look in). It looks like the last Windows client synchronization may have been 25-Jul. NAT/Port forwarding has not changed and is still correct in my router.

I’m happy to post log or config file snippets if it will help get this resolved!

Thanks…

Jason

A few logs since the last restart…I added an additional message from 28-Jul in the django log as it seems to repeating (and is the only “error” I can find).

seafserv-applet.log

[07/30/17 09:19:49] seafserv/seafserv.c(474): Restarting …
[07/30/17 09:19:50] seafserv/seafserv.c(569): [process monitor] stopped.
[07/30/17 09:19:50] seafserv/seafserv.c(63): starting ccnet-server …
[07/30/17 09:19:50] created “ccnet-server.exe -c “D:/Seafile-Server\ccnet” -f “D:/Seafile-Server\logs\ccnet.log” -F “D:/Seafile-Server\conf””, pid 9920
[07/30/17 09:19:50] seafserv/seafserv.c(466): ccnet server started
[07/30/17 09:19:51] seafserv/seafserv.c(334): trying to connect to ccnet-sever…
[07/30/17 09:19:51] seafserv/seafserv.c(360): connected to ccnet server
[07/30/17 09:19:51] seafserv/seafserv.c(90): starting seaf-server …
[07/30/17 09:19:51] created “seaf-server.exe -c “D:/Seafile-Server\ccnet” -d “D:/Seafile-Server\seafile-data” -l “D:/Seafile-Server\logs\seafile.log” -F “D:/Seafile-Server\conf””, pid 8080
[07/30/17 09:19:51] seafserv/seafserv.c(161): starting seahub …
[07/30/17 09:19:51] created “python.exe “C:\Seafile\seafile-server-5.1.3\seafile\bin…\seahub\manage.py” runwsgiserver host=0.0.0.0 port=8000 autoreload=False staticserve=False”, pid 7996
[07/30/17 09:19:51] seafserv/seafserv.c(560): [process monitor] started.

seahub.log

2017-07-30 09:19:59,194 [INFO] root:292 runwsgiserver starting server with options:
{‘adminserve’: ‘Deprecated’,
‘autoreload’: False,
‘daemonize’: False,
‘host’: ‘0.0.0.0’,
‘pidfile’: None,
‘port’: ‘8000’,
‘server_group’: ‘www-data’,
‘server_name’: ‘localhost’,
‘server_user’: ‘www-data’,
‘servestaticdirs’: True,
‘ssl_certificate’: None,
‘ssl_private_key’: None,
‘staticserve’: False,
‘threads’: 10,
‘workdir’: None}

seafserv.log

[07/30/17 09:19:49] seafserv/seafserv.c(474): Restarting …
[07/30/17 09:19:50] seafserv/seafserv.c(569): [process monitor] stopped.
[07/30/17 09:19:50] seafserv/seafserv.c(63): starting ccnet-server …
[07/30/17 09:19:50] created “ccnet-server.exe -c “D:/Seafile-Server\ccnet” -f “D:/Seafile-Server\logs\ccnet.log” -F “D:/Seafile-Server\conf””, pid 9920
[07/30/17 09:19:50] seafserv/seafserv.c(466): ccnet server started
[07/30/17 09:19:51] seafserv/seafserv.c(334): trying to connect to ccnet-sever…
[07/30/17 09:19:51] seafserv/seafserv.c(360): connected to ccnet server
[07/30/17 09:19:51] seafserv/seafserv.c(90): starting seaf-server …
[07/30/17 09:19:51] created “seaf-server.exe -c “D:/Seafile-Server\ccnet” -d “D:/Seafile-Server\seafile-data” -l “D:/Seafile-Server\logs\seafile.log” -F “D:/Seafile-Server\conf””, pid 8080
[07/30/17 09:19:51] seafserv/seafserv.c(161): starting seahub …
[07/30/17 09:19:51] created “python.exe “C:\Seafile\seafile-server-5.1.3\seafile\bin…\seahub\manage.py” runwsgiserver host=0.0.0.0 port=8000 autoreload=False staticserve=False”, pid 7996
[07/30/17 09:19:51] seafserv/seafserv.c(560): [process monitor] started.

ccnet.log

[07/30/17 09:19:50] …/common/session.c(132): using config file D:/Seafile-Server\conf\ccnet.conf
[07/30/17 09:19:50] …/common/session.c(418): Listen on 127.0.0.1 13418
[07/30/17 09:19:50] …/common/session.c(290): Update pubinfo file
[07/30/17 09:19:50] …/common/connect-mgr.c(515): Opened port 10001 to listen for incoming peer connections
[07/30/17 09:19:51] …/common/session.c(398): Accepted a local client
[07/30/17 09:19:51] …/common/session.c(398): Accepted a local client
[07/30/17 09:19:51] …/common/session.c(398): Accepted a local client
[07/30/17 09:19:51] …/common/session.c(398): Accepted a local client
[07/30/17 09:19:51] …/common/session.c(398): Accepted a local client
[07/30/17 09:19:53] …/common/session.c(398): Accepted a local client
[07/30/17 09:19:53] …/common/session.c(398): Accepted a local client
[07/30/17 09:34:00] …/common/session.c(398): Accepted a local client

seafile.log

[07/30/17 09:19:50] read from connfd error: No error.
[07/30/17 09:19:51] …/common/mq-mgr.c(60): [mq client] mq cilent is started
[07/30/17 09:19:51] …/common/mq-mgr.c(106): [mq mgr] publish to hearbeat mq: seaf_server.heartbeat
[07/30/17 09:19:51] listen-mgr.c(120): listen on port 12001 for block tranfer

seahub_django_request.log

WindowsError: [Error 32] The process cannot access the file because it is being used by another process: ‘D:\Seafile-Server\seahub_cache\ceec40422771f78d283f254429d1d993.djcache’
2017-07-28 21:17:34,884 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /api2/account/info/
Traceback (most recent call last):
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\handlers\base.py”, line 108, in get_response
response = middleware_method(request)
File “C:\Seafile\seafile-server-5.1.3\seahub\seahub\base\middleware.py”, line 64, in process_request
cur_note = cache.get(‘CUR_TOPINFO’) if cache.get(‘CUR_TOPINFO’) else
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 41, in get
if not self._is_expired(f):
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 141, in _is_expired
self._delete(f.name)
File “C:\Seafile\seafile-server-5.1.3\seahub\thirdpart\django-1.8.10-py2.7.egg\django\core\cache\backends\filebased.py”, line 72, in _delete
os.remove(fname)
WindowsError: [Error 32] The process cannot access the file because it is being used by another process: ‘D:\Seafile-Server\seahub_cache\ceec40422771f78d283f254429d1d993.djcache’
2017-07-30 09:34:00,980 [WARNING] django.request:170 get_response Not Found: /echo.php

Thanks!

Jason

Feeling pretty silly… :confounded:

Spent some time checking firewall rules, different clients, etc. In the end, it had nothing at all to do with Seafile. I’ve been using a free subdomain from Afraid.org for routing via dynamic DNS to my server, and apparently the domain I was using broke or expired. I tried using the IP address and it brought me right to the web interface. Fixed it up with a new subdomain on Afraid as an interim solution and now we’re back in business. I will get my own domain name shortly to prevent that from happening again, but everything is now synchronizing perfectly.

Jason

1 Like