2 years, and no solution?
I just did a brand new install of Ubuntu 18.10, added the seafile cli packages following the docs, added the ccnet stuff (not documented), and get the same error. I’m assuming it’s a problem with the socket connection to the daemon or ccnet, as the access to the seafile server itself is working fine (list-remote lists all of the libraries I have available). Checking with strace, I can see that the daemon process is opening the socket just fine:
1556 socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP) = 3
1556 socket(AF_UNIX, SOCK_STREAM, 0) = 14
1556 access("/root/seafile/seafile-data/seafile.sock", F_OK) = 0
1556 unlink("/root/seafile/seafile-data/seafile.sock") = 0
1556 bind(14, {sa_family=AF_UNIX, sun_path="/root/seafile/seafile-data/seafile.sock"}, 110) = 0
1556 chmod("/root/seafile/seafile-data/seafile.sock", 0700) = 0
though seaf-cli fails accessing the daemon process:
1631 connect(3, {sa_family=AF_UNIX, sun_path="/root/.ccnet/ccnet.sock"}, 25) = -1 ECONNREFUSED (Connection refused)
And yes, the daemon process is still running …
Here’s some output from ccnet.log:
[12/01/18 22:30:49] ccnet-daemon.c(193): starting ccnet client 6.0.4
[12/01/18 22:30:49] …/common/session.c(132): using config file /root/.ccnet/ccnet.conf
[12/01/18 22:30:49] …/common/session.c(455): socket file exists, delete it anyway
[12/01/18 22:30:49] …/common/session.c(484): Listen on /root/.ccnet/ccnet.sock for local clients
[12/01/18 22:30:49] …/common/session.c(290): Update pubinfo file
[12/01/18 22:31:01] …/common/session.c(398): Accepted a local client
[12/01/18 22:31:01] …/common/session.c(398): Accepted a local client
[12/01/18 22:31:01] …/common/peer.c(943): Local peer down
[12/01/18 22:31:01] …/common/peer.c(943): Local peer down
[12/01/18 22:34:22] …/common/session.c(398): Accepted a local client
[12/01/18 22:34:22] …/common/peer.c(943): Local peer down
[12/01/18 22:34:22] …/common/session.c(398): Accepted a local client
[12/01/18 22:34:22] …/common/session.c(398): Accepted a local client
[12/01/18 22:34:22] …/common/peer.c(943): Local peer down
[12/01/18 22:34:22] …/common/peer.c(943): Local peer down
The last 4 lines are always written when seaf-cli status (e.g.) is called …
strace of ccnet shows this:
readv(12, [{iov_base=“seafile-rpcserver”, iov_len=17}], 1) = 17
epoll_ctl(5, EPOLL_CTL_MOD, 12, {EPOLLIN|EPOLLOUT, {u32=12, u64=12}}) = 0
epoll_wait(5, [{EPOLLOUT, {u32=12, u64=12}}], 32, -1) = 1
writev(12, [{iov_base="\1\3\0\24\0\0\3\351511 Unknown service\n", iov_len=28}], 1) = 28
Could it be that the official packages are missing some files or expecting some prerequisites that are neither documented nor listed as prerequisites in the packages???