Cannot login as admin
When I run pivik with a linked mysql container, it looks like everything is OK (the log tells me that a password was autogenerated and then the whole pivik setup was done). But then I cannot login with the generated password. Is there any way I could debug this? The user table in the database does not contain an entry for 'admin'...
well, there are several posibillities:
-
your username doesn't fit or makes problems in a bash
-
you could search the container filesystem for hints
docker exec -ti piwik /bin/bash
-
set a simple password and check if it works with this password
Thanks for the hints! I tried admin/admin, so I think it doesn't get simpler than that. Would piwik normally store the admin account in the database? Because I couldn't find it there. I thought maybe something went wrong during setting up piwik (where the script in the container runs some curl commands)... But I have no idea how I could debug this.
can you post the logfile? the curl commands work if you see that they reach 100% at the end. normally if something fails it gets stuck on something less the 100
I don't know anything about piwik internals
I had the same problem and didn't know how to add a new user other than:
insert into `piwik_user` SET `password` = MD5( 'changeMe' ), `token_auth` = MD5( CONCAT('admin', password)), `login` = 'admin', superuser_access = 1 ;