Collaborate with over 60,000 Qlik technologists and members around the world to get answers to your questions, and maximize success.Join Us
When starting a QlikView service the following errors may occur:
Error 1067 <service> can't be started
1067 the process terminated unexpectedly
Investigating log files for the failing QlikView service (for example QlikView Distribution Service or Windows Application logs) indicates issues related to Performance Counters:
Exception=System.InvalidOperationException: Category does not exist.
at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)
Different error messages can be expected including "...The service must have sufficient permissions in Publisher Service Application Data folder:..." even if these permissions exist.
For the Distribution Service specifically, see articles 000005283 QlikView Distribution Service Can Not Be Started And Error "1067: Process terminated unexpectedly"and 000042309 Error 1067: The Process Terminated Unexpectedly - QlikView Distribution Server (Alternative solution to article 000005283) before continuing.
For the Web Server see Can not not start QlikView WebServer Service (QWS).
QlikView all versions
Make sure the correct version of .NET Framework is installed.
See the Qlik Online Help for System Requirements for your respective version.
Example: QlikView April 2019 (12.40) requires 4.7.2 or higher
Sometimes it might be needed to recreate the Distribution Service folders, due to errors in the .XML files.
The folder will be recreated upon restart
Do the following to rebuild performance counters:
Go to Start - All Programs - Accessories
Right-click Command Prompt, and select Run as administrator.
At the command prompt, type lodctr /r, and press ENTER
If you get the following error:
Error: Unable to rebuild performance counter setting from system backup store, error code is 2
Try typing the following as the command:
Note: /R is uppercase. You must also have full administrative rights on the computer to successfully perform this command.
The Performance Counters might have been disabled on Operating System Level.
Verify the following registry key:
Disable Performance Counters should be set to 0
If rebuilding performance counter is not enough, and they are enabled in the registry, it might be that some counters are disabled from start and/or due to domain policies. The initial thing to do here is to compare the list of counters with another machine where the QDS is working to see what the differences are. The list of counters enabled/disabled on a machine can be exported by the command lodctr /q in command prompt.
One can then manually enable/disable counters with the lodctr /e or lodctr /d commands.
For more information about how to manual enable/disable performance counters see:
There is also an automatic tool that can enable or disable the performance counters called Extensible Performance Counter List (exctrlst.exe). The tool is a part of Windows 2000 Resource Kit Tools, but works fine in Windows Server 2008 R2.
For more information see:
Windows 2000 Resource Kit Tools: http://support.microsoft.com/kb/927229
Enabling/Disabling performance counters with exctrlst.exe: https://blogs.technet.com/b/askperf/archive/2010/03/05/two-minute-drill-disabled-performance-counters-and-exctrlst-exe.aspx
Disable Performance Counters: http://technet.microsoft.com/en-us/library/cc784382(v=ws.10).aspx
Also see article #3591 if there are issues with "Access to the registry key 'Global' is denied" which indicates insufficient permissions to performance counters.
Restore the QVPR Management Service Folder
If all steps do not resolve the problem, it may be related to the Qlik QVPR. A restoration may fix the problem. First, make a copy of and rename the current QVPR Management Service folder. Next, restore the QVPR Management Service folder with the most recent backup copy from before the issue occurred (stop service, replace folder with backup, start service). The QVPR folder in management service stores all the tasks, and the distribution service communicates with the QVPR to run the tasks. A backup is saved when upgrading, and also on a scheduled basis if it was setup as so originally -- browse through the folders to verify if backups exist.
Search Qlik's Support Knowledge database or request assisted support for highly complex issues.Submit a case
Experiencing a serious issue, please contact us by phone. View phone numbers and hours by region.