Workflow Manager Suspends Workflows - "Invalid JWT token"

Hi,
I've installed Workflow Manager with the default settings described in this Technet article:
http://technet.microsoft.com/en-us/library/jj193514.aspx. Everything seems to install just fine but when I create a very simple workflow test on an "Announcements" list which simple
creates a Workflow History entry. However, the workflow immediately suspends with the following error which seems to be some kind of an authentication error. I am running the workflow logged on as a site collection administrator which is not 1. farm administrator
or 2. the service ID that I input into the Workflow Manager Configuration Wizard.I also DO have profiles installed, the user running the workflow DOES have a profile and I DO have the App Management service application installed. In addition, I rebooted the
SharePoint VM after the install
Given that Workflow Manager, Workflow Manager Client 1.0 and Service Bus 1.0 are all running on the same server as Central Administration (since I only have the one SharePoint VM) perhaps the reference to "SAMEORIGIN" in the error means something?
I've installed Workflow Manager with the same instructions on other farms in the past and not had this problem and wondering whether the June 2013 CU has introduced this error. . .
Please help!
Kathryn
RequestorId: f17eeb99-00f1-d82f-0000-000000000000.
Details: An unhandled exception occurred during the execution of the workflow instance.
Exception details: System.ApplicationException: HTTP 401 {"error_description":"Invalid JWT token. Could not resolve issuer token."} {"x-ms-diagnostics":["3000006;reason=\"Token contains invalid signature.\";category=\"invalid_client\""],"SPRequestGuid":["f17eeb99-00f1-d82f-9859-d5b160369f87"],"request-id":["f17eeb99-00f1-d82f-9859-d5b160369f87"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["4"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["Bearer
realm=\"2b0ecd05-1b3e-4efd-a346-c7b309bf6fb5\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,[email protected]09bf6fb5\"","NTLM"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4517"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
RequireReadOnly"],"Date":["Sun, 25 Aug 2013 22:22:02 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance
instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Kathryn Birstein, Senior SharePoint Architect

Hi,
Base on the description, an unhandled exception occurred during the execution of the workflow instance.
I suggest you to use other account to test the workflow. Please make sure you are not using system account. Also please make sure User profile service is running and syncing with active directory. As I've found sometimes workflow tries to read user information
from user profile service and if the user details missing in User Profile service, the workflow might get failed. The original error is "Token Contains Invalid signature" which means either the user is system account or the user doesn't exists in user profile.
There is an article about the error message, you can refer to it:
http://steve.thelineberrys.com/following-sites-across-farms-with-sharepoint-2013-mysites/
More information:
Troubleshooting Workflow Manager 1.0 Management and Execution:
http://msdn.microsoft.com/en-us/library/windowsazure/jj193529(v=azure.10).aspx?ppud=4
Best Regards, 
Linda
Li

Similar Messages

  • Oracle Workflow Manager not working

    hi
    I have a problem concerning Oracle Workflow Manager.
    When I access Oracle Workflow Manager,all workflow system are down e.g (Notification Mailers,Agent Listeners,Service Components,Background Engines,Purge and Control Queue Cleanup).
    I tried several alternatives but was not successful.
    I really need your help because we are going life in 2 weeks time?
    Regards
    James

    Hi,
    Please refer to this document.
    Note: 378281.1 - How Does One Verify The Notification Mailer Is Functioning Properly?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=378281.1
    Regards,
    Hussein

  • Workflow manager 2013 installation????

    We migrated to SP2013 and workflows breaked...on search we found need to install workflow manager.
    Question: Should we install the workflow manager on Front End & Applications? Also is this required configuration wizard and restart of servers after installing it?
    We have 2 Web Front End and 2 Application Servers.

    Hi Imran,
    As Alex mentioned 2010 workflows don't workflow manager.
    Workflow Manager is needed only for 2013 workflows
    If you want your 2010 SPD workflows to run in 2013 platform, then you have to recreate the workflow as the assemblies and runtime are different now in SP2013. Also, there
    is a change from XOML to XAML format. The activities which are implementations of activity classes, are implemented declaratively by using XAML.
    This is what is stated in this link
    http://blogs.msdn.com/b/chandru/archive/2013/04/14/upgrading-spd-2010-workflows-to-spd-2013-workflows.aspx
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Workflow Manager - Add-WFHost fails with "Could not load file" error

    Hello! I'm not sure that its Sharepoint related topic but..
    I'm trying to install Workflow Manager using Powershell. I'm successfully created ServiceBus farm, create namespace, Add-SBhost etc. Also, i created WF Farm using New-WFFarm.
    Now i'm got SB Configuration and try to add my first host to WF Farm using standard cmdlets:
    $SBClientConfiguration = Get-SBClientConfiguration -Namespaces 'WorkflowDefaultNamespace'
    (it successfuly gives me some endpoint definitions)
    Add-WFHost -WFFarmDBConnectionString $WFFarmDBConStr -RunAsPassword $ServiceAccountPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration -CertificateAutoGenerationKey $CertificateAutoGenerationKey
    where
    $WFFarmDBConStr is typical connection string, i also used this to Get-WFFarm with no errors.
    $ServiceAccountPassword and $CertificateAutoGenerationKey are secure strings.
    But trouble appears with SBClientConfiguration, cmdlet returns error:
    "Cannot validate argument on parameter 'SBClientConiguration'. Could not load file or assebly 'Microsoft.ServiceBus, Version=1.8.0.0, Culture=neutral, PublicKeyToken=<SomeTokenSymbolsHere> or one of its dependencies. The system cannot
    find the file specified."
    What file it tries to load? I've installed all WorkflowManager binaries with
    webpicmd /Install /Product:WorkflowManagerRefresh key and don't know, what can be cause.

    Hi lehus,
    According to your description, my understanding is that you got an error when you configured Workflow Manager using PowerShell.
    Please try to use the following PowerShell command, compare the result:
    Add-WFHost -WFFarmDBConnectionString $WFFarmDBConStr -RunAsPassword $ServiceAccountPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration
    –EnableHttpPort -CertificateAutoGenerationKey $CertificateAutoGenerationKey
    -Verbose
    Check your process as:
    http://lennytech.wordpress.com/2013/06/02/configuring-workflow-manager-1-0-using-powershell/
    In addition, whether you could install and configure Workflow Manager with Workflow Manager Configuration Wizard. Please have a try as:
    http://prabathf.blogspot.com/2013/02/installing-and-configuring-workflow-for.html
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Workflow management coalition conforcement

    Is WLPI WFMC conforcement? Where can I find the statement about it?

    Do you need the API conformance (C, OLE, or OMG Workflow Management
    Facility), workflow process definition script (WPDL) conformance, or just
    similar functionality?
    /Max
    "ying" <[email protected]> wrote in message
    news:3a3eb07a$[email protected]..
    Is WLPI WFMC conforcement? Where can I find the statement about it?

  • Workflow Manager 1.0 configuration- Specified RunAs account is invalid

    Hello - I am trying to install and configure Workflow manager 1.0. As part of workflow manager configuration specifying the user id in
    Configure Service Account  section throwing error as "Specified RunAs account is invalid".
    I tried different ways and means suggested in forums and KBs - but I think it is unable to validate the user in Active Directory. Our Active Directory is AD 2003 functional level and wondering it has any issues with Workflow manager 1.0?
    Here are the environment details:
    WF Machine: Windows Server 2008 R2 SP1
    AD: Active Directory 2003
    Workflow Manager 1.0 installed and also applied the below latest workflow and service bus hotfixes.
    http://support.microsoft.com/kb/2799754; 
    http://support.microsoft.com/kb/2799752
    Also moved the service account to the default OU=Users container in AD as specified in below forum but no luck.
    http://social.msdn.microsoft.com/Forums/en-US/servbus/thread/3d803e15-606a-4f06-96fe-97c23ad3c01a
    I am not sure where the issue is wondering if any one has run into similar issue. Appreciate any feedback.

    Thanks for your response.
    No it still didnt work, we right clicked the users OU, provided read permissions on it directly not from any groups. as well as for computers OU.
    For me it is not showing invalid user, but wizard crashes as soon as we enter the service account details in the wizard. may be since the solution you are providing is not working for me.
    http://social.technet.microsoft.com/Forums/office/en-US/d70662fc-8e10-4862-975d-e441bf9c32f0/what-permission-does-the-service-account-requires-on-ad-for-the-workflow-manager-10-to-be?forum=sharepointadmin
    However we had one other test account which has full control on many areas is able to pass thru in this wizard with out crashing.
    We arent able to get the same permissions applied for prod account as it isnt right to simply take elevated permissions full control on AD Objects.
    Windows/AD team is looking for specific permission which this workflow manager requires to provide access.
    I dont see this documented with microsoft Either.
    SQL DB creation ability, Domain Account, Farm admin - is the criteria i believe.

  • Workflow Manager 1.0 will install but NOT configure.

    Hello everyone,
         I have successfully installed Workflow Manager 1.0 (and its prerequisites) on my Server 2008 R2 SP1 machine
    that is hosting Sharepoint 2013.  I attempt to go into the Workflow Manager Configuration.  That comes up and asks me if I want to Create new farm with Default Settings, New Farm with custom settings, or existing farm.  I've tried both Default
    settings AND Custom settings.
        When the configuration wizard comes up, I attempt to fill out the necessary information.  It seems to connect
    to the SQL server without a problem.  I only run into an issue when setting the USER ID.  The program totally freezes up and force closes. 
        I have verified that the USERID is in the correct format and tried multiple different formats.  The problem
    is that the moment I move the cursor from the USERID field to ANY other field, the program force closes.  I'm not able to hit submit, I'm not able to change any other options.  The moment USERID is manipulated or the cursor LEAVES the USERID field,
    the program force closes.  It won't even allow me to put in a password before it force closes.
         Customer domain is running in Windows Server 2003 Enterprise Edittion SP2.
    Any ideas?
    Thank you very much!
    I have copied the errors from event viewer below:
    APPLICATION ERROR
    Faulting application name: Microsoft.Workflow.Deployment.ConfigWizard.exe, version: 1.0.20922.0, time stamp: 0x505e1b30
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.17965, time stamp: 0x506dcae6
    Exception code: 0xe0434352
    Fault offset: 0x000000000000bccd
    Faulting process id: 0x17f8
    Faulting application start time: 0x01cddee198ece72e
    Faulting application path: C:\Program Files\Workflow Manager\1.0\Microsoft.Workflow.Deployment.ConfigWizard.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll
    Report Id: 22ab8b69-4ad5-11e2-af8f-005056965915
    .NET Runtime Error
    Application: Microsoft.Workflow.Deployment.ConfigWizard.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Runtime.InteropServices.COMException
    Stack:
       at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer()
       at System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit()
       at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()
       at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()
       at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(System.DirectoryServices.AccountManagement.PrincipalContext, System.Type, System.Nullable`1<System.DirectoryServices.AccountManagement.IdentityType>, System.String,
    System.DateTime)
       at System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(System.DirectoryServices.AccountManagement.PrincipalContext, System.String)
       at Microsoft.ServiceBus.Commands.Common.SecurityHelper.IsUserValid(System.DirectoryServices.AccountManagement.PrincipalContext, System.String)
       at Microsoft.ServiceBus.Commands.Common.SecurityHelper.IsDomainUserValid(System.String, System.String)
       at Microsoft.ServiceBus.Commands.Common.ValidateUserAttribute.Validate(System.String)
       at Microsoft.Deployment.ConfigWizard.UICommon.AccountDetailsViewModel.ValidateDomainUser()
       at Microsoft.Deployment.ConfigWizard.UICommon.AccountDetailsControl.UserIdTextBox_LostFocus(System.Object, System.Windows.RoutedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
       at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
       at System.Windows.Controls.Primitives.TextBoxBase.OnLostFocus(System.Windows.RoutedEventArgs)
       at System.Windows.UIElement.IsFocused_Changed(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.Controls.TextBox.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean,
    System.Windows.OperationType)
       at System.Windows.DependencyObject.ClearValueCommon(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata)
       at System.Windows.DependencyObject.ClearValue(System.Windows.DependencyPropertyKey)
       at System.Windows.Input.FocusManager.OnFocusedElementChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean,
    System.Windows.OperationType)
       at System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)
       at System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
       at System.Windows.FrameworkElement.OnGotKeyboardFocus(System.Object, System.Windows.Input.KeyboardFocusChangedEventArgs)
       at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
       at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
       at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
       at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.KeyboardDevice.ChangeFocus(System.Windows.DependencyObject, Int32)
       at System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject, Boolean, Boolean, Boolean)
       at System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement)
       at System.Windows.UIElement.Focus()
       at System.Windows.Input.KeyboardNavigation.Navigate(System.Windows.DependencyObject, System.Windows.Input.TraversalRequest, System.Windows.Input.ModifierKeys, System.Windows.DependencyObject)
       at System.Windows.Input.KeyboardNavigation.Navigate(System.Windows.DependencyObject, System.Windows.Input.Key, System.Windows.Input.ModifierKeys)
       at System.Windows.Input.KeyboardNavigation.ProcessInput(System.Windows.Input.InputEventArgs)
       at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler, System.Windows.Input.ProcessInputEventArgs)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
       at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawKeyboardActions, Int32, Boolean, Boolean, Int32)
       at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(System.Windows.Interop.MSG ByRef, Boolean ByRef)
       at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(System.Windows.Interop.MSG ByRef, System.Windows.Input.ModifierKeys)
       at System.Windows.Interop.HwndSource.OnPreprocessMessage(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
       at System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority, System.Delegate, System.Object)
       at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(System.Windows.Interop.MSG ByRef, Boolean ByRef)
       at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(System.Windows.Interop.MSG ByRef)
       at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(System.Windows.Interop.MSG ByRef)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Application.RunInternal(System.Windows.Window)
       at System.Windows.Application.Run()
       at Microsoft.Workflow.Deployment.ConfigWizard.App.Main()

    Hi Scott, 
    Thank you very much.. Now I am able to run wizard.. but at the end of wizard step I am getting below error
    [Info] [1/23/2014 5:48:47 PM]: Endpoint=sb://MSPAPPS.psu.edu.sa/WorkflowDefaultNamespace;StsEndpoint=https://MSPAPPS.psu.edu.sa:9355/WorkflowDefaultNamespace;RuntimePort=9354;ManagementPort=9355
    [Info] [1/23/2014 5:48:47 PM]: Processing completed
    [Verbose] [1/23/2014 5:48:47 PM]: Validating input and configuration parameters.
    [Verbose] [1/23/2014 5:48:49 PM]: Installing auto-generated certificate.
    [Progress] [1/23/2014 5:48:49 PM]: Installing auto-generated certificate.
    [Verbose] [1/23/2014 5:48:51 PM]: Granting 'Log on as Service' privilege to the RunAs account.
    [Progress] [1/23/2014 5:48:51 PM]: Granting 'Log on as Service' privilege to the RunAs account.
    [Verbose] [1/23/2014 5:48:52 PM]: Workflow Manager configuration starting.
    [Progress] [1/23/2014 5:48:52 PM]: Workflow Manager configuration starting.
    [Verbose] [1/23/2014 5:48:55 PM]: Configuring Workflow Manager runtime settings.
    [Progress] [1/23/2014 5:48:55 PM]: Configuring Workflow Manager runtime settings.
    [Error] [1/23/2014 5:48:55 PM]: System.Management.Automation.CmdletInvocationException: The token provider was unable to provide a security token while accessing 'https://mspapps.psu.edu.sa:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned
    message: 'The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.'. ---> System.UnauthorizedAccessException: The token provider was unable to provide a security token while accessing 'https://mspapps.psu.edu.sa:9355/WorkflowDefaultNamespace/$STS/Windows/'.
    Token provider returned message: 'The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.'. ---> System.IdentityModel.Tokens.SecurityTokenException: The token provider was unable to provide a security
    token while accessing 'https://mspapps.psu.edu.sa:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned message: 'The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.'. ---> System.Net.WebException:
    The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
       at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
       at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.ConnectStream.WriteHeaders(Boolean async)
       --- End of inner exception stack trace ---
       at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
       --- End of inner exception stack trace ---
       at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception)
       at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
       at Microsoft.ServiceBus.WindowsTokenProvider.OnBeginGetWebToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state)
       at Microsoft.ServiceBus.TokenProvider.GetWebTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
       at Microsoft.ServiceBus.TokenProvider.BeginGetWebToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
       at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingWebToken(ITokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
       --- End of inner exception stack trace ---
    Server stack trace: 
       at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingWebToken(ITokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
       at Microsoft.ServiceBus.Messaging.HttpWebRequestExtensions.AddAuthorizationHeader(HttpWebRequest request, ITokenProvider tokenProvider, Uri baseAddress, String action)
       at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.<GetAsyncSteps>d__11.MoveNext()
       at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
       at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.Start()
    Exception rethrown at [0]: 
       at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at Microsoft.ServiceBus.NamespaceManager.OnEndTopicExists(IAsyncResult result)
       at Microsoft.ServiceBus.NamespaceManager.TopicExists(String path)
       at Microsoft.Workflow.Deployment.Commands.WorkflowServiceConfigHelper.SetWFRuntimeSettings(String resourceDBConnectionString, String config)
       at Microsoft.Workflow.Deployment.Commands.AddWFHost.CallWFRuntimeSettings(Service wfserviceInfo, String unencryptedResourceConnectionString)
       --- End of inner exception stack trace ---
       at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
       at Microsoft.Workflow.Deployment.ConfigWizard.CommandletHelper.InvokePowershell(Command command, Action`3 updateProgress)
       at Microsoft.Workflow.Deployment.ConfigWizard.ProgressPageViewModel.AddWFNode(FarmCreationModel model, Boolean isFirstCommand)

  • Configuring Workflow Manager for SharePoint 2013

    I have gone through the configurations of Workflow and SharePoint to use the new Workflow Manager 1.0 several times now, and keep getting the below errors.
    My environment is set up with 2 servers, 1 SP Web Applicatin and 1 SQL. Workflow is installed on the SQL server. These errors are from the SQL Server. 
    Event ID 22
    Service Bus exception swallowed at location ServiceBusNamespaceListener.GetSessionAndStateWithRetryAsyncResult.HandleException. Microsoft.ServiceBus.Messaging.MessagingException: The token provider service was not avaliable when obtaining a token for 'https://srv22.domain.com:9355/WorkflowDefaultNamespace/$STS/Windows/'. ---> Microsoft.ServiceBus.TokenProviderException: The token provider service was not avaliable when obtaining a token for 'https://srv22.domain.com:9355/WorkflowDefaultNamespace/$STS/Windows/'. ---> System.Net.WebException: The remote server returned an error: (502) Bad Gateway.
    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
    at System.Net.HttpWebRequest.GetRequestStream()
    at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
    --- End of inner exception stack trace ---
    at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception)
    at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
    at Microsoft.ServiceBus.WindowsTokenProvider.OnBeginGetToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProvider.BeginGetToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
    --- End of inner exception stack trace ---
    Server stack trace:
    at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationHeader(String action)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessageInternal(String action, Object body, Boolean includeToken)
    at Microsoft.ServiceBus.Messaging.Sbmp.AcceptMessageSessionForNamespaceAsyncResult..ctor(SbmpMessagingFactory messagingFactory, ReceiveMode receiveMode, Int32 prefetchCount, CreateControlLinkSettings controlLinkSettings, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessagingFactory.OnBeginAcceptMessageSession(ReceiveMode receiveMode, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.Messaging.MessagingFactory.AcceptMessageSessionAsyncResult.<GetAsyncSteps>b__29(AcceptMessageSessionAsyncResult thisPtr, TimeSpan t, AsyncCallback c, Object s)
    at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
    Exception rethrown at [0]:
    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Dispatcher.ServiceBusNamespaceListener.GetSessionAndStateWithRetryAsyncResult.EndAsyncResult(IAsyncResult result)
    at Microsoft.Workflow.Common.BackoffRetryAsyncResult.IsolateWithRetry(IAsyncResult result)
    Event ID 370
    The Workflow Manager cannot contact Service Bus service after retrying for '12' minutes. Please verify if the Service Bus service is up and running. The Workflow Manager failed at location 'ServiceBusNamespaceListener.GetSessionAndStateWithRetryAsyncResult.HandleException' due to exception: Microsoft.ServiceBus.Messaging.MessagingException: The token provider service was not avaliable when obtaining a token for 'https://srv22.domain.com:9355/WorkflowDefaultNamespace/$STS/Windows/'. ---> Microsoft.ServiceBus.TokenProviderException: The token provider service was not avaliable when obtaining a token for 'https://srv22.domain.com:9355/WorkflowDefaultNamespace/$STS/Windows/'. ---> System.Net.WebException: The remote server returned an error: (502) Bad Gateway.
    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
    at System.Net.HttpWebRequest.GetRequestStream()
    at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
    --- End of inner exception stack trace ---
    at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception)
    at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
    at Microsoft.ServiceBus.WindowsTokenProvider.OnBeginGetToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProvider.BeginGetToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
    --- End of inner exception stack trace ---
    Server stack trace:
    at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationHeader(String action)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessageInternal(String action, Object body, Boolean includeToken)
    at Microsoft.ServiceBus.Messaging.Sbmp.AcceptMessageSessionForNamespaceAsyncResult..ctor(SbmpMessagingFactory messagingFactory, ReceiveMode receiveMode, Int32 prefetchCount, CreateControlLinkSettings controlLinkSettings, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessagingFactory.OnBeginAcceptMessageSession(ReceiveMode receiveMode, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.Messaging.MessagingFactory.AcceptMessageSessionAsyncResult.<GetAsyncSteps>b__29(AcceptMessageSessionAsyncResult thisPtr, TimeSpan t, AsyncCallback c, Object s)
    at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
    Exception rethrown at [0]:
    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Dispatcher.ServiceBusNamespaceListener.GetSessionAndStateWithRetryAsyncResult.EndAsyncResult(IAsyncResult result)
    at Microsoft.Workflow.Common.BackoffRetryAsyncResult.IsolateWithRetry(IAsyncResult result).
    The error messages suggested to me that the issue was being caused by our proxy server. I have removed the proxy server from the equation by removing the proxy settings. 
    I then also tried to navigate to the url in the error messages. When i navigate to https://srv22.domain.com:9355/WorkflowDefaultNamespace/$STS/Windows/ i get a 400 Bad Request. When i change the address to https://srv22.domain.com:9355/WorkflowDefaultNamespace/$sts/Windows/
    ($sts in Lower Case rather than Upper Case) i get a response from the Workflow server. 
    I have searched high and low for a solution to this, and cannot find one, can anybody shed any light on the situation.
    Thanks in advance
    Paul

    Hi Paul,
    Here is a similar post with bad gateway error related to proxy and gateway settings, you can take a look.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/73a909d2-226d-454e-a8ca-c5e62dc8caac/setup-windows-azure-workflow-addwfhost-error-wfmanagementwftopic-and-token-provider-service
    Thanks
    Daniel Yang
    TechNet Community Support

  • Workflow Manager Configuration Wizard is not working with USER ID

    Hello everyone,
       I
    have successfully installed Workflow Manager 1.0 (and its prerequisites) on my Server 2008 R2 SP1 machine that is hosting Sharepoint 2013.  I attempt to go into the Workflow Manager Configuration.  That comes up and asks me if I want to Create
    new farm with Default Settings, New Farm with custom settings, or existing farm.  I've tried both Default settings AND Custom settings.
                When
    the configuration wizard comes up, I attempt to fill out the necessary information.  It seems to connect to the SQL server without a problem.  I only run into an issue when setting the USER ID.  The program totally freezes up and force closes. 
                I
    have verified that the USERID is in the correct format and tried multiple different formats.  The problem is that the moment I move the cursor from the USERID field to ANY other field, the program force closes.  I'm not able to hit submit, I'm not
    able to change any other options.  The moment USERID is manipulated or the cursor LEAVES the USERID field, the program force closes.  It won't even allow me to put in a password before it force closes.
                 Customer
    domain is running in Windows Server 2003 Enterprise Edittion SP2.
    Any
    ideas?
    I have installed also cumulative update to avoid crash but still I am getting force to close workflow wizard. I have used users which are already added in administrator groups.
    We are using 3 tier architecture for Sharepoint 2013.
    Also we have made Alias of Domain controller. Eg:-Alias is "labs" for domain "xyz.ab.com".
    And we are using labs\spadmin and labs\spservice for Workflow Manager Configuration 1.0
    Is there any issue with Domain Alias "labs" as Workflow gives error  "Specified RunAs account is invalid" or "Force close the application".
          I
    have copied the errors from event viewer below:
    APPLICATION
    ERROR
    Faulting
    application name: Microsoft.Workflow.Deployment.ConfigWizard.exe, version: 1.0.20922.0, time stamp: 0x505e1b30
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.17965,
    time stamp: 0x506dcae6
    Exception code: 0xe0434352
    Fault offset: 0x000000000000bccd
    Faulting process id: 0x17f8
    Faulting application start time: 0x01cddee198ece72e
    Faulting application path: C:\Program Files\Workflow Manager\1.0\Microsoft.Workflow.Deployment.ConfigWizard.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll
    Report Id: 22ab8b69-4ad5-11e2-af8f-005056965915
    .NET
    Runtime Error
    Application: Microsoft.Workflow.Deployment.ConfigWizard.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Runtime.InteropServices.COMException
    Stack:
       at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer()
       at System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit()
       at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()
       at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()
       at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(System.DirectoryServices.AccountManagement.PrincipalContext, System.Type, System.Nullable`1<System.DirectoryServices.AccountManagement.IdentityType>, System.String,
    System.DateTime)
       at System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(System.DirectoryServices.AccountManagement.PrincipalContext, System.String)
       at Microsoft.ServiceBus.Commands.Common.SecurityHelper.IsUserValid(System.DirectoryServices.AccountManagement.PrincipalContext, System.String)
       at Microsoft.ServiceBus.Commands.Common.SecurityHelper.IsDomainUserValid(System.String, System.String)
       at Microsoft.ServiceBus.Commands.Common.ValidateUserAttribute.Validate(System.String)
       at Microsoft.Deployment.ConfigWizard.UICommon.AccountDetailsViewModel.ValidateDomainUser()
       at Microsoft.Deployment.ConfigWizard.UICommon.AccountDetailsControl.UserIdTextBox_LostFocus(System.Object, System.Windows.RoutedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
       at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
       at System.Windows.Controls.Primitives.TextBoxBase.OnLostFocus(System.Windows.RoutedEventArgs)
       at System.Windows.UIElement.IsFocused_Changed(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.Controls.TextBox.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean,
    System.Windows.OperationType)
       at System.Windows.DependencyObject.ClearValueCommon(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata)
       at System.Windows.DependencyObject.ClearValue(System.Windows.DependencyPropertyKey)
       at System.Windows.Input.FocusManager.OnFocusedElementChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
       at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean,
    System.Windows.OperationType)
       at System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)
       at System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
       at System.Windows.FrameworkElement.OnGotKeyboardFocus(System.Object, System.Windows.Input.KeyboardFocusChangedEventArgs)
       at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
       at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
       at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
       at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.KeyboardDevice.ChangeFocus(System.Windows.DependencyObject, Int32)
       at System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject, Boolean, Boolean, Boolean)
       at System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement)
       at System.Windows.UIElement.Focus()
       at System.Windows.Input.KeyboardNavigation.Navigate(System.Windows.DependencyObject, System.Windows.Input.TraversalRequest, System.Windows.Input.ModifierKeys, System.Windows.DependencyObject)
       at System.Windows.Input.KeyboardNavigation.Navigate(System.Windows.DependencyObject, System.Windows.Input.Key, System.Windows.Input.ModifierKeys)
       at System.Windows.Input.KeyboardNavigation.ProcessInput(System.Windows.Input.InputEventArgs)
       at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler, System.Windows.Input.ProcessInputEventArgs)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
       at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawKeyboardActions, Int32, Boolean, Boolean, Int32)
       at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(System.Windows.Interop.MSG ByRef, Boolean ByRef)
       at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(System.Windows.Interop.MSG ByRef, System.Windows.Input.ModifierKeys)
       at System.Windows.Interop.HwndSource.OnPreprocessMessage(System.Object)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
       at System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority, System.Delegate, System.Object)
       at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(System.Windows.Interop.MSG ByRef, Boolean ByRef)
       at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(System.Windows.Interop.MSG ByRef)
       at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(System.Windows.Interop.MSG ByRef)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
       at System.Windows.Application.RunInternal(System.Windows.Window)
       at System.Windows.Application.Run()
       at Microsoft.Workflow.Deployment.ConfigWizard.App.Main()
    Thanks
    Hansraj Rathva

    Check to ensure that the user you're running the wizard as has access to the Users and Computers folders in Active Directory. I had trouble with the "specified RunAs account is invalid" message, and when I granted the AD rights, I was able to proceed.
    The issue would be that the user executing the wizard isn't able to query AD to look up the specified user. The RunAs account you're specifying is probably fine.

  • Install workflow manager using DSC declarative configuration

    I am trying to install workflow manager using below DSC powershell script.
    Configuration
    C_Pkg_WFInstall
    Node $AllNodes.NodeName
    Package C_Pkg_WFInstall
    Ensure = "Present"
    Name = "Workflow Manager Client 1.0"
    Path = "C:\WorkflowManagerFiles\bin\WebpiCmd.exe"
    Arguments =
    "/Install /Products:'Workflow Manager Client 1.0' /XML:'c:/WorkflowManagerFiles/feeds/latest/webproductlist.xml' /log:'c:/users/backup/workflow.txt' /AcceptEula"
    ProductId =
    "A5ABAF5F-B5B6-44B3-B69F-2E13DC60FC9F"
    $ConfigData
    = @{
    AllNodes = @(
        NodeName =
    "CHN-AERO-VM28";         
    C_Pkg_WFInstall
    -ConfigurationData
    $ConfigData –Verbose
    Start-DscConfiguration
    -Wait -force
    -Verbose -Path
    .\C_Pkg_WFInstall
    And i get the below error
    PowerShell provider MSFT_PackageResource 
    failed to execute Set-TargetResource functionality with error message: The return code -1 was not expected. Configuration is likely not
    correct
    + CategoryInfo         
    : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    But while installing from command prompt window i could install the below list successfully
    IdentifyingNumber : {A5ABAF5F-B5B6-44B3-B69F-2E13DC60FC9F}
    Name              : Workflow Manager Client 1.0
    IdentifyingNumber : {04A7199E-565D-4654-88A3-80A9A7BADDD9}
    Name              : Workflow Manager 1.0
    IdentifyingNumber : {F438C511-5A64-433E-97EC-5E5343DA670A}
    Name              : Service Bus 1.0
    I tried with all the above 3 product ids, its not working.

    Thanks for your reply.
    I get the below error in eventviewer - Applications and Services Log - Windows Powershell
    The description for Event ID 600 from source PowerShell cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the
    local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    Alias
    Started
     ProviderName=Alias
     NewProviderState=Started
     SequenceNumber=1
     HostName=Default Host
     HostVersion=4.0
     HostId=979b4813-7bd4-47d7-9729-4166ae91e9c1
    The handle is invalid
    Log Name : Windows PowerShell
    Source : PowerShell (PowerShell)
    Event ID : 600
    Task Category : Provider Lifecycle
    I got the same error message in subsequent logs but the providername is different as below
     ProviderName=Environment 
     ProviderName=FileSystem  
     ProviderName=Function  
     ProviderName=Registry 
     ProviderName=Variable
    The description for Event ID 400 from source PowerShell cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local
    computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    Available
    None
     NewEngineState=Available
     PreviousEngineState=None
     SequenceNumber=13
     HostName=Default Host
     HostVersion=4.0
     HostId=979b4813-7bd4-47d7-9729-4166ae91e9c1
     EngineVersion=4.0
     RunspaceId=6374c946-1219-4870-bc51-528faae9671d
    Log Name : Windows PowerShell
    Source : PowerShell (PowerShell)
    Event ID : 400
    Task Category : Engine Lifecycle
    But i believe the problem is with either the product name or product id, since it installs three products on one invoke, i dont know which product id we need to give. i tried with all the above 3 product ids. Its not working.
    I think by default DSC powershell runs under system account "NT AUTHORITY\SYSTEM".

  • Workflow Manager SharePoint 2013 - HTTP forbidden, 403 SSL is Required

    Hello,
    I have installed Workflow Manager and configured it to allow http and https communication, following the video instructions
    : Install and configure Workflow in SharePoint Server 2013
    http://technet.microsoft.com/en-us/library/dn201724(v=office.15).aspx
    I implemented a simple workflow in a new 2013 team site using SharePoint Designer 2013 (following episode 6) and
    everything worked.
    I then tried an identical list workflow in my root site collection (which was upgraded from 2010) and get:
    Status Started: Retrying last request. Next attempt scheduled in less than one minute. Details of last request:
    HTTP Forbidden to
    http://myserver/_vti_bin/client.svc/web/lists/getbyid(guid'fc6b128e-72e5-4c84-8d37-3a5a8a8f9030') Correlation Id: 36fa92d5-72e2-523d-ab84-c51d605fb705 Instance Id: a9671cc8-078d-4b1e-a8b8-3d95806b74f6  Retry now
    Status Suspended: Followed by the message:
    HTTP 403 {"x-ms-diagnostics":["30000000; reason=SSL is required"],"
     The process for creating and running these workflows was the same. Can anyone help?
    macrel

    Hi Marcel,
    Try executing the following command below and make sure that the workflows properly registered:
    $credential = [System.Net.CredentialCache]::DefaultNetworkCredentials
    $site = Get-SPSite(<siteUri>)
    $proxy = Get-SPWorkflowServiceApplicationProxy
    $svcAddress = $proxy.GetWorkflowServiceAddress($site)
    Copy-SPActivitiesToWorkflowService -WorkflowServiceAddress $svcAddress -Credential $credential -Force $true
    More references are provided in the below link
    http://technet.microsoft.com/en-us/library/dn133867.aspx
    http://social.msdn.microsoft.com/Forums/en-US/ccefeb99-5b39-4494-a545-771bf6e77137/error-in-workflow-2013-when-i-try-assign-task-http-forbidden?forum=sharepointcustomization
    http://social.msdn.microsoft.com/Forums/en-US/008d825f-eedf-4fc5-9ce1-7c19933681f7/http-403-forbidden-error-when-starting-workflow-manually-on-sharepoint-2010?forum=sharepointdevelopmentprevious
    Regards  Roy Joyson
    Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.
    Roy Joyson

  • Workflow Manager disaster recovery old instances not moving forward

    Dear ALL,
    I am facing an issue in workflow manager 1.0 disaster recovery.
    I followed all the steps to recover workflow manager 1.0 mentioned in MSDN, new instances which I have created after restoration working fine, but the old workflow instances when I complete any of the task does not moving forward even the workflow is
    not getting suspended there is no error please see the screen shot. 
    Regards,
    Faraz Javaid

    Hi I did not republish the workflow and the behavior was same for old workflow instances as mentioned in my question.
    Then I republished the workflow thinking that it might solve the problem but the result remain the same. I have check the Logs but unfortunately I did not find any noticeable error.
    Faraz Javaid

  • WorkFlow Manager will not install via WebPICmd

    I cannot install workflow manager via the online or offline modes.  I select the following link
    http://technet.microsoft.com/en-us/library/jj193448.aspx then the installation link and run the workflowmanager.exe and get a WPI v4.6 message "...couldn't find the product you tried
    to install"
    If I go to the download center and download the workflow Manager and then run it I get an "invalid command..." error message. 
    http://www.microsoft.com/en-us/download/details.aspx?id=35375
    I tried following the offline option using the webPICMD cmd below however that does not work... it returns "Can't find product with id WorkflowManager
    webpicmd /offline /Products:WorkflowManager /Path:c:\WorkflowManagerFiles 
    If I try
    webpicmd /offline /Products:Workflow /Path:c:\WorkflowManagerFiles  it does appear to work in that I do not get the above error message
    If I run a webpicmd /list /listoption:all  I do not see the workflow products listed
    I did then try
    WebpiCmd.exe /Install /Products:Workflow /XML:c:/WorkflowManagerFiles/feeds/latest/originalfeeds/webproductlist.xml and it says "No products to be installed (either not available or already installed)" 
    I looked at a lot of sites that talk about how to do this and I noticed that none of the links have the correct path.. they are all missing /originalfeeds part of the path.  So maybe I am missing
    something here
    I have tried this on 2 separate new Server builds  2012 and 2012 R2, both new installs, all updates applied and attached to the domain, nothing else done to the servers.  (I assume SP2013
    does not need to be installed on this Server, its just for the workflow function)
    The WorkFlow Client appears to work for both options, in that when I click on the install from the web the Web Installer has selected 1 item and I could proceed with the install
    Any ideas?

    Andrew --
    The brilliant folks over at M$ renamed it to WorkflowManagerRefresh...
    webpicmd /offline /Products:WorkflowManagerRefresh /Path:c:\WorkflowManagerFiles 

  • Workflow Manager won't register

    I am unable to get workflow manager to register in my farm, I have installed the workflow manager on the application server and the client on the 2 WFE's.
    The Workflow mgt app pool is running, workflow mgt site is running, the service application proxy is started, the workflow timer service is started, the workflow manager backend service is running in the service msc, the sercurity token service application
    is running, but I am unable to get the service to register.
    I am also able to open the URL for the service in a browser running as an admin http://server:12291/ and see the XML.
    when I run Get-WFFarmstatus it shows the frontend and backend service status as running.
    the error I get is 
    Register-SPWorkflowService : Failed to query the OAuth S2S metadata endpoint at URI 'http://site collection URL/_layouts/15/metadata/json/1'.  Error details: 'An error occurred while sending the request.' HTTP headers received from the server - ActivityID:
    51f844c9-a6b7-40a1-a381-9972506beb0c.  NodeId: 20sp7. Scope: /SharePoint. Client ActivityId: 32ea0817-17b8-46a2-8418-bba5438b1a20.
    The service account is a local admin, it has full control over the web application.
    I also ran the 
    $config = (Get-SpSecurityTokenServiceConfig)
    $config.AllowOAuthOverHttp = $true
    $config.AllowMetadataOverHtto = $true
    $config.Update()
    before running the register command still getting the same error.
    I have disconnected the workflowmanager from the farm and reconnected it, even uninstalled it, the service bus and workflow client and deleted all the DB's and reinstalled it.  Everything seems to be running just will not allow me to register it.
     

    Please try to browse the following URL and see if it gives you option to download 1.json
    http://siteurl/_layouts/15/metadata/json/1
    Please share entries found in ULS Logs while running the command.
    Also try using -Force switch while running the command and check the behavior.
    Check below link:
    http://consulting.risualblogs.com/blog/2013/05/24/sharepoint-2013-and-workflow-manager-farms/
    http://sharepointdeal.wordpress.com/2013/07/08/register-spworkflowservice-failed-to-query-the-oauth-s2s-metadata-error/ 
    Thanks, Bravo

  • Workflow manager Service Bus 407 error

    After installing and configuring Workflow Manager on SharePoint 2013 farm I am able to create workflows in SP Designer in 2013 and publish them on the server with no errors. New workflows do show up in the application, but will not run. I found
    the indication in ULS that something went wrong 
    Workflow revision number mismatch! Current workflow store revision is 13 and workflow host scope has revision 0
    Operational event viewer logs on the Workflow Manager Host showing up these events:
    Log Name: Microsoft-Workflow/Operational
    Source: Microsoft-Workflow
    Date: 5/2/2014 2:00:31 PM
    Event ID: 22
    Task Category: (65512)
    Level: Warning
    Keywords: Dispatcher,Management
    User: domain\user
    Computer: FQDN
    Description:
    Service Bus exception swallowed at location ServiceBusNamespaceListener.GetSessionAndStateWithRetryAsyncResult.HandleException. System.UnauthorizedAccessException: The token provider was unable to provide a security token while accessing 'https://fqdn:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned message: ''. ---> System.IdentityModel.Tokens.SecurityTokenException: The token provider was unable to provide a security token while accessing 'https://FQDN:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned message: ''. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
    at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
    at System.Net.HttpWebRequest.GetRequestStream()
    at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
    --- End of inner exception stack trace ---
    at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception)
    at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
    at Microsoft.ServiceBus.WindowsTokenProvider.OnBeginGetToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProvider.BeginGetToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
    --- End of inner exception stack trace ---
    Server stack trace:
    at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationHeader(String action)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessageInternal(String action, Object body, Boolean includeToken)
    at Microsoft.ServiceBus.Messaging.Sbmp.AcceptMessageSessionForNamespaceAsyncResult..ctor(SbmpMessagingFactory messagingFactory, ReceiveMode receiveMode, Int32 prefetchCount, CreateControlLinkSettings controlLinkSettings, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessagingFactory.OnBeginAcceptMessageSession(ReceiveMode receiveMode, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.Messaging.MessagingFactory.AcceptMessageSessionAsyncResult.<GetAsyncSteps>b__29(AcceptMessageSessionAsyncResult thisPtr, TimeSpan t, AsyncCallback c, Object s)
    at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
    Exception rethrown at [0]:
    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Dispatcher.ServiceBusNamespaceListener.GetSessionAndStateWithRetryAsyncResult.EndAsyncResult(IAsyncResult result)
    at Microsoft.Workflow.Common.BackoffRetryAsyncResult.IsolateWithRetry(IAsyncResult result)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-Workflow" Guid="{B2885F6E-231C-43FF-BBEA-7516148FF6FE}" />
    <EventID>22</EventID>
    <Version>0</Version>
    <Level>3</Level>
    <Task>65512</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000210</Keywords>
    <TimeCreated SystemTime="2014-05-02T18:00:31.600519200Z" />
    <EventRecordID>323735</EventRecordID>
    <Correlation ActivityID="{C756E6D1-A7DC-4DA5-BA9D-D38DFD199CBC}" />
    <Execution ProcessID="4084" ThreadID="4112" />
    <Channel>Microsoft-Workflow/Operational</Channel>
    <Computer>FQDN</Computer>
    <Security UserID="S-1-5-21-436374069-1326574676-725345543-5309" />
    </System>
    <EventData>
    <Data Name="location">ServiceBusNamespaceListener.GetSessionAndStateWithRetryAsyncResult.HandleException</Data>
    <Data Name="exception">System.UnauthorizedAccessException: The token provider was unable to provide a security token while accessing 'https://********************:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned message: ''. ---&gt; System.IdentityModel.Tokens.SecurityTokenException: The token provider was unable to provide a security token while accessing 'https://****************:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned message: ''. ---&gt; System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
    at System.Net.HttpWebRequest.GetRequestStream(TransportContext&amp; context)
    at System.Net.HttpWebRequest.GetRequestStream()
    at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime&amp; expiresIn)
    --- End of inner exception stack trace ---
    at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception)
    at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime&amp; expiresIn)
    at Microsoft.ServiceBus.WindowsTokenProvider.OnBeginGetToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProvider.BeginGetToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
    --- End of inner exception stack trace ---
    Server stack trace:
    at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, Uri baseAddress, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationHeader(String action)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessageInternal(String action, Object body, Boolean includeToken)
    at Microsoft.ServiceBus.Messaging.Sbmp.AcceptMessageSessionForNamespaceAsyncResult..ctor(SbmpMessagingFactory messagingFactory, ReceiveMode receiveMode, Int32 prefetchCount, CreateControlLinkSettings controlLinkSettings, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessagingFactory.OnBeginAcceptMessageSession(ReceiveMode receiveMode, TimeSpan timeout, AsyncCallback callback, Object state)
    at Microsoft.ServiceBus.Messaging.MessagingFactory.AcceptMessageSessionAsyncResult.&lt;GetAsyncSteps&gt;b__29(AcceptMessageSessionAsyncResult thisPtr, TimeSpan t, AsyncCallback c, Object s)
    at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
    Exception rethrown at [0]:
    at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
    at Microsoft.Workflow.Dispatcher.ServiceBusNamespaceListener.GetSessionAndStateWithRetryAsyncResult.EndAsyncResult(IAsyncResult result)
    at Microsoft.Workflow.Common.BackoffRetryAsyncResult.IsolateWithRetry(IAsyncResult result)</Data>
    </EventData>
    </Event>
    no proxy is configured on the system and gateway address is accurate.

    are you accessing the site from your local machine or on the server? also could you please tell us if your sharepoint server and Client
    are on same domain.  Looks Like Token services having the issue.
    As i saw you are using the SSL, check the below post may help.
    http://social.technet.microsoft.com/wiki/contents/articles/13708.installing-workflow-manager-failed-with-could-not-establish-trust-relationship-for-the-ssltls-secure-channel.aspx
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • How can I restore an iPhoto library from Time Machine (ML) - when I TM doesn't see the backup??

    Hi, I recently did a Time Machine backup of my MacBook Pro (Mountain Lion) onto an external HDD. Around the time of the last backup, my system was behaving funny so I decided to rebuild the OS X. Because the last TM backup was of a system that as men

  • Noob needs help using/managing large font collection in os10

    Hope this is the correct forum for this question. I'm a os10 noob starting at a new, small startup design-oriented biz (6-7 macs) that needs to manage fonts - 100s, over a 1000. Other places I've worked used Font Reserve and I'm familiar with that pr

  • Forte Batch Services

    Hi Forte Users. I am trying to write a Forte service that will control background batch style jobs. I want an Environment Visible non replicated service that will listen out for events from clients and start tasks in other partitions to carry out lon

  • Disappearing Channel Strip slots & Plug-ins?

    Just bouncing down a project i've almost finished. For some reason (and i have experienced this problem before over a few versions of Logic now) the top section of the control strip for outputs 1-2, 3-5, 5-6 and plugs-ins used for them have disappear

  • Forms Anywhere

    According to the lastest update for Muse which is now Muse CC that I am using at my current job it says that it includes Forms Anywhere. However nothing on the Adobe site with videos, or FAQs or anything else expounds upon this. I want to know exactl