-
Notifications
You must be signed in to change notification settings - Fork 13
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
nxPackage - Failing for packages that have interactive setup scripts; doesn't appear to be configuring non-interactive mode #43
Comments
We are currently looking into this! Thank you for raising it with us. |
@MutemwaRMasheke |
Just published a new nxtools release with fixes for this and other Github issues. https://www.powershellgallery.com/packages/nxtools/1.4.0 Thank you for your feedback! |
@eehret Please reopen if you're still seeing this issue. I wasn't able to reproduce it with nxtools 1.4.0. |
@gurrajatwal Hello . This appears to still be occurring:
I believe I already pinpointed a potential solution: i.e. setting debian front end to non-interactive like the old DSC solution used to do (See above where I included the code snippet from the old DSC 'nx' solution) Can that be implemented please? Or perhaps an additional field could be put on nxPackage to opt into non-interactive mode and/or pass additional inputs to dpkg? When this happens the process seems to hang until it finally times out. How do we reopen this issue? |
Note: I think you can reproduce the interactive behaviour using the same 'aide' package , and by installing aide, adding a modification to /etc/aide/aide.conf , then try altering removing and re-adding the package This appears to be what triggers the interactive behaviour from the package. There will probably be other packages that occasionally contain an interactive mode as well though, not just aide so I think if this was made to behave the way the old 'nx' solution did that would help. |
@gurrajatwal Please see these as well, which discusses the non-interactive mode: |
@MutemwaRMasheke Hi, can you please reopen this? Thanks :) |
Thanks Eric, we'll continue to look into this issue. |
Details of the scenario you tried and the problem that is occurring
On Ubuntu, when trying to install a package that has some install scripts, it fails to install due to being in interactive mode.
The example below is for the 'aide' package.
Installing this used to work on the old nxPackage solution from https://github.com/microsoft/PowerShell-DSC-for-Linux/blob/master/Providers/Scripts/2.4x-2.5x/Scripts/nxPackage.py
Verbose logs showing the problem
Output is from gc_worker.log.
First snippet is from during the actual attempt to Set desired state:
And then we see the following a bit later in the same log:
Suggested solution to the issue
In the old nxScript solution, the python code included some setup to set
DEBIAN_FRONTEND
to non-interactive mode.From lines 308-311 in https://github.com/microsoft/PowerShell-DSC-for-Linux/blob/master/Providers/Scripts/2.4x-2.5x/Scripts/nxPackage.py :
I guess this setup must be missing in the new nxtools incarnation of nxPackage.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Ubuntu 20.04 LTS
Version and build of PowerShell the target node is running
7.3.6
Version of the DSC module that was used
1.2.0
The text was updated successfully, but these errors were encountered: