CONTROL-M/Server fails to start correctly with semaphore error messages in various proclog files.

Version 6
    Share:|

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Control-M/Server for UNIX and Microsoft Windows


    COMPONENT:

    Control-M/Server for UNIX and Microsoft Windows


    APPLIES TO:

    Control-M/Server for UNIX and Microsoft Windows



    PROBLEM:

     

     

      
       CONTROL-M/Server for UNIX and Microsoft Windows (version 6.4.01)
      
       CONTROL-M/Server for UNIX and Microsoft Windows (version 7.0.00)
    CONTROL-M/Server for UNIX and Microsoft Windows (version 8.0.00)
      
      All Unix operating system
      
      The files located  under $home/ctm_server/local_dir might contain incorrect information or either being corrupted, preventing CONTROL-M/Server to start correctly 

     


    SOLUTION:

     

    Legacy ID:KA315206

      

     

      
     
      The CONTROL-M/Server for UNIX and Microsoft Windows (version 6.4.01 and 7.0.00)  uses posix semaphores ( named semaphores )
      
      There is a file repository of the semaphores used by the controlm server  ( 2 files or more  )
    it is located under :
    $home/ctm_server/local_dir
      
     
      These files might contain incorrect informations or either being corrupted
      
      It exist at least three different problems ( this list is not exhaustive and maybe extended  ) :
      
        
      
      A) $home/ctm_server/proclog/SUxxxx  files state :
      
      SU: spv_initialize: OS_sem_op:Failed in semop semaphore id 1343495 errno=13 Permission denied
      
        
      
      B)$home/ctm_server/proclog/RTxxxx  files state :
      
      1127 21:26:08.98 RT: os_sem_find_existing_sem_id: Failed to find field separator in line '
    1127 21:26:08.99 RT: os_sem_find_existing_sem_id: Failed to find field separator in line '
    1127 21:26:33.88 u_ecaprflag: os_sem_find_existing_sem_id: Failed to find field separator in line '
      
        
      
      C) $home/ctm_server/proclog/RTxxxx  files state :
      
      0921 15:31:17.00 RT: SERVER 6.4.01.100 - folders 1650 and 1662 - Wed Mar 11 10:40:58 IST 2009
    0921 15:31:17.28 RT: OS_FILE_open: open file(/controlm/srv_6.4.01/ctm_server/local_dir/tmp_semaphore_ids) - errno=13
    0921 15:31:17.28 RT: os_sem_remove_key_and_sem_id: Failed to open the file /controlm/srv_6.4.01/ctm_server/local_dir/tmp_semap
    hore_ids. rc = 11
    0921 15:31:17.28 RT: OS_sem_create:Failed to delete semaphore 12582930
    0921 15:31:17.29 RT: OS_FILE_open: open file(/controlm/srv_6.4.01/ctm_server/local_dir/tmp_semaphore_ids) - errno=13
    0921 15:31:17.29 RT: os_sem_remove_key_and_sem_id: Failed to open the file /controlm/srv_6.4.01/ctm_server/local_dir/tmp_semap
    hore_ids. rc = 11
    0921 15:31:17.29 RT: OS_sem_create:Failed to delete semaphore 12582930
      
     
      The workaround is :
      
      1) stop the configuration agent : shut_ca
      
      2) stop controlm server         : shut_ctm
      
      3) check that there is no orphan processes , otherwise , kill it
      
      4) check there is no orphan ipc for the controlm server account :
      
      ipcs -s | grep $CONTROLM_OWNER
      
      if there is remaining ipc owned by the controlm server account  :
    run from the controlm server account :
    clean_semaphores
      
      5)make a copy of the files located under $home/ctm_server/local_dir
     delete the files :
     rm ctm_server/local_dir/*
      
      6) Clean the processes flags repository :
      
      init_prflag
      
      7)
    restart the controlm server : start_ctm
      
      

     


    Article Number:

    000094159


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles