-
Notifications
You must be signed in to change notification settings - Fork 39
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
(adobereader) Fails to install in Docker container #220
Comments
Thanks for raising this issue! The packages within this repository are maintained in my spare time. My spare time, like yours is important. Please help me not to waste it. To help me, and to have the issue resolved more quickly, please see CONTRIBUTING for how to raise a pull request to resolve the issue yourself. Thank you. |
I should add, I have cursory knowledge of chocolatey (I can install packages), but not much beyond that. Based on the logs, I see it is calling into a chocoatelyinstall.ps1. I tried installing the package with the "-n" flag (so it just left that ps1 file there and I could potentially debug it), but it looks to contain some Chocolatey-specific commands, so I can't just execute it directly. |
I would guess the problem lies in these two lines. Line 267 is getting the Uninstall Registry key which should exist as it's just installed the software in line 264 just above it. But on line 268 the array is instead of This works on a normal virtual machine, so I'm going to assume that it can't be installed inside a Docker container. It's not something I've tested and not something I support. If you can find a fix for it that I can make without altering the functionality to the package, I'm happy to accept a PR. If the registry key does in fact exist, the issue may lie inside |
I can try to take a look - can you point me to a way to execute the Chocolatey-specific powershell script? If I just execute hte powershell script myself, it doesn't like the Chocolatey-specific commands, such as that Get-UninstallRegistryKey. |
The PowerShell scripts live in |
Checklist
(<PACKAGENAME>) <ISSUE SUMMARY>
.Chocolatey Version
2.2.2
Chocolatey License
None
Package Version
Adobe Acrobat Reader DC 2024.2.20736
Current Behaviour
Chocolately fails to install the adobereader package when executed inside a container based on mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022.
Expected Behaviour
The package is successfully installed.
Steps To Reproduce
Execute the following commands to startup the base Microsoft image, add chocolately, then try to install adobereader.
Environment
Chocolatey Log
Edit: I did a subsequent run passing "-d" on the install command. That gave some more information:
ERROR: Cannot index into a null array.
at , C:\ProgramData\chocolatey\lib\adobereader\tools\chocolateyinstall.ps1: line 268
at , C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 63
at , : line 1
Anything else?
We are running choco in some of our Docker images as a way to stage the availability of certain software. In this case, we are trying to install adobereader. This is required because it installs the ActiveX control needed to compile some software that embed a PDF viewer.
The text was updated successfully, but these errors were encountered: