Veritas cmsCollectorservice fails to start

book

Article ID: 100054793

calendar_today

Updated On:

Description

Error Message

Jan 01 11:24:02 server systemd[1]: Starting cmsCollectorservice.service...
Jan 01 11:24:02 server systemd[1]: cmsCollectorservice.service: Control process exited, code=exited status=203
Jan 01 11:24:02 server systemd[1]: cmsCollectorservice.service: Failed with result 'exit-code'.
Jan 01 11:24:02 server systemd[1]: Failed to start cmsCollectorservice.service.

[root@server ~]# /etc/rc.d/init.d/cmsCollectorservice start
-bash: /etc/rc.d/init.d/cmsCollectorservice: /bin/sh^M: bad interpreter: No such file or directory

Cause

The issue occurs when the cmsCollectorservice file has carriage-return characters which causes the error and eventually causes the service to fail.

Resolution

  1. Check for carriage-returns (^M) in the cmsCollectorService file.

    • cat -Aet /etc/init.d/cmsCollectorservice
      #!/bin/sh^M$
      #$Id$^M$
      # $Copyright (c) 2019 Veritas Technologies LLC.  All rights reserved. Veritas^M$
      # and the Veritas Logo are trademarks or registered trademarks of Veritas^M$
      # Technologies^M$
      # LLC or its affiliates in the U.S. and other countries. Other names may be^M$
      # trademarks^M$
      # of their respective owners.^M$
       ^M$
      # The Licensed Software and Documentation are deemed to be commercial computer^M$
      # software as defined in FAR 12.212 and subject to restricted rights as defined^M$
      # in FAR Section 52.227-19 "Commercial Computer Software - Restricted Rights" and^M$
      # DFARS 227.7202, et seq. "Commercial Computer Software and Commercial Computer^M$
      # Software Documentation," as applicable, and any successor regulations, whether^M$
      # delivered by Veritas as on premises or hosted services. Any use, modification,^M$
      # reproduction release, performance, display or disclosure of the Licensed Software^M$
      # and Documentation by the U.S. Government shall be solely in accordance with the^M$
      # terms of this Agreement. $^M$
      ^M$
      ===================================================
  2. Clear the carriage-returns using dos2unix
    • dos2unix /etc/init.d/cmsCollectorservice
      dos2unix: converting file /etc/init.d/cmsCollectorservice to Unix format...
  3. Verify there are no more carriage returns
    • cat -Aet /etc/init.d/cmsCollectorservice
      #!/bin/sh$
      #$Id$$
      # $Copyright (c) 2019 Veritas Technologies LLC.  All rights reserved. Veritas$
      # and the Veritas Logo are trademarks or registered trademarks of Veritas$
      # Technologies$
      # LLC or its affiliates in the U.S. and other countries. Other names may be$
      # trademarks$
      # of their respective owners.$
       $
      # The Licensed Software and Documentation are deemed to be commercial computer$
      # software as defined in FAR 12.212 and subject to restricted rights as defined$
      # in FAR Section 52.227-19 "Commercial Computer Software - Restricted Rights" and$
      # DFARS 227.7202, et seq. "Commercial Computer Software and Commercial Computer$
      # Software Documentation," as applicable, and any successor regulations, whether$
      # delivered by Veritas as on premises or hosted services. Any use, modification,$
      # reproduction release, performance, display or disclosure of the Licensed Software$
      # and Documentation by the U.S. Government shall be solely in accordance with the$
      # terms of this Agreement. $$
      $
  4. Start the cmsCollectorService
    • /opt/VRTSsfmcs/bin/cmsCollector -start

Issue/Introduction

There may be instances when the cmsCollectorservice.service may fail to start