docker-piwik icon indicating copy to clipboard operation
docker-piwik copied to clipboard

Cannot login as admin

Open dtanzer opened this issue 10 years ago • 4 comments

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'...

dtanzer avatar Jul 31 '15 13:07 dtanzer

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

MarvAmBass avatar Jul 31 '15 15:07 MarvAmBass

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.

dtanzer avatar Aug 01 '15 06:08 dtanzer

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

MarvAmBass avatar Aug 01 '15 06:08 MarvAmBass

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 ;

spiderpug avatar Feb 09 '16 17:02 spiderpug