BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-15-2009, 10:24 PM   #1
bgs999
New Member
 
Join Date: Apr 2009
Location: Christchurch, New Zealand
Model: ?
OS: 2003 sp2
PIN: N/A
Carrier: vodafone
Posts: 3
Question Blackberry services do not automatically start when machine booted

Please Login to Remove!

Hi,

Running BlackBerry Professional Software Version: 4.1.4.3 on windows Server 2003 sp2.

When the machine is rebooted the blackberry services don't start.
After logging machine on I can go to the services and manually click start for each one and they will start. The are all set to run under the domain besadmin account.
This is a member server seperate from the Exchange 2003 server.

The errors in the event log are:

Event Source: Service Control Manager
Event Category: None
Event ID: 7000
Description:
The [BlackBerry MDS Connection Service/BlackBerry Controller/BlackBerry Dispatcher/BlackBerry Policy Service/BlackBerry Router/BlackBerry Synchronization Service] service failed to start due to the following error:
The account name is invalid or does not exist, or the password is invalid for the account name specified.


However, since they can be started after logon the accounts and passwords must be correct.... so I'm not sure how to solve this one?

Any ideas please?

Regards,
Bryce.
Offline  
Old 04-16-2009, 02:29 AM   #2
DavidAdams
Talking BlackBerry Encyclopedia
 
DavidAdams's Avatar
 
Join Date: Sep 2007
Location: Belfast
Model: NotYe
PIN: N/A
Carrier: O2
Posts: 470
Default

Sounds like the SQL server isn't fully up before the BES starts to login to it.
__________________
BES, 4.1.7, was SBE now full BES
Domino v7.0.2
Windows Server 2003, standalone
Offline  
Old 04-16-2009, 04:02 AM   #3
katebang
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 8707
PIN: N/A
Carrier: Celcom
Posts: 46
Default

this is what i did..

set manual start for these services
-Blackberry Dispatcher
-Blackberry Policy Service
-Blackberry Synchronization Service
everytime you need to restart the BES, then u need to start these services manually.

i know there are ways to solve this by reinstalling the updated dot net frameworks 2.0 but i just dont have the guts to do it..
Offline  
Old 04-16-2009, 04:18 AM   #4
stuwhite
Feeling Blue, Bigly ;->
 
stuwhite's Avatar
 
Join Date: Jan 2007
Location: U to the K
Model: 9000
PIN: 3, it's the magic number
Carrier: Most of them, it's a Global Village man!
Posts: 1,273
Default

OP I've seen threads about this before, do a search on here and you will probably find the answer.
__________________
I was a BES and Exchange admin once.
Then my world turned Blue.
Offline  
Old 04-16-2009, 04:42 AM   #5
freakinvibe
BlackBerry Extraordinaire
 
Join Date: Aug 2008
Location: Basel
Model: Class
PIN: N/A
Carrier: Swisscom
Posts: 1,616
Default

Where is your SQL DB running? On the BES box?
Offline  
Old 04-16-2009, 08:23 PM   #6
bgs999
New Member
 
Join Date: Apr 2009
Location: Christchurch, New Zealand
Model: ?
OS: 2003 sp2
PIN: N/A
Carrier: vodafone
Posts: 3
Default

Quote:
Originally Posted by freakinvibe View Post
Where is your SQL DB running? On the BES box?
It is running on the BES box, just the msde version that installed with the product.

stuwhite: I did try searching this forum for an answer before posting but could not find anything to help my situation...

katebang: I know I can I start services manually, but it is not necessarily myself doing restarts - some users forget to start the services, and the server does not always get logged on once restarted either - until a blackberry user phones up to ask why its not working. I just updated the .Net framework 2.0 to service pack 2 (the latest I could find) but it did not help.

DavidAdams: I have now made the blackberry services dependant on the MSSQLSERVER service, but it made no difference to the automatic starting of the services.

Thanks - any further ideas welcome.
-bryce.
Offline  
Old 04-17-2009, 01:25 AM   #7
freakinvibe
BlackBerry Extraordinaire
 
Join Date: Aug 2008
Location: Basel
Model: Class
PIN: N/A
Carrier: Swisscom
Posts: 1,616
Default

The following things should be available before the BB services are started:
  • network services up and running
  • database reachable
  • global catalog server reachable
  • exchange reachable
  • external RIM server reachable
  • AD reachable

Can you check through the system event log after the startup errors. What services are starting after the ID 7000 errors?

Does the Attachment service start? It is the only service that is not started as the BESAdmin user.

Can you also look in the security event log to find out why the logon errors happen.
Offline  
Old 04-17-2009, 01:57 PM   #8
fadmin
BlackBerry Extraordinaire
 
Join Date: Mar 2007
Model: Z10
OS: 10.1.0.19
Carrier: Fido
Posts: 1,068
Default

Add BESAdmin acct to a logon as service policy item as well.
Offline  
Old 04-17-2009, 05:22 PM   #9
TargetIT
CrackBerry Addict
 
Join Date: Jan 2008
Model: 9700
PIN: N/A
Carrier: Rogers
Posts: 709
Default

I had similar problems that eventually went away but I wrote a batch script to restart said services that I still run every 5 minutes. It's fairly generic as you can see. You create a list of services by simply running "net start >MasterServicesList.txt" and move that file into the directory where the batch program is. You can cut the list of services down to just what you want to monitor as well. It requires:

- blat to send the email alert out - also residing in the directory of the bstch file.
- A directory called ServicesNotStarted in the directory
- command extensions enabled
- A command argument of /ServiceRestart=YES if you want it to restart the services

Some tweaking is in order for the variables to suit your needs.

Code:
rem ***************** Service Error Handler **********************
rem * Version 1.00                                               *
rem **************************************************************
rem Reset and initialize variables

set servicefailcount=
set servicename=
set ServiceRestart=
set StartPath=%~dp0
set EmailText=%StartPath%Email.txt
set EmailServer=exchange:25
set EmailFrom=TechSupport@YourCompany.com
set EmailTo=TechSupport@YourCompany.com
set EmailSubject=Service Failure on %ComputerName%
set MasterServicesList=%StartPath%MasterServicesList.txt
set CurrentServicesList=%StartPath%CurrentServicesList.txt
set ServicesNotStarted=%StartPath%ServicesNotStarted.txt
set ServicesReStarted=%StartPath%ServicesReStarted.txt

del %ServicesNotStarted%
del %EmailText%

:Enumerateparameters

if "%1"=="" goto StartProcessing

:CheckIfSwitch

echo %1 | find "/"
if errorlevel 1 goto ParameterFailure

:CheckEachPossibleSwitch

if /i "%1"=="/ServiceRestart" set ServiceRestart=%~2& goto FoundParameter

:InvalidParameter

goto ParameterFailure

:FoundParameter

shift
shift
goto enumerateparameters

:ParameterFailure

echo Parameter Failure! > %EmailText%
echo. >> %EmailText%
echo These were the command line parameters given: %* >> %EmailText%
goto email

:StartProcessing

if exist %MasterServicesList% goto CompareCurrentToMaster
echo Master Services List has not been created! > %EmailText%
echo. >> %EmailText%
echo Some services MAY NOT BE RUNNING >> %EmailText%
goto email

:CompareCurrentToMaster

net start > %CurrentServicesList%
for /f "skip=2 delims=," %%i in (%MasterServicesList%) do (
	set CurrentService=%%i
	set CurrentService=!CurrentService:~3!
	find "!CurrentService!" %CurrentServicesList%
	if errorlevel 1 (
		if not exist "%StartPath%ServicesNotStarted\!CurrentService!" (
			echo !CurrentService!>> %ServicesNotStarted%
			echo. > "%StartPath%ServicesNotStarted\!CurrentService!"
		)			
	) else (
		if exist "%StartPath%ServicesNotStarted\!CurrentService!" echo !CurrentService!>> %ServicesReStarted%
		del "%StartPath%ServicesNotStarted\!CurrentService!"
	)
	)

if not exist %ServicesNotStarted% if not exist %ServicesRestarted% goto cleanup

echo Service Restart?: %ServiceRestart% >> %EmailText%
echo. >> %EmailText%

if not exist %ServicesReStarted% goto ServicesNotStarted

:ServicesRestarted

echo Services that have ReStarted:>> %EmailText%
echo. >> %EmailText%
type %ServicesReStarted% >> %EmailText%
echo. >> %EmailText%

if not exist %ServicesNotStarted% goto footer

:ServicesNotStarted

echo Services Currently Not Running:>> %EmailText%
echo. >> %EmailText%
for %%i in (%StartPath%ServicesNotStarted\*.*) do echo %%~ni Since: %%~ti>> %EmailText%
echo. >> %EmailText%
if /i NOT "%ServiceRestart%"=="YES" goto footer
echo Services Restarting - Results Below: >> %EmailText%
echo. >> %EmailText%
for %%i in (%StartPath%ServicesNotStarted\*.*) do (
	net stop "%%~ni" >> %EmailText%
	net start "%%~ni" >> %EmailText%
	)

:footer

echo Current Running Services: >> %EmailText%
echo. >> %EmailText%
net start  >> %EmailText%

:email

%StartPath%blat %EmailText% -q -to %EmailTo% -s "%EmailSubject%" -f %EmailFrom% -server %EmailServer% -priority 1

:Cleanup

del %emailtext%
del %ServicesNotStarted%
del %ServicesReStarted%
del %CurrentServicesList%
set servicefailcount=
set servicename=
set ServiceRestart=
set StartPath=
set EmailText=
set EmailServer=
set EmailFrom=
set EmailTo=
set EmailSubject=

:end
Offline  
Old 04-19-2009, 11:44 PM   #10
bgs999
New Member
 
Join Date: Apr 2009
Location: Christchurch, New Zealand
Model: ?
OS: 2003 sp2
PIN: N/A
Carrier: vodafone
Posts: 3
Default

Quote:
Originally Posted by freakinvibe View Post
Can you check through the system event log after the startup errors. What services are starting after the ID 7000 errors?
Two services start after the id 7000 errors: 'Network Location Awareness' and (sometimes) 'Network Connections' service. Both these seem to come back to 'Netman' (I think? C:\WINDOWS\system32\svchost.exe -k netsvcs) so I made all the blackberry services also dependant on the Netman service but it made no difference...

Quote:
Originally Posted by freakinvibe View Post
Does the Attachment service start? It is the only service that is not started as the BESAdmin user.
Yes - the attachment service does start.

Quote:
Originally Posted by freakinvibe View Post
Can you also look in the security event log to find out why the logon errors happen.
This log shows only successful logons for besadmin at the times the services fail to start!! In fact there are no logon errors in the security event log.

Quote:
Originally Posted by TargetIT View Post
I had similar problems that eventually went away but I wrote a batch script to restart said services....
I will look at using this batch file - thanks. If I put it in the startup folder then at least the services will get started once someone logs the machine on.

*****************
AND - I should have seen this earlier in the system event log.
Immediately after the eventlog starts is a netlogon error:

Event Type: Error
Event Source: NETLOGON
Event Category: None
Event ID: 5719
Description:
This computer was not able to set up a secure session with a domain controller in domain MyDomain due to the following:
There are currently no logon servers available to service the logon request.
This may lead to authentication problems. Make sure that this computer is connected to the network...

However, I can run nltest.exe from this machine and it verifies a secure channel to the domain. This is of course after the machine has been logged on - I'm not sure what to do about it happening immediately at startup?

*****************
Thanks for all your help. Still open to further suggestions as the above may indicate something to someone?

Regards,
Bryce Stenberg.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Ram ROI Optical OMIS II Vision AutoCheck Metrology Measurement Inspection System picture

Ram ROI Optical OMIS II Vision AutoCheck Metrology Measurement Inspection System

$5700.00



Ram Optical Intrumentation  Optical Measurement Inspection System picture

Ram Optical Intrumentation Optical Measurement Inspection System

$650.00



Fanuc S-RAM Memory Module A20B-3900-0061/02B picture

Fanuc S-RAM Memory Module A20B-3900-0061/02B

$99.95



Ram Optical Istrumentation 000427 Optical Video Probe picture

Ram Optical Istrumentation 000427 Optical Video Probe

$220.00



Fadal PCB-0040 RAM Memory Expansion 128K 1460-2 picture

Fadal PCB-0040 RAM Memory Expansion 128K 1460-2

$150.00



Fadal PCB-0042 RAM Memory Expansion 4 MEG MB 1460-4A picture

Fadal PCB-0042 RAM Memory Expansion 4 MEG MB 1460-4A

$595.00







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