Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot login as admin #10

Open
dtanzer opened this issue Jul 31, 2015 · 4 comments
Open

Cannot login as admin #10

dtanzer opened this issue Jul 31, 2015 · 4 comments

Comments

@dtanzer
Copy link

dtanzer commented Jul 31, 2015

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

@MarvAmBass
Copy link
Owner

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

@dtanzer
Copy link
Author

dtanzer commented Aug 1, 2015

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.

@MarvAmBass
Copy link
Owner

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

@spiderpug
Copy link

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 ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants