BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-04-2010, 12:33 PM   #1 (permalink)
New Member
 
Join Date: Apr 2007
Model: 7250
Carrier: Verizon
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default BES express on SBS 2008 throwing 5305 errors

Please Login to Remove!

Hello,

We've been trying to install BES express on our SBS 2008 64 bit server. The install went fine, but we are getting an 5305 error regarding the agent not starting.

Prior to trying to install BES express we had a BPS installation on a separate 2003 server and it worked just fine. I used the BESAdmin domain account that worked fine on the BPS server as the admin account when installing the BES express as I figured all permissions were already set on the account for it to work properly.

I can't figure out what's causing these 5303 errors. Any ideas?

The old server is turned off so it's not some kind of interference from the BPS software.

Any help is appreciated. Thanks.
Offline  
Old 03-05-2010, 09:32 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
besadmin23's Avatar
 
Join Date: Nov 2005
Model: Bold
Carrier: AT&T
Posts: 234
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

did you install Express while logged in as the BESADMIN account?
Offline  
Old 03-06-2010, 11:27 PM   #3 (permalink)
New Member
 
Join Date: Apr 2006
Location: New York City
Model: 9000
Carrier: AT&T
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Talking

I've spent the better part of three days trying to solve this problem.

Only solution I was able to come up with that worked was creating an entry in the hosts file (c:\windows\system32\drivers\etc\hosts)... Open with notepad.. that has the internal ip and internal fqdn for your Exchange/BESX server. (eg: 192.168.211.39 exchange.domain.local)

For some reason, despite Exchange and BESX being on the same box and the dns for the lan connection being the internal dns, both of which are also domain controllers, BES was unable to find the DC when using the mapi connection... (Even though it resolved the besadmin account when setting up the mapi profile.)

I hope this helps you and others save a lot of time.

Good luck..
Offline  
Old 03-08-2010, 05:11 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Location: London
Model: 9000
PIN: xxxxxxxx
Carrier: Vodafone UK
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default AAAAhhhhh 5305 me too

OK I installed BES Express 5 on Friday night and am now testing it at work this morning with my spare Curve 8310. This handset is on a BES data plan so no issues with OTA activation.

Anyhow it won't activate just sits there for ages so I look in event viewer and there's the dreaded 5305 error - "Blackberry messaging agent xxxn BES Agent 1 Failed to start. Error Code 5305"

Installation in on SBS2003 and all installed as per RIM video on the Express site (I've installed BPS 4.1 on SBS2003 loads of times so have some installation experience)

Any ideas where I can start the diagnosis? All BES 5 threads I find online just say you shouldn't be installing it on the Exchange server which obviously doesn't apply with Express.

I've added the internal IP to the host file with the FQDN of the server and restarted the BES Services but the Messaging Agent error straight away.

Anyone got any ideas?

Cheers
Dan
Offline  
Old 03-08-2010, 05:18 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Location: London
Model: 9000
PIN: xxxxxxxx
Carrier: Vodafone UK
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK it gets weirder (If weirder is a word) I can run IEMSTest.exe on a domain user and it all works - folders create and delete successfully.

So it looks as thought the MAPI profile works so why can't the BES see the message store?
Offline  
Old 03-08-2010, 07:10 AM   #6 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Location: London
Model: 9000
PIN: xxxxxxxx
Carrier: Vodafone UK
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Right, now it's working although I'm not 100% sure why...

First I created a host file entry for the server again just for luck.

Second I edited the registry as per these instructions however the correct server name was already there.

I changed the server name in the registry from being server.domain.local to just being server - this didn't work so I changed it back to server.domain.local (With correct server name obviously) and restarted the BES services again. This time the Messaging connected! I looked in the MAGT logs in the BES folder and could see everything was OK - weird eh!

Now a reboot of the server could perhaps of fixed this but as it's SBS I can't reboot in the day (Standalone BES is very nice for that reason!) so perhaps me changing the registry then restarting the server just kind of jogged something into life.

So to any other 5305 sufferers the problem is definitely in the BES not seeing Exchange even though it's on the same box and has DNS pointing to itself etc etc. Could be a bug there for RIM to look at as this product is designed to be installed on SBS servers (Or at least is a supported configuration)

Also just to give credit I found the last post in this thread by Aribrown to be helpful in me getting to the resolution.

Now I'm nervous that next time the server is rebooted the Messaging Agent will bomb out again... (Crosses fingers)

Last edited by DJS1234 : 03-08-2010 at 07:13 AM.
Offline  
Old 03-08-2010, 08:06 AM   #7 (permalink)
New Member
 
Join Date: Apr 2006
Location: New York City
Model: 9000
Carrier: AT&T
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DJS1234 View Post
Right, now it's working although I'm not 100% sure why...

First I created a host file entry for the server again just for luck.

Second I edited the registry as per ... instructions however the correct server name was already there.

I changed the server name in the registry from being server.domain.local to just being server - this didn't work so I changed it back to server.domain.local (With correct server name obviously) and restarted the BES services again. This time the Messaging connected! I looked in the MAGT logs in the BES folder and could see everything was OK - weird eh!

Now a reboot of the server could perhaps of fixed this but as it's SBS I can't reboot in the day (Standalone BES is very nice for that reason!) so perhaps me changing the registry then restarting the server just kind of jogged something into life.

So to any other 5305 sufferers the problem is definitely in the BES not seeing Exchange even though it's on the same box and has DNS pointing to itself etc etc. Could be a bug there for RIM to look at as this product is designed to be installed on SBS servers (Or at least is a supported configuration)

Also just to give credit I found the last post in ... thread by Aribrown to be helpful in me getting to the resolution.

Now I'm nervous that next time the server is rebooted the Messaging Agent will bomb out again... (Crosses fingers)
Glad to hear it's working. I was going to say you probably have to flush the local dns (ipconfig /flushdns) to force the server to use the hosts file entry instead of the cached dns entry it already had. That's probably why the reboot worked

I hope this solves the problem for lots of people There must be some "bug" some place in the code that is not correctly checking the DC (registered local DNS) for the fqdn, but instead is looking elsewhere.
Offline  
Old 03-08-2010, 08:13 AM   #8 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Location: London
Model: 9000
PIN: xxxxxxxx
Carrier: Vodafone UK
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mschauber View Post
That's probably why the reboot worked
\
I haven't rebooted yet... gulp. Here's hoping it will hold once I do
Offline  
Old 03-09-2010, 07:05 PM   #9 (permalink)
New Member
 
Join Date: Apr 2007
Model: 7250
Carrier: Verizon
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by besadmin23 View Post
did you install Express while logged in as the BESADMIN account?
Yes. In fact I used the same domain account 'BESAdmin' as was used to set up the BPS server on the Win2003 server. I figurd taht acount would already have all the mailbox permissions, etc set on it since it was working fine for the BPS install.

I did shutdown the old win2003 server with BPS installed on it before attempting to install BES Express on the SBS 2008 server.
Offline  
Old 03-09-2010, 09:59 PM   #10 (permalink)
New Member
 
Join Date: Apr 2007
Model: 7250
Carrier: Verizon
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well,

I just tried to re-install...same issue.. 5305 errors. So I tried the hosts file fix. I added server name ot the hosts file with the correct IP address and then rebooted.

Unfortunately it did not solve the issue. The server is still throwing 5305 errors.

So it looks this hosts file does not resolve it in all cases.
Offline  
Old 03-09-2010, 10:30 PM   #11 (permalink)
New Member
 
Join Date: Apr 2007
Model: 7250
Carrier: Verizon
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. After applying the registry changes in KB03304 the server IS now working. NOTE: I had to create the 001e6602 string value in both locations, but once I created the key, entered the internal FQDN for our exchange server, and then restarted the router the messaging agent came up.
Offline  
Old 03-10-2010, 02:35 AM   #12 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2005
Location: London
Model: 9000
PIN: xxxxxxxx
Carrier: Vodafone UK
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by cglaser View Post
OK. After applying the registry changes in KB03304 the server IS now working. NOTE: I had to create the 001e6602 string value in both locations, but once I created the key, entered the internal FQDN for our exchange server, and then restarted the router the messaging agent came up.
Glad it's all working for you
Offline  
Old 03-11-2010, 02:28 PM   #13 (permalink)
New Member
 
Join Date: Apr 2006
Location: New York City
Model: 9000
Carrier: AT&T
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by cglaser View Post
Well,

I just tried to re-install...same issue.. 5305 errors. So I tried the hosts file fix. I added server name ot the hosts file with the correct IP address and then rebooted.

Unfortunately it did not solve the issue. The server is still throwing 5305 errors.

So it looks this hosts file does not resolve it in all cases.
The host entry was for your domain controller? I have had the same error now on three servers and the host file entry pointing to my domain controller has worked each time. Even the one that was an SBS server, needed a host entry to itself. Hope RIM fixes this soon.

Marc
Offline  
Old 03-15-2010, 02:45 PM   #14 (permalink)
BlackBerry Elite
 
knottyrope's Avatar
 
Join Date: Jan 2008
Location: Massachusetts
Model: Z30
OS: 10.2.1
PIN: t of blood has been taken
Carrier: AT&T-US with I dee ten tee errors
Posts: 6,721
Post Thanks: 272
Thanked 289 Times in 273 Posts
Default

BlackBerry Messaging Agent log shows "Failed to read 001e6602 reg value from the BlackBerry MAPI profile"
Also messaging agent failed to start error code 5305

View Document

also

Curious, were there any LDAP errors during install or in the install logs? If there were can you please post 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 Z30, Z10 and Q10

Last edited by knottyrope : 03-15-2010 at 04:23 PM.
Offline  
Old 03-23-2010, 10:08 AM   #15 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2008
Location: Netherlands
Model: 8900
PIN: N/A
Carrier: vodafone
Posts: 46
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

we've come across this issue as well a couple of times now.
The RIM KB explains what to do, but isn't really clear I think.

there should be three reg keys (mapi profile's)

BlackBerryServer
BlackBerryServer_Agent1
BlackBerryServer_MailStorProfile

the first and third should have the DCA key within the profile

the string value should be 001e6602 and value data should be exchangeservername.domain.com
__________________
support engineer for Exchange 2000/2003/2007 and BES 4.0/4.1/5.0

http://www.pocketmailsupport.com

Last edited by kapasaca : 03-23-2010 at 10:09 AM.
Offline  
Old 03-23-2010, 10:54 AM   #16 (permalink)
BlackBerry Elite
 
knottyrope's Avatar
 
Join Date: Jan 2008
Location: Massachusetts
Model: Z30
OS: 10.2.1
PIN: t of blood has been taken
Carrier: AT&T-US with I dee ten tee errors
Posts: 6,721
Post Thanks: 272
Thanked 289 Times in 273 Posts
Default

Quote:
Originally Posted by kapasaca View Post
the string value should be 001e6602 and value data should be exchangeservername.domain.com
That only works if your Exchange server is a GC.

Only my DC's have GC roles.
__________________
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 Z30, Z10 and Q10
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





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