Unable to Connect

After installing Seafile Community edition for Docker on Ubuntu 22.04, when I connect to the server via a web browser (either by IP address or hostname), I get a message saying “Unable to Connect”.

Using docker-update logs -f shows that the server has started. There are no entries in the seafhttp.access.log or error.log.

Not sure what to do from here.

import os

daemon = True
workers = 5

# default localhost:8000
bind = "127.0.0.1:8000"

# Pid
pids_dir = '/opt/seafile/pids'
pidfile = os.path.join(pids_dir, 'seahub.pid')

# for file upload, we need a longer timeout value (default is only 30s, too short)
timeout = 1200

limit_request_line = 8190

That didn’t work, still can’t connect. From Firefox on both IP address and domain:

This site can’t be reached
205.xxx.xxx.xxx refused to connect.
Try:
* Checking the connection
* Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

It’s a remote server

I assume it’s running nginx because this was installed from the fully containerized docker-compose version of Seafile. https is also enabled with Let’s Encrypt.

I opened the port using ‘sudo ufw allow 443’. Tried accessing with both the domain name and direct IP address using all ports (80, 8000, and 443). Still no success connecting. Also restarted Seafile using docker-compose restart.

Never mind. After double checking docker-compose.yml, the line for port 443 was commented out. Removing the comment fixed it.

1 Like