网页无法登录 Page unavailable 有没有大神啊!


#1

2018-02-11 08:35:48,288 [ERROR] django.request:256 handle_uncaught_exception Internal Server Error: /accounts/login/
Traceback (most recent call last):
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/core/handlers/base.py”, line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/utils/decorators.py”, line 110, in _wrapped_view
response = view_func(request, *args, **kwargs)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/views/decorators/cache.py”, line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File “/yun/seafile-pro-server-6.1.8/seahub/seahub/auth/views.py”, line 175, in login
redirect_to, remember_me)
File “/yun/seafile-pro-server-6.1.8/seahub/seahub/auth/views.py”, line 139, in _handle_login_form_valid
return log_user_in(request, user, redirect_to)
File “/yun/seafile-pro-server-6.1.8/seahub/seahub/auth/views.py”, line 59, in log_user_in
auth_login(request, user)
File “/yun/seafile-pro-server-6.1.8/seahub/seahub/auth/init.py”, line 93, in login
user_logged_in.send(sender=user.class, request=request, user=user)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/dispatch/dispatcher.py”, line 189, in send
response = receiver(signal=self, sender=sender, **named)
File “/yun/seafile-pro-server-6.1.8/seahub-extra/seahub_extra/sysadmin_extra/models.py”, line 30, in create_login_log
UserLoginLog.objects.create_login_log(username, login_ip)
File “/yun/seafile-pro-server-6.1.8/seahub-extra/seahub_extra/sysadmin_extra/models.py”, line 8, in create_login_log
login_ip=login_ip)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/manager.py”, line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/query.py”, line 348, in create
obj.save(force_insert=True, using=self.db)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/base.py”, line 734, in save
force_update=force_update, update_fields=update_fields)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/base.py”, line 762, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/base.py”, line 846, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/base.py”, line 885, in _do_insert
using=using, raw=raw)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/manager.py”, line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/query.py”, line 920, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/models/sql/compiler.py”, line 974, in execute_sql
cursor.execute(sql, params)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/utils.py”, line 98, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/backends/utils.py”, line 64, in execute
return self.cursor.execute(sql, params)
File “/yun/seafile-pro-server-6.1.8/seahub/thirdpart/Django-1.8.18-py2.7.egg/django/db/backends/mysql/base.py”, line 124, in execute
return self.cursor.execute(query, args)
File “/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/usr/lib64/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1364, “Field ‘login_success’ doesn’t have a default value”)


#2

检查下MySQL数据库是否工作正常