haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

Seahub starts with AttributeError #1945

Closed pbosch closed 7 years ago

pbosch commented 7 years ago

I recently upgraded my server from 6.0.8 to 6.1.2 and experienced an error when starting seahub. The only suggestion that I found was making sure that the client port section in ccnet.conf exists, but this is the case. Did some part of the configuration change without documentation? I expect this is also the reason why the change to a sub folder leaves the site without any visual element. Just 90's style text as it is suggested to remove the seahub cache.

The error: Exception AttributeError: "'SyncClient' object has no attribute '_connfd'" in <bound method SyncClient.__del__ of <ccnet.sync_client.SyncClient object at 0x7f6bc1e92510>> ignored

Ccnet.conf:

[General]
USER_NAME = xxx
ID = xxx
SERVICE_URL = http://xxx/seafile

[Network]
PORT = 10001

[Client]
PORT = 13419

[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = xxx
PASSWD = xxx
DB = ccnet-db
CONNECTION_CHARSET = utf8

Seahub_settings.py:

FILE_SERVER_ROOT = 'http://xxx/seafhttp'

#SECRET_KEY = "xxx"

SERVE_STATIC = False
MEDIA_URL = '/seafmedia/'
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + 'assets/'
SITE_ROOT = '/seafile/'
LOGIN_URL = '/seafile/accounts/login/'    # NOTE: since version 5.0.4

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'seahub-db',
        'USER': 'xxx',
        'PASSWORD': 'xxx',
        'HOST': '127.0.0.1',
        'PORT': '3306',
        'OPTIONS': {
            'init_command': 'SET default_storage_engine=INNODB',
        }
    }
}
pbosch commented 7 years ago

Solved it if anybody is interested.

The parameter USER_NAME changed to NAME only in the ccnet.conf file. Changing that let's everything run without an issue.