View Single Post
Old 09-06-2011, 04:25 AM   #1 (permalink)
New Member
Join Date: Sep 2011
Model: 8520
Carrier: O2
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default BES 5.0.3 and Exchange 2010 - headaches

Please Login to Remove!

Hi everyone,

Really hoping someone can help with the problems I'm facing please. I'll give you a run down of my environment, then explain the problems:

Exchange - host name for this example EMAIL10
Windows Server 2008 R2 SP1 Enterprise
MS Exchange 2010 SP1 Roll-up 5.
BESAdmin account set up on Exchange 2010 and able to send/receive via outlook/web access.
Part of the view only admins
Receive as applied to this account via power shell
Send as applied to descendent user objects from domain level in AD
BES Policy throttling policy set up and assigned to this account. All relevant sesson limits set to null
BESAdmin EWS assigned to user with impersonation rights

Blackberry Server - hostname for this example BES5
OS is Windows Server 2008 R2 Standard SP1 running from Hyper-V virtual machine
BES 5.0.3
BESAdmin has local admin rights on this box, as well as log on locally and log on as a service
MAPI and CDO 1.2.1 6.5.8211.0 installed on BES server

SQL is on SQL Server 2005 SP3 in the same site as Exchange and BES
BESAdmin account has been created as a login on SQL server using windows authentication
Roles for this account are: dbcreator, sysadmin and public
User mapping is to the BESMgmt database


First off, when installing the BES, everything runs fine, up to the point of inputting the MAPI credentials. Now using the dummy hostnames I've written above, I enter the exchange server name of EMAIL10 and enter BESAdmin as the service account. I click check and the system hangs, before finally saying:

The setup application could not find a mailbox that is named BESAdmin

If I then click back on the installation and then click nest to get back to the MAPI details screen, the details are still there and hitting 'check' again resolves the email server and the admin account email address.

Also, on this screen, if I enter the name of one of our domain controllers and the BESAdmin account, it find the information instantly.

So I continue the install after it finds the information and the set up finishes.

I log in to the BAS using the BESAdmin AD credentials and all looks good.

I try to activate a user and this is where things get weird.

After three re-installs of the BES server, I get mixed results.

It could possible activate the user, pulling down all old email in the mailbox and then problems happen after X amount of hours
It could activate the user not pulling any information through (emails) and then problems start again later
Or on the last re-install of the BES, the user didn't activate as the messaging agent had shut down

OK - so on my first install, still with the initial MAPI check problem above, then checking for a second time, the install finished, I added an exchange 2010 user and they activated fine. Their email was pulled through and they could send and receive. Problems then started after two or three hours. Will explain problems shortly.

On the second re-install of BES, the user then activated, but no old email was pulled through.

On the thirs re-install of BES - the user didn't activate.

On all three instances, I see the same errors either instantly, or later down the line. These errors are:

Windows Event Viewer:
MailboxManager::SubsystemInitialize - Exception handledxxx65279; - Event ID 20139
BlackBerry Messaging Agent BES1 Agent 1 failed to start. Error code 0xxx65279; - Event ID 10277
Waiting for external UDP log messages on port 4085xxx65279; - Event ID 50049
'BES1' agent 1: will not restart - reached the maximum of 10 restarts per 24 hours, next restart on xxx65279;- Event ID 20406

BES Server Logs:
Starting Message System
[30055] (09/05 15:59:59.218):{0xACC} Using MAPI profile BlackBerryServer
[20139] (09/05 15:59:59.218):{0xACC} MailboxManager::SubsystemInitialize - Exception handled
[30000] (09/05 15:59:59.218):{0xACC} [ENV] MAPI32.DLL: C:\Windows\system32\MAPI32.dll, Version: 1.0.2536.0[30000] (09/05 15:59:59.234):{0xACC} [ENV] CDO.DLL: C:\Program Files (x86)\ExchangeMapi\cdo.dll, Version: 6.5.8211.0
[30000] (09/05 15:59:59.234):{0xACC} [ENV] Microsoft Management Console (MMC): C:\Windows\system32\mmc.exe, Version: 6.1.7600.16385
[30000] (09/05 15:59:59.234):{0xACC} [ENV] Failed to read 001e6602 reg value from the BlackBerry MAPI profile.[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Mailbox Agent 1 - BESX Version
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BES Service Name: BlackBerry Mailbox Agent
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Dispatcher: C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\BlackBerryDispatcher.exe, Version:
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry User Administration Service: NOT FOUND
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry MDS Connection Service: C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\MDS\bin\bmds.exe, Version:
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Database Consistency Service: NOT FOUND
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Policy Service: C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\BlackBerryPolicyServer.exe, Version:
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Synchronization Service: C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\SyncServer\BlackBerrySyncServer.exe, Version:
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Router: C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\BypassRouter\BlackberryRouter.exe, Version:
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Controller: C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\BlackBerryController.exe, Version:
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Alert: C:\Program Files (x86)\Research In Motion\BlackBerry Enterprise Server\BESAlert.exe, Version:
[30000] (09/05 15:59:59.234):{0xACC} [ENV] BlackBerry Attachment Service is installed remotely on
[35015] (09/05 15:59:59.234):{0xACC} [ENV] Total number of requests for connections: 20
[35014] (09/05 15:59:59.234):{0xACC} [ENV] Number of waits for connections since service was started: 0
[35019] (09/05 15:59:59.234):{0xACC} [ENV] [DB] Database Schema Version: 5.0.3 <5.0.2011.02.11>
[30000] (09/05 15:59:59.249):{0xACC} [ENV] [DB] Connection String = Server=we-sql;Database=BESMgmt;Network=dbmssocn;Trusted_Conn ection=Yes
[30000] (09/05 15:59:59.249):{0xACC} [ENV] [DB] DBMS Name = Microsoft SQL Server; DBMS Version = 09.00.4035; Provider Name = sqlncli.dll; Provider Friendly Name = Microsoft SQL Native Client; OLE DB Version = 02.80; Provider Version = 9.00.3042.00; Failover Partner =
[30480] (09/05 15:59:59.249):{0xACC} [CFG] BES failover mode is ACTIVE
[41120] (09/05 15:59:59.249):{0xACC} [CFG] Address Lookup is enabled
[41122] (09/05 15:59:59.249):{0xACC} [CFG] LDAP search is disabled, LDAP PIM search is disabled, LDAP ALP search is disabled
[41123] (09/05 15:59:59.249):{0xACC} [CFG] Using up to 10 external CDO Helpers in keep-alive mode
[41124] (09/05 15:59:59.249):{0xACC} [CFG] AddOwnerApptID is disabled
[41125] (09/05 15:59:59.249):{0xACC} [CFG] SetLocaleIDs is disabled
[30302] (09/05 15:59:59.249):{0xACC} [CFG] OTAFM hard-delete server support is disabled, rescans are 0x00
[40532] (09/05 15:59:59.249):{0xACC} [CFG] vCard conversion support has been enabled
[40892] (09/05 15:59:59.249):{0xACC} [CFG] GlobalRescan config: messaging:O, calendar:O, pim:O
[41126] (09/05 15:59:59.249):{0xACC} [CFG] EnableExceptionStackTrace is disabled
[40000] (09/05 15:59:59.249):{0xACC} [CFG] MAPI Encoding is 1
[10277] (09/05 15:59:59.249):{0xACC} BlackBerry Messaging Agent BES1 Agent 1 failed to start. Error code 0[50106] (09/05 15:59:59.249):{0xACC} Stopping BlackBerry Mailbox Agent 1 for Server BES1
[30000] (09/05 15:59:59.249):{0xC24} [DIAG] EVENT=Register_thread, THREADID=0xC24, THREADNAME="TimerThread"
[40000] (09/05 15:59:59.249):{0xC24} [DEBUG] EVENTMSG="TimerThread thread started"
[40507] (09/05 16:00:00.062):{0x1BF4} ExtUDPLogThread: Code on closing = 0
[30000] (09/05 16:00:00.062):{0x1BF4} [DIAG] EVENT=Unregister_thread, THREADID=0x1BF4, THREADNAME="ExtUDPLogThread"
[30065] (09/05 16:00:00.062):{0xACC} BlackBerry Mailbox Agent 1 for Server BES1 shutdown completexxx65279;

As you can see, I have the old 'Failed to read 001e6602 reg valuefrom the Blackberry MAPI profile' error messages. Looking on-line, the solution for others has been to input this kep in the Messaging Subsystem Profiles folder, pointing in to your GC.

I have tried this and rebooted the BES and it doesn't seem to work at all for me.

I have spent four days looking in to this and just cannot get it working properly.

Any help would be massively appreciated please.

Thanks in advance,

Sorry guys - just to add:

When I open the Blackberry Server Configuration tool, then try to edit the MAPI profile, it says:

There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create and association in the Default Programs control panel.

Clicking OK to this message then gives the MAPIInitialize (80004005) error.
Clicking OK to this message then gives the 'The MAPI subsystem cannot be correctly initialized and used. Please make sure the MAPI is installed and configured properly' error.

I have tried numerous times to delete the HKCU\Software\Microsoft\Windows NT\CurrentVersion\WinodwsMessagingSubsystem\ profiles folder and then edit the MAPI in BB Server COnfig and the same error applies. If I completely remove the MAPI and CDO 1.2.1 and delete the Profiles key from earlier, I can re-crate the MAPI profile, but then the same problems occur from above. It drops out again.
Offline   Reply With Quote