[Solved] Windows Services Error 1067: The process terminated unexpectedly

Problem: Windows Services “Error 1067: The process terminated unexpectedly” prompt when try to start particular service manually.

Error 1067: The process terminated unexpectedly

Solution 1: Take Control of the Service

Step 1: Open cmd.exe with Run as administrator option.

Step 2: Type: services.msc, then enter.

Step 3: Locate the service which is giving you the error in the services list, right-click on it and select Properties option.

Step 4: Stop the service if the service is started.

Step 5: Navigate to Log On tab, click the radio button for This account and click Browse… button.

Step 6: Under Enter the object name to select entry box, type in your account’s name, click on Check Names and wait for the name to become available.

Step 7: Click OK when you are finished and type in the password in the Password box when you are prompted with it, if you have setup a password.

Solution 2: Reinstall Problematic Service

Step 1: Open cmd.exe with Run as administrator option.

Step 2: Type: regedit, then enter.

Step 3: Navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Step 4: Locate the problematic service key, right-click on it and choose Delete option.

Step 5: Restart computer afterwards.

Step 6: Open CMD (command prompt) with Run As Administrator option.

Step 7: Type following command: sfc /scannow, then press Enter. The result will be shown after SFC scan completed.

Solution 3: Delete Certain Files (For MySQL Service only)

Step 1: Open cmd.exe with Run as administrator option.

Step 2: Type: services.msc, then enter.

Step 3: Locate MySQL service in the services list, right-click on it and select Properties option.

Step 4: Click on Stop and click OK.

Step 5: Navigate to the folder where you have installed MySQL (normally C:\\Program Files or C:\\Program Files (x86) folder), open the folder and double-click on data folder inside.

Step 6: Locate the two files called ib_logfile0 and ib_logfile1, right-click on both of them and choose Delete option.

Step 7: Back to Services window and start MySQL service.

Solution 4: Tweak MySQL Configuration Files (For MySQL Service only)

Step 1: Navigate to the root folder where you have installed MySQL (normally C:\\Program Files or C:\\Program Files (x86) path), open the folder and locate my.ini file.

Step 2: Right click on my.ini and choose Open with… Notepad option.

Step 3: Use Ctrl + F key combination and type in innodb_flush_method

Step 4: Set it to normal: innodb_flush_method=normal

Step 5: If such command doesn’t exist then you can add it to the bottom.

Step 6: Make sure you save the changes using Ctrl + S key combination.

Step 7: In the same root folder,locate and open my-default.ini file.

Step 8: Right click on it and choose Open with… Notepad option.

Step 9: Under [mysqld] line in the file, make sure the code same as below:
basedir="Full path to the install location of MySql (the folder where you are currently located)"
datadir="The same path but with the data folder opened; e.g. C:\MySql\data"
port=3306
server-id=1
bind-address=127.0.0.1

Step 10: Make sure you save the changes using Ctrl + S key combination.

Step 11: Restart computer afterwards.

Solution 5: Reinstall SQL Server (For MySQL Service only)

Step 1: Login Windows as Administrator.

Step 2: Go to Control Panel > Programs and Features.

Step 3: Select SQL Server entry and click Uninstall.

Step 4: Restart computer afterwards.

Step 5: Open the Registry Editor window with Administrator right. Locate and delete the following keys in the Registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer

Step 6: Navigate to following location in the registry and delete all keys which reference SQL Server:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Step 7: Search for SQL on your computer and rename all folders referencing it.

Step 8: Restart computer afterward.

Solution 6: Method for EAServer Windows Service

Step 1: Open the Registry Editor window with Administrator right. Navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

Step 2: Locate EAServer entry in the list under Services and click on it.

Step 3: Locate SERVERNAME key, right-click and choose Modify option.

Step 4: Under the Value data bar, make sure you type EAServer and apply the changes.

Solution 7: Manually clear out IndexQueue SQL table using osql (For Laserfiche Server)

Step 1: Step 1: Open cmd.exe with Run as administrator option.

Step 2: Type: osql -E -S SQLInstance -d DatabaseName, then enter.

Step 3: Type: delete from indexqueue, then enter.

Step 4: Type: GO, then enter.

Step 5: Restart Laserfiche Server service.

Solution 8: For Bamboo Build Server Service

Step 1: Make sure user running Bamboo Service is a local user.

Step 2: Verify only one JDK installed on the server and compatible with the version of Bamboo by referring to Bamboo supported platforms.

Step 3: Make sure that wrapper.conf file exists in /conf. If Bamboo can be started manually, it shows that this file exists.

Step 4: Run echo %JAVA_HOME% and check if it’s pointing to the correct JDK. (Ex.: C:\Program Files\Java\jdk1.7.0_10)

Step 5: Confirm that the %PATH% environment variable contains the current JDK in its definition and that it comes before the system32 path.

Step 6: Try to explicitly set the path to the Java installation in the parameter wrapper.java.command in the wrapper.conf file. This parameter value is by default java, update it to look into the exact directory (Ex: C:/Program Files/Java/jdk1.7.0_10/bin/java.exe).

Solution 9: For BlackBerry Enterprise Server 4.1 SP3 to 5.0 SP1

Step 1: Remove all JRE versions from BlackBerry Enterprise Server.

Step 2: Restart BlackBerry Enterprise Server.

Step 3: Install JRE version that was included with the BlackBerry Enterprise Server software. The Java installation file is available in the Tools directory from the installation media. If this is not possible, download Java 2 Runtime Environment, Standard Edition 1.4.2_13 (or higher).

Step 4: Open Registry Editor with Administrator right.

Step 5: Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BlackBerry MDS Connection Service and check for ImagePath string value.

If the ImagePath string value does not exist, re-apply the service pack to recreate the registry key.

If the ImagePath string value does exist, double-click it and type the correct path to the jvm.dll file in the Value data field, as shown in the following example for BlackBerry Enterprise Server version 4.1 and 5.0:

C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\bin\bmds.exe" -s jvmpath="C:\Program Files\Java\ \bin\client\jvm.dll" -XX:+DisableExplicitGC -Xss128K -Xmx256M -Xms96M -XX:NewSize=32M -XX:MaxNewSize=96M -XX:NewRatio=2 classpathdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\classpath\\" wrkdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\Servers\ \\" webserverdir="C:\Program Files\Research In Motion\BlackBerry Enterprise Server\MDS\webserver\\" -log.console -rbes

where is the name of the BlackBerry Enterprise Server MDS Connection Service and is the name of the JRE folder located in one of the following locations:
64-bit OS: C:\Program Files (x86)\Java\\bin
32-bit OS: C:\Program Files\Java\\bin

Step 6: Press Enter and close the Registry Editor.

Step 7: Restart BlackBerry MDS Connection Service from the Windows administrative tools.

Solution 10: For BlackBerry Enterprise Server 3.6 SP7

Step 1: Remove all JRE versions from BlackBerry Enterprise Server.

Step 2: Restart BlackBerry Enterprise Server.

Step 3: Install JRE version that was included with the BlackBerry Enterprise Server. If this is not possible, download Java 2 Runtime Environment, Standard Edition 1.4.2_13.

Step 4: Go to Control Panel > Programs and Features > Select BlackBerry Enterprise Server and right-click it select Change.

Step 5: On the wizard that appears, select Modify option and remove MDS Service #1 component.

Step 6: Restart BlackBerry Enterprise Server.

Step 7: Go to Control Panel > Programs and Features > Select BlackBerry Enterprise Server and right-click it select Change.

Step 8: On the wizard that appears, select the Modify option and add MDS Service #1 component. If prompted for the BlackBerry Enterprise Server software installation media, obtain it and proceed with the installation process.

Solution 11: For Spectrum 9

Step 1: Update 2 files (server\app\conf\jdks properties file and sever\bin\wrapper\wrapper.conf file) to point to C:\ProgramFiles\PitneyBowes\Spectrum\java64 directory.

Step 2: Reinstalling v9 if above step still unable to resolve the error.

Solution 12: For Sysload Collector service

Step 1: Press Ctrl + Alt + Del and choose Start Task Manager.

Step 2: Select sldrmhst.exe in the processes list and click End Process button.

Step 3: Restart Sysload Collector service.

Reference

Stack Overflow: Service will not start: error 1067: the process terminated unexpectedly
dbiservices Blog: Windows Server – Service not starting with ‘Error 1067: The process terminated unexpectedly’
BlackBerry Knowledge Base: “Error: 1067. The process terminated unexpectedly” appears when trying to start the BlackBerry Mobile Data Service