BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-02-2013, 06:56 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Post Thanks: 7
Thanked 1 Time in 1 Post
Default BES Express 5.0.4 - Messaging Agent failing each night (5305)

Please Login to Remove!

Since patching my E2010 boxes with Windows Updates this week, the last 4 evenings I've seen the BlackBerryAgent.exe miss heartbeats then fail to start with error code 5305. The problem starts after midnight, and once it starts failing, I can't get it to start properly / behave unless I restart all BES services.

This link discusses that error, but all of those solutions imply that it never s tarts properly. Mine just starts failing during the evenings. I've just been getting up early to restart BES servicse, at which point it's fine the rest of the day.

Has anyone encountered this?

MAGT log snippet:

[30480] (02/01 03:45:09.354):{0x1280} [CFG] BES failover mode is ACTIVE
[41120] (02/01 03:45:09.354):{0x1280} [CFG] Address Lookup is enabled
[41122] (02/01 03:45:09.354):{0x1280} [CFG] LDAP search is enabled, LDAP PIM search is disabled, LDAP ALP search is disabled
[35035] (02/01 03:45:09.573):{0x1280} LDAP: Create 0x00a40a44
[30460] (02/01 03:45:09.573):{0x1280} [CFG] LDAP Info: Host Name = DCServerName.domain.local
[41123] (02/01 03:45:09.573):{0x1280} [CFG] Using up to 10 external CDO Helpers in keep-alive mode
[41124] (02/01 03:45:09.573):{0x1280} [CFG] AddOwnerApptID is disabled
[41125] (02/01 03:45:09.573):{0x1280} [CFG] SetLocaleIDs is disabled
[30302] (02/01 03:45:09.573):{0x1280} [CFG] OTAFM hard-delete server support is disabled, rescans are 0x00
[40532] (02/01 03:45:09.573):{0x1280} [CFG] vCard conversion support has been enabled
[40892] (02/01 03:45:09.573):{0x1280} [CFG] GlobalRescan config: messaging:O, calendar:O, pim:O
[41126] (02/01 03:45:09.573):{0x1280} [CFG] EnableExceptionStackTrace is disabled
[40000] (02/01 03:45:09.573):{0x1280} [CFG] MAPI Encoding is 1
[10277] (02/01 03:45:09.573):{0x1280} BlackBerry Messaging Agent BESServerName Agent 1 failed to start. Error code 5305
[50106] (02/01 03:45:09.573):{0x1280} Stopping BlackBerry Mailbox Agent 1 for Server BESServerName
[40507] (02/01 03:45:09.589):{0x1A88} ExtUDPLogThread: Code on closing = 0
[30000] (02/01 03:45:09.589):{0x1A88} [DIAG] EVENT=Unregister_thread, THREADID=0x1A88, THREADNAME="ExtUDPLogThread"
[35035] (02/01 03:45:09.620):{0x1280} LDAP: Delete 0x00a40a44
[30065] (02/01 03:45:09.651):{0x1280} BlackBerry Mailbox Agent 1 for Server BESServerName shutdown complete
====== END OF LOG ======

Last edited by SteveE : 02-02-2013 at 06:59 PM.
Offline  
Old 02-04-2013, 08:55 AM   #2 (permalink)
BlackBerry Elite
 
knottyrope's Avatar
 
Join Date: Jan 2008
Location: Massachusetts
Model: Passp
OS: 10.2.1
PIN: t of blood has been taken
Carrier: AT&T-US with I dee ten tee errors
Posts: 6,754
Post Thanks: 274
Thanked 296 Times in 280 Posts
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

are you stopping BES during the updates?

Is BES installed on mail server or on dedicated box

proper boot sequence
DC, GC, SQL and Exchange, BES
__________________
irony : many old timer posters have de-evolved into the trolls they once fought
I am on http://supportforums.blackberry.com
BES 10 running sweet for my Passport, Z30, Z10 and Q10
Online  
Old 02-04-2013, 10:20 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Post Thanks: 7
Thanked 1 Time in 1 Post
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

I am not. To be honest I used to, but the last couple of years BES recovered without issue so I stopped since it was a massive headache. Still, with multiple days of this, and the intermittent (yet scheduled) nature, I'm naturally suspect that a simple DC reboot would fix this. I'll give it a go either way, but I suspect something else is at play.
Offline  
Old 02-04-2013, 11:26 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Post Thanks: 7
Thanked 1 Time in 1 Post
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

I'm also finding that handheldcleanup.exe is not running. Despite typing in the exact BESName, I get:

Open() failed for BESName
OpenDB failed to open Database

I have run this before without issue, and wonder if it is related.
Offline  
Old 02-04-2013, 12:00 PM   #5 (permalink)
BlackBerry Elite
 
knottyrope's Avatar
 
Join Date: Jan 2008
Location: Massachusetts
Model: Passp
OS: 10.2.1
PIN: t of blood has been taken
Carrier: AT&T-US with I dee ten tee errors
Posts: 6,754
Post Thanks: 274
Thanked 296 Times in 280 Posts
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

could be related, check with SSMS to see if you can access it
__________________
irony : many old timer posters have de-evolved into the trolls they once fought
I am on http://supportforums.blackberry.com
BES 10 running sweet for my Passport, Z30, Z10 and Q10
Online  
Old 02-04-2013, 01:56 PM   #6 (permalink)
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Post Thanks: 7
Thanked 1 Time in 1 Post
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

The credentials check out, and I can telnet to the SQL server from the BES on the SQL port. Plus profiler shows the BES doing its usual work.

I'm going to investigate NSPI tonight, since we are mixed between 2003 and 2008R2 DCs, though why that issue would crop up now is beyond me given our user count has been pretty static / low at ~100 users. Our throttling policies are all kosher.

Last edited by SteveE : 02-04-2013 at 02:12 PM.
Offline  
Old 02-04-2013, 02:18 PM   #7 (permalink)
BlackBerry Elite
 
knottyrope's Avatar
 
Join Date: Jan 2008
Location: Massachusetts
Model: Passp
OS: 10.2.1
PIN: t of blood has been taken
Carrier: AT&T-US with I dee ten tee errors
Posts: 6,754
Post Thanks: 274
Thanked 296 Times in 280 Posts
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

NSPI limit fix here

http://www.blackberry.com/btsc/KB17325
__________________
irony : many old timer posters have de-evolved into the trolls they once fought
I am on http://supportforums.blackberry.com
BES 10 running sweet for my Passport, Z30, Z10 and Q10
Online  
The Following User Says Thank You to knottyrope For This Useful Post:
SteveE (02-04-2013)
Old 02-06-2013, 10:22 AM   #8 (permalink)
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Post Thanks: 7
Thanked 1 Time in 1 Post
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

No luck with the NSPI limit fix. Also re-set the throttling policies and re-created the MAPI profile.

Going to re-set permissions and possibly do a repair of BES files. Curioser and curioser what's causing this morning MAPI logon failures. The times are inconsistent outside of the 12AM-7AM consistency.

I wonder if upgrading from MAPI/CDO 1.2.1 (6.5.8211.0) to (6.5.8244.0) would be worthwhile. They're both 2011 releases.

Thanks for all your help.

Last edited by SteveE : 02-06-2013 at 10:29 AM.
Offline  
Old 02-06-2013, 01:56 PM   #9 (permalink)
BlackBerry Elite
 
knottyrope's Avatar
 
Join Date: Jan 2008
Location: Massachusetts
Model: Passp
OS: 10.2.1
PIN: t of blood has been taken
Carrier: AT&T-US with I dee ten tee errors
Posts: 6,754
Post Thanks: 274
Thanked 296 Times in 280 Posts
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

I would use latest version or CDO if possible
__________________
irony : many old timer posters have de-evolved into the trolls they once fought
I am on http://supportforums.blackberry.com
BES 10 running sweet for my Passport, Z30, Z10 and Q10
Online  
Old 02-13-2013, 02:43 PM   #10 (permalink)
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Post Thanks: 7
Thanked 1 Time in 1 Post
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

I've made a little progress - I have not yet updated MAPI/CDO, but did do a network capture. At the time we got this error in the ALRT log:

[30000] (02/10 02:14:13.728):{0x20A4} [Alarm::ActivateAlarm] Queuing alarm: <N/A> | BlackBerry Messaging Agent BESServer Agent 1 (Application Event Log on BESServer.domain.local) | 02/10/2013 02:14:13 (EFFF2825) -> BlackBerry Messaging Agent BESServer Agent 1 failed to start. Error code 5305

The network capture recorded:

1064653 2:14:13 AM 2/10/2013 8963.3886465 BlackBerryAgent.exe CAS.Domain.Com BESServer MSRPC MSRPC:c/o Fault: Call=0xE Context=0x0 Status=0x1C010014 Cancels=0x0 {MSRPC:11522, TCP:11520, IPv4:7}

That status (0x1C010014) indicates the server (one of the CASes) is too busy to fulfill the request.

Combine this with the IOS 6.1 issues with Exchange we're seeing, and I wonder if they're not related, since that update was released a day before we started seeing issues.

Anyway, we'll see what I find out next. Just need to collect some perf logs from the CASes.
Offline  
Old 02-14-2013, 10:54 AM   #11 (permalink)
BlackBerry Elite
 
knottyrope's Avatar
 
Join Date: Jan 2008
Location: Massachusetts
Model: Passp
OS: 10.2.1
PIN: t of blood has been taken
Carrier: AT&T-US with I dee ten tee errors
Posts: 6,754
Post Thanks: 274
Thanked 296 Times in 280 Posts
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

IOS issues have killed my IIS a few times in past weeks from the nefarious syncs.

BYOD Nightmare: iOS Devices Hobble Exchange Servers When They Synch - CIO.com

iOS 6.1 banned from corporate servers due to Exchange snafu | ZDNet
__________________
irony : many old timer posters have de-evolved into the trolls they once fought
I am on http://supportforums.blackberry.com
BES 10 running sweet for my Passport, Z30, Z10 and Q10
Online  
Old 02-15-2013, 02:08 PM   #12 (permalink)
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Post Thanks: 7
Thanked 1 Time in 1 Post
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

Quote:
Originally Posted by knottyrope View Post
Regrettably, throttling our IOS 6.1 users did not resolve the nightly issues.

MAPI / CDO upgrade is on the table for the weekend, but I wanted to get your thoughts on CAS Arrays. Both our MAPI profile and EWSCASURL/EWSSCPURL point to an NLB'ed address. Would you recommend pointing at a single CAS for those, or is the method we're using supported? We'd had no issues up until this month with pointing directly to the load-balanced address, but finding solid documentation is somewhat tricky.

Oooh, another possibility: http://support.microsoft.com/kb/2810616.

Endless!

Last edited by SteveE : 02-15-2013 at 02:58 PM.
Offline  
Old 02-18-2013, 10:43 AM   #13 (permalink)
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Post Thanks: 7
Thanked 1 Time in 1 Post
Default Re: BES Express 5.0.4 - Messaging Agent failing each night (5305)

After using our hosts file to point the BES at a single CAS instead of the array, we no longer see the nightly 5305s. It appears one of the CASes (SCOM hints at which) is the culprit! Why it gets busier at night is beyond me, but that's an issue for a different forum.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: BES Express 5.0.4 - Messaging Agent failing each night (5305)
Thread Thread Starter Forum Replies Last Post
BES 5.0.3 and Exchange 2010 - headaches DeanAzzu BES Admin Corner 12 09-16-2011 10:42 AM
Which TCP port uses MS Exchange to communicate with BES Messaging Agent ? premnik BES Admin Corner 10 08-31-2009 10:22 AM
Calendar not downloading at activation: arronpitman BES Admin Corner 4 05-13-2009 02:34 AM
BES for Exchange 4.0.4 Available Now BlackBerryLinks BES Admin Corner 28 05-06-2006 10:38 AM
BES for Domino 4.0 SP4 - Coming Soon jibi BES Admin Corner 0 03-01-2006 10:29 AM





Copyright © 2004-2014 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.