haiwen / seafile-docker

A Docker image for Seafile server
Other
544 stars 183 forks source link

No memcached found in the seafile pro docker image. #238

Closed scottpedia closed 3 years ago

scottpedia commented 3 years ago

Hi Guys

I tried to deploy the latest version of seafile pro server with docker on my mac lately. And I wanted to use Amazon S3 as the storage backend, which required memcached to be installed.

First I found no presence of such inside the image filesystem. Then I tried to build and install the binary manually, which at the end did not work out as well.

The seafile.conf had the following error output when I started the program with memcached installed manually:

[12/17/2020 04:38:49 PM] start to serve on pipe client
...
[12/17/2020 04:39:19 PM] ../common/obj-cache.c(111): Failed to set 02961867-6e84-4c73-adbf-0eae24c6cd0b-d76da5a896aa2292e278e37d67e2f49c3463bea0 to memcached: SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY.
...

Is there a tested way to setup S3 storage backend in a docker environment? Or if there is a proper way to install memcached?

scottpedia commented 3 years ago

The problem has been resolved. I was new to Docker and therefore did not realize memcached was running in a separate container in the same network. I just needed to change the IP address of memcached server from localhost to the actual IP in the subnet.