Skip to content

ModSecurity IIS -- Error 1722. #948

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

Closed
Matiborskiy opened this issue Oct 22, 2015 · 14 comments
Closed

ModSecurity IIS -- Error 1722. #948

Matiborskiy opened this issue Oct 22, 2015 · 14 comments

Comments

@Matiborskiy
Copy link

Good day, colleagues!
I've got an error when install ModSecurity 2.9.0 on Windows 2012 R2 with IIS 8.5.
VCRedist versions 9,10,11,12 installed. Error:
Product: ModSecurity IIS -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action InstallModule64, location: C:\Program Files\ModSecurity IIS, command: "C:\Windows\system32\inetsrv\appcmd.exe" install module /name:"ModSecurity IIS (32bits)" /image:"%SystemRoot%\SysWOW64\inetsrv\ModSecurityIIS.dll" /preCondition:"bitness32"

Could you please help me to solve the issue? Thanks in advance.

@zimmerle
Copy link
Contributor

Hi @Matiborskiy

Do you mind to run the installer in verbose mode? You can do that using:

msiexec /i ModSecurityIIS_A.B.C-Zb.msi /l*v log.txt

There are more information here:
https://github.com/SpiderLabs/ModSecurity/wiki/IIS-Troubleshooting#running-the-installer-in-verbose-mode

Please paste the log using gits - https://gist.github.com/.

@Matiborskiy
Copy link
Author

here it is

@Matiborskiy
Copy link
Author

sorry, Attaching documents requires write permission to this repository. Choose Files Try again with a PNG, GIF, or JPG.

@Matiborskiy
Copy link
Author

Property(C): Privileged = 1
Property(C): USERNAME = Windows User
Property(C): DATABASE = c:\Users\matiborskiyi\Desktop\ModSecurityIIS_2.9.0-64b.msi
Property(C): OriginalDatabase = c:\Users\matiborskiyi\Desktop\ModSecurityIIS_2.9.0-64b.msi
Property(C): SOURCEDIR = c:\Users\matiborskiyi\Desktop
Property(C): VersionHandler = 5.00
Property(C): UILevel = 5
Property(C): ACTION = INSTALL
Property(C): EXECUTEACTION = INSTALL
Property(C): ROOTDRIVE = E:
Property(C): CostingComplete = 1
Property(C): OutOfDiskSpace = 0
Property(C): OutOfNoRbDiskSpace = 0
Property(C): PrimaryVolumeSpaceAvailable = 0
Property(C): PrimaryVolumeSpaceRequired = 0
Property(C): PrimaryVolumeSpaceRemaining = 0
Property(C): INSTALLLEVEL = 1
Property(C): DisableButton = 0
=== Logging stopped: 22.10.2015 16:38:15 ===
MSI (c) (C0:C0) [16:38:15:578]: Note: 1: 1708
rity IIS -- Installation failed.

MSI (c) (C0:C0) [16:38:15:578]: Windows Installer installed the product. Product Name: ModSecurity IIS. Product Version: 2.9.0. Product Language: 1033. Manufacturer: ModSecurity. Installation success or error status: 1603.

MSI (c) (C0:C0) [16:38:15:578]: Grabbed execution mutex.
MSI (c) (C0:C0) [16:38:15:578]: Cleaning up uninstalled install packages, if any exist
MSI (c) (C0:C0) [16:38:15:578]: MainEngineThread is returning 1603
=== Verbose logging stopped: 22.10.2015 16:38:15 ===

@zimmerle
Copy link
Contributor

Hi @Matiborskiy,

You can go to:

https://gist.github.com/

And copy and paste the content of your log.txt file.

@Matiborskiy
Copy link
Author

@zimmerle
Copy link
Contributor

Hi @Matiborskiy,

Windows does not say too much about it, but it returns this error number 1603. Searching for this error number, I found this site here:

https://support.microsoft.com/en-us/kb/834484

Is there any "suitable cause" on the site that could be applied to your environment?

@zimmerle
Copy link
Contributor

zimmerle commented Nov 9, 2015

Closing the issue due to the lack of response. Assuming that the problem was in the user environment.

@dmarlow
Copy link

dmarlow commented Aug 15, 2018

I'm getting this error as well. I'm on IIS 10 on Win2016.
Here's the log:
https://gist.github.com/dmarlow/9cd88e623943aba7c78fd36ba37ac95e

Important bits here:

MSI (s) (EC:70) [22:59:44:945]: Note: 1: 1722 2: UninstallModule64 3: D:\Program Files\ModSecurity IIS\ 4: "D:\Windows\system32\inetsrv\appcmd.exe" uninstall module /module.name:"ModSecurity IIS (64bits)"
CustomAction UninstallModule64 returned actual error code 1168 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (EC:70) [22:59:44:945]: Product: ModSecurity IIS -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action UninstallModule64, location: D:\Program Files\ModSecurity IIS, command: "D:\Windows\system32\inetsrv\appcmd.exe" uninstall module /module.name:"ModSecurity IIS (64bits)"

Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action UninstallModule64, location: D:\Program Files\ModSecurity IIS, command: "D:\Windows\system32\inetsrv\appcmd.exe" uninstall module /module.name:"ModSecurity IIS (64bits)"

The problem comes when the MSI is already installed and an attempt to install it again. It shouldn't try to uninstall like the log is saying (if I'm understanding that properly).

@victorhora
Copy link
Contributor

@dmarlow

I've noticed there's already an issue open for this case here: #1122

I'm tagging #1122 for further investigation prior to 2.9.3 release. This being said, do you mind sharing those details on that issue so as to avoid duplicates?

Thanks!

@dmarlow
Copy link

dmarlow commented Aug 15, 2018

@victorhora That issue is regarding uninstalling. My issue isn't for uninstalling ModSecurity. This issue comes up if the installer runs twice. Still want it moved there?

@victorhora
Copy link
Contributor

@dmarlow I'm a bit confused as the issue you have created (#1868) mentions about uninstallation issues. :/

So your problem is not uninstall but rather opening the installer twice? Or is it both? Can you clarify so we can decide if this an issue and if should be reopened or if it should be handled on other issue.

Thanks

@dmarlow
Copy link

dmarlow commented Aug 16, 2018

@victorhora yes, #1868 one deals with uninstalling. This one deals with installation. This error happens for me when the installer runs again. In my automated attempt to install ModSecurity on ephemeral machines, I have to account properly for the installer not running twice due to this issue. Once installed, I don't want to uninstall. The uninstall issue was from my personal machine while trying to figure out the automation. :)

@victorhora
Copy link
Contributor

Although this issue is closed, I wanted to provide feedback on testing of a fresh installation of Windows Server 2016 and IIS 10 with ModSecurity 2.9.2 MSI package.

Running the MSI package, successfully installs ModSecurity 2.9.2 IIS module which gets added to the main site configuration as expected:

image

Uninstalling also works as expected: The modules get removed and no error message is presented. A reboot is suggested but not required:

image

Running the MSI package twice also works fine and the user is presented with the option of removing ModSecurity:

image

That being so, I believe the issue faced by some of the users could be due to particularities on a given environment (hardening, permissions, other packages, modules etc).
Please check if a particularity with the environment is not causing these issues and maybe check on a fresh install of Windows/IIS to be certain.

If the issue still persists, please let us know and we can investigate further for the 2.9.4 release. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants