Skip to content
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

Cannot perform Multi-step run profile #19

Open
TheUniquePaulSmith opened this issue Oct 27, 2017 · 9 comments
Open

Cannot perform Multi-step run profile #19

TheUniquePaulSmith opened this issue Oct 27, 2017 · 9 comments

Comments

@TheUniquePaulSmith
Copy link

To reproduce create a 2 step run profile starting with an Export then a Delta Import.
The Delta Import will fail. Looking through the source, I believe the issue is that End-ExportScript-Lync.ps1 line 46 removes the PSSession however the object still exists in a closed state so then Begin-ImportScript-Lync.ps1 on line 137 references that because the scope of the variable is global, and line 134 never replaced the object reference due to error.

Below is a snippet of the reproduced problem
image

So solution would be to also check for Closed session
if ((!$session) -or ($session.State -eq "Closed")) { Write-Host "Open new Session" }

@thomashouston
Copy link

Hello, is it possible this issue could also be seen when running an Export run profile, followed immediately by a Delta Import run profile? Every couple of days our Skype PSMA hangs and we have to kill the miiserver.exe process. Also, do you think it will be an easy fix?

@thomashouston
Copy link

thomashouston commented Jan 19, 2018

When we enabled verbose logging, the last Information event logged before it hangs is either:

Method Name : ExportBridge : CloseExportConnection
Initiated Close Export Connection method

or

Method Name : PowerShellRuntime : Initialize
The verbose record: LyncPowerShellConnector - End-Export Script: Execution Started...

@NileshGhodekar
Copy link
Contributor

From the first set events mentioned, looks like the program control is still in FIM code and from the second set of events mentioned it does not make sense to report an event for End-Export Script in the PowerShellRuntime : Initialize method. So you should open a support case for FIM/MIM and have them investigate this. Also if you think that this may be related to two running two run profiles one after another, you can try putting a time (5+ minutes) delay between the runs and see if the issue goes away.

@TheUniquePaulSmith
Copy link
Author

@thomashouston I think that's a different issue.. I also experience that as well, and what I notice is that event log shows that the script halted and the Management Agent gets stuck running during Export. The only solution is to force kill miiserver.exe when that occurs

@thomashouston
Copy link

@NileshGhodekar I have opened a support case with Premier.

@AndKjell
Copy link
Collaborator

I wouldn't use the two-step run profiles where you do export-import in one single profile. Not related to the PowerShell ECMA2 connector, but in general. I've seen many customers trying this and failing. When I was the PM for the sync engine I saw several of these cases and the answer (from me) was always to separate these to two different profiles.

@LindbergM
Copy link

Hello, is it possible this issue could also be seen when running an Export run profile, followed immediately by a Delta Import run profile? Every couple of days our Skype PSMA hangs and we have to kill the miiserver.exe process. Also, do you think it will be an easy fix?

@thomashouston I experience the same issue that you did or do, did you have any luck with your support case?

@thomashouston
Copy link

Hi @LindbergM, I wasn't able to reproduce the issue offline, so didn't get very far with Premier, unfortunately.

@TheUniquePaulSmith
Copy link
Author

@LindbergM, @thomashouston, I suspect the issue you are referring to is the following one I just logged. (Issue #32 )

This issue (#19) i've identified and documented and when I have time will put in a pull request to resolve

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

5 participants