Title says it all. I ran the auto Piwik upgrade and can no longer access data. The error presented after logging in is :
You are logged in as ‘[admin_name]’ but it seems you don’t have any permission set in Piwik.
Ask your Piwik administrator (click to email) to give you ‘view’ access to a website.
Other users with view access still work, but the original admin user with access to all functionality [admin_name] does not exist in the piwik_access table. Traffic data is being recorded and is viewable by the other users, so it simply seems that the superadmin user has been corrupted.
I am also receiving emails indicating an error for each defined site when archive.php runs :
Response was ‘a:2:{s:6:“result”;s:5:“error”;s:7:“message”;s:86:“You can’t access this resource as it requires an ‘view’ access for the website id = 6.”;}’
Whew. It turns out that all I had to do was flip the piwik_user.superuser_access flag from 0 to 1 for my user account, and all is back to normal now. Not sure why it was changed during the upgrade, but figured I’d post here in case it might help others.
I am a new PIWIK admin and just performed the upgrade to 2.0.1. I performed the database upgrade at commanline and the admin account no longer works. Actually it is not listed in the piwik_user table. What is the best way to get it back in place?
You only have one user in the database?
If you have access with a view user, change that user in the database to super admin (you can use phpMyAdmin).
At the piwik_user table check the username you want to change, in the superuser_access column change from 0 to 1.
Thanks for the quick response. It worked for us here.
I am able to successfully run PIWIK archiving but i am not able to see the Data for the last 3 days. I have upgraded 3 Days ago and now Data is not visible. Can you help me here?
Yes Hugo, we have enabled Maintenance Mode and did the upgrade. But we have few issues like Superuser locked out etc.
And also i am able to see today’s data but not those two particular days data.
Is there a way that we can get this data from MySQL DB? Do you have an idea about the table names and the queries for getting the below information for those missing dates in DB?
Also i see below error when running archiving manually from command prompt.
D:\PHP>D:\PHP\php.exe “D:\Apache Software Foundation\Apache2.2\htdocs\piwik\misc
\cron\archive.php” – url=http://swa-pwkpw01.swas24prod.local/piwik/ --force-all
-websites
Zend_Session is currently marked as read-only.