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
(keepass) - Upgrade Failed And Registered New Version #138
Comments
Just to be clear here, what 'failed to upgrade and registered a new version'?- It looks to me that |
I got the same issue. This happened to me when keepass was still running in the background while upgrading.
|
As I mentioned over at #73, this is expected Chocolatey behaviour. |
Thank you for your reply. Do you have any idea on how to actually upgrade keepass now via chocolatey? The only way I can think of is actually upgrading it manually? If that's default Chocolatey behaviour, that sucks. |
If the I've just noticed that v2.51.1 has been pushed to the Community Repository. The release notes (scroll to the bottom) don't make any indication that there was an installer issue. Can you try upgrading to that new version and if you still get the same problem, can you raise an issue indicating that the install / upgrade of that package is broken? Ordinarily I'd test it myself, but I'm not in a position to do that just now. |
So I don't understand. Is this package not meant to be upgraded in some way or does the application need to be closed before the upgrade? I thought |
Ok I just went from |
The
Because
See the code above that should allow it to close Keepass before updating it. Note that it was added here. |
Hmm. Thanks for the explanation! I see. I thought I had read the install was supposed to work while open. Would it matter the different states KeePass can be in.
I think typically my KeePass stays in a state waiting for the password because I have a timeout on the database staying open. |
I've tested:
With the command This one:
I don't know what you mean. Perhaps you can try that. So perhaps the issue that you were seeing wasn't that Keepass was open, but that the installer was broken (or something else)? |
I see. Yeah that is fair. For my number 3, I mean the below state. You essentially just close the password prompt and are left with only this window. I don't know now and it is unclear what happened. I just ran I'm doing a full uninstall and reinstall. I'm doing I wasn't able to test it doing |
The only thing the
If you run
So, if you have these version of
Just to be clear, this is how all package managers work, not just Chocolatey. Does this help? |
I get that. Thanks for the robust explanation! 👍 I would expect This is a separate issue to the reason I opened this case. I can't repro the issue I had. |
That's not what happens. If you look at the dependencies on the page for the Note that on the command line
No. The
If you look at the dependency in the nuspec file inside the package, you'll see this line: <dependency id="keepass.install" version="2.50" /> There are different formats for that line which you can see in the Microsoft docs (the Chocolatey .nuspec format is a modified one from Microsoft's Nuget format). Because I just have So the implied minimum for
That's correct.
I agree. But you had good, genuine, questions and I wanted to try and help even though we're way off-topic 😄 Does that additional explanation, above, help? |
Yes, very helpful! Thanks, Paul! I'll close for now. We'll see if I have this issue in the future. For some reason, the Choco Before Modify didn't fire or maybe it did and couldn't "find" |
See the docs for when the individual scripts are run. The |
Right. This issue was related to the |
Chocolatey Version
1.1.0
Chocolatey License
No response
Package Version
2.50 -> 2.51
Current Behaviour
I had Keepass open at the time and I get the below errors inside my shell session.
I had to download the exe manually and run the below.
.\KeePass-2.51-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
Expected Behaviour
I would expect the upgrade to succeed.
Steps To Reproduce
choco upgrade all -y
choco upgrade keepass --force -y
Then I had to manually run the exe downloading from the web.
Environment
Chocolatey Log
Link to Gist
Anything else?
Previous relevant issue is #73
The text was updated successfully, but these errors were encountered: