初始化数据库到最后一步报错AttributeError: 'str' object has no attribute 'close'


Press ENTER to continue, or Ctrl-C to abort

Generating seafile configuration …

done
Generating seahub configuration …


Now creating seafevents database tables …



Now creating ccnet database tables …



Now creating seafile database tables …



Now creating seahub database tables …


creating seafile-server-latest symbolic link … done


Your seafile server configuration has been finished successfully.

run seafile server: ./seafile.sh { start | stop | restart }
run seahub server: ./seahub.sh { start | stop | restart }


If you are behind a firewall, remember to allow input/output of these tcp ports:

port of seafile fileserver: 8082
port of seahub: 8000

When problems occur, Refer to

    https://download.seafile.com/published/seafile-manual/home.md

for information.

Traceback (most recent call last):
File “setup-seafile-mysql.py”, line 1600, in
main()
File “setup-seafile-mysql.py”, line 1566, in main
db_config.root_conn.close()
AttributeError: ‘str’ object has no attribute ‘close’
[root@SeaFile /opt/seafile/seafile-server-12.0.11] #