Thanks for your replies, Todd.
Bypassing nginx gives the same results as with nginx. The mysql-stuff is only on tcp 3306, you’re correct.
The install script setup-seafile-mysql.py mentions 10001 and 12001 in its code, but from the notes I took when setting things up, it looks the script didn’t ask for anyting those ports were the default settings. I’m pretty sure I added them to the server’s config myself since the client’s config referenced them (please see below) and it worked when listening on those ports.
But yeah, the manual should be updated, too.
Ok, I removed the [Client] and [Network] sections from ccnet.conf and seafile.conf. Additionally, I’ve enabled seafdav so I can test that. I’ve checked netstat, nothing’s listening on 12001 or 13419 anymore. That should comply with the changelog’s note I hope. These ports are the only ones I see, it matches with the seafile config.
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 18936/python2.7
tcp 0 0 127.0.0.1:8082 0.0.0.0:* LISTEN 18937/seaf-server
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 18978/python2.7
tcp 0 0 127.0.0.1:44668 127.0.0.1:3306 ESTABLISHED 18937/seaf-server
tcp 0 0 127.0.0.1:3306 127.0.0.1:44666 ESTABLISHED 7020/mysqld
tcp 0 0 127.0.0.1:44666 127.0.0.1:3306 ESTABLISHED 18934/ccnet-server
tcp 0 0 127.0.0.1:3306 127.0.0.1:44666 ESTABLISHED 7020/mysqld
3306 is mysql. Nothing on IPv6 and no UDP either. Nginx is listening on 80 and 443.
Testing:
- Access via Website: Downloading a file (alsamixer.PNG) results in 502 error on the client.
Nginx log this in its error log:
2018/06/13 20:24:22 [error] 16279#0: *444 upstream prematurely closed connection while reading response header from upstream, client: x.x.x.x, server: myurl, request: "GET /seafhttp/files/d48cba06-250d-43b2-b19c-3b6487a475a1/alsamixer.PNG HTTP/1.1", upstream: "http://127.0.0.1:8082/files/d48cba06-250d-43b2-b19c-3b6487a475a1/alsamixer.PNG", host: "myurl", referrer: "https://myurl/"
ccnet.log:
[06/13/18 20:24:21] ../common/peer.c(941): libevent got an error! what=33, errno=104 (Connection reset by peer)
controller.log shows no errors.
seahub_django_request.log:
2018-06-13 18:24:18,541 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /thumbnail/268ec352-f199-4505-84ba-fdf866fd6bdf/1024/IMG_0059.jpg
Traceback (most recent call last):
File "/opt/seafile/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/seafile/seafile-server-6.2.5/seahub/seahub/auth/decorators.py", line 27, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/opt/seafile/seafile-server-6.2.5/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/views/decorators/http.py", line 158, in inner
response = func(request, *args, **kwargs)
File "/opt/seafile/seafile-server-6.2.5/seahub/seahub/thumbnail/views.py", line 90, in thumbnail_get
repo = get_repo(repo_id)
File "/opt/seafile/seafile-server-6.2.5/seafile/lib/python2.7/site-packages/seaserv/service.py", line 342, in get_repo
return seafserv_threaded_rpc.get_repo(repo_id)
File "/usr/lib/python2.7/site-packages/pysearpc/client.py", line 110, in newfunc
ret_str = self.call_remote_func_sync(fcall_str)
File "/opt/seafile/seafile-server-6.2.5/seafile/lib/python2.7/site-packages/ccnet/rpc.py", line 75, in call_remote_func_sync
req_id = self._start_service(client)
File "/opt/seafile/seafile-server-6.2.5/seafile/lib/python2.7/site-packages/ccnet/rpc.py", line 36, in _start_service
raise SearpcError("Error received: %s %s (In _start_service)" % (rsp.code, rsp.code_msg))
SearpcError: Error received: 511 Unknown service (In _start_service)
seahub.log:
2018-06-13 18:24:16,111 [ERROR] seahub.thumbnail.utils:136 generate_thumbnail ''
I’m not sure if the thumbnails are generated when accessing the file, I clicked the download button in the GUI (?dl=1). As django’s error is repeated for every image file (including alsamixer.PNG) in my library, I suppose the thumbnails are generated for the whole folder at once.
- Access via latest windows client (6.1.8), installed for the first time on a test box so we won’t bother with update-related problems on this side. The only place I found some logfiles is %userprofile%\ccnet\logs, if there should be additional logs please let me know. Monitoring the network shows it’s just connectiong to myurl:443, so no deprecated ports are used.
applet.log:
[06/13/18 20:54:13]starting seaf-daemon: ("-c", "C:/Users/Dennis/ccnet", "-d", "C:/Users/Dennis/Seafile/seafile-data", "-w", "C:/Users/Dennis/Seafile")
[06/13/18 20:54:14][Rpc Client] connected to daemon
[06/13/18 20:54:14][RPC] failed to start rpc server: 511 Unknown service.
[06/13/18 20:54:15][Rpc Client] connected to daemon
[06/13/18 20:54:15][Rpc Client] connected to daemon
[06/13/18 20:54:15][MessageListener] connected to daemon
[06/13/18 20:54:16]Starting the network status detector
[06/13/18 20:54:16][AutoUpdateManager] cancel all download tasks
[06/13/18 20:54:16][AutoUpdateManager] clean file caches db
[06/13/18 20:54:16][AutoUpdateManager] clean file caches
[06/13/18 20:54:17][Rpc Client] connected to daemon
[06/13/18 20:54:17][Rpc Client] connected to daemon
[06/13/18 20:56:37][Daemon Mgr] stopping ccnet/seafile daemon
seafile.log shows some starting messages and then this many times:
[06/13/18 20:55:45] http-tx-mgr.c(1415): Bad response code for GET https://myurl/seafhttp/repo/268ec352-f199-4505-84ba-fdf866fd6bdf/commit/HEAD: 404.
[06/13/18 20:55:45] clone-mgr.c(864): Transition clone state for 268ec352 from [check server] to [error]: check server.
[06/13/18 20:55:50] clone-mgr.c(847): Transition clone state for 268ec352 from [error] to [check server].
ccnet.log (i omitted repeating messages):
[06/13/18 20:54:12] ccnet-daemon.c(193): starting ccnet client 6.1.8
[06/13/18 20:54:12] ccnet-daemon.c(195): ccnet source code version 5b9f64c2438517e1c95b28678097419542d1d084
[06/13/18 20:54:12] ../common/session.c(132): using config file C:/Users/Dennis/ccnet\ccnet.conf
[06/13/18 20:54:12] ../common/session.c(418): Listen on 127.0.0.1 13419
[06/13/18 20:54:12] ../common/session.c(290): Update pubinfo file
[06/13/18 20:54:13] ../common/session.c(398): Accepted a local client
[06/13/18 20:54:14] ../common/peer.c(943): Local peer down
[06/13/18 20:54:14] ../common/session.c(398): Accepted a local client
[06/13/18 20:54:15] ../common/peer.c(943): Local peer down
[06/13/18 20:54:17] ../common/session.c(398): Accepted a local client
[06/13/18 20:56:37] ../common/peer.c(943): Local peer down
[06/13/18 20:56:37] ../common/peer.c(941): libevent got an error! what=33, errno=0 (No error)
[06/13/18 20:56:37] ../common/peer.c(943): Local peer down
(last 2 messages repeat two more times)
The 13419 listening port was interesting, so this is ccnet.conf on the client:
[General]
USER_NAME = Dennis
ID = 80d37b9e66d1d7b75edcbb5d21c9bafdcab17375
NAME = Dennis@
[Network]
PORT = 10001
[Client]
PORT = 13419
13419 is listening on 127.0.0.1, but there are no connections to myurl:10001 and nothings listening on 10001 on the client. I think this is because the changes to 6.2.x obviously aren’t implemented in 6.1.8 :). Seems this isn’t related to the problem.
- WebDAV. Suprisingly, I can upload and download files via WebDAV!?! Network monitoring revealed it’s connecting to myurl:443, so everything is handled via nginx’ /seafdav location correctly. This is quite unxepected.
First thought: the webdav component doesn’t use searpc and that’s why we don’t get the 502/511 errors. If so I’ll try to investigate on searpc, maybe I’m lacking some runtime dependencies.
Any ideas are highly appreciated