Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
-
- Posts: 33
- Joined: Tue Mar 24, 2020 6:59 pm
- 4
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
After upgrading to the current version, we're still getting failures on the auto-installs:
"This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Access to the path 'C:\Windows\TEMP\chocolatey' is denied.
This is try 2/3. Retrying after 400 milliseconds."
The following pic is the script of the ELSE section:
"This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
Access to the path 'C:\Windows\TEMP\chocolatey' is denied.
This is try 2/3. Retrying after 400 milliseconds."
The following pic is the script of the ELSE section:
- Attachments
-
- Capture.JPG (165.72 KiB) Viewed 5811 times
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
Interesting inside your script line 25 should be set to "continue on failure" but is not. I have looked at ours and it is set as such.
Not sure why yours didn't?
If you make that change in script it should skip that issue on next runs.
Not sure why yours didn't?
If you make that change in script it should skip that issue on next runs.
-
- Posts: 33
- Joined: Tue Mar 24, 2020 6:59 pm
- 4
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
I made the change to line 25 but it's still giving the same failure message when the "Chocolatey For LabTech Installer" script runs:
Chocolatey v0.10.15
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).
There's two different scripts but the only one I can modify is the Maintenance script.
Chocolatey v0.10.15
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell).
There's two different scripts but the only one I can modify is the Maintenance script.
- Attachments
-
- Capture.JPG (20.42 KiB) Viewed 5731 times
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
looking in to this further as it looks like something changed in either Windows or Automate agent permissions.
-
- Posts: 33
- Joined: Tue Mar 24, 2020 6:59 pm
- 4
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
Thank you very much for working with me on this. I feel like we're making some progress as it is now downloading the packages, but failing to install them.
Progress: Downloading DotNet3.5 3.5.20160716... 99%
Progress: Downloading DotNet3.5 3.5.20160716... 100%
DotNet3.5 not installed. An error occurred during installation:
Access to the path 'C:\ProgramData\chocolatey\lib\DotNet3.5' is denied.
DotNet3.5 package files install completed. Performing other installation steps.
The install of DotNet3.5 was NOT successful.
DotNet3.5 not installed. An error occurred during installation:
Access to the path 'C:\ProgramData\chocolatey\lib\DotNet3.5' is denied.
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
What is your security settings for the following set of directories?
Here is an example of mine, I have SYSTEM with full control which is what my Automate agent is running as. If you are using a different user to launch the Automate agent is that user have write permissions for the following directories?
Here is an example of mine, I have SYSTEM with full control which is what my Automate agent is running as. If you are using a different user to launch the Automate agent is that user have write permissions for the following directories?
-
- Posts: 33
- Joined: Tue Mar 24, 2020 6:59 pm
- 4
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
My agent is running as System and my security permissions for folder C:\ProgramData match your settings.
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
Does it match at the Libs directory the same as it is here? Trying to understand why Chocolatey fails with permissions to execute from directory if SYSTEM has full control?
Does the DOTNET3.5 file exist in that directory?
Does the DOTNET3.5 file exist in that directory?
-
- Posts: 33
- Joined: Tue Mar 24, 2020 6:59 pm
- 4
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
It does not. It also does not exist in the lib-bad directory.
Re: Auto-Install failing. "Access to the path 'C:\ProgramData\chocolatey\lib\"
Can you monitor this directory during a install run to see if it ever shows up?
'C:\ProgramData\chocolatey\lib\DotNet3.5'
Next try installing something else like putty or 7Zip and see if the same results happen. I am wondering if it maybe a package issue and not a plugin (execution) issue
'C:\ProgramData\chocolatey\lib\DotNet3.5'
Next try installing something else like putty or 7Zip and see if the same results happen. I am wondering if it maybe a package issue and not a plugin (execution) issue