You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is Your Feature Request Related To A Problem? Please describe.
When installing a package through Chocolatey GUI. With the background service enabled and logged into the PC as a non-admin user. Chocolatey GUI says their is an error but does not give you the full content of the error message.
Describe The Solution. Why is it needed?
This would help in easier troubleshooting if the full error was emitted within Chocolatey GUI instead of having to dig into the chocolatey log to ascertain the contents of the actual error that occurred.
Steps to Reproduce Behavior
Run choco new throw-message --version 1.0.0
Edit the chocolateyinstall.ps1 file of the package to contain the following code
$ErrorActionPreference = 'Stop'; # stop on all errors
throw "Fails check immediately"
Compile the package using choco pack against the .nuspec file to generate the throw-message.1.0.0.nupkg
Add where this file lives as a local source. In my case i did the following choco source add -n Local -s C:\temp --allow-self-service the self-service will be needed for non-admin testing of the package.
Ensure you have the Background Service feature enabled choco feature enable -n useBackgroundService, the chocolatey-agent package installed, and the useBackgroundServiceWithNonAdministratorsOnly feature enabled.
Logged in as an administrative user to the PC, run choco install throw-message -y. You should get the following output:
Open chocolateygui. Logged in as that same admin user to the PC. Attempt to install the throw-message package. You should get the following output:
Now log into the PC as a non-admin user.
Open powershell and run the same choco install throw-message -y now being logged in to the PC as a non-admin user. The output from this:
Open chocolateygui while logged into the PC as the non-admin user and attempt to install the throw-message package. the output from this:
As you can see the GUI output from the 2 users is different. One shows the complete error where as the non-admin does not. Also if you look into the CLI output more you can notice the admin user's is highlighted red to indicate an error. Where the non-admin's same output is in white text, usually indicating standard/info output.
Reproduction Enviornment
OS Version: Windows 10 V 10.0.19045.0
Powershell Version: 5.1.19041.1682
Chocolatey Version: 1.1.0
The text was updated successfully, but these errors were encountered:
pauby
added
0 - Backlog
Issue is accepted, but is not ready to be worked on or not in current sprint
Bug
Issues where something has happened which was not expected or intended
labels
Nov 8, 2022
pauby
added
Duplicate Issue
Issues that are duplicates of other issues
and removed
Bug
Issues where something has happened which was not expected or intended
0 - Backlog
Issue is accepted, but is not ready to be worked on or not in current sprint
labels
Dec 1, 2022
NOTE: This issue is a duplicate of chocolatey/chocolatey-licensed-issues#327 - adding this here as it potentially needs fixed in multiple places
Is Your Feature Request Related To A Problem? Please describe.
When installing a package through Chocolatey GUI. With the background service enabled and logged into the PC as a non-admin user. Chocolatey GUI says their is an error but does not give you the full content of the error message.
Describe The Solution. Why is it needed?
This would help in easier troubleshooting if the full error was emitted within Chocolatey GUI instead of having to dig into the chocolatey log to ascertain the contents of the actual error that occurred.
Steps to Reproduce Behavior
choco new throw-message --version 1.0.0
choco pack
against the .nuspec file to generate the throw-message.1.0.0.nupkgchoco source add -n Local -s C:\temp --allow-self-service
the self-service will be needed for non-admin testing of the package.choco feature enable -n useBackgroundService
, the chocolatey-agent package installed, and the useBackgroundServiceWithNonAdministratorsOnly feature enabled.choco install throw-message -y
. You should get the following output:choco install throw-message -y
now being logged in to the PC as a non-admin user. The output from this:As you can see the GUI output from the 2 users is different. One shows the complete error where as the non-admin does not. Also if you look into the CLI output more you can notice the admin user's is highlighted red to indicate an error. Where the non-admin's same output is in white text, usually indicating standard/info output.
Reproduction Enviornment
OS Version: Windows 10 V 10.0.19045.0
Powershell Version: 5.1.19041.1682
Chocolatey Version: 1.1.0
Choco list -lo output from system:
Additional Context.
Related Issues
N/A
The text was updated successfully, but these errors were encountered: