BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links




Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
noniman Offline
Knows Where the Search Button Is
 
Posts: 34
Join Date: Oct 2006
Model: 7250
Carrier: TELUS
Default service order startup?? - 10-24-2006, 11:34 PM

Surely there must be a correct order for BES services to start.

My machine is a bit slow to start, and the dispatcher server seems to sometimes generate a SRP 10061 errors. They are in at least 4 of the log files.

If I start Dispatcher first; them the rest all is well.

Anybody have good ideas?
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
BBAdmin Offline
BlackBerry Extraordinaire
 
BBAdmin's Avatar
 
Posts: 2,536
Join Date: Feb 2005
Location: Sitting down.
Model: 9000
PIN: K155MYA55
Carrier: O2 UK
Default 10-25-2006, 04:01 AM

No specific order required for service startup at all. What version BES are you on (including SP), as quite often there are errors that flag up which are actually red herrings and not problematic at all??
   
  (#3 (permalink)) Old
noniman Offline
Knows Where the Search Button Is
 
Posts: 34
Join Date: Oct 2006
Model: 7250
Carrier: TELUS
Default I am sure there must be an order - 10-25-2006, 01:32 PM

There really must be an order. The services all talk to each other.

If they cannot connect and time out durring startup because of to many retries it messes up the world.

For one thing they cannot start before Exchange if on the same box; and SQL Server stuff for sure.

The only reason most people never have problems is they have a BES server that has only BES on it.
   
  (#4 (permalink)) Old
dev Offline
CrackBerry Addict
 
dev's Avatar
 
Posts: 553
Join Date: Apr 2005
Location: Toronto
Model: 7100
Carrier: Rogers
Default 10-25-2006, 01:57 PM

Try using the order identified in the Services applet as a guideline when stopping/starting. It depends on the issue at the time and the service that you wish to manipulate to influence the output.
As mentioned before there is no specific order for services startup...however main BES functionality (mail redirection, syncing..etc) does depend on the Dispatcher service being connected (authenticated) to the RIM infrastructure. You could disable the Dispatcher service and start the other services in any order and it won't make a world of difference. Or you could disable all the other services and leave only the Dispatcher service.
The only service that should not be restarted too many times is the Dispatcher service, since this causes a disconnection by RIM because of the
the 5-in-1 rule.
   
  (#5 (permalink)) Old
BBAdmin Offline
BlackBerry Extraordinaire
 
BBAdmin's Avatar
 
Posts: 2,536
Join Date: Feb 2005
Location: Sitting down.
Model: 9000
PIN: K155MYA55
Carrier: O2 UK
Default 10-25-2006, 03:03 PM

Thanks for that break down Dev, I lose heart when someone asks a question, you answer it based on your in depth experience and then they go "but there must be"!!!!!!
   
  (#6 (permalink)) Old
||||||| Offline
CrackBerry Addict
 
|||||||'s Avatar
 
Posts: 615
Join Date: Jun 2006
Model: 7100
Carrier: Rogers
Default 10-25-2006, 03:15 PM

Start them Top to Bottom so you dont miss any.
   
  (#7 (permalink)) Old
edonin Offline
Thumbs Must Hurt
 
Posts: 110
Join Date: Mar 2006
Model: 8800c
Carrier: Cingular
Default 10-26-2006, 02:07 PM

I think the startup order does matter. When my server was at BES 3.6, I had created batch files that would stop and restart the services and the batch files all worked fine.

When I upgraded to BES 4.0 and haphazardly added the new services to the batch files, they no longer worked.

I don't remember what criteria I used to determine the working order, but these batch files currently work for my BES 4.0.4.5

REM Stop All Services:

net stop "BlackBerry Attachment Service"

net stop "BlackBerry Controller"

NET STOP "BlackBerry Dispatcher"


net stop "BlackBerry Mobile Data Service"

NET STOP "BlackBerry Policy Service"

NET STOP "BlackBerry Router"

net stop "BlackBerry Synchronization Service"

net stop "BlackBerry User Administration"
-----------------------------------------------
REM: Start All Services:

net start "BlackBerry Attachment Service"

net start "BlackBerry Controller"



net start "BlackBerry Mobile Data Service"


net start "BlackBerry User Administration"


NET start "BlackBerry Router"

NET start "BlackBerry Policy Service"

NET start "BlackBerry Dispatcher"

net start "BlackBerry Synchronization Service"
   
  (#8 (permalink)) Old
BBAdmin Offline
BlackBerry Extraordinaire
 
BBAdmin's Avatar
 
Posts: 2,536
Join Date: Feb 2005
Location: Sitting down.
Model: 9000
PIN: K155MYA55
Carrier: O2 UK
Default 10-26-2006, 02:30 PM

In 3.6 there was an order, not in 4.0 and above.................................for the last time!
   
  (#9 (permalink)) Old
noniman Offline
Knows Where the Search Button Is
 
Posts: 34
Join Date: Oct 2006
Model: 7250
Carrier: TELUS
Default there is an order - 10-26-2006, 05:07 PM

there is an order because if the computer is slow to boot because of upgrade / ms patch / just plain a busy computer the services time out after trying to connect to dispatcher 10 times. then bad things happen.

i just don't reboot to fix things. bes has to work 24*7 and handle power failures and startup running 100% of the time.

on a fast machine this is never experienced. so thus the answer there is no order for many people. most a corect answer. but there is if the machine is not healthy or is very busy because of external requirements.

1) first exchange & sql have to start and be ready for BES services to connect. exchange if on same computer. not if not.
2) dispatcher must be running and authenticated and connected.
3) then the rest I think.

I am surprised that there is no dependency in the services config.
   
  (#10 (permalink)) Old
dev Offline
CrackBerry Addict
 
dev's Avatar
 
Posts: 553
Join Date: Apr 2005
Location: Toronto
Model: 7100
Carrier: Rogers
Default 10-26-2006, 06:00 PM

I think we're confusing specific BES services in conjunction with "other" services (be they SQL, or 3rd party services) that otherwise makeup the complete BES messaging solution. If they all happen to be running on a single box, then you'll likey have performance issues that will undoubtedly have an effect on service startup...not to mention if the box is attempting to connect to a remote server/service -e.g SQL or Attachment service.
An "unhealthy" server hampered by busy "external requirements" does not dictate BES services order start-up. BES runs just like any other service - be it a Printer, fax server, Terminal server, proxy server -
If you recognize that your server is "unhealthy", then set the critical services to manual - in this case the Dispatcher - to prevent bad things from happening, or introduce a delay in the startup of some services in your batch file.
Let the other services catch up and be fully functional before he Dispatcher attempts to connect to the RIM relay host. Or better yet get a better server to run your mission critical BES messaging.
   
  (#11 (permalink)) Old
jibi Offline
BlackBerry God
 
jibi's Avatar
 
Posts: 11,204
Join Date: Oct 2004
Location: Jibi's Secret Place
Model: 9000
OS: 4.6.0.171
Carrier: AT&T
Default 10-26-2006, 10:38 PM

For what it's worth, in BES 4.1 during an upgrade or installation (can't remember), it goes in this order:

Code:
Dispatcher
MDS Connection
Policy
Attachment
Sync
Controller
Router
Server Alert
Collab
Instant
To note, RIM's documentation for High Availability gives the 'net start' commands in alphabetical order. So I suppose that could be the definitive answer you're looking for, even though the level of expertise in this thread should have been more than sufficient (atleast from where I'm standing).

P.S. - I *fully* agree with what dev put in his last reply. You asked what order the BES services start and then rambled on that there must be an order and specifically pointed out Exchange and SQL services as dependencies. Not really what you originally asked for, no?

Last edited by jibi : 10-26-2006 at 10:40 PM.
   
  (#12 (permalink)) Old
jibi Offline
BlackBerry God
 
jibi's Avatar
 
Posts: 11,204
Join Date: Oct 2004
Location: Jibi's Secret Place
Model: 9000
OS: 4.6.0.171
Carrier: AT&T
Default 10-26-2006, 10:43 PM

Here's a variable-based single batch file that works.

http://www.blackberryforums.com/99207-post2.html
   
  (#13 (permalink)) Old
slimbim Offline
Thumbs Must Hurt
 
Posts: 107
Join Date: Oct 2005
Model: 8700c
Carrier: Cingular
Default 10-27-2006, 01:31 AM

I've always wondered about the order too. For what it is worth, I took a capture during my last service pack upgrade, and this was the order in which it had started up the services. I have followed this in order when starting services, and backwards when stopping services manually when I needed to, without any problems.


Last edited by slimbim : 10-27-2006 at 01:34 AM.
   
  (#14 (permalink)) Old
BBAdmin Offline
BlackBerry Extraordinaire
 
BBAdmin's Avatar
 
Posts: 2,536
Join Date: Feb 2005
Location: Sitting down.
Model: 9000
PIN: K155MYA55
Carrier: O2 UK
Default 10-27-2006, 03:34 AM

Thanks god this sorry thread's come to an end!
   
  (#15 (permalink)) Old
jibi Offline
BlackBerry God
 
jibi's Avatar
 
Posts: 11,204
Join Date: Oct 2004
Location: Jibi's Secret Place
Model: 9000
OS: 4.6.0.171
Carrier: AT&T
Default 10-27-2006, 01:51 PM

Quote:
Originally Posted by BBAdmin
Thanks god this sorry thread's come to an end!
Yes it goes on and on my friend. Some people started singing it, not knowing what it was, and they'll continue singing it forever just because...

This is the song that never ends, yes it goes on and on my friend...

   
  (#16 (permalink)) Old
noniman Offline
Knows Where the Search Button Is
 
Posts: 34
Join Date: Oct 2006
Model: 7250
Carrier: TELUS
Default 11-02-2006, 01:24 AM

I did really mean what order does BES services have to start relative to themsleves and the others they need.

I think the problem is that some BES services depend on Dispatcher. So I will make sure that SQL Server & Exchange is running, then Dispatcher then the rest of BES.
   
  (#17 (permalink)) Old
BBAdmin Offline
BlackBerry Extraordinaire
 
BBAdmin's Avatar
 
Posts: 2,536
Join Date: Feb 2005
Location: Sitting down.
Model: 9000
PIN: K155MYA55
Carrier: O2 UK
Default 11-02-2006, 04:10 AM

It should go without saying that for BES to start up correctly you need to have your Exchange services and SQL running (a bit like saying if you want your car to start you need petrol and oil in it first).

On the basis they are running fine then start the BES services in whatever order you fancy.
   
  (#18 (permalink)) Old
dev Offline
CrackBerry Addict
 
dev's Avatar
 
Posts: 553
Join Date: Apr 2005
Location: Toronto
Model: 7100
Carrier: Rogers
Smile 11-02-2006, 05:21 AM

Thanks BBAdmin....
   
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-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1