Receive location using SBMessaging adapter disabled when Azure service bus is down

Does anybody experience  SBMessaging receive locations are disabled when Azure service bus is unavailable with a MessagingCommunicationException?  Is this an expected behavior / 'by design'? We see this exception a few times a day.  I don't
see any retry attempts based on the event log.  Our current solution is to have a powershell script that enables the receive location if it's disabled.  This script runs every 15 minutes.  Below is a sample of the error in the event log.
The receive location "Warnings_SB_New" with URL "XXXXXX" is shutting down. Details:"System.ServiceModel.EndpointNotFoundException: Error during communication with Service Bus. Check the connection information, then retry. --->
Microsoft.ServiceBus.Messaging.MessagingCommunicationException: Error during communication with Service Bus. Check the connection information, then retry. ---> System.ServiceModel.CommunicationObjectFaultedException: Internal Server Error: The server did
not provide a meaningful reply; this might be caused by a premature session shutdown..TrackingId:bb29d71c-a4d5-430c-a2d9-8a2e3acfad1d, Timestamp:5/9/2014 2:38:19 AM

Hi R. de Veen,
Below as the script we used with BTS2013.  We created a command line and setup a scheduled task.  Again, we don't use this script with BTS2013R2 since we do not have this issue with BTS2013 R2.
# Sample from https://github.com/tomasr/bts-ps-scripts/blob/master/bts-ports.ps
# declare our parameters: the action to take
param(
[string] $action=$(throw 'need action'),
[string] $name
$ctpRLs = @(
'Errors_SB_New'
#,'Error_OldTopic_OldLoggingDB'
,'Information_SB_New'
,'Warnings_SB_New'
#,'Information_NewTopic_OldLoggingDB'
,'Critical_SB_New'
#'Critical_OldTopic_OldLoggingDB'
# functions for pinging receive locations
function uti-ping-recv-loc
foreach ($rl in $ctpRLs)
Write-Host "`n"
if (( $rl -eq '') -or ($rl -eq $null))
throw "Receive location cannot be blank."
#Validate if this is a valid receive location
$recvloc = get-wmiobject MSBTS_ReceiveLocation `
-namespace 'root\MicrosoftBizTalkServer' `
-filter "Name='$rl'"
if ($recvloc -eq $null)
Write-Host "'$rl' does not exist. Skipping..." -foregroundcolor red -backgroundcolor black
else
Write-Host "Ping '$rl'..."
if ($recvloc.IsDisabled)
Write-Host "Restarting '$rl'..."
bts-set-recv-loc-status -name $rl -status 'enable'
Start-Sleep -s 10
if ($recvloc.IsDisabled)
Write-Host "Failed to enable $rl. Check the event log for more information." -foregroundcolor red -backgroundcolor black
else
Write-Host "'$rl' is enabled."
else
Write-Host "'$rl' is enabled."
$i++
Write-Host "`nComplete!!!`n`n" -foregroundcolor green -backgroundcolor black
# enable or disable the specified
# receive location
function bts-set-recv-loc-status($name, $status)
$recvloc = get-wmiobject MSBTS_ReceiveLocation `
-namespace 'root\MicrosoftBizTalkServer' `
-filter "Name='$name'"
switch ( $status )
'disable' { [void]$recvloc.Disable() }
'enable' { [void]$recvloc.Enable() }
# controls a send port
function bts-set-send-port-status($name, $status)
$sendport = get-wmiobject MSBTS_sendPort `
-namespace 'root\MicrosoftBizTalkServer' `
-filter "Name='$name'"
switch ( $status )
'start' { [void]$sendport.Start() }
'stop' { [void]$sendport.Stop() }
'enlist' { [void]$sendport.Enlist() }
'unenlist' { [void]$sendport.UnEnlist() }
function is-valid-opt($check, $options)
foreach ( $val in $options )
if ( $check -eq $val ) {
return $true
# main script
switch ( $action )
'ping-recv-loc' {
uti-ping-recv-loc
Write-Host "`n"
Write-Host "Syntax: .\RestartELCRLs.ps1 ping-recv-loc"
Write-Host "`n"

Similar Messages

  • BizTalk 2013 SB-Messaging Adapter: Unable to receive messages from a Azure service bus Subscription

    Hi,
    I am trying to receive messages from a Azure service bus subscription using SB-Messaging Adapter in BizTalk Server 2013 but getting the following error.
    "The token provider was unable to provide a security token while accessing 'https://overcasb-sb.accesscontrol.windows.net/WRAPv0.9/'.
    Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
    It seems the error is related with Service Bus Authentication and Authorization with the Access Control Service. Can anybody help me out if I am missing something here? 
    Also for consuming the AWSB (namespace, topic name, subscription name, Issuer name, Issuer Key) I have referred the following link
    http://soa-thoughts.blogspot.in/2013/02/biztalk-server-2013-new-adapters-series.html
    Thanks!
    Regards,
    Gautam
    gautam

    Hi,
    When I am trying to receive the same messages from a Azure service bus subscription using .net (C#) client,
    BusSubscriberbusSubscriber =
    newBusSubscriber("TestTopic2",
    "Endpoint=sb://overcasb.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue=wqYlT4yHZimeUZacH+1V1hj/ZrKu7zK9ELaaLYDxqjc=",
    "AssetMovement",
    "AssetMovement");
    I am getting the same error here also.
    "The token provider was unable to provide a security token while accessing 'https://overcasb-sb.accesscontrol.windows.net/WRAPv0.9/'.
    Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
    By setting  <defaultProxy useDefaultCredentials="true" /> in appconfig, I got rid of the above error. And now its working fine with .net(C#) client.
    <configuration>
      <system.net>
        <defaultProxy useDefaultCredentials="true" />
      </system.net>
    </configuration>
    The same setting I tried in BTSNTSvc.exe config file and ofcourse restarted the host instance but still getting the same error. Any help?
    gautam

  • Hi, I connected to the internet in a different location using ethernet cable and when I got home websites like yahoo wont get to the sign in page and other sites too...weirdly facebook and google works ...please help...tearing my hair out!!!

    Question
    Hi, I connected to the internet in a different location using ethernet cable and when I got home websites like yahoo wont get to the sign in page and other sites too...weirdly facebook and google works ...please help...tearing my hair out!!!

    and now, when i tried to check again my network preference below the airport tab is showing a message that
    "my airport does not have an IP address and cannot connect to the internet!"
    then after seconds it will goes back to the first message that
    "airport has the self assigned IP address etc....."
    i don't know whats going on now!
    airport tab is not showing green color anyway! i'ts always in yellow!
    i tried turning it on and off but nothing happen! HEEELLLLPP!!!!

  • Which Nuget Package for Azure Service Bus can I use for Windows Store apps?

    Hi,
    I want to use the Azure Service Bus Topics. I have an app that needs to subscribe to the Service bus Topic. The Nuget-Package for Azure Service Bus is not applicable for Windows Store Apps (I get an error during install), thats why I used the Windows Azure
    Service Bus managed for Windows Store. Unfortunatelly this API throws a Serialization Exception when I create a subscription. What can I do to use the Service bus in Windows store apps?
    Thats how I try to create the subscription:
    await Microsoft.WindowsAzure.Messaging.Subscription.CreateAsync(TOPIC_NAME, SUBSCRIPTION_NAME, CONNECTION_STRING);

    Yes this is the one I used.
    But creating a subscription with the code above throws the SerializationException mentioned in this question:
    http://social.msdn.microsoft.com/Forums/de-DE/1acb887e-d5f1-4bfb-8eb9-f8ce7390ae7b/microsoftwindowsazuremessagingsubscriptioncreateasync-throws-an?forum=servbus&prof=required.
    Maybe I do something wrong? Do I Need to do something before creating the subscription?
    I haven't found any sample that shows how you can subscribe to a Topic and receive Messages using the restricted Api for winrt :(
    Any suggestions?

  • Azure service bus queue: Why do I keep getting a MessageLockLostException?

    I read a post that dealt with the same problem I'm having. It is located at https://social.msdn.microsoft.com/Forums/en-US/069653b5-c233-4942-85b2-9eb50b3865c7/azure-service-bus-subscription-how-do-i-delete-the-message-when-i-receive-a?forum=servbus
    I'm calling message.Complete() and I'm getting the MessageLockLostException but the difference with my issue is that I used the code that someone posted to fix the issue and it isn't working for me. I have pasted my full code below to show you how my program
    is working. What am I doing wrong and/or how do I fix this issue?
    static void Main(string[] args)
    try
    string connectionString = CloudConfigurationManager.GetSetting("Microsoft.ServiceBus.ConnectionString");
    QueueClient client = QueueClient.CreateFromConnectionString(connectionString, "OoplesQueue");
    var actionBlock = new ActionBlock<BrokeredMessage>(async message =>
    await processCalculations(message),
    new ExecutionDataflowBlockOptions
    MaxDegreeOfParallelism = Environment.ProcessorCount
    var produceMessagesTask = Task.Run(async () => await
    ProduceBrokeredMessagesAsync(client,
    actionBlock));
    produceMessagesTask.Wait();
    catch (Exception ex)
    Console.WriteLine(ex.Message);
    Console.WriteLine(ex.StackTrace);
    private static async Task ProduceBrokeredMessagesAsync(QueueClient client,
    ActionBlock<BrokeredMessage> actionBlock)
    BrokeredMessage message;
    while ((message = await client.ReceiveAsync()) != null)
    await actionBlock.SendAsync(message);
    public static ConnectionMultiplexer connection;
    public static IDatabase cache;
    public static async Task processCalculations(BrokeredMessage message)
    var brokeredMessageRenewCancellationTokenSource = new CancellationTokenSource();
    try
    if (message != null)
    if (connection == null || !connection.IsConnected)
    connection = await ConnectionMultiplexer.ConnectAsync("connectionString");
    //connection = ConnectionMultiplexer.Connect("ConnectionString,SyncTimeout=10000,ConnectTimeout=10000");
    cache = connection.GetDatabase();
    var brokeredMessageRenew = Task.Run(async () =>
    while (!brokeredMessageRenewCancellationTokenSource.Token.IsCancellationRequested)
    //Based on LockedUntilUtc property to determine if the lock expires soon
    if (DateTime.UtcNow > message.LockedUntilUtc.AddSeconds(-10))
    // If so, we repeat the message
    await message.RenewLockAsync();
    }, brokeredMessageRenewCancellationTokenSource.Token);
    string sandpKey = message.Properties["sandp"].ToString();
    string dateKey = message.Properties["date"].ToString();
    string symbolclassKey = message.Properties["symbolclass"].ToString();
    string stockdataKey = message.Properties["stockdata"].ToString();
    string stockcomparedataKey = message.Properties["stockcomparedata"].ToString();
    var sandpTask = cache.GetAsync<List<StockData>>(sandpKey);
    var dateTask = cache.GetAsync<DateTime>(dateKey);
    var symbolinfoTask = cache.GetAsync<SymbolInfo>(symbolclassKey);
    var stockdataTask = cache.GetAsync<List<StockData>>(stockdataKey);
    var stockcomparedataTask = cache.GetAsync<List<StockMarketCompare>>(stockcomparedataKey);
    await Task.WhenAll(sandpTask, dateTask, symbolinfoTask,
    stockdataTask, stockcomparedataTask);
    List<StockData> sandp = sandpTask.Result;
    DateTime date = dateTask.Result;
    SymbolInfo symbolinfo = symbolinfoTask.Result;
    List<StockData> stockdata = stockdataTask.Result;
    List<StockMarketCompare> stockcomparedata = stockcomparedataTask.Result;
    StockRating rating = performCalculations(symbolinfo, date, sandp, stockdata, stockcomparedata);
    if (rating != null)
    saveToTable(rating);
    await message.CompleteAsync();
    else
    Console.WriteLine("Message " + message.MessageId + " Completed!");
    await message.CompleteAsync();
    catch (TimeoutException time)
    Console.WriteLine(time.Message);
    catch (MessageLockLostException locks)
    Console.WriteLine(locks.Message);
    catch (RedisConnectionException redis)
    Console.WriteLine("Start the redis server service!");
    catch (MessagingCommunicationException communication)
    Console.WriteLine(communication.Message);
    catch (Exception ex)
    Console.WriteLine(ex.Message);
    Console.WriteLine(ex.StackTrace);
    finally
    // Lock is stopped renewing task
    brokeredMessageRenewCancellationTokenSource.Cancel();

    Below check assumes there's no clock skew between you and the Service Bus server. If there's a time difference more than 10 seconds then you may end up with renew attempts after message expires.
    if (DateTime.UtcNow
    > message.LockedUntilUtc.AddSeconds(-10))
    And I suggest you to add a sleep in the renew loop. It's an overkill to make this check a million times every second. Doing this once a second should be fine.

  • Some concept confused for Azure Service Bus EventHub

    Currently, I’m trying to use the Azure Service Bus Event hub and I have some concepts a little bit confused:
    I have create an event hub (our requirement is send 10Kb data per seconds to the event hub), the hub include 10 partitions, then we receive the data using the
    EventHubReceiver, when I create the instance for the EventHubReceiver, it need the
    PartitionId, so I want to know which partitionId is needed?
     I guess all the Partitions have the same data which I sended, is it right?
    Is the PartitionId equals PartitionKey? My understanding is the PartitionId is the indicator for the Partitions in the Event Hub, the PartitionKey is the indicator for the device which send the data, so one Partition can contains many partitonIds,
    is it right?
    When we receive data from hub, we need set the Consumer Group, so what is the relationship between EventHub and Consumer group?
    When we use the EventProcessorHost to receive data, we do not to set the PartitionId, so the data we got is the all PartitionData?
    When we call the PartitionContext.CheckpointAsync(), the Event hub will do the things to release the Events(delete, clear or sth) by itself, we needn’t do it in our code,
    is it right?
    Is there a diagram to show the relationship for concepts of the EventHub?
    Thanks a lot!

    I'd ask them over here.
    Azure forums on MSDN
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Azure Service Bus client: Best way to wait for server response?

    Hi,
    I have a web service that needs to send a request on Azure Service Bus and wait for the response. The web service must operate synchronous as seen from the web service client, that is:
    public Response WebServiceMethod(Request)
    senderQueueClient.Send(Request);
    // wait for response from receiverQueueClient
    // and return to web serviuce client
    return response;
    This can be solved using mutexes that are updated in "receiverClientQueue.OnMessage". But that is hard work and if I Google the matter, I find several options to deal with this - especially when using .NET 4.5.  And there are also some built-in
    stuff in the QueueClient.
    But how to do this best? Can someone point me in the right (easy) direction?
    Werner

    Hi,
    May I know what are you use queue to achieve? can you give us further information for a better help.
    Regards

  • Azure Service Bus Relay & Impersonation

    Hi All,
    I am currently investigating the use of Azure Service Bus Relay for a project, testing has gone well so far and I have a service and client communicating via the service bus relay.
    Currently the client and server are able to take part in two way communication, whereby the client invokes a method and a response is sent back to the client, the problem I have is that I now
    want the service to impersonate the user calling the methods, but only for some of the methods available in the service.  Is this possible over a service bus relay connection? if so, how can this be achieved. 
    I have been able to get this working when calling the service over a non-service bus binding (using basic authentication over SSL), but this fails when binding to the service bus relay, I believe because the HTTP context is lost between the client and
    server when communicating via the intermediary (in this case the service bus)
    Thanks in advance for the advice.
    Chris

    Hi,
    I would suggest that you contact to Azure Support for respective subscription
    Please refer following to know how to submit support ticket
    http://blogs.msdn.com/b/mast/archive/2013/01/22/windows-azure-customer-support-offerings-live-how-to-contact-microsoft-windows-azure-technical-support.aspx
    hope this helps

  • Cannot create Azure Service Bus connector

    Hi,
    I tried to create a service bus connector. I did put in the connection string and the name of the queue, validation passed showing a green check. For the rest of the settings I just used default values given. The Create button is still disabled and
    it doesn't give any info as what's missing.
    Thanks,
    Paul

    Hi Paul - could you send us a screenshot of this? We'll take a look
    Thanks,
    Prashant

  • Restricting azure service bus access to certain IP range

    I am using service bus from two cloud services WebRoleC1 and WorkerRoleC2.
    on pushes some data and other received data by subscribing to topics.
    Every application maintains the service bus connection details in its web/cloud config. Everything works fine. 
    I have multiple instance running of the same application for different customers , people make confusion while deploying and Put wrong connection details in say WorkerRoleC2 so it connects to  Service bus of another customer. 
    I want to put restriction on service bus SB1 that only   WebRoleC1  and WorkerRoleC2 can connect to it. If WorkerRoleC3 has the proper key then also connection should fail.
    This also prevents people from attacking service bus if now public ip.
    I don't want service bus to publicly exposed.
    Thanks,
    Subodh

    Service Bus does allow you to restrict receive access to specific subscriptions. You can set credentials such that a client 1 can receive messages from a specific subscription whereas a client 2 cannot.

  • Azure service bus problem : An error occurred while retrieving the Service Bus namespace configuration information

    Almost all of my service bus has the following issue. The error message I have from the Management Portal was "An error occurred while retrieving the Service Bus namespace configuration information. Please try again later." This happen for almost
    2 days.
    Anyone face the same issue? how to resolve this?

    Hi,
    If you create a new one, did you receive the same issue? If that, I suggest you submit a ticket at:
    http://www.windowsazure.com/en-us/support/contact/
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unable to  Poll  files in SFTP Location using FTP Adapter

    Hi SOA Experts,
    I have an issue like soa composite is unable to poll files.
    I have done the below configuration .
    1.created the jndi by giving values to properties host name,port,username,password,usesftp.
    2. refered the same jndi in composite.
    3. After deployment it is not pulling files from sftp location.
    From the logs I came to know it is able to list files for the directory mentioned in the composite.The permissions are read-write.
    I am using sftp server credentials were the server is running on windows.
    But unable to pick it by composite and no instances can be seen in em console.
    Can any one can provide solution ?

    1. Open your FTP Server ( ex:- Filezilla Server :- navigate to the users :- under the users you will find the shared folder.
    Check the fields . Now it should work
    Let me know if you still need any info on the same.
    Thanks
    Sury@

  • How to archive file on the receiver side using file adapter

    Hi All,
              In our company we have many file to file scenarios some of them for B2B communication. We want to archive all the files that are sent from vendor to our company. Is there a way of archiving the orignal files being sent by the vendors?
    Regards,
    Xier
    Message was edited by:
            XIer

    hey
    >>we want to archive the files before they are processed by XI, i.e the way the sender adapter picks it up.
    well if the files are not picked up by XI then they will stay in the sender directory then why do u want to archive them and create a duplicate copy.
    files are archived when they are picked by sender file adapter so that in future if we have any issue in message transfer we can resend them,simple set the mode as archive in the sender CC.
    Thanx
    Aamir

  • Z77A-GD65 - Intel Network Adapter disabled when coming out of sleep mode

    Just put together a new system with a Z77A-GD65 motherboard, Core i7 3770, and Corsair Vengeance RAM.
    Installed the Windows 8 RTM (final release) version, which installs flawlessly and works fine. (Yes, I have an early license to Win8).
    Here's the problem.  If the system goes to sleep, when it comes back out of sleep mode, the Intel Network Adapter stops working. (Hence, all network and internet connectivity is off). This is evident by the Network Status icon in the explorer task tray showing a red "X".  Any attempt to run the troubleshooter results in the message "The Intel 82579LM Gigabit Network Connection adapters is experiencing driver or hardware problems".  Screenshots and log files can be found on my Skydrive here: h t t p : //sdrv.ms/NVBatL
    The driver version of the NIC, is what Windows installed during setup, is from Intel, version 12.0.150.0 dated 2/29/2012. (It was installed with Windows 8 by default).
    Rebooting the machine fixes the problem.  For now, setting the Windows power settings to never sleep is my current workaround. I tried downloading and installing some software and driver packages from Intel that I thought might update the driver, but it did not work.
    I am assuming this issue will not be present if I put on Windows 7, but that's what I was really hoping to avoid.  Suggestions?  Newer Intel driver available?

    Quote
    I don't know why you think this workaround "defeats the the object of having power saving features".  That might be a fair point if this was a laptop relying on battery charge.  But "sleep" doesn't mean "zero power".  It means just enough power to keep the memory alive and some LEDs blinking.
    In the case of a desktop build, keeping the LAN adapter awake is a non-issue.  Several hundred watts of power are being consumed when the PC is on. When it goes to sleep, that power usage drops down just a handful of watts.  If the workaround means having to dedicate an extra watt of power to the LAN adapter, then so be it.
    I am not trying to discourage what you did. I have found many a work around to niggly bugs over the years. All I am trying to state is that this bug should be fixed, i.e. the LAN should wake up together with the PC. At the moment it works for you, which is great, and you reported it. Nothing more you can do.
    As for the power saving. Yes of course we are talking about negligible consumption here, but the principle is that all these new machines have to comply with EuP2013 which dictates a maximum power usage for the total system when being in a sleep state. This can obviously not be achieved when one has to keep components powered because of a bug. 
    I would be interested to know what ME firmware version you have on your machine. I myself have had irritating intermittent issues with the Intel LAN on the same board as you in terms of the LAN remaining dead after start up whenever I change HW or do firmware updates. It then takes a restart to get the LAN active again.
    Intel has released two IME updates over the last month and there is a recent update for the Ethernet controller as well. I updated both and am monitoring. Since the update I have not had any further issues, but its still early days and I am reluctant to say it solved the issue.

  • Dynamic Source location using FIle Adapter

    Hi Experts,
    I having a scenario of file to file, my problem is how can I configure the comm channel to where the file will be pulled wherein the path is defined during the runtime process in certain ABAP program(defined from selection screen)? Is it possible?
    Thanks,

    Hi
    No mapping is involved here. your source data should contain the directory path. Use the path in the variable substitution ,
    Enable the variable substitution and,
    payload:MT_test/dir_path/
    Regards
    Ramg

Maybe you are looking for

  • Logical file / physical file

    Hi, can anybody tell how logical file is different from physical file during the lsmw direct input method. I am trying to upload Purchase-info data through  a source file on presentation server. I am done with import data, read data, convert data aft

  • Appleworks file corruption with Time Capsule

    i've been working on multiple word processing files in appleworks the last couple of days when my time capsule begins to backup. every time i've had files open, they have been corrupted, and would not save. also, in my finder, i find these files labe

  • HT3529 why can't I get iMessage to work on iPad1?

    I can't get iMessage to work on iPad1

  • How to construct request related mail using OIM email api?

    Hi, I need to send an approval notification to a group. The group is decided at runtime by a task assignment adapter. So I have kept a java task in the task assignment adapter after sending the request to the approver. This java task is called after

  • Can't find BI Beans Help topic

    I've installed JDeveloper 10.1.2.1.0 (build 1913) and Bi Beans 10.1.2.1, but I do not see the "Building Applications with BI Beans" Help topic within JDeveloper. How do I get access to this Help file? Can it be accessed somewhere other than within JD