-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Updating fails - Database removal generates EBUSY on Windows #270
Comments
I confirm. This happens constantly on windows. |
This happens every time I've update it. Then I have to remove ALL the packages and re-install them. Quite annoying haha Windows 10 64bits |
Any news about this? I'd be nice to be able to update without having to uninstall every time. =) |
Not yet, but I do have an idea as to why this happens. It is likely the IntiializeCommand in the core that is trying to unlink the database and reinitialize it on startup. It does ensure that the connection is closed before doing that, but the base package kills the old core when shutting down, so the connection likely lingers for a moment and thus generates the busy error. In other words:
Of course, I haven't actually verified this yet, but this is what I think is happening. A solution would be to not kill the PHP server on deactivation, but rather send a request to ask it to shutdown nicely, then the core could close the connection and exit itself. |
The next version is going to include a proper shutdown via a new core exit request, which should fix the issue I mentioned in my last post. I'm not sure if this will fix all of these kinds of issues, but it should improve the situation in any case. This will likely be autoclosed after the next version is released, so feel free to create a new ticket if it occurs again afterwards. |
when trying to update php-integrator-base it fails with the error
The only way to get it to work is to uninstall php-integrator-base, restart atom then reinstall php-integrator-base
The text was updated successfully, but these errors were encountered: