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
Manually removing files #11256
Comments
Adding my list as an example. |
Another idea: What's wrong with replacing the old piwik folder with the latest piwik version (from https://piwik.org/download/) lost files:
|
That might be a solution, too, but I manage all my installed applications through DirectAdmin/Installatron, which is the way my hosting provider works. |
Seriously? Nobody? |
How are you updating Piwik? The automatic process should remove all unneeded files. If not there might be insufficent access writes. |
I have Apache runing on Windows platform and the web-server have full access rights to filesystem, but Piwik cannot delete these files and file integrity check failed. |
And I run Apache on Linux (CentOS), and my web server also has full access. Could you please tell me which file/script does the unneeded-files-check for the automated update process? That should help me get my 2 Piwik installations back up and running, that have been down for a week now. |
What is the error message you get? Maybe it doesn't even have to do with unneeded files and can be simply solved. |
The error I get this time is "Error: ViewDataTable ID 'table' is already in use!". For my other installation I don't remember the error message, but the solution was to delete plugins/Goals/Reports/BaseGoal.php (I think). Which I did, and I now have my dashboard back, but no hits have been recorded for a week. For previous update errors I've had to delete plugins/CorePluginsAdmin/Tasks.php (I think), or manually empty the cache. I haven't tried a fresh install, but I guess things would work then, because there wouldn't be any left-behind files. |
No answer is also an answer. |
The system check in Piwik 3 should tell you which files need to be deleted. You can see it by going to Administration => System Check. |
It seems that after every upgrade some files need to be removed manually to make Piwik run again.
After having used Piwik for quite some years, and another upgrade (2.16 → 3.01) that brought my Piwik installation to it's knees, I thought I'd do a big cleanup.
Before I start removing files, I'd like your advice.
This is the strategy I came up with:
Create a list of all the files in my installation:
cd <piwik dir>/
find . -print | sort > ~/piwik.me.files
Download the latest version from GitHub, extract it, and create a list of files in that version (same commands, different filename).
Find the difference between the 2, and delete files that no longer exist:
comm -23 ~/piwik.me.files ~/piwik.github.files
First question is 'Would this be the way to go?'.
If so, then please advice on how to use common sense with this list. E.g.
Thank you.
The text was updated successfully, but these errors were encountered: