源码安装出现:Seahub syncdb failed


#1

Now initializing seahub database, please wait…

Warning: File comment has changed since version 6.3, while table base_filecomment is not migrated yet, please consider migrate it according to v6.3.0 release note, otherwise the file comment feature will not work correctly.

Operations to perform:
Synchronize unmigrated apps: help, webpack_loader, staticfiles, wopi, messages, thumbnail, statici18n, compressor, password_session, constance, gunicorn
Apply all migrations: wiki, termsandconditions, trusted_ip, api2, share, captcha, registration, post_office, group, drafts, contacts, tags, contenttypes, repo_tags, profile, sessions, auth, invitations, notifications, base, social_django, related_files, revision_tag, database, two_factor, admin_log, institutions, file_tags, avatar, role_permissions, options
Synchronizing apps without migrations:
Creating tables…
Running deferred SQL…
Installing custom SQL…
Running migrations:
Rendering model states… DONE
Applying admin_log.0001_initial… OK
Applying api2.0001_initial… OK
Applying contenttypes.0001_initial… OK
Applying contenttypes.0002_remove_content_type_name… OK
Applying auth.0001_initial… OK
Applying auth.0002_alter_permission_name_max_length… OK
Applying auth.0003_alter_user_email_max_length… OK
Applying auth.0004_alter_user_username_opts… OK
Applying auth.0005_alter_user_last_login_null… OK
Applying auth.0006_require_contenttypes_0002… OK
Applying avatar.0001_initial… OK
Applying tags.0001_initial… OK
Applying group.0001_initial… OK
Applying base.0001_initial… OK
Applying base.0002_reposecretkey… OK
Applying base.0003_auto_20181016_1242… OK
Applying captcha.0001_initial… OK
Applying contacts.0001_initial… OK
Applying database.0001_initial… OK
Applying drafts.0001_initial… OK
Applying drafts.0002_draftreview_author… OK
Applying drafts.0003_auto_20190301_0648… OK
Applying repo_tags.0001_initial… OK
Applying file_tags.0001_initial… OK
Applying file_tags.0002_remove_filetags_parent_folder_uuid… OK
Applying institutions.0001_initial… OK
Applying institutions.0002_institutionquota… OK
Applying institutions.0003_auto_20180426_0710… OK
Applying invitations.0001_initial… OK
Applying invitations.0002_invitation_invite_type… OK
Applying invitations.0003_auto_20160510_1703… OK
Applying invitations.0004_auto_20160629_1610… OK
Applying invitations.0005_auto_20160629_1614… OK
Applying notifications.0001_initial… OK
Applying notifications.0002_auto_20180426_0710… OK
Applying notifications.0003_auto_20181115_0825… OK
Applying options.0001_initial… OK
Applying options.0002_auto_20181107_0811… OK
Applying post_office.0001_initial… OK
Applying post_office.0002_add_i18n_and_backend_alias… OK
Applying post_office.0003_longer_subject… OK
Applying post_office.0004_auto_20160607_0901… OK
Applying post_office.0005_auto_20170515_0013… OK
Applying post_office.0006_attachment_mimetype… OK
Applying post_office.0007_auto_20170731_1342… OK
Applying profile.0001_initial… OK
Applying profile.0002_auto_20190122_0225… OK
Applying registration.0001_initial… OK
Applying related_files.0001_initial… OK
Applying revision_tag.0001_initial… OK
Applying role_permissions.0001_initial… OK
Applying sessions.0001_initial… OK
Applying share.0001_initial… OK
Applying social_django.0001_initial… OK
Applying termsandconditions.0001_initial… OK
Applying trusted_ip.0001_initial… OK
Applying two_factor.0001_initial… OK
Applying wiki.0001_initial… OK
Applying wiki.0002_auto_20180326_0548… OK
Applying wiki.0003_auto_20180428_0619… OK
Traceback (most recent call last):
File “manage.py”, line 10, in
execute_from_command_line(sys.argv)
File “/usr/local/lib/python2.7/dist-packages/django/core/management/init.py”, line 338, in execute_from_command_line
utility.execute()
File “/usr/local/lib/python2.7/dist-packages/django/core/management/init.py”, line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/usr/local/lib/python2.7/dist-packages/django/core/management/base.py”, line 390, in run_from_argv
self.execute(*args, **cmd_options)
File “/usr/local/lib/python2.7/dist-packages/django/core/management/base.py”, line 441, in execute
output = self.handle(*args, **options)
File “/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py”, line 25, in handle
call_command(“migrate”, **options)
File “/usr/local/lib/python2.7/dist-packages/django/core/management/init.py”, line 120, in call_command
return command.execute(*args, **defaults)
File “/usr/local/lib/python2.7/dist-packages/django/core/management/base.py”, line 441, in execute
output = self.handle(*args, **options)
File “/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py”, line 225, in handle
emit_post_migrate_signal(created_models, self.verbosity, self.interactive, connection.alias)
File “/usr/local/lib/python2.7/dist-packages/django/core/management/sql.py”, line 288, in emit_post_migrate_signal
db=db)
File “/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py”, line 201, in send
response = receiver(signal=self, sender=sender, **named)
File “/usr/local/lib/python2.7/dist-packages/constance/models.py”, line 16, in create_perm
model=‘config’)
File “/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py”, line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/django/db/models/query.py”, line 405, in get_or_create
return self.get(**lookup), False
File “/usr/local/lib/python2.7/dist-packages/django/db/models/query.py”, line 325, in get
clone = self.filter(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/django/db/models/query.py”, line 679, in filter
return self._filter_or_exclude(False, *args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/django/db/models/query.py”, line 697, in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
File “/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py”, line 1301, in add_q
clause, require_inner = self._add_q(where_part, self.used_aliases)
File “/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py”, line 1328, in _add_q
current_negated=current_negated, connector=connector, allow_joins=allow_joins)
File “/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py”, line 1144, in build_filter
lookups, parts, reffed_aggregate = self.solve_lookup_type(arg)
File “/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py”, line 1030, in solve_lookup_type
_, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
File “/usr/local/lib/python2.7/dist-packages/django/db/models/sql/query.py”, line 1386, in names_to_path
“Choices are: %s” % (name, ", ".join(available)))
django.core.exceptions.FieldError: Cannot resolve keyword ‘name’ into field. Choices are: app_label, id, model, permission
Error: Seahub syncdb failed

系统环境 :

OS:Ubuntu 18.04 Server 64bit

  • libsearpc-3.1-latest.tar.gz [v3.1-latest ]
  • ccnet-server-7.0.0-server.tar.gz [v7.0.0-server ]
  • seafile-server-7.0.0-server.tar.gz [v7.0.0-server]
  • seahub-7.0.1-server.tar.gz [v7.0.1-pro ]

还行大佬指点迷津,多谢!!!


#2

请大佬们指点迷津!!!!!!不胜感激


#3

自顶!!!!:disappointed_relieved::disappointed_relieved:


#4

我也遇到同样的问题,请各位大佬们解决一下。谢谢!