Unable to upload files to seafile private


#1

I’m trying to upload some file to my seafile server, but I’m getting an network error when doing so.
Already changed the SERVICE_URL to the Port I’m using and
My configuration Files looks like:

seafile.conf

[fileserver]
port = 8082

[database]
type = mysql
host = 127.0.0.1
port = 3306
user = seafile
password = bac4a3af-a26f-4ded-b7fb-85ad16c6832f
db_name = seafile_db
connection_charset = utf8

ccnet.conf

[General]
USER_NAME = seafile
ID = 1a573ce26d66357f2d0f64518b3f151432787cec
NAME = seafile
SERVICE_URL = http:// seafile.example .com:8090

[Client]
PORT = 13419

[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = bac4a3af-a26f-4ded-b7fb-85ad16c6832f
DB = ccnet_db
CONNECTION_CHARSET = utf8

[Client]
UNIX_SOCKET = /opt/seafile/ccnet.sock

seahub_settings.py

# -*- coding: utf-8 -*-
SECRET_KEY = "1mrjkvw6c9k-(gk)(892o-g2svid!e8&(26t(a*5^x5k7qd-z&"

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'seahub_db',
        'USER': 'seafile',
        'PASSWORD': 'bac4a3af-a26f-4ded-b7fb-85ad16c6832f',
        'HOST': '127.0.0.1',
        'PORT': '3306'
    }
}


CACHES = {
    'default': {
        'BACKEND': 'django_pylibmc.memcached.PyLibMCCache',
        'LOCATION': '127.0.0.1:11211',
    },
    'locmem': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
    },
}
COMPRESS_CACHE_BACKEND = 'locmem'

FILE_SERVER_ROOT = "http://other-40.umwelt-campus.de:8090/seafhttp"
#FILE_SERVER_ROOT = "http://seafile.example.com/seafhttp"

#2

Okay, I solved it by adding the port and my used domain to FILE_SERVER_ROOT like this:

FILE_SERVER_ROOT = "http://other-40.umwelt-campus.de:8090/seafhttp"
#FILE_SERVER_ROOT = "http://seafile.example.com/seafhttp"

Also make sure to add the new port to ccnet.conf like:

SERVICE_URL = http://seafile.example.com:8090

That should do the trick.