“Error code 0” and “ExtUDPLogThread: Failed to bind to socket” appear in the BlackBerry Messaging Agent logs

Article ID: KB21145

Type: Support Content

Last Modified: 12-14-2011

 

Product(s) Affected:

  • BlackBerry Enterprise Server for Novell GroupWise
  • BlackBerry Enterprise Server for Microsoft Exchange
  • BlackBerry Enterprise Server for IBM Lotus Domino
CollapseEnvironment
  • BlackBerry® Enterprise Server for Microsoft® Exchange 5.0 to 5.0 SP3
  • BlackBerry® Enterprise Server for IBM® Lotus® Domino® 5.0 to 5.0 SP3
  • Windows® Server 2008
CollapseOverview

The main symptoms of this issue are:

  1. Only one BlackBerry® Messaging Agent has started.
  2. The BlackBerry Controller debug log records 10 restarts per 24 hours entries log for all BlackBerry Messaging Agents except one.
  3. Windows Event Viewer logs Event ID 25034 from BlackBerry Messaging Agent. With event description similar to following log line:

{ExtUDPNtfThread::Start} DBNS: Failed to bind to the socket (4432), error (10022)

The following error appears in the BlackBerry Messaging Agent (MAGT) log after BlackBerry Enterprise Server 5.0 to 5.0 SP1 is installed on a on Windows Server® 2008 operating system:

[50076] (02/10 12:19:16.894):{0x1828} Starting BlackBerry Mailbox Agent 2 for Server BES01 - Version 5.0.1.34

[10000] (02/10 12:19:16.894):{0x1828} ExtUDPLogThread: Failed to bind to socket(4085), error(10048)

[10000] (02/10 12:19:16.894):{0x1828} ExtUDPLogThread: Failed to bind to socket(4086), error(10022)

[10000] (02/10 12:19:16.894):{0x1828} ExtUDPLogThread: Failed to bind to socket(4087), error(10022)

[10000] (02/10 12:19:16.909):{0x1828} ExtUDPLogThread: Failed to bind to socket(4499), error(10022)

[10000] (02/10 12:19:16.909):{0x1828} Cannot start BlackBerry Agent - Failed to initialize UDPLogThread! Exiting with error code 5411...

[10277] (02/10 12:19:16.909):{0x1828} BlackBerry Messaging Agent BES01 Agent 2 failed to start. Error code 0

[50106] (02/10 12:19:16.909):{0x1828} Stopping BlackBerry Mailbox Agent 2 for Server BES01

[30065] (02/10 12:19:16.909):{0x1828} BlackBerry Mailbox Agent 2 for Server BES01 shutdown complete

[40000] (02/10 12:19:16.909):{0x1980} [DIAG] EVENT=Syslog_connected, EVENTMSG="Connected to 127.0.0.1"

The BlackBerry Controller log acknowledges the failure to start or DBNS failed to bind errors in the MAGT logs:

[20406] (02/10 00:03:40.367):{0x17F0} 'BES01' agent 2: will not restart - reached the maximum of 10 restarts per 24 hours

[20406] (02/10 00:04:40.365):{0x17F0} 'BES01' agent 2: will not restart - reached the maximum of 10 restarts per 24 hours

[25034] (07/12 08:42:01.561):{0x1458} {ExtUDPNtfThread::Start} DBNS: Failed to bind to the socket (4185), error (10048)

[25034] (07/12 08:42:01.562):{0x1458} {ExtUDPNtfThread::Start} DBNS: Failed to bind to the socket (4186), error (10022)

Restarting the BlackBerry Controller service in an effort to restart the failed BlackBerry Messaging Agents, the same BlackBerry Messaging Agents or different BlackBerry Messaging Agents will be affected and show the same symptoms. There are no MAPI errors in relation to service failing to start.

CollapseCause

This issue is caused because the BlackBerry Messaging Agents fail to bind to UDP ports on the Windows Server 2008. Microsoft describes the issue as:

    "When there is a third-party legacy TDI filter driver installed on a computer that is running Windows Server 2008 or Windows Vista, the system receives error code WSAEADDRINUSE (10048) when the system tries to bind the socket for the first time. When the system tries to bind the socket for the second time, it receives error code WSAEINVAL (10022). This series of events may cause software to be unable to bind to a specific local endpoint and to be unable to listen."

CollapseResolution

Contact Microsoft to obtain the hotfix discussed in KB 946886.

CollapseWorkaround

Remove the software that installed the legacy TDI filter driver.

Disclaimer

By downloading, accessing or otherwise using the Knowledge Base documents you agree:

   (a) that the terms of use for the documents found at www.blackberry.com/legal/knowledgebase apply to your use or reference to these documents; and

   (b) not to copy, distribute, disclose or reproduce, in full or in part any of the documents without the express written consent of RIM.


Visit the BlackBerry Technical Solution Center at www.blackberry.com/btsc.