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
Windows: rename(C:\misc/GeoIPCity.dat.new,C:\misc/GeoIPCity.dat): The process cannot access the file because it is being used by another process. (code: 32) #5050
Comments
This does still not work with Piwik 2.16.0 . So the autodownloader of GeoIP DBs is still senseless |
Hi all, so I've encountered this error as well. For now I've changed the GeoIPAutoUpdater.php, line 271 to |
Yes, this is a bug on Windows platform. In some situations rename function cannot work. In my other project i do copy instead of rename. |
Still broken in Piwik 3.0.3. @sanso2010's workaround #5050 (comment) still works. |
Thanks for letting us know, we'll take a look at this |
I am wondering why this easy change is not yet done as a fix is already provided |
@mstenz Would you please share a patch (even if not a pull request) that you have tested and fixes the issue for sure? |
I don't know how to do this, but you just need to replace one word on line 271 in plugins\UserCountry\Ge |
As stated in thread; fixes matomo-org#5050
* copy file instead of renaming it. As stated in thread; fixes #5050 * Update GeoIPAutoUpdater.php In most cases the rename is successful, in rare cases the rename cannot be completed. In those cases we do a copy, leaving the $tempFile in place, it will be overwritten during the next GeoIPAutopudater task. Tested in both windows and Ubuntu environment. * Add unlink
Bug reported in the forum:
This is triggered in the cron, Scheduled tasks.
I'm not sure what should be done with this issue?
The text was updated successfully, but these errors were encountered: