Поделиться через


Data Management gateway setup fails without any Error message to work with.

Recently I ran into issue where DMG fails to install and as such on error windows there is nothing with which I can work with.

I have shown screenshot of screen that it shows below. (two screenshots, start screen and failure screen)

 

 

 

 

Now what can I do with this error?

Pretty much nothing other than pulling my hair and scratching my head!!!

So I decided to enable logging for this MSI.

 

How to enable MSI logging?

https://support.microsoft.com/kb/223300

 

Once you enable logging, logs will get generated in %temp%

 

When I looked into this logs I saw below entries,

ExecFirewallExceptions:  Installing firewall exception2 Data Management Gateway Host Service (C:\Program Files\Microsoft Data Management Gateway\1.0\Shared\diahost.exe)

MSI (s) (6C!54) [16:41:36:552]: Closing MSIHANDLE (90) of type 790531 for thread 1620

MSI (s) (6C!54) [16:41:36:552]: Creating MSIHANDLE (91) of type 790531 for thread 1620

ExecFirewallExceptions:  Error 0x800706d9: failed trying to find existing app

MSI (s) (6C!54) [16:41:36:553]: Closing MSIHANDLE (91) of type 790531 for thread 1620

MSI (s) (6C!54) [16:41:36:553]: Creating MSIHANDLE (92) of type 790531 for thread 1620

ExecFirewallExceptions: Error 0x800706d9: failed to add/update application exception for name 'Data Management Gateway Host Service', file 'C:\Program Files\Microsoft Data Management Gateway\1.0\Shared\diahost.exe'

MSI (s) (6C!54) [16:41:36:553]: Closing MSIHANDLE (92) of type 790531 for thread 1620

 

So I thought why it is not able to add firewall rule, so I checked firewall service and it was disabled!!

 

 

 

That explains why it is not able to add rule, so I went ahead and enabled firewall service. (you can disable firewall using firewall management utility  but there is no need of disabling firewall service as such.)

 

 

I again ran DMG setup after enabling firewall service and as expected it worked fine.

 

 

Of course error messages need to improve but till then happy fishing!!!!

 

Let me know if you have any questions or suggestions….

Comments

  • Anonymous
    February 09, 2015
    The comment has been removed

  • Anonymous
    February 10, 2015
    Hi Indira, Just want to know did you check windows event logs under Data Management gateway category in case it shows up more details? Also did you try re-generating key from portal and using that key to register? Thanks, Dilkush

  • Anonymous
    February 18, 2015
    Hi Dilkush, I created a new key, when I am going to register it I am getting a error "Failed to register gateway key. Check that  Data management gateway is in  conencted state and host service  is started. I started the Datamanagenent host service already. still getting the issue. Any help will be highly appreciated. Thaks, Indira

  • Anonymous
    February 19, 2015
    Hi indira, I'm suspecting issue with firewall. If you can try from home network or if mobile internet is good then create hotspot and try using that network to register gateway. check 2nd point in "Possible symptoms" of below article, support.office.com/.../An-Inside-look-at-Microsoft-Data-Management-Gateway-078d306d-2d28-409c-962b-d80b69a1d0b2 Let me know if this doesn't help. -Dilkush

  • Anonymous
    February 24, 2015
    Hi Dilkush, I got unrestricted accedd in my machine. Still not able to register the key . The same error ..."Failed to register...." Please help me out.

  • Indira
  • Anonymous
    February 24, 2015
    Hi Indira, I think you will have some free support cases with your subscription why not use one of them? At this point I need access to machine or some sensitive infos like this key so that i can try from my machine and see what happens. If its ok to share then you can send that in email. Thanks, Dilkush