Monday, November 6, 2017

Installation service is not running.


'Installation service is not running. Package actions disabled.' error in Gaia Portal - Software Updates - Status and Actions
Symptoms
  • 'Installation service is not running. Package actions disabled.' error in Gaia Portal - Software Updates - Status and Actions
Cause
The Gaia Software Updates Agent Service log file - /opt/CPInstLog/DeploymentAgent.log - has reached the size of 2 GB (verify with 'ls -lh /opt/CPInstLog/DeploymentAgent.log' command).
A failed state can occur where error messages are written infinitely in the loop into the log file, preventing the service from running since it cannot write to its own log file.
The log file will contain errors similar to these:
Error: Could not get installation dir of product SFWCMPmtrfesR75 from the registry.
Error: Could not get installation dir of product CVPN0CMP from the registry.
Error: Could not get installation dir of product NGXCMPP from the registry.
Error: Could not get installation dir of product SFWCMPmtrfesR75 from the registry.
Error: Could not get installation dir of product CVPN0CMP from the registry.
Error: Could not get installation dir of product NGXCMPP from the registry.
Error: Could not get installation dir of product SFWCMPmtrfesR75 from the registry.

Solution
Follow these steps:
  1. Close Gaia Portal.
  2. Stop Gaia Software Updates Agent service:

    1. [Expert@HostName]# $DADIR/bin/dastop

      Should get the following output:
      cpwd_admin:
      Process DASERVICE terminated
      

    2. [Expert@HostName]# dbget installer:stop

      Should get the following output:
      DAService: Stop request sent.
      

  3. Verify that Gaia Software Updates Agent service is not running:

    [Expert@HostName]# cpwd_admin list | grep -v grep | grep -E "STAT|DASERVICE"

    Should get the following output:
    [Expert@HostName]# cpwd_admin list | grep -v grep | grep -E "STAT|DASERVICE"
    APP        PID    STAT  #START  START_TIME             MON  COMMAND
    DASERVICE  0      T     0       [TIME] DATE            N    DAService_script
    [Expert@HostName]#
    

  4. Move or Delete the current 2 GB log file:

    [Expert@HostName]# mv /opt/CPInstLog/DeploymentAgent.log  /opt/CPInstLog/DeploymentAgent.log_OLD
    or
    [Expert@HostName]# rm -i /opt/CPInstLog/DeploymentAgent.log
  5. Start Gaia Software Updates Agent service:

    [Expert@HostName]# $DADIR/bin/dastart
  6. Verify that Deployment Agent service is running:

    [Expert@HostName]# cpwd_admin list | grep -v grep | grep -E "STAT|DASERVICE"

    Should get the following output:
    [Expert@HostName]# cpwd_admin list | grep -v grep | grep -E "STAT|DASERVICE"
    APP        PID    STAT  #START  START_TIME             MON  COMMAND
    DASERVICE  PID    E     1       [TIME] DATE            N    DAService_script
    [Expert@HostName]#
    

  7. Connect to Gaia Portal - 'Software Updates' pane - 'Status and Actions'.