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
Race condition when deleting site might result in "Failed to invalidate archived reports: An unexpected website was found in the request" #16204
Comments
@jbrule can you double check you're not calling the archive using some |
Nope nothing like that. This is my complete cron entry
|
If you have database access can you run a SQL query like this: select * from matomo_option where option_name like '%SharedSiteIdsToArchive%' and check if the mentioned idSite is set there and remove it? Also can you double check the site is really removed by executing the query below? select * from matomo_site where idsite = 115 You might need to rename the table prefix from |
|
Thanks @jbrule very appreciated. Starting to understand things better. Can you also run this query and check if there's anything related to select * from matomo_option where option_name like '%report_to_invalidate_%' |
|
Could you delete this entry? that seems to be causing the issue. We'll need to check if these entries already get deleted when deleting a site. |
…deleted Noticed this while looking at #16204 When deleting idSite 11, then it would do basically `delete from option where option_name like '%report_to_invalidate_11%` But this would also delete entries like `111`, `112`, etc.
I just checked we are already deleting this entry when a site is deleted. There must have been a race condition. I'll keep this issue open to eventually look if we can have some additional cleanup script or some other way to prevent this. Anyone reading this: The workaround is to run a query like this: delete from `matomo_option` where option_name like '%report_to_invalidate_IDSITE_%' Where you need to replace |
Resolved: I removed the (previously mentioned) row from |
Thanks for contributing to this issue. As it has been a few months since the last activity and we believe this is likely not an issue anymore, we will now close this. If that's not the case, please do feel free to either reopen this issue or open a new one. We will gladly take a look again! |
When archiving via cron we keep getting this message about website 115. It looks like it has been deleted and no longer exists in Matomo. Other various sites have been deleted but do not cause such an error. Any ideas?
The text was updated successfully, but these errors were encountered: