-
Notifications
You must be signed in to change notification settings - Fork 14
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
rustdesk: Upgrade/Update hangs #58
Comments
Yes, I'd love to resolve the issue with the installer hanging. Stopping the service may help, though the install on a clean environment sometimes hangs as well (see the failed testing results for version 1.3.0). I don't have a lot of time to invest in tracking these issues down, but would definitely welcome any contribution to address the problem. |
Just stumbled over this documentation: https://rustdesk.com/docs/en/client/windows/msi/ Quoting the examples:
As far as I can see, this applies to versions prior 1.3.0 which means there are problems with the silent installation of 1.2.7 and below. I haven't checked and tested the new(?) installation parameters, but it might make sense to implement that in the chocolatey installer (including the uninstall + install process - if that is possible within a choco package). |
Looking at #59, it might make sense to also switch to the MSI installation for rustdesk? Anyway, I think I made some progress. I first installed rustdesk 1.2.3.2 (in a Windwos 10 VirtualBox VM) and installed/started the service:
I then updated rustdesk like so:
This time, the installation did not hang. It also worked remotely, although I lost the connection, but I was able to reconnect. @bdukes Is it possible to run While at it, I also tried to uninstall rustdesk. This did not work as expected and had to do it this way:
Shall I create a separate issue? |
And regarding the installer hanging in a clean environment: I think there is something special in the Vagrant/Virtualbox Chocolatey Testing Environment. I hope I'll find some time to look into this too... Anyway, thanks for maintaining the chocolatey package. |
And uninstall/reinstall during upgrade For #58
I've pushed a new version of the 1.3.1 package which uninstalls the service before upgrading, thanks for looking into it. |
Thx! This is start, but updating RustDesk remotely will definitely kick the user out of the session, no? What do you think about starting the service via |
It does run |
Sorry, I missed the change in the |
Short update: The (fresh) installation of rustdesk v1.3.1 works without problems (aka does not get stuck). I then uninstalled v1.3.1 (like in #58 (comment)) and installed v1.2.6. Again without problems. From there I updated v1.2.6 to v1.3.1 also without problems. I then uninstalled v1.3.1 and re-installed 1.2.6 again and noticed that the service was not started. Started the service (via the GUI) and tried to update to v1.3.1 again. This time the installer got stuck at " This was done all locally. I think there still is an issue. |
Ahh... Upgrading from v1.2.6 (with a running service installed) with (At least I guess, we need to detect if the service is running / installed and stop it if yes before updating. |
I thought the Chocolatey-Packages/automatic/rustdesk.install/tools/chocolateyBeforeModify.ps1 Lines 3 to 6 in d52ff5d
Are you able to tell from your CLI output if that script ran during the upgrade? |
Quite good to reproduce:
This are the last lines in the log
|
|
Ah, according to the docs:
So we can't update the 1.3.1 package to cause the 1.2.6 package to uninstall the service during an upgrade. |
Can't you just put this in
Nothing "bad" seem to happen, if But we need some kind of "post-inst" script to call |
Maybe something like this? 🤷🏾
Taken from here: https://stackoverflow.com/a/35065826 Sorry for the noise. I am obviously not a Powershell guy... |
I just pushed a new version of the 1.3.1 package which always tries to uninstall the service before installing the new version. Thanks! |
Cool! The quick test early in the morning went well:
Not sure about the stance in Chocolatey-Packages/automatic/rustdesk.install/tools/chocolateyBeforeModify.ps1 Lines 3 to 6 in d52ff5d
But apart of that, it looks good! Well done! Thx! |
When updating rustdesk (from 1.2.3 to 1.2.6) the installation hangs:
After some time I pressed CTRL-C a few times, which aborted the whole chocolatey process and I restarted the upgrade (but rustdesk was at the latest version):
JFYI, I have a
cacheLocation
set on a NAS:I ran
choco upgrade -y all
on the system remotely (via Rustdesk).I am currently not 100% sure, but when I call
choco upgrade
directly on the system I usually stop the rustdesk service to complete the update successfully. I couldn't do that this time, obviously.So I think there is a problem when the service is running.
The text was updated successfully, but these errors were encountered: