Automic Workload Automation

 View Only
  • 1.  U00022028 Unable to open file './uc4.smc', error code: '2'

    Posted Jun 29, 2019 10:22 AM
    Hi All,

    we installed an AIX agent on a server and while starting the service manager this error popped up.
    U00022028 Unable to open file './uc4.smc', error code: '2'

    as far as i understand the uc4.smc file, creates automatically when we start the services, but it did not.
    could someone please suggest what is the cause.
    below are the logs.

    20190628/111438.409 - U00022000 Automic Service Manager, Version '12.0.1+build.784' (changelist '1482141744') started.
    20190628/111438.409 - U00022045 Build Date: '2017-01-19', '11:15:09'
    20190628/111438.409 - U00022024 The Service Manager was started with INI-file './ucybsmgr.ini'
    20190628/111438.409 - -------------------------------------------------------------------------------------
    20190628/111438.409 - [GLOBAL]
    20190628/111438.409 - language=(E,D)
    20190628/111438.409 - logging=../temp/SMgr_log_##.txt
    20190628/111438.409 - logcount=5
    20190628/111438.409 - helplib=./uc.msl
    20190628/111438.409 - helpcache=all
    20190628/111438.409 - port=8871
    20190628/111438.409 - ; reuseaddr=1
    20190628/111438.409 - restart_limit=(60,3)
    20190628/111438.409 -
    20190628/111438.409 - [TRACE]
    20190628/111438.409 - file=../temp/SMgr_trace.txt
    20190628/111438.409 - cmd=0
    20190628/111438.409 -
    20190628/111438.409 - [Destination UC4]
    20190628/111438.409 - deffile=./uc4.smd
    20190628/111438.409 - cmdfile=./uc4.smc
    20190628/111438.409 -
    20190628/111438.409 -
    20190628/111438.409 - [Destination AUTODEV]
    20190628/111438.409 -
    20190628/111438.409 - deffile=./uc4.smd
    20190628/111438.409 - cmdfile=./uc4.smc
    20190628/111438.409 - -------------------------------------------------------------------------------------
    20190628/111438.410 - U00022046 Service Manager has been started on Host 'emsrib02' ('172.16.76.19') with process ID '35913752'.
    20190628/111438.410 - U00022044 Real user '0' and effective user '0'.
    20190628/111438.410 - U00022025 The file './uc4.smd' containing the definitions will be opened and interpreted.
    20190628/111438.410 - U00022027 The sub-service 'Aix Agent' was installed.
    20190628/111438.410 - U00022026 The command file './uc4.smc' containing the statements will be opened and interpreted.
    20190628/111438.410 - U00022028 Unable to open file './uc4.smc', error code: '2'
    20190628/111438.410 - No such file or directory
    20190628/111438.410 - U00022032 'TCP' socket with port '8871' successfully created.
    20190628/111438.410 - U00022032 'UDP' socket with port '8871' successfully created.
    20190628/111438.410 - U00022017 Automic Service Manager Version '12.0.1+build.784' ready.


  • 2.  RE: U00022028 Unable to open file './uc4.smc', error code: '2'
    Best Answer

    Posted Jul 01, 2019 08:30 AM
    Edited by shani kushwaha Jul 02, 2019 04:45 AM
    howdy,

    a) you defined 2 different phrases [Destination UC4] and [Destination AUTODEV] but the file names are the same.
    b) SMGR does not fine the smd file in its bin directory: No such file or directory -- Did you start the SMGR with the correctly spelled Phrase?

    cheers, Wolfgang

    ------------------------------
      
    ------------------------------



  • 3.  RE: U00022028 Unable to open file './uc4.smc', error code: '2'

    Posted Dec 09, 2020 04:56 AM
      |   view attached
    Hi, 
    I have the same issue and while looking for solution I saw this post.
    I can't seem to find the uc4.smc file in the installation files, is it under another name? or where I should find it?
    I'm installing Linux agent on Centos 7. I attached the list of file in the bin directory after the unpack of the tar file.

    Thank you,
    Omer

    ------------------------------
    Product Manager
    Ness technologies
    ------------------------------



  • 4.  RE: U00022028 Unable to open file './uc4.smc', error code: '2'

    Posted Jul 01, 2019 09:58 AM
    Edited by Jason McClellan Jul 02, 2019 08:29 AM
    howdy,

    you defined 2 different Phrases - [Destination UC4] and [Destination AUTODEV] with the same file names.

    make sure they are different e.g. uc4.smd and autodev.smd AND they are located in your SMGR's bin directory

    cheers, Wolfgang

    ------------------------------
    removed
    ------------------------------



  • 5.  RE: U00022028 Unable to open file './uc4.smc', error code: '2'

    Posted Jul 02, 2019 08:38 AM
    Hi @Frank Muffke

    We had to create a new file and the solution worked. I did not try the solution you provided, however it looks more logical.
    I will test this in upcoming installations.

    Thanks
    Shani​


  • 6.  RE: U00022028 Unable to open file './uc4.smc', error code: '2'

    Broadcom Employee
    Posted Dec 10, 2020 01:20 AM
    Hi

    What we do is create an empty uc4.smc file as part of the installation.

    Works for us

    Regards

    ------------------------------
    Senior Consultant
    CA Southern Africa
    Cape Town
    South Africa
    ------------------------------



  • 7.  RE: U00022028 Unable to open file './uc4.smc', error code: '2'

    Posted Dec 10, 2020 02:34 AM
    Thank you.
    Can i copy the uc4.smc file content from my windows machine and paste to the new file I create?

    Thanks in advance,
    Omer

    ------------------------------
    Product Manager
    Ness technologies
    ------------------------------