MIM Event Broker Forum

Welcome to the community forum for MIM Event Broker.

Browse the knowledge base, ask questions directly to the product group, or leverage the community to get answers. Leave ideas for new features and vote for the features or bug fixes you want most.

0
Answered

Non-existant management agents after upgrading from v3 to v4

Carol Wapshere 6 years ago updated by Adam van Vliet 6 years ago 32

After upgrading EB from v3 to v4 all my operations stopped working with errors like "Attempting to check for exports in non-existant management agent". I refreshed the FIM Agent which did not help. I then created a new MIM Agent and went through manually updating every single check operation and run operation (there are *lots*) to reference the new agent. Dev then worked.

I have just upgraded Test and the same thing has happened, even though I migrated the OperationEnginePluginKey and AgentEnginePluginKey files from Dev (then fixed the agent database path through the UI). Again I've refreshed MAs, and restarted a few times, but everything is broken with "non-existant management agent" type messages.

The MA GUIDs are identical in both environments and I always update EB by copying the OperationEnginePluginKey file.

How can I fix this without having the edit every single operation again?

Answer

Hi Carol,

I've figured what the issue is and have corrected it. This, however, involved realising that the storing MIM references in isolated storage while still maintaining the portability of the extensibility config would negate any benefit of having them in the first place. Therefore, these references are now stored in an extensibility file (Unify.Product.EventBroker.MIMReferenceRepositoryPlugInKey.extensibility.config) so when migrating config between environments the MIM references are too.

This fix is included in v4.0.4, which I just released. Isolated storage references will be migrated on the first service start, so an existing environment should be upgraded to v4.0.4 and run once to get the extensibility config in the correct state for migration.

0
Answered

PowerShell Logging

Bob Bradley 6 years ago updated by Adam van Vliet 6 years ago 7

Please provide reference information and an example of how to access the log record data using the PowerShell log writer.  I'm looking to write entries to OMS, and am looking at the feasibility of using this log writer in lieu of the email logger. Thanks

Answer
Adam van Vliet 6 years ago

The page was missing from the Event Broker, I've copied it over https://voice.unifysolutions.net/knowledge-bases/8/articles/3550-powershell-log-writer

0
Not a bug

System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'

Gurdip Sira 6 years ago updated by Adam van Vliet 6 years ago 13

Hi,

I am installing MIM Event Broker on Server 2012 R2 with IIS 8.5


I have most of the configuration done, but when going to the site, I get this error:


System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM,Negotiate'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---


In terms of windows authentication, I have configured the authentication correctly on IIS and the site itself.



Please advise.

Answer

Hey Gurdip,

Event Broker has an inbuilt web server which is enabled by default. You won't need this if you've configured it to use IIS.

Check out the documentation on https://voice.unifysolutions.net/knowledge-bases/8/articles/2721-configuring-mim-event-broker-for-use-with-embedded-web-server , following the steps to change the enabled="true" to enabled="false" in the Unify.Framework.Web.WebEnginePlugInKey.extensibility.config.xml file. The service should then start.

0
Answered

EventBroker failed to start with the below error (possibly due to .Net compability):

Huu Tran 6 years ago updated by Adam van Vliet 6 years ago 5

Application: Unify.Service.Event.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
   at System.ModuleHandle.ResolveType(System.Reflection.RuntimeModule, Int32, IntPtr*, Int32, IntPtr*, Int32, System.Runtime.CompilerServices.ObjectHandleOnStack)
   at System.ModuleHandle.ResolveTypeHandleInternal(System.Reflection.RuntimeModule, Int32, System.RuntimeTypeHandle[], System.RuntimeTypeHandle[])
   at System.Reflection.RuntimeModule.ResolveType(Int32, System.Type[], System.Type[])
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(System.Reflection.CustomAttributeRecord, System.Reflection.MetadataImport, System.Reflection.Assembly ByRef, System.Reflection.RuntimeModule, System.Reflection.MetadataToken, System.RuntimeType, Boolean, System.Object[], System.Collections.IList, System.RuntimeType ByRef, System.IRuntimeMethodInfo ByRef, Boolean ByRef, Boolean ByRef)
   at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeModule, Int32, Int32, System.RuntimeType, Boolean, System.Collections.IList, Boolean)
   at System.Reflection.CustomAttribute.GetCustomAttributes(System.Reflection.RuntimeAssembly, System.RuntimeType)
   at System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, Boolean)
   at System.AppDomain.GetTargetFrameworkName()



Strange enough, .Net version in the machine is 4.6.1. When running command line debugging, the error is:


D:\Program Files\UNIFY Solutions\Event Broker\Services>Unify.Service.Event.Debug
.exe

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'Unify.Framework, Version=5.1.0.0, Culture=neutral, PublicKeyToken=84b9288
cb2633de4' or one of its dependencies. The system cannot find the file specified
.
   at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, Int
Ptr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInst
Count, ObjectHandleOnStack type)
   at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32
typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] met
hodInstantiationContext)
   at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] ge
nericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttrib
uteRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Runtime
Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilte
rType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes,
RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters
, Boolean& isVarArg)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decora
tedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFi
lterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecorate
dTargetSecurityTransparent)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly asse
mbly, RuntimeType caType)
   at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType,
 Boolean inherit)
   at System.AppDomain.GetTargetFrameworkName()


Pls advise.

Answer
Adam van Vliet 6 years ago

This shouldn't have been caused by an external installation, if it was (e.g. after rolling back the hotfixes), you may wish to raise a support call with Microsoft.

Please check the installed MIM Event Broker service executable versions, as this was fixed in v3.2.1 (issue was caused by a breaking change to the way .NET loaded assembly level attributes, similar to https://voice.unifysolutions.net/communities/6/topics/66-service-fails-to-start-filenotfoundexception-filtercustomattributerecord). Or update to v4.x to be sure.

0
Completed

Event Broker Monitoring

Bob Bradley 6 years ago updated by Adam van Vliet 6 years ago 1

Further to the basic concepts from https://voice.unifysolutions.net/communities/5/topics/1964-create-alerts-for-informing-end-user-of-important-events, a situation arose this week with a customer where a critical operation list had been disabled and not re-enabled in a timely fashion.  In this case we still don't know how this happened - other than it wasn't anyone from UNIFY (no access at the time) and it wasn't the Safety Catch.

What I am thinking of configuring is a PowerShell script which sends an email notification in the event that an operation list is detected as disabled for longer than a configurable period of time (e.g. put operation lists in a "watch group" and if any one of these operations is detected as disabled at the time of the check/probe, then start a counter ... and if after say 3 consecutive probes the operation list is still disabled, generate an alert.

This would be a useful feature to come OOTB, however ... i.e. its own health monitoring capability.  This could be a tab in its own right, configured with a number of operations independent of the "normal" operation lists.  Needs some thought.

Answer
Adam van Vliet 6 years ago

I imagine this could be done in OMS (or I imagine any other platform), by subscribing to the right event and creating an alert based on the last seen time. This might be better asked in the AMS forum?

0
Fixed

MIM Event Broker - Error

Dilip Ramakrishnan 6 years ago updated by Curtis Lusmore 6 years ago 3

Environment:

OS: Windows Server 2016

MIM Event Broker: v 4.0.1 RTM x64

After successful installation of MIM Event Broker and copy of 3 config files (Operation engine, Agent engine, GroupEngine), accessing the EB URL results in this error below:

Server Error in '/' Application.

Could not load file or assembly 'Unify.Framework.Collections, Version=5.2.0.0, Culture=neutral, PublicKeyToken=84b9288cb2633de4' or one of its dependencies. The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Unify.Framework.Collections, Version=5.2.0.0, Culture=neutral, PublicKeyToken=84b9288cb2633de4' or one of its dependencies. The system cannot find the file specified.



Event Viewer Log

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          21/02/2018 10:48:01 AM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      winvdmim01.devparl.nsw.gov.au
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 21/02/2018 10:48:01 AM
Event time (UTC): 20/02/2018 11:48:01 PM
Event ID: 311fa6ab5c1a427ba0fa14f6a4f6ec12
Event sequence: 4
Event occurrence: 2
Event detail code: 0
 
Application information:
    Application domain: 17c438b0-1-131636439352711348
    Trust level: Full
    Application Virtual Path: /
    Application Path: D:\Program Files\UNIFY Solutions\Event Broker\Web\
    Machine name: WINVDMIM01
 
Process information:
    Process ID: 8168
    Process name: Unify.Service.Event.exe
    Account name: DEVPARL\svc_UNIFYevB
 
Exception information:
    Exception type: TypeInitializationException
    Exception message: The type initializer for 'Unify.EventBroker.Web.EventServiceClientInstance' threw an exception.
   at Unify.EventBroker.Web.MvcApplication..ctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Global.asax.cs:line 33
   at ASP.global_asax..ctor()

Could not load file or assembly 'Unify.Framework.Collections, Version=5.2.0.0, Culture=neutral, PublicKeyToken=84b9288cb2633de4' or one of its dependencies. The system cannot find the file specified.
   at Unify.Framework.TimingGenerator..ctor()
   at Unify.Framework.Logging.LoggingEngineClient..ctor(ILoggingEngineCollector collector) in C:\agent\_work\23\s\Source\Logging\Unify.Framework.Logging.Engine.Shared\LoggingEngineClient.cs:line 25
   at Unify.EventBroker.Web.EventServiceClientInstance.CreateComponent(EndpointAddress serviceEndpointAddress) in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Extensions\EventServiceClientInstance.cs:line 53
   at Unify.EventBroker.Web.EventServiceClientInstance..cctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Extensions\EventServiceClientInstance.cs:line 32

 
 
Request information:
    Request URL: http://localhost:8080/
    Request path: /
    User host address: 127.0.0.1
    User: 
    Is authenticated: False
    Authentication Type: 
    Thread account name: DEVPARL\svc_UNIFYevB
 
Thread information:
    Thread ID: 4
    Thread account name: DEVPARL\svc_UNIFYevB
    Is impersonating: False
    Stack trace:    at Unify.EventBroker.Web.MvcApplication..ctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Global.asax.cs:line 33
   at ASP.global_asax..ctor()
 
 
Custom event details:

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 4.0.30319.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2018-02-20T23:48:01.733210900Z" />
    <EventRecordID>327715</EventRecordID>
    <Channel>Application</Channel>
    <Computer>winvdmim01.devparl.nsw.gov.au</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>21/02/2018 10:48:01 AM</Data>
    <Data>20/02/2018 11:48:01 PM</Data>
    <Data>311fa6ab5c1a427ba0fa14f6a4f6ec12</Data>
    <Data>4</Data>
    <Data>2</Data>
    <Data>0</Data>
    <Data>17c438b0-1-131636439352711348</Data>
    <Data>Full</Data>
    <Data>/</Data>
    <Data>D:\Program Files\UNIFY Solutions\Event Broker\Web\</Data>
    <Data>WINVDMIM01</Data>
    <Data>
    </Data>
    <Data>8168</Data>
    <Data>Unify.Service.Event.exe</Data>
    <Data>DEVPARL\svc_UNIFYevB</Data>
    <Data>TypeInitializationException</Data>
    <Data>The type initializer for 'Unify.EventBroker.Web.EventServiceClientInstance' threw an exception.
   at Unify.EventBroker.Web.MvcApplication..ctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Global.asax.cs:line 33
   at ASP.global_asax..ctor()

Could not load file or assembly 'Unify.Framework.Collections, Version=5.2.0.0, Culture=neutral, PublicKeyToken=84b9288cb2633de4' or one of its dependencies. The system cannot find the file specified.
   at Unify.Framework.TimingGenerator..ctor()
   at Unify.Framework.Logging.LoggingEngineClient..ctor(ILoggingEngineCollector collector) in C:\agent\_work\23\s\Source\Logging\Unify.Framework.Logging.Engine.Shared\LoggingEngineClient.cs:line 25
   at Unify.EventBroker.Web.EventServiceClientInstance.CreateComponent(EndpointAddress serviceEndpointAddress) in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Extensions\EventServiceClientInstance.cs:line 53
   at Unify.EventBroker.Web.EventServiceClientInstance..cctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Extensions\EventServiceClientInstance.cs:line 32

</Data>
    <Data>http://localhost:8080/</Data>
    <Data>/</Data>
    <Data>127.0.0.1</Data>
    <Data>
    </Data>
    <Data>False</Data>
    <Data>
    </Data>
    <Data>DEVPARL\svc_UNIFYevB</Data>
    <Data>4</Data>
    <Data>DEVPARL\svc_UNIFYevB</Data>
    <Data>False</Data>
    <Data>   at Unify.EventBroker.Web.MvcApplication..ctor() in C:\agent\_work\22\s\Source\Unify.EventBroker.Web\Global.asax.cs:line 33
   at ASP.global_asax..ctor()
</Data>
  </EventData>
</Event>


Answer
Curtis Lusmore 6 years ago

Hi Dilip,

Please see EVB 4.0 Assembly Load Issue.

0
Answered

Event Broker won't allow password containing metacharacters

Adrian Corston 6 years ago updated by Curtis Lusmore 6 years ago 4

Attempting to configure the MIM Agent in Event Broker using the SQL credentials provided by the customer (which meet their strict password guidelines) I see this error from Event Broker:

System.Web.HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (DatabasePassword="<redacted but includes angle brackets>").

Can you please advise how to configure Event Broker with these credentials?

Answer
Curtis Lusmore 6 years ago

Hi Adrian,

Could you please try placing the following patch into the Services and Web/bin directories? Unify.EventBroker.Agents.Web.dll

0
Not a bug

There were not enough free threads in the ThreadPool to complete the operation

Anthony Soquin 6 years ago updated by anonymous 6 years ago 13

Hi,

A client reported the following error from PROD Event Broker:

Operation aa1021b4-fb70-447b-b8e2-e625079329f7 failed in operation list with id 975036c6-c301-4b07-92d5-f6757732b0bc for the following reason. This is retry number 0: Unify.Product.EventBroker.RestAPIAgentSendRequestFailedException: The sending of the request failed. See the inner exception for more information. ---> System.InvalidOperationException: There were not enough free threads in the ThreadPool to complete the operation.
   at System.Net.HttpWebRequest.BeginGetRequestStream(AsyncCallback callback, Object state)
   at System.Net.Http.HttpClientHandler.StartGettingRequestStream(RequestState state)
   at System.Net.Http.HttpClientHandler.PrepareAndStartContentUpload(RequestState state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Unify.Product.EventBroker.RestAPIAgent.<SendPostRequestAsync>d__3.MoveNext()
   --- End of inner exception stack trace ---
   at Unify.Product.EventBroker.RestAPIPlugIn.Execute()
   at Unify.Product.EventBroker.OperationListExecutorBase.RunNextOperations(IEnumerator`1 operationEnumerator)

For info:

This error comes from the Event Broker List Operation : "IDB - STUDENT IMPORT". The operation which failed is "STUDENT UNIT IMPORT". This operation request to run an import of Identity Broker connector: "Student_Unit".

Moreover Event Broker web site is not accessible anymore.

Configuration:

Event Broker 3.2.0

Identity Broker 5.0.3

Example of the configuration in UAT:

Image 4660


Thanks.

Regards,

Answer
anonymous 6 years ago

Hi Anthony,

How frequently are you experiencing this error? After you saw it for the first time, has it continued to occur until a service restart or any other recovery actions?

The error simply suggests that at the time the operation started, there were too many other operations running in parallel, exhausting the thread pool. As other operations complete, threads should free up and the issue should resolve itself automatically.

0
Answered

Event Broker - Check Operation on CSV Delta MA - Pending Export

Anthony Soquin 6 years ago updated by anonymous 6 years ago 3

Hi,

Just quick question about Check Operation - Pending export.

Configuration:

  • Event Broker: 3.2.1
  • FIM Sync: 4.1.3671.0
  • Management Agent: Delimited Text file (OOTB)

I configured the Pending Export - Check Operation for this Management Agent in Event Broker and I configured an Export and Delta Import Operation in Operation as following:

Image 4658


There is nothing in Pending Export for this MA in FIM Sync, but the export is triggered every 30 secs. 

Do you have an idea with the Check Operation doesn't prevent the export to run?

Thanks in advance for your help.

Regards,

Answer
anonymous 6 years ago

I created a Powershell task which throws an error when the file is empty.

2 issues with this solution, we have an alert in Event broker which indicates that there is an error in this specific operation and we have thousands of empty export in FIM Sync log (this operation is scheduled to run every 30 secs).

I am trying to find a better way to avoid the run of this operation when there is no pending export.

I didn't send a bug to Microsoft because I already know the answer: "We recommend to upgrade to MIM" :)  

0
Not a bug

IdB check operation issue

Matthew Woolnough 7 years ago updated by anonymous 6 years ago 20

I have configured an Aurion Employee import operation with a check operation. 

Either the:

  • Check is not detecting that there are changes to import; or
  • The run profile isn't being started when the objects are detected.

We manually ran an import in the MIM MA and there were 65 updates were imported. 

Will add config shortly.

Answer
anonymous 6 years ago

No response (here or via email).