Problem with Internal server error when re-creating a user

Hi, I have a huge issue happening and I belive its to do with the User in the database.

I deleted a User account but later they wanted to have the same user again - the issue Im having is that when I try to create the user again I get error : internal server error.

It then creates a user with the name : [d6150336274e446e85e638571ac1e26f]

If I use a new email and create a user then it works fine and the user is created normally.

How can I remove all records of the old user on the email before I can create one again?

Current version is Seafile Pro 11.0.17

Thank you

I deleted the test user, then created it again and it worked fine.
Its just the one user I tried creating it again, it still shows Internal server error and as in the photo it makes a user like this.

I still have this issue, @daniel.pan could I please ask for assistance.

If you have Internal server error, there should be detailed error messages in seahub.log. Can you give it a check?

Thank you @daniel.pan
Please see attached a screenshot of the seahub.log

the last 4 lines was basically trying to create the user 2 times as explained in the original message.

Can you add “DEBUG=True” to seahub_settings.py and restart the server, then try to reproduce the error again? The detailed traceback will be available in the web interface.

I added the DEBUG = True like this : DEBUG = True

I then rebooted docker container.

There was still just showing Internal Server Error when creating the user the seahub.log showed this :

What information do you see in the web interface when you have the error? Can you post a screenshot?

Yes sure it shows this :

Then it creates an account like this :