Skip to content
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

(Spotify) Package fails to finish if Spotify does not launch as expected #2314

Closed
endy-y opened this issue Sep 23, 2023 · 5 comments
Closed
Labels

Comments

@endy-y
Copy link

endy-y commented Sep 23, 2023

Chocolatey Version

2.2.2

Chocolatey License

None

Package Version

1.2.20.1218

Current Behaviour

the latest package is "acting up" again, I mean not running .exe file as it should. However, if I run it manually from the downloaded location: ..\AppData\Local\Temp\chocolatey\spotify\ it updates successfully

Expected Behaviour

the package update smoothly on its own

Steps To Reproduce

  1. Run: choco upgrade spotify
  2. Wait for it to get stack on: SUCCESS: The scheduled task "spotify" was successfully deleted.
  3. Upgrade newer finishes if you do not run .exe manually

Environment

- Operating System: Microsoft Windows NT 10.0.19045.0
- PowerShell Version: 7.3.7

Chocolatey Log

spotify v1.2.20.1218 (forced) [Approved]
spotify package files install completed. Performing other installation steps.
Downloading spotify
  from 'https://download.scdn.co/SpotifySetup.exe'
Progress: 100% - Completed download of C:\Users\user\AppData\Local\Temp\chocolatey\spotify\1.2.20.1218\SpotifyFullSetup.exe (992.97 KB).
Download of SpotifyFullSetup.exe (992.97 KB) completed.
Hashes match.
SUCCESS: The scheduled task "spotify" has successfully been created.
SUCCESS: Attempted to run the scheduled task "spotify".
SUCCESS: The scheduled task "spotify" was successfully deleted.

Anything else?

No response

@endy-y endy-y added the Bug label Sep 23, 2023
@JPRuskin
Copy link
Contributor

JPRuskin commented Sep 26, 2023

It looks like the package is waiting for Spotify.exe to run, in order to kill it - we should possibly add logic to timeout after ~30-60 seconds (or some other agreed, reasonable time).

That said, when I tested this by running choco install spotify --version 1.2.20.1218 --confirm, I saw the application launch and be killed, completing the package install - so could not replicate this issue on a sandbox system. Is it possible the issue on your system is caused by previously installed settings, or similar?

image

We could still add a timeout to the logic, but at that point I'd say it was more enhancement than bug.

@JPRuskin JPRuskin changed the title (Spotify) (Spotify) Package fails to finish if Spotify does not launch as expected Sep 26, 2023
@endy-y
Copy link
Author

endy-y commented Oct 6, 2023

Thanks for the reply, I tried to replicate it myself, but for some reason both the version mentioned here and a new one, installed just fine today. So my guess is, it was either timeout as you suggested, or some other not-persistent issue

@Quack6765
Copy link

Issue seems to be when you already have Spotify installed but without using Chocolatey. I uninstalled the Spotify package from Chocolatey, located the already installed instance of Spotify on my PC and uninstalled it too. Can install correctly with Chocolatey after that.

@pauby
Copy link
Member

pauby commented Oct 6, 2023

There is a PR up to fix that.

@JPRuskin
Copy link
Contributor

Given all of the above, I think we can close this issue for now. If we find that it rears up again, we can add a timeout - but as the issue seems rather rare, I'd not say it's at all urgent.

@JPRuskin JPRuskin closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants