arnau
Posts: 7
Joined: Thu Jul 19, 2018 11:51 am

Error 4020 during IIS

Hi,

I've been experiencing problems with one install of our product. It installs everything but shows an error configuring the IIS, and it says that the original configuration will be restored. Then it rollbacks the entire install.
La acción terminó a las 9:47:47: AI_AiRestoreDeferredImpersonate. Valor devuelto: 1.
MSI (s) (64:04) [09:47:47:295]: Doing action: InstallFinalize
Acción 9:47:47: InstallFinalize.
La acción se inició a las 9:47:47: InstallFinalize.
MSI (s) (64:04) [09:47:47:295]: Running Script: C:\Windows\Installer\MSI9F3D.tmp
MSI (s) (64:04) [09:47:47:295]: Note: 1: 2265 2: 3: -2147287035
MSI (s) (64:04) [09:47:47:295]: User policy value 'DisableRollback' is 0
MSI (s) (64:04) [09:47:47:295]: Machine policy value 'DisableRollback' is 0
MSI (s) (64:04) [09:47:47:313]: Executing op: Header(Signature=1397708873,Version=500,Timestamp=1291013624,LangId=3082,Platform=0,ScriptType=1,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=1)
MSI (s) (64:04) [09:47:47:313]: Executing op: ProductInfo(ProductKey={GUID},ProductName=XXXXXX,PackageName=XXXXX.msi,Language=3082,Version=17367057,Assignment=1,ObsoleteArg=0,ProductIcon=icono_XXXXXXX.exe,,PackageCode={GUID},,,InstanceType=0,LUASetting=0,RemoteURTInstalls=0,ProductDeploymentFlags=3)
MSI (s) (64:04) [09:47:47:313]: Executing op: DialogInfo(Type=0,Argument=3082)
MSI (s) (64:04) [09:47:47:313]: Executing op: DialogInfo(Type=1,Argument=XXXXXX)
MSI (s) (64:04) [09:47:47:313]: Executing op: RollbackInfo(,RollbackAction=Rollback,RollbackDescription=Acción de restauración:,,CleanupAction=RollbackCleanup,CleanupDescription=Quitando copias de seguridad,CleanupTemplate=Archivo: [1])
MSI (s) (64:04) [09:47:47:313]: Executing op: SetBaseline(Baseline=0,)
MSI (s) (64:04) [09:47:47:313]: Executing op: SetBaseline(Baseline=1,)
MSI (s) (64:04) [09:47:47:313]: Executing op: ActionStart(Name=AI_IIsRollback,Description=Deshaciendo la configuración de IIS,Template=Se está restaurando la configuración de la metabase.)
Acción 9:47:47: AI_IIsRollback. Deshaciendo la configuración de IIS
MSI (s) (64:04) [09:47:47:313]: Executing op: CustomActionSchedule(Action=AI_IIsRollback,ActionType=11521,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (64:04) [09:47:47:313]: Executing op: ActionStart(Name=AI_IIsConfig,Description=Se está creando sitios web IIS y directorios virtuales,Template=Se está instalando "[1]")
Acción 9:47:47: AI_IIsConfig. Se está creando sitios web IIS y directorios virtuales
MSI (s) (64:04) [09:47:47:313]: Executing op: CustomActionSchedule(Action=AI_IIsConfig,ActionType=11265,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (64:6C) [09:47:47:327]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI9F6D.tmp, Entrypoint: OnIIsConfig
AI_IIsConfig: Se está instalando "AppPoolXXXXXXX"
Committing changes to path 'MACHINE/WEBROOT/APPHOST'...
COM Error : (Keyset does not exist) Cannot execute Commit operation.
COM Error : (Unknown error 0xFFFFFFFF) Cannot execute Commit operation.
COM Error : (Unknown error 0xFFFFFFFF) Could not create Application Pool.

Error 4020. Ha ocurrido un error durante el proceso de configuración del IIS.
Su configuración original del IIS será restaurada.
I don't know how to read this log. What it is trying to do? Why it failed?

Any ideas?

Thanks in advance,
Arnau.
Catalin
Posts: 6585
Joined: Wed Jun 13, 2018 7:49 am

Re: Error 4020 during IIS

Hello Arnau and welcome to Advanced Installer forums,

First of all, can you make sure that there is no pending reboot while you are deploying your setup ? If that is not the case, can you please create a log using the following command line:

Code: Select all

msiexec /i "C:\YourSetup.msi" AI_DEBUGLOG=1 /L*V "C:\YourSetup.log"
and send it by e-mail at support at advancedinstaller dot com so we can further investigate it ?

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arnau
Posts: 7
Joined: Thu Jul 19, 2018 11:51 am

Re: Error 4020 during IIS

I've sent the log to the adress indicated.

There is no pending reboot. This machine is turned off every evening and turned on every morning.
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Error 4020 during IIS

Hi Arnau,

Did you ever get a response to your question? I'm currently having exactly the same issue deploying web applications and pools to the Windows Server 2016 server standard with IIS. Any reponses welcome.
Many thanks,
Ian
arnau
Posts: 7
Joined: Thu Jul 19, 2018 11:51 am

Re: Error 4020 during IIS

I've received a dll to debug deeper. I'm re-creating the project in order to get an extensive log and send it.
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Error 4020 during IIS

I also spotted this after the error reported earlier:


CustomAction AI_IIsConfig returned actual error code 1603
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Error 4020 during IIS

Ok, thanks Arnau - it'll be interesting to hear how you got on.

Ian
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error 4020 during IIS

Hello Ian,

If you have a similar issue please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

If you cannot share with us your project file, then you can try to isolate the behavior in a buildable sample (.aip + its referenced files) which we can build and test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Error 4020 during IIS

Thanks Daniel,

I created a simpler version of our installer and it had the same problem. I will create a simpler IIS install for test purposes and go with that for further
testing and reporting back to you.

Best regards,

Ian
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error 4020 during IIS

You are welcome Ian.

A sample will be great for us. Just send it when you have one for us.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Error 4020 during IIS

Hi Daniel,

I completed the tests and both without and with .Net worked ok so I will have to analyse the main installer to try to find out what is going on.

Here is an extract from the log when it falls over:

AI_IIsConfig: Installing "ApertaAppPool"
Committing changes to path 'MACHINE/WEBROOT/APPHOST'...
COM Error : (Keyset does not exist) Cannot execute Commit operation.
COM Error : (Unknown error 0xFFFFFFFF) Cannot execute Commit operation.
COM Error : (Unknown error 0xFFFFFFFF) Could not create Application Pool.

Error 4020. There was an error during the IIS configuration process.
Your original IIS configuration will be restored.
MSI (s) (EC!A0) [09:37:55:010]: Product: Aperta Web Applications -- Error 4020. There was an error during the IIS configuration process.
Your original IIS configuration will be restored.

CustomAction AI_IIsConfig returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 09:37:55: InstallFinalize. Return value 3.
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Error 4020 during IIS

Hi Daniel,

We recently moved to .Net 4.7.2 - have you hear anything related?

Thanks,

Ian
arnau
Posts: 7
Joined: Thu Jul 19, 2018 11:51 am

Re: Error 4020 during IIS

That's interesting for me too, because next step in our application is to use -Net Framework 4.7.2
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error 4020 during IIS

Hello Ian,

I am not familiar with the related log error but did a small search and find out that this error could appear if your app pool identity account don't have access to the certificate store of your web site certificate. Have a look on the "X509Certificate - Keyset does not exist" thread and see if this helps.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ipollock
Posts: 137
Joined: Wed Aug 31, 2016 10:46 am

Re: Error 4020 during IIS

Hi Daniel,

Thanks very much, i'll have a look.
I'm currently working through a series of test scenarios (if anyone's else is interested, would save you some time)
The installer that i have that includes a prerequisite offline .Net 4.7.2 install works absolutely fine in 2012 Server Standard.
The same installer fails at the IIS stage every time on 2016 regardless of .Net 4.7.2 so i'm thinking that this is unrelated and
will focus on IIS configuration and Daniel's suggestion "X509Certificate - Keyset does not exist".

There may be more than one issue here when deploying into 2016 server standard.

Return to “Common Problems”