Hi, I’ve been following the tutorial over at Odroid’s wiki (I can’t post the link here but at odroid-xu4/software/omv_nas/eng/03_advanced) from 01_beginning until this 03_advanced section to install the latest Seafile 6.3.4_stable_pi.tar.gz on my XU4 with OMV. Everything worked well up until accessing it via DDNS.
I’ve just finished the steps to forward Seafile through DDNS externally but now anytime I try and load the interface at myddnsurl:8000 (through DDNS or locally) I get a 502 Bad Gateway - nginx/1.10.3 error. I can confirm both seahub and seafile are running and I’m pretty sure it has to do with the code I add in Extra options during the 3. Apply it to each program Seafile step.
Can anyone help me in moving forwards to restore the Seafile web UI?
/var/www/seafile/conf/seahub_settings.py:
# -*- coding: utf-8 -*-
SECRET_KEY = "CENSORED"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub-db',
'USER': 'seafile',
'PASSWORD': 'CENSORED',
'HOST': '127.0.0.1',
'PORT': '3306'
}
}
TIME_ZONE = 'CENSORED'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
HTTP_SERVER_ROOT = 'myddnsurl/seafhttp'
SERVE_STATIC = False
/var/www/seafile/conf/ccnet.conf:
[General]
USER_NAME = Cloud
ID = bfc6c59160b8673e785fe5de5c0305f711673c82
NAME = Cloud
SERVICE_URL = myddnsurl
[Client]
PORT = 13419
[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = CENSORED
DB = ccnet-db
CONNECTION_CHARSET = utf8
/var/www/seafile/conf/seafile.conf:
[fileserver]
port = 8082
[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = CENSORED
db_name = seafile-db
connection_charset = utf8
/var/log/nginx/error.log.1 (excerpt, lots of the below repeating):
[emerg] 3361#3361: bind() to 0.0.0.0:8000 failed (98: Addre$$ Address already in use)
And if I run netstat -tulpn:
1446/monit and 1336/cnid_metad are on port 8000. Could this be conflicting with Seafile & Seahub?
I’m happy to share error logs or additional info, just let me know if and what’s needed