Discussion:
BITS service cannot start with event error 7024
(too old to reply)
Hui Yoong Seong
2006-01-14 02:02:02 UTC
Permalink
Hi,

The SMS Server 2003 SP1 is running on Windows Server 2003 SP1. The client is
a Windows 2000 Professional with SP4. When I try to install the SMS client
into the Win2k machine, the installation just hangs half way. Later I found
out that the BITS service will never be able to start. Here is the error log
in the System Event:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Date: 1/13/2006
Time: 5:49:19 PM
User: N/A
Computer: DSAFW
Description:
The Background Intelligent Transfer Service service terminated with
service-specific error 2147942403.

I have tried to manually install BITS 1.5 and also BITS 2.0 into the Win2k
machine. BITS still not be able to start but with a slightly different
service-specific error code now. Here it is:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Date: 1/13/2006
Time: 9:51:46 PM
User: N/A
Computer: DSAFW
Description:
The Background Intelligent Transfer Service service terminated with
service-specific error 2147746309.

Here are the actions I have taken to solve but fails:
1. Deregister and reregister the qmgr.dll and qmgrprxy.dll.
2. Make sure the %AllUsersProfile%\Application Data\Microsoft\Network folder
is there.
3. I don't see there is Downloader folder inside the Network folder, so
nothing to delete.
4. Make sure the register key
HKEY_LOCAL_MACHINE\SYSTEM\Curr­entControlSet\Control\BackupRe­store\FilesNotToBackup is there.
5. Regsvr32 the following files: oleaut32.dll, jscript.dll, vbscript.dll,
msxml.dll, softpub.dll, wintrust.dll, initpki.dll, cryptdlg.dll, mssip32.dll.
6. Make sure the BITS service is running under LocalSystem account.
7. For troubleshooting purpose, I have given the permission of Full Control
to Everyone for the whole C:\ drive.

Is there anything else I can try out to resolve the problem. Thanks in
advance.

Regards,
Yoong Seong
f***@online.microsoft.com
2006-01-14 06:50:49 UTC
Permalink
Please give the following info:
1. For error 2147942403, we have the following trouble shooting steps:
Reg query HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup
if the key is missing, please create the key, (If reg.exe is not on your system, it can be found in support tools, or you may use regedit.exe UI to check the keys)

2. However, another problem must have happened during setup of BITS 1.5 and BITS 2.0. for error 2147746309 (0x80040205), We don't have any known solutions Please give:
- The OS Language of the client (w2k) machine.
- where you obtained the BITS 1.5 and 2.0 install packages
- dir %windir%\system32\bits*.dll %windir%\system32\qmgr*.dll
- %windir%\bits*.log
- %windir%\setup*.log
- %windir%\kb842773.log
- Obtain BITS debug log
set BitsRegKey=HKLM\Software\Microsoft\Windows\CurrentVersion\BITS
reg add %BitsRegKey% /v LogFileFlags /t REG_DWORD /d 0xfbcf /f
reg add %BitsRegKey% /v LogFileSize /t REG_DWORD /d 0x100 /f
reg add %BitsRegKey% /v LogFileMinMemory /t REG_DWORD /d 0x30 /f
net start bits
send the log file "%windir%\system32\bits.log

Thanks!
Frank

-----Original Message-----
From: HuiYoongSeong
Posted At: Friday, January 13, 2006 6:02 PM
Posted To: Microsoft.public.windows.backgroundtransfer
Conversation: BITS service cannot start with event error 7024
Subject: BITS service cannot start with event error 7024



Hi,

The SMS Server 2003 SP1 is running on Windows Server 2003 SP1. The client is a Windows 2000 Professional with SP4. When I try to install the SMS client into the Win2k machine, the installation just hangs half way. Later I found out that the BITS service will never be able to start. Here is the error log in the System Event:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Date: 1/13/2006
Time: 5:49:19 PM
User: N/A
Computer: DSAFW
Description:
The Background Intelligent Transfer Service service terminated with service-specific error 2147942403.

I have tried to manually install BITS 1.5 and also BITS 2.0 into the Win2k machine. BITS still not be able to start but with a slightly different service-specific error code now. Here it is:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Date: 1/13/2006
Time: 9:51:46 PM
User: N/A
Computer: DSAFW
Description:
The Background Intelligent Transfer Service service terminated with service-specific error 2147746309.

Here are the actions I have taken to solve but fails:
1. Deregister and reregister the qmgr.dll and qmgrprxy.dll.
2. Make sure the %AllUsersProfile%\Application Data\Microsoft\Network folder is there.
3. I don't see there is Downloader folder inside the Network folder, so nothing to delete.
4. Make sure the register key
HKEY_LOCAL_MACHINE\SYSTEM\Curr­entControlSet\Control\BackupRe­store\FilesNotToBackup is there.
5. Regsvr32 the following files: oleaut32.dll, jscript.dll, vbscript.dll, msxml.dll, softpub.dll, wintrust.dll, initpki.dll, cryptdlg.dll, mssip32.dll.
6. Make sure the BITS service is running under LocalSystem account.
7. For troubleshooting purpose, I have given the permission of Full Control to Everyone for the whole C:\ drive.

Is there anything else I can try out to resolve the problem. Thanks in advance.

Regards,
Yoong Seong
Hui Yoong Seong
2006-01-14 11:04:02 UTC
Permalink
Hi Frank,

1. For error 2147942403, I've checked that the registry key that you
mentioned is there. Any other troubleshooting step that I can take?

2. - The OS language is English.
- Both the install packages are obtained from Microsoft web site. Their
file names are:
a) bits_v15_client_setup.exe (959,488 bytes)
b) Windows2000-KB842773-x86-ENU.exe (711,160 bytes)
- Currently I don't have the machine with me now. I will attach the log
here later.
- Regarding the BITS debug log, the reg command is not working in that
machine. So I have manually added in the registry keys as you specified.
However, the log file generated contains mostly square boxes. No readable
text. Is it correct or am I generating it wrongly?

Many thanks for your help.

Regards,
Yoong Seong
Post by f***@online.microsoft.com
Reg query HKLM\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup
if the key is missing, please create the key, (If reg.exe is not on your system, it can be found in support tools, or you may use regedit.exe UI to check the keys)
- The OS Language of the client (w2k) machine.
- where you obtained the BITS 1.5 and 2.0 install packages
- dir %windir%\system32\bits*.dll %windir%\system32\qmgr*.dll
- %windir%\bits*.log
- %windir%\setup*.log
- %windir%\kb842773.log
- Obtain BITS debug log
set BitsRegKey=HKLM\Software\Microsoft\Windows\CurrentVersion\BITS
reg add %BitsRegKey% /v LogFileFlags /t REG_DWORD /d 0xfbcf /f
reg add %BitsRegKey% /v LogFileSize /t REG_DWORD /d 0x100 /f
reg add %BitsRegKey% /v LogFileMinMemory /t REG_DWORD /d 0x30 /f
net start bits
send the log file "%windir%\system32\bits.log
Thanks!
Frank
-----Original Message-----
From: HuiYoongSeong
Posted At: Friday, January 13, 2006 6:02 PM
Posted To: Microsoft.public.windows.backgroundtransfer
Conversation: BITS service cannot start with event error 7024
Subject: BITS service cannot start with event error 7024
Hi,
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Date: 1/13/2006
Time: 5:49:19 PM
User: N/A
Computer: DSAFW
The Background Intelligent Transfer Service service terminated with service-specific error 2147942403.
Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7024
Date: 1/13/2006
Time: 9:51:46 PM
User: N/A
Computer: DSAFW
The Background Intelligent Transfer Service service terminated with service-specific error 2147746309.
1. Deregister and reregister the qmgr.dll and qmgrprxy.dll.
2. Make sure the %AllUsersProfile%\Application Data\Microsoft\Network folder is there.
3. I don't see there is Downloader folder inside the Network folder, so nothing to delete.
4. Make sure the register key
HKEY_LOCAL_MACHINE\SYSTEM\Curr­entControlSet\Control\BackupRe­store\FilesNotToBackup is there.
5. Regsvr32 the following files: oleaut32.dll, jscript.dll, vbscript.dll, msxml.dll, softpub.dll, wintrust.dll, initpki.dll, cryptdlg.dll, mssip32.dll.
6. Make sure the BITS service is running under LocalSystem account.
7. For troubleshooting purpose, I have given the permission of Full Control to Everyone for the whole C:\ drive.
Is there anything else I can try out to resolve the problem. Thanks in advance.
Regards,
Yoong Seong
f***@online.microsoft.com
2006-01-16 06:22:21 UTC
Permalink
The debug log is in binary format. We are supposed decode the log only inside of Microsoft. So, please send me the log.

The following are additional fixes for the error code, but these happens pretty rarely. Note that even if you find that these problems exists on your system, you still need to fix the problem associated with error 2147746309 before BITS can work again. So, the logs are important for me to get the problem resolved.
1.
BITS is unable to start because the following directory does not exist: "%allusersprofile%\application data". BITS stores it metadata files in the directory: "%allusersprofile%\application data\Microsoft\network\downloader". If the downloader directory doesn’t exist BITS will try to create it. But it doesn’t create the parent directories.

Did the customer change the location for user profiles in the registry or did he/she change value for the ALLUSERSPROFILE environment variable? Check the values under the following reg key and make sure those directories exist.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

If the “Application data” is missing it could affect other software as well on this machine.

2.
Reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll
==> If the key do not exist, you need to add the following registry key manually:
Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll /t REG_EXPAND_SZ /d %windir%\System32\qmgr.dll

Thanks!
Frank
Hui Yoong Seong
2006-01-16 06:41:02 UTC
Permalink
Hi Frank,

I have the log with me now. How can I send it to you? I have tried to email
you at frankca at microsoft dot com but it fails.

Thanks.

Regards,
Yoong Seong
Post by f***@online.microsoft.com
The debug log is in binary format. We are supposed decode the log only inside of Microsoft. So, please send me the log.
The following are additional fixes for the error code, but these happens pretty rarely. Note that even if you find that these problems exists on your system, you still need to fix the problem associated with error 2147746309 before BITS can work again. So, the logs are important for me to get the problem resolved.
1.
BITS is unable to start because the following directory does not exist: "%allusersprofile%\application data". BITS stores it metadata files in the directory: "%allusersprofile%\application data\Microsoft\network\downloader". If the downloader directory doesn’t exist BITS will try to create it. But it doesn’t create the parent directories.
Did the customer change the location for user profiles in the registry or did he/she change value for the ALLUSERSPROFILE environment variable? Check the values under the following reg key and make sure those directories exist.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
If the “Application data” is missing it could affect other software as well on this machine.
2.
Reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll
Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll /t REG_EXPAND_SZ /d %windir%\System32\qmgr.dll
Thanks!
Frank
f***@online.microsoft.com
2006-01-16 19:09:09 UTC
Permalink
Sorry, please use "frank cao" at ms dot com.


Thanks!
Frank

-----Original Message-----
From: HuiYoongSeong
Posted At: Sunday, January 15, 2006 10:41 PM
Posted To: Microsoft.public.windows.backgroundtransfer
Conversation: BITS service cannot start with event error 7024
Subject: re: BITS service cannot start with event error 7024



Hi Frank,

I have the log with me now. How can I send it to you? I have tried to email you at frankca at microsoft dot com but it fails.

Thanks.

Regards,
Yoong Seong
Post by f***@online.microsoft.com
The debug log is in binary format. We are supposed decode the log only inside of Microsoft. So, please send me the log.
The following are additional fixes for the error code, but these happens pretty rarely. Note that even if you find that these problems exists on your system, you still need to fix the problem associated with error 2147746309 before BITS can work again. So, the logs are important for me to get the problem resolved.
1.
BITS is unable to start because the following directory does not exist: "%allusersprofile%\application data". BITS stores it metadata files in the directory: "%allusersprofile%\application data\Microsoft\network\downloader". If the downloader directory doesn’t exist BITS will try to create it. But it doesn’t create the parent directories.
Did the customer change the location for user profiles in the registry or did he/she change value for the ALLUSERSPROFILE environment variable? Check the values under the following reg key and make sure those directories exist.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\ProfileList
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
Shell Folders
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
User Shell Folders
If the “Application data” is missing it could affect other software as well on this machine.
2.
Reg query
Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll /t REG_EXPAND_SZ /d %windir%\System32\qmgr.dll
Thanks!
Frank
Hui Yoong Seong
2006-01-17 01:28:03 UTC
Permalink
Hi Frank,

I have sent all the logs. Please have a look. Thanks in advance.

Regards,
Yoong Seong
Post by f***@online.microsoft.com
Sorry, please use "frank cao" at ms dot com.
Thanks!
Frank
-----Original Message-----
From: HuiYoongSeong
Posted At: Sunday, January 15, 2006 10:41 PM
Posted To: Microsoft.public.windows.backgroundtransfer
Conversation: BITS service cannot start with event error 7024
Subject: re: BITS service cannot start with event error 7024
Hi Frank,
I have the log with me now. How can I send it to you? I have tried to email you at frankca at microsoft dot com but it fails.
Thanks.
Regards,
Yoong Seong
Post by f***@online.microsoft.com
The debug log is in binary format. We are supposed decode the log only inside of Microsoft. So, please send me the log.
The following are additional fixes for the error code, but these happens pretty rarely. Note that even if you find that these problems exists on your system, you still need to fix the problem associated with error 2147746309 before BITS can work again. So, the logs are important for me to get the problem resolved.
1.
BITS is unable to start because the following directory does not exist: "%allusersprofile%\application data". BITS stores it metadata files in the directory: "%allusersprofile%\application data\Microsoft\network\downloader". If the downloader directory doesn’t exist BITS will try to create it. But it doesn’t create the parent directories.
Did the customer change the location for user profiles in the registry or did he/she change value for the ALLUSERSPROFILE environment variable? Check the values under the following reg key and make sure those directories exist.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\ProfileList
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
Shell Folders
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
User Shell Folders
If the “Application data” is missing it could affect other software as well on this machine.
2.
Reg query
Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll /t REG_EXPAND_SZ /d %windir%\System32\qmgr.dll
Thanks!
Frank
f***@online.microsoft.com
2006-01-19 20:15:37 UTC
Permalink
The log indicated that the
I have decoded the debug logs are the following. The log indicated that error 80040205 was returned from SENS.

01/15/2006-19:36:38.243 598 INFO Log_StartLogger :Started new logger session
01/15/2006-19:36:38.243 598 INFO Log_StartLogger :Max log size is 256 MB
01/15/2006-19:36:38.243 598 INFO Log_StartLogger :Log Flags fbcf
01/15/2006-19:36:38.243 598 INFO Log_StartLogger :Min Memory settings 48 MB
01/15/2006-19:36:38.243 598 INFO BITSServiceMainProc :Service started at 01/15/2006-19:36:38.063
01/15/2006-19:36:38.243 598 INFO CheckIfManualStart :Detected manual start
01/15/2006-19:36:38.253 598 INFO BITSServiceMainProc :Initializing globalinfo
01/15/2006-19:36:38.253 598 INFO GlobalInfo::Init :Starting init of global info
01/15/2006-19:36:38.263 598 INFO GlobalInfo::Init :Finished init of global info
01/15/2006-19:36:38.263 598 INFO BITSServiceMainProc :Initializing qmgr
01/15/2006-19:36:38.273 598 INFO DetectTerminalServer :TS test: no TS
01/15/2006-19:36:38.424 598 INFO CLogonNotification::Cleanup :cleanup complete
01/15/2006-19:36:38.424 598 INFO CLoggedOnUsers::CLoggedOnUsers :SENS object failed with 80040205
01/15/2006-19:36:38.424 598 INFO InitQmgr :background thread failed, instance 1, hr 80040205
01/15/2006-19:36:38.424 598 INFO UninitQmgr :Uninit Qmgr: beginning
01/15/2006-19:36:38.424 598 SERVICE BITSServiceMainProc :ServiceMain returning, hr = 80040205

Since SENS depend on event system, please find if you can find any error event log entry about EventSystem. For reference, the following is a News posting about COM+ EventSystem failed with 80040205
http://groups.google.com/groups?sourceid=navclient&ie=UTF-8&rls=GGLD,GGLD:2004-06,GGLD:en&q=80040205%20COM%2B%20Event%20System&sa=N&tab=wg
The COM+ Event System detected a bad return code during
its internal processing. HRESULT was 80040205 from line
285 of .\notify.cpp. Please contact Microsoft Product
Support Services to report this error.
The COM+ Event System raised an unexpected exception
C0000096 at address 0x77A1AC1B. Please contact Microsoft
Product Support Services to report this error.

If the above event log entry was found, then please do the following to debug eventsystem.
attach a debugger to the EventSystem svchost (-netsvcs). You may use "tlist /s" to find the service running eventsystem. (Please be extra careful when debugging the -netsvc process. I amd not sure if this is true on w2k, but if lanmanworkstation is also in the same process, you need to save all your files and prepare for force reboot. Also copy all symbols locally. Do not do .remote in the debugger. If the debuger ever try to acess network, then it will be deadlocked, because the workstation service is broke into debugger, and you have to force reboot the computer. )
run "sxe *";
run the repro;
take a full dump when the debugger raises an exception from es.dll code;
after the repro you may run "sxd *" or reboot the machine to get the computer functioning again. Send me the dump.

Thanks!
Frank

-----Original Message-----
From: HuiYoongSeong
Posted At: Monday, January 16, 2006 5:28 PM
Posted To: Microsoft.public.windows.backgroundtransfer
Conversation: BITS service cannot start with event error 7024
Subject: re: BITS service cannot start with event error 7024



Hi Frank,

I have sent all the logs. Please have a look. Thanks in advance.

Regards,
Yoong Seong

"frankca@online.microsoft.com" wrote:

> Sorry, please use "frank cao" at ms dot com.
>
>
> Thanks!
> Frank
>
> -----Original Message-----
> From: HuiYoongSeong
> Posted At: Sunday, January 15, 2006 10:41 PM Posted To:
> Microsoft.public.windows.backgroundtransfer
> Conversation: BITS service cannot start with event error 7024
> Subject: re: BITS service cannot start with event error 7024
>
>
>
> Hi Frank,
>
> I have the log with me now. How can I send it to you? I have tried to email you at frankca at microsoft dot com but it fails.
>
> Thanks.
>
> Regards,
> Yoong Seong
>
> "frankca@online.microsoft.com" wrote:
>
> > The debug log is in binary format. We are supposed decode the log only inside of Microsoft. So, please send me the log.
> >
> > The following are additional fixes for the error code, but these happens pretty rarely. Note that even if you find that these problems exists on your system, you still need to fix the problem associated with error 2147746309 before BITS can work again. So, the logs are important for me to get the problem resolved.
> > 1.
> > BITS is unable to start because the following directory does not exist: "%allusersprofile%\application data". BITS stores it metadata files in the directory: "%allusersprofile%\application data\Microsoft\network\downloader". If the downloader directory doesn t exist BITS will try to create it. But it doesn t create the parent directories.
> >
> > Did the customer change the location for user profiles in the registry or did he/she change value for the ALLUSERSPROFILE environment variable? Check the values under the following reg key and make sure those directories exist.
> >
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
> > NT\CurrentVersion\ProfileList
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explore
> > r\
> > Shell Folders
> > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explore
> > r\
> > User Shell Folders
> >
> > If the  Application data is missing it could affect other software as well on this machine.
> >
> > 2.
> > Reg query
> > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll ==> If the key do not exist, you need to add the following registry key manually:
> > Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters /v ServiceDll /t REG_EXPAND_SZ /d %windir%\System32\qmgr.dll
> >
> > Thanks!
> > Frank
> >
>

Loading...