MIDFilePermEnforcer issue

Riya Sinha
Kilo Contributor

Hello, I am trying to install Mid server in windows system. Mid server connection and configuration is successful, but when I open up mid server list page it is showing empty. Please help!!

Getting this Mid server issue:

An unexpected error occurred: Write-Warning : The Win32 internal error "No process is on the other end of
the pipe" 0xE9 occurred while getting console output buffer information.
Contact Microsoft Customer Support Services.
At C:\win_demo\agent\bin\scripts\EnforceFilePermissions.psm1:92 char:9
+ Write-Warning "Could not disable file permission inheritance ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [Write-Warning],
HostException
+ FullyQualifiedErrorId :
GetConsoleScreenBufferInfo,Microsoft.PowerShell.Commands.WriteWarningCommand

8 REPLIES 8

doug_schulze
ServiceNow Employee
ServiceNow Employee

Anything in the wrapper or agent log that can provide additional details?

Hello doug.schulza,

Logs in wrapper file under agent folder showing:

Waiting to start...
2020/07/24 13:54:16 | ServiceNow MID Server service started.
2020/07/24 13:54:45 | Exception in thread "StartupSequencer" java.lang.IllegalStateException: Power console has been closed.
2020/07/24 13:54:45 | at com.service_now.mid.win.powershell.api.PowerConsole.execute(PowerConsole.java:211)
2020/07/24 13:54:45 | at com.service_now.mid.win.powershell.api.PowerConsole.execute(PowerConsole.java:156)
2020/07/24 13:54:45 | at com.service_now.mid.win.powershell.api.APowershellSession.executeWithoutResultExtraction(APowershellSession.java:350)
2020/07/24 13:54:45 | at com.service_now.mid.win.powershell.api.APowershellSession.execute(APowershellSession.java:330)
2020/07/24 13:54:45 | at com.service_now.mid.Instance.getCurrentWinServiceName(Instance.java:1104)
2020/07/24 13:54:45 | at com.service_now.mid.services.StartupSequencer.ensureUniqueWindowsService(StartupSequencer.java:149)
2020/07/24 13:54:45 | at com.service_now.mid.services.StartupSequencer.testsSucceeded(StartupSequencer.java:128)
2020/07/24 13:54:45 | at com.service_now.mid.services.StartupSequencer.access$300(StartupSequencer.java:84)
2020/07/24 13:54:45 | at com.service_now.mid.services.StartupSequencer$Starter.run(StartupSequencer.java:532)

Todd36
Mega Expert

Did you get a resolution on this? I have the same problem.

---------------------------------------

An unexpected error occurred: Get-WmiObject : Invalid class "win32_service"
At D:\OUR-MID-NAME\mid.madrid-12-18-2018__patch4-05-29-2019_06-05-2019_1042.windows.x86-64\agent\bin\scripts\EnforceFilePermissions.psm1:214 char:16
+ ...  $service = Get-WmiObject "win32_service" -filter "Name='$serviceName ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidType: (:) [Get-WmiObject], ManagementException
    + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

Hii Todd,

I got this issue resolved when I followed the same steps of mid server installation in New York version instance.