Upgrading 7.05-> 7.1.3. Error updating database and seahub fails to start

Hi guys!

I’m trying to upgrade from 7.0.5 to 7.1.3. The update script failed as follows:

Updating seafile/seahub database ...

Traceback (most recent call last):
  File "/media/seafile/minipc/seafile-server-7.1.3/upgrade/db_update_helper.py", line 384, in <module>
  File "/media/seafile/minipc/seafile-server-7.1.3/upgrade/db_update_helper.py", line 378, in main
    db_updater = DBUpdater.get_instance(version)
  File "/media/seafile/minipc/seafile-server-7.1.3/upgrade/db_update_helper.py", line 85, in get_instance
    seafile_db_info = DBUpdater.get_seafile_mysql_info(version)
  File "/media/seafile/minipc/seafile-server-7.1.3/upgrade/db_update_helper.py", line 184, in get_seafile_mysql_info
    config = Utils.read_config(seafile_conf, defaults)
  File "/media/seafile/minipc/seafile-server-7.1.3/upgrade/db_update_helper.py", line 61, in read_config
  File "/usr/lib/python3.6/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib/python3.6/configparser.py", line 1066, in _read
configparser.DuplicateSectionError: While reading from '/media/seafile/minipc/conf/seafile.conf' [line 16]: section 'fileserver' already exists
Failed to upgrade your database

And now I can’t continue. I tried to see and start seahub.sh, but it fails with no useful information:

 ./seahub.sh start
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again

What can I look into?

Seems like your seafile.conf is faulty.

Please check if one section is mentioned twice.

I have the same issue, seafile.conf seems to be totally correct

My fault, section fileserver needs to exist only once