I am trying to setup a local test/development environment on ubuntu. I started out with the docker-compose.yml from the docker-hub page (for pydio/cells:latest image). I set a new uid/gid for the container.
First issue I ran into was that Cells complained not being able to create a directory /.config. So ok, I mounted a second local volume, such that both /.config/ and /root/.config/ would be permanent. Only the first seems to be written to, so far…
Next problem is setting up behind an http reverse proxy(nginx). Installation works, but I have to set the environment variables to CELLS_NO_SSL=1, set nginx to http to the container’s 8080. After installation and reloading, the page will complain about mixed content. Now I edited pydio.json to use https instead, and that gets rid of that error.
I got another error that pydio can’t resolve the hostname “dev-cells” by DNS. Since that is a host defined in my “global” /etc/hosts, that is no wonder. So I put another network IP for dev-cells into extra_hosts. Error gotten rid again.
Next problem: I can’t login, because the backend throws an error, showing this in the logs:
pydio.rest.frontend Ladon blocked POST request at /frontend/session. Ladon Response: DefaultDeny:true
Also, I was not yet able to make the configuration/installation permanent. I am guessing there are additional volumes I’m missing?
I was not able to find/confirm the source code for the Dockerfile used in pydio/cells, though that may be just me missing something obvious.
I would appreciate hints and any useful information regarding my troubles.
I also now tried without SSL, just http, no reverse proxy and radon now works.
The page on dockerhub says to mount a volume on /root/.config/pydio/cells. But the installer only writes the configuratio to the volume mounted on /.config, even though the Dockerfile only exports /root/.config as a volume. Also, despite the volume staying the same and the contents not changing, cells is starting the installer again when it is recreated.
The issue about the http/https is just that with the environment variables alone it is not possible to proxy an http cells container for an https connection, since with CELLS_NO_SSL=0 the container only listens via https, and with CELLS_NO_SSL=1 the container serves pages which cause “http” urls, which get blocked by the Browser. I got around that by modifying the pydio.json.
Maybe Ladon complains because of the hostname in the login request or something?
There seems to be an issue with the current pydio/cells image on dockerhub. I cloned the cells repo and build the docker image myself with cells 1.4.1. Without changing the docker-compose configuration, the container now writes to the /root/.config instead of the /.config volume, and the state persists between restarts.
Yes, the documentation says the volume should be mounted on /root/.config. And with the image I built from source this works fine. Before that, I was using the one I pulled from dockerhub as pydio/cells:latest, and that wrote the config to /.config and just recreated it on every start even if there are volumes on both points.