none
DHCP Server service error 65535

    Question

  • Hi all

    A remote server died, has had parts replaced, server boots up fine, but the DHCP Server will not start and gets error 65535

    It is a W2003 domain controller and we have Exchnage 2007 running, so the answers re unhide builtin admin group doesn't work as cant do exchange tasks through AD users and computers in Exchange 2007, or I don't know how to do it as just moved to Exchange 2007?

    Any help would be appriecated!

     

    thanks in advance

    Monday, September 27, 2010 11:39 AM

Answers

  • How exactly was the domain controller restored? Did a hard drive crash?

    What Event log errors are you seeing? Are you seeing the following or any others? If you are seeing any of these or any others, please post them.

    EventID 1004
    ===========
    The DHCP service failed to initialize the database. The following error occurred:
    %%65535
    ===========

    Error 1014
    ===========
    The following problem occurred with the Jet database -1811: Jet database read or write operations failed. If the computer or database has just been upgraded, then this message can be safely ignored. If this message appears frequently, either there is not enough disk space to complete the operation or the database or backup database may be corrupt. To correct this problem, either free additional space on your hard disk or restore the database. After you restore the database, ensure that conflict detection is enabled in DHCP server properties. For information about restoring the database, see Help and Support Center. Additional Debug Information: JetRestore.
    ===========

    Error 1018
    ===========
    The DHCP service failed to restore the database. The following error occurred:
    An error occurred while accessing the DHCP database. Look at the
    DHCP server event log for more information on this error.
    ===========

    Error 1008
    ===========
    The DHCP service is shutting down due to the following error:
    The service has returned a service-specific error code.
    ===========

    EventID 7024
    ===========
    The DHCP Server service terminated with service-specific error 20013 (0x4E2D).
    ===========

    Have you tried reparing the DHCP database? here are some steps:

    To repair the DHCP database after it comes corrupted:
    1. stop the DHCP service
    2. Backup the DHCP dir
    3. go to the DHCP dir (command prompt)
    4. run jetpack dhcp.mdb temp
    5. Start the DHCP service

    Links to help restore/fix a corrupted DHCP Database and how to use the Jetpack utility:

    How to Restore a Corrupted DHCP Database File
    http://support.microsoft.com/kb/173396

    How to Use Jetpack.exe to Compact a WINS or DHCP Database
    http://support.microsoft.com/kb/145881

     

    SQL and DHCP & VSS:

    Was SQL recentally installed on the server? If so, please read the following link regarding removing the VSS registry key. This issue is because SQL 2005 setup creates wrong default registry value under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS\VssAccessControl. If this is the case, to fix DHCP service just delete VssAccessControl registry key. (be sure to backup your registry first, or at least the VSS key before deleting it):

    DHCP Service fails to start after installing SQL Server 2005
    http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/6a203874-7653-4924-8df7-256add9008db/

    IF SQL wasn't installed...

    I've also seen the DCHP Error 65535 due to an antivirus scan that disrputed the DHCP Jet database. If this is a factor, it's suggested to configure the AV to not scan MDB files. In addtiion, if using an AV product, you must exclude the Exchange databases folder from scanning. Normally I just exclude the whole Exchange folder.

    In addtition, needless to say, unless this is a SBS server, it is not suggested to install Exchange on a domain controller for a number of reasons, some of which are the Exchange server needs write cache enabled on the drive controllers, but once you promote a machine to a DC, it disables this to protect the AD database, however it greatly affects Exchange's performance and may cause possible issues with Exchange's transactional logging. Another is that Exchange will only use the DC itself its installed on for a GC and will not look at others. Also, if the DC fails or the server fails, it's a complicated restore procedure. When backing up such a server, you must create two separate backup jobs, one for the System State backup of the DC and system drive, and one for Exchange Information Store. If done together, an Exchange restore or mailbox recovery may not work.

    Summary

    • Post all event log errors
    • Please post an ipconfig /all. This will helps us by evaluating the machine's configuration, DNS and other settings to ensure nothing's amiss
    • DHCP Server service requires that the SYSTEM account have full control permissions on the root of the volume on which the DHCP database is stored. Check C: drive to make sure SYSTEM has FULL CONTROL.
    • Make sure the Exchange folder is excluded from AV
    • Make sure the DHCP and WINS folders are excluded from AV
    • If SQL is installed, delete the VSS registry key
    • Repair the DHCP database using the JetPack utility

    I hope that helps.

    Ace

     


    Ace Fekay
    MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003, Microsoft Certified Trainer, Microsoft MVP - Directory Services.

    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    Monday, September 27, 2010 6:00 PM

All replies

  • How exactly was the domain controller restored? Did a hard drive crash?

    What Event log errors are you seeing? Are you seeing the following or any others? If you are seeing any of these or any others, please post them.

    EventID 1004
    ===========
    The DHCP service failed to initialize the database. The following error occurred:
    %%65535
    ===========

    Error 1014
    ===========
    The following problem occurred with the Jet database -1811: Jet database read or write operations failed. If the computer or database has just been upgraded, then this message can be safely ignored. If this message appears frequently, either there is not enough disk space to complete the operation or the database or backup database may be corrupt. To correct this problem, either free additional space on your hard disk or restore the database. After you restore the database, ensure that conflict detection is enabled in DHCP server properties. For information about restoring the database, see Help and Support Center. Additional Debug Information: JetRestore.
    ===========

    Error 1018
    ===========
    The DHCP service failed to restore the database. The following error occurred:
    An error occurred while accessing the DHCP database. Look at the
    DHCP server event log for more information on this error.
    ===========

    Error 1008
    ===========
    The DHCP service is shutting down due to the following error:
    The service has returned a service-specific error code.
    ===========

    EventID 7024
    ===========
    The DHCP Server service terminated with service-specific error 20013 (0x4E2D).
    ===========

    Have you tried reparing the DHCP database? here are some steps:

    To repair the DHCP database after it comes corrupted:
    1. stop the DHCP service
    2. Backup the DHCP dir
    3. go to the DHCP dir (command prompt)
    4. run jetpack dhcp.mdb temp
    5. Start the DHCP service

    Links to help restore/fix a corrupted DHCP Database and how to use the Jetpack utility:

    How to Restore a Corrupted DHCP Database File
    http://support.microsoft.com/kb/173396

    How to Use Jetpack.exe to Compact a WINS or DHCP Database
    http://support.microsoft.com/kb/145881

     

    SQL and DHCP & VSS:

    Was SQL recentally installed on the server? If so, please read the following link regarding removing the VSS registry key. This issue is because SQL 2005 setup creates wrong default registry value under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS\VssAccessControl. If this is the case, to fix DHCP service just delete VssAccessControl registry key. (be sure to backup your registry first, or at least the VSS key before deleting it):

    DHCP Service fails to start after installing SQL Server 2005
    http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/6a203874-7653-4924-8df7-256add9008db/

    IF SQL wasn't installed...

    I've also seen the DCHP Error 65535 due to an antivirus scan that disrputed the DHCP Jet database. If this is a factor, it's suggested to configure the AV to not scan MDB files. In addtiion, if using an AV product, you must exclude the Exchange databases folder from scanning. Normally I just exclude the whole Exchange folder.

    In addtition, needless to say, unless this is a SBS server, it is not suggested to install Exchange on a domain controller for a number of reasons, some of which are the Exchange server needs write cache enabled on the drive controllers, but once you promote a machine to a DC, it disables this to protect the AD database, however it greatly affects Exchange's performance and may cause possible issues with Exchange's transactional logging. Another is that Exchange will only use the DC itself its installed on for a GC and will not look at others. Also, if the DC fails or the server fails, it's a complicated restore procedure. When backing up such a server, you must create two separate backup jobs, one for the System State backup of the DC and system drive, and one for Exchange Information Store. If done together, an Exchange restore or mailbox recovery may not work.

    Summary

    • Post all event log errors
    • Please post an ipconfig /all. This will helps us by evaluating the machine's configuration, DNS and other settings to ensure nothing's amiss
    • DHCP Server service requires that the SYSTEM account have full control permissions on the root of the volume on which the DHCP database is stored. Check C: drive to make sure SYSTEM has FULL CONTROL.
    • Make sure the Exchange folder is excluded from AV
    • Make sure the DHCP and WINS folders are excluded from AV
    • If SQL is installed, delete the VSS registry key
    • Repair the DHCP database using the JetPack utility

    I hope that helps.

    Ace

     


    Ace Fekay
    MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003, Microsoft Certified Trainer, Microsoft MVP - Directory Services.

    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    Monday, September 27, 2010 6:00 PM
  • thanks Ace, Ill post all tomorrow when I get back into the office!
    Monday, September 27, 2010 8:27 PM
  • You're welcome, Neil. :-)

    Ace Fekay
    MVP, MCT, MCITP EA, MCTS Windows 2008 & Exchange 2007, MCSE & MCSA 2003/2000, MCSA Messaging 2003, Microsoft Certified Trainer, Microsoft MVP - Directory Services.

    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    Monday, September 27, 2010 9:18 PM