chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

BackgroundService - No background service available when using PS Remoting #320

Open steviecoaster opened 1 year ago

steviecoaster commented 1 year ago

What You Are Seeing?

When using PowerShell remoting to execute Chocolatey commands using background mode, the following error is thrown:

[Background] Chocolatey is configured for background service, but there is no background service available and running. Please ensure you have installed the service - 'choco install chocolatey-agent' (or upgraded to at least 0.5.0 - earlier version are not compatible).

There was no agent listening at net.pipe://localhost/chocolateyagentservice

^^^ Output has been stripped for brevity, leaving the relevant error details intact. Full error is in a screenshot in the ticket linked below

What is Expected?

Chocolatey works correctly and the background service is able to execute the command.

How Did You Get This To Happen? (Steps to Reproduce)

  1. Install Chocolatey and configure for Background Mode
  2. Execute a choco command that installs a package locally. This will work
  3. Remote to the machine and execute the same command, this should fail

References