Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated

NI Services Fail to Start on Linux System

Primary Software: Driver Software>>NI-VISA
Primary Software Version: 14.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

I am using Linux, and I notice that my NI services are failing to start. One possible indication that NI services are not starting is receiving the following error when launching a utility or running an application: failed to initialize
Perhaps you need to run updateNIDrivers

How can I resolve this issue?

This is a known issue with systemd on certain Linux distributions (e.g. RedHat 7.2, CentOS 7.2, OpenSUSE 42.1/42.2). To resolve this issue, upgrade to systemd-219-19.el7_2.4 or later.

If you are unable to upgrade, you can perform the following workaround:
  1. Run ls -la /etc/init.d/ in the terminal to retrieve a list of services.
  2. For each NI service (services beginning with "ni"), remove the symlink and replace it with the startup script itself by running these commands:
    1. Run readlink -f /etc/init.d/niservice, where niservice is the name of the service, to determine the location of the service's startup script.
    2. Run rm /etc/init.d/niservice to remove the symlink.
    3. When prompted on whether or not to remove the symbolic link, enter y.
    4. Run cp path /etc/init.d/niservice where path is the path returned in Step a.
Below is an example of these commands run for the nidevldu service:

For more information on this issue, see the Red Hat Knowledgebase article linked below.

Related Links:
External Link: systemctl can't read symlinks to SysVinit service scripts in /etc/init.d after upgrading to RHEL 7.2's systemd-219-19.el7


Report Date: 05/06/2016
Last Updated: 05/31/2017
Document ID: 795A9SNN

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit