Hello,
I’ve been trying and failing to get a Docker instance of Pydio/Cells to run. After I manage to get to the installation page, every single time it freezes and thereafter all I get is a 502 Bad Gateway. Details below.
-
Docker 18.06.1-ce on Ubuntu 18.04 running the default install
-
MySQL 5.7 on the host
-
Nginx 1.14 on the host for the reverse proxy (already serving several sites)
-
Nginx configuration:
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name cells.example.ht;
ssl_certificate /etc/ssl/cells.example.ht/cert.pem;
ssl_certificate_key /etc/ssl/cells.example.ht/privkey.pem;
access_log /var/log/nginx/cells.access.log;
error_log /var/log/nginx/cells.error.log;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Nginx-Proxy true;
proxy_pass "http://<host ip address>:2080$request_uri";
proxy_redirect off;
}
}
- Docker command line:
docker run --detach --name cells
--publish 2080:2080
--volume "config:/root/.config"
--env "CELLS_NO_SSL=1"
--env "CELLS_BIND=cells.example.ht:2080"
--env "CELLS_EXTERNAL=cells.example.ht:2080"
--add-host "localhost:<host ip address>"
pydio/cells
I seem to have needed the --add-host
to allow the container to have access MySQL on the host.
With this command line, I was able to start the install. But the page never reloaded, even by clicking on the manual link. Note that there was quite a bit of trial and error to get to that point. Eventually, I restart the container to no avail.
Nginx reports the following:
connect() failed (111: Connection refused) while connecting to upstream, client: <host ipv6 address>, server: cells.example.ht, request: "GET /favicon.ico HTTP/1.1", upstream: "http://<host ip address>:2080/favicon.ico", host: "cells.example.ht", referrer: "https://cells.example.ht/"
docker logs cells
has not even a suggestion that a connection has been attempted. I expected something like the access
logs from an HTTP server. On the other hand it does have this line:
Error found: pydio.gateway.proxy Could not run {"error": "cannot create storage without CA URL"}
Inside the container, netstart -lnt | grep 2080
returns nothing. So the container does not seem to have anything listening on that port.
That’s basically where I am right now and I don’t think I can move forward without some help. So, thanks in advance for any and all suggestions.
Sorry for the long post.
Best
Philippe