← Back to team overview

dhis2-devs team mailing list archive

Unable to create new users as secret and twofa columns are null


Dear all,

I am unable to create new users. My troubleshooting shows that when I
submit a new user request on the web page, a database
ConstraintViolationException is generated as secret is null. secret and
twofa columns are expected to be non-null. Please see an error extract
below and a table showing two attempts.

What could be causing secret and twofa to be null? I have over 100 users
successfully created before the issue started. thanks.

* ERROR 2018-10-14 21:55:17,350 ERROR: null value in column "secret"
violates not-null constraint
[org.hibernate.exception.ConstraintViolationException: could not execute
statement] (ExceptionMapperStandardImpl.java
statement; SQL [n/a]; constraint [secret]; nested exception is
org.hibernate.exception.ConstrintViolationException: could not execute

Attachment: DHIS2-User-Creation-Error.JPG
Description: JPEG image

Follow ups