antedebaas / DMARC-SMTPTLS-Reports

DMARC & SMTP-TLS Reports processor and visualizer
https://hub.docker.com/repository/docker/antedebaas/dmarc-reports/general
GNU General Public License v2.0
68 stars 15 forks source link

Setup process requires creation of admin user - NOT Working #89

Closed wege2003 closed 1 month ago

wege2003 commented 1 month ago

Hi everyone,

in the setup process the admin user is asked to create, but this does not work in the current version, you are always redirected to the error page after the creation. But the user isnt in the database also. Can you fix this or how can I access the application logs?

Screenshot: image

Screenshot 2: image

Thanks, Greets Michael

wege2003 commented 1 month ago

It seems to be something with the database, because when i create manually the user it shows up in the db with the correct id. Screenshot: image

But in the setup process it can create my user:

2024-05-08 19:26:08.751 UTC [441] ERROR:  null value in column "id" of relation "users" violates not-null constraint
2024-05-08 19:26:08.751 UTC [441] DETAIL:  Failing row contains (null, __redacte-email__, ["ROLE_ADMIN"], __redacred-pw-hash__, t).

Please fix that.

Thanks!

antedebaas commented 1 month ago

I’ll look into this, what database type are you using?

wege2003 commented 1 month ago

i am using postresql, but it happens with mysql also

antedebaas commented 1 month ago

i could not replicate it on mysql but the postgres databse was indeed wrong. this should be fixed in 1.12.2 let me know if you still encounter problems.

wege2003 commented 1 month ago

now it is working fine, DMARC reports are loading, and the mailbox check is also working. The user creation works also fine.

Thanks, for the fix!