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
"You can't access this resource" error using default login screen #5275
Comments
This should be actually fixed in Piwik 2.4.1. Can you try whether it works meanwhile? Maybe something was cached. |
Please reopen at any time in case it does not work now as mentioned. There was an issue in Piwik 2.4.0 for sure but fixed in Piwik 2.4.1 |
I have this same issue, except I cannot login via either method described in the first post (i.e. neither logging in from the main screen nor from adding a new account work). Phone: Android 4.1.2, Galaxy S3 EDIT: I created a new account and gave it view permissions, and I was able to login with it. I guess you can't login on mobile with the superuser account. |
I assume the account you are using has actually access to at least one account? Maybe you can try to uninstall the app and install it again? Or maybe even better directly try the latest that beta we released today: http://piwik.org/blog/2014/08/piwik-mobile-2-1-beta-android/ I recommend to uninstall the current version first before installing Piwik Mobile 2.1. Do you know which permission your user has? Is it a super user? View access? Admin access? BTW: We will probably release a new version of Piwik tomorrow which could also fix the issue. |
Are you maybe using any other 3rd party plugin in your Piwik like LDAP? |
Just tried logging in with my superuser account via the beta app, and I got the same |
I tried to figure out what could cause this but I did not really find anything. It sounds like a problem in Piwik and not Piwik Mobile but cannot tell for sure. Basically, the only way this can happen is if On this page should be somewhere the action
Can you maybe also try to create another super user just for testing and see whether it works with this one? |
My output from the I made a second account and gave it superuser permissions. I am able to login with that account. I just tried to login with the original superuser account, but still receive the |
Sidenote: I think that the error message could be made clearer because I had no idea what it was trying to tell me when I first encountered it. Perhaps something like: |
Just upgraded Piwik to 2.5.0, but, unfortunately, I still can't login with the original superuser. |
Thx for checking this. Has Piwik Mobile 2 ever worked for you with the other super user account? If yes, have you recently changed your password? Does maybe your password or your username include any special characters (non alpha-numeric)? Maybe it is related to this, but shouldn't. Please also make sure the entered password/username is correct and that no autocorrection or other modifications are done. I can otherwise not explain this behavior as it works with your other accounts and the Piwik API seems to behave correct as well. |
I'm gonna reopen this issue so we don't forget to work on his. Would you mind answer the last questions? |
Hi, I get the same message with latest Piwik Mobile and latest Piwik (2.8) Is there an issue still exists with LDAP Mobile login ? |
@lunarok can you confirm you are also using Ldap v3.0.0 ? http://plugins.piwik.org/LoginLdap |
@mattab yes using v3.0.0, latest from marketplace |
@diosmosis do you maybe know why logging in with |
@mattab @lunarok Does the user have access to any websites? Login with your superuser to Piwik and check in the Manage > Users admin page if the LDAP user has access to websites. If you started using LoginLdap recently, and you are not managing user access via LDAP attributes, then you have to either set the 'Initial Sites With View Access For New Users' setting or manually set user access within Piwik after calling the If the users do have access to websites, then there's a problem either in LoginLdap or Piwik Mobile. |
I have give access to websites to my LDAP user. I try give him view access 2014-10-22 5:06 GMT+02:00 Benaka notifications@github.com:
|
@lunarok You can enable debug logging to a file in Piwik by setting:
then try to login via the mobile device and look at the end of the tmp/logs/piwik.log file for logs from LoginLdap. When you find them, can you email them to benaka@piwik.pro? There shouldn't be any sensitive information in the logs, but it would be better to play it safe and not post the logs on github. Make sure to disable DEBUG logging after you're done. Can you also send me a copy of your config.ini.php file? Please remove any sensitive information in it, I just need the LoginLdap settings. You could also take a screenshot of the LDAP settings page if that's better for you. |
Ok, I send to the mail you give the 2 files. 2014-10-23 1:49 GMT+02:00 Benaka notifications@github.com:
|
Closing this issue for now as it seems to be a bug in Piwik |
I can't login to my piwik instance using Piwik Mobile app default login page. The error message says: "You can't access this resource as it requires an View access for at least one website." The error is thrown immediately after login. On the server, there is one user (me, superadmin) and one page.
However!
When I go to "Try it > Accounts > Add new account," using the very same url, login and password, it works and I can browse my page statistics.
Environment:
The text was updated successfully, but these errors were encountered: