Hue able to authenticate user but then throws Internal Server Error: /hue/accounts/login
.
It was working all OK until yesterday, but then suddenly stopped working for any new users who tries to login.
[07/May/2020 11:19:10 +0100] backend DEBUG Creating Django user sumitbharadia2
[07/May/2020 11:19:10 +0100] backend DEBUG Populating Django user sumitbharadia2
[07/May/2020 11:19:10 +0100] models ERROR Failed to automatically create user profile.
Traceback (most recent call last):
File "/opt/hue-4.6.0/apps/useradmin/src/useradmin/models.py", line 173, in create_profile_for_user
p.save()
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 808, in save
force_update=force_update, update_fields=update_fields)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 838, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 924, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/base.py", line 963, in _do_insert
using=using, raw=raw)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/query.py", line 1079, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/models/sql/compiler.py", line 1112, in execute_sql
cursor.execute(sql, params)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/hue-4.6.0/build/env/lib/python2.7/site-packages/Django-1.11.22-py2.7.egg/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
IntegrityError: null value in column "json_data" violates not-null constraint
DETAIL: Failing row contains (25, /user/sumitbharadia2, HUE, t, 2020-05-07 11:19:10.693838+01, 12, null, null).
[07/May/2020 11:19:10 +0100] forms ERROR LDAP auth error: 'NoneType' object has no attribute 'creation_method'
[07/May/2020 11:19:10 +0100] access WARNING 172.28.40.220 -anon- - "POST /hue/accounts/login HTTP/1.0" --- Failed login for user: sumitbharadia2
What could have caused this? I can also do ldapsearch
without any issues.