Clean old license into an image SD

jbunel
2019-10-14
2025-11-17
  • jbunel - 2019-10-14

    Hello.
    I restore a raspbain SD image for all my new devices.
    This image contains an old license of the original device.
    What must be done to clean the old licenses before install the new one ?

    Thank you.

     
  • eschwellinger

    eschwellinger - 2019-10-14

    Hi,
    you need to:
    1. delete the cmact_licesen directory ( or it's content)
    2. then restart the plc
    3. - > apply the new license.

    BR
    Edwin

    IMG: del_cmact_license.png

     
    • DavidBo - 2025-11-17

      That might not be enough
      using CODESYS V3.5 SP20 and
      CODESYS Control for Raspberry Pi MC SL
      version: 4.11
      I deleted .cmact_license directory.
      I installed new license and the dialog box said it was done successfully, but in reality it was not.
      What more should be deleted

      5:/var/opt/codesys$ ls -la
      total 1948
      drwxr-xr-x 10 root root    4096 Nov 17 12:29 .
      drwxr-xr-x  5 root root    4096 Jul 30  2020 ..
      -rw-r--r--  1 root root  100014 Nov 17 12:08 .Audit_0.log
      -rw-r--r--  1 root root  100040 Nov 17 11:30 .Audit_1.log
      -rw-r--r--  1 root root  100062 Nov 17 09:18 .Audit_2.log
      -rw-r--r--  1 root root   66260 Nov 17 12:36 .Audit.log
      drwxr-xr-x  2 root root    4096 Mar 30  2020 backup
      -rw-r--r--  1 root root    2640 Feb 22  2024 bacstac.ini
      drwxr-xr-x  4 root root    4096 Mar 30  2020 cert
      drwxr-xr-x  2 root root    4096 Nov 17 12:29 .cmact_licenses
      drwxr-xr-x  2 root root    4096 Mar 30  2020 _cnc
      -rw-r--r--  1 root root 1000088 Nov 17 08:35 codesyscontrol_0.log
      -rw-r--r--  1 root root  422521 Nov 17 12:30 codesyscontrol.log
      -rw-r--r--  1 root root     355 Nov 17 12:29 .GroupDatabase.csv
      -rw-r--r--  1 root root     355 Nov 17 12:19 .GroupDatabase.csv_
      drwxr-xr-x  3 root root    4096 Nov 17 11:16 OPCUAServer
      drwxr-xr-x  6 root root    4096 Mar 30  2020 .pki
      drwxr-xr-x  9 root root    4096 Nov 17 11:16 PlcLogic
      -rwxr-xr-x  1 root root     156 Mar 30  2020 rts_set_baud.sh
      -rw-r--r--  1 root root   20736 Feb 22  2024 .SoftContainer_CmEmbedded.wbb
      -rw-r--r--  1 root root   12445 Nov 17 09:06 SysFileMap.cfg
      -rw-r--r--  1 root root    1983 Feb 22  2024 .UFC_SoftContainer_CmEmbedded.WibuC                                                  mLif
      -rw-r--r--  1 root root     646 Nov 17 09:51 .UserDatabase.csv
      -rw-r--r--  1 root root     646 Nov 17 09:51 .UserDatabase.csv_
      -rw-r--r--  1 root root   17305 Nov 17 12:29 .UserMgmtRightsDB.csv
      drwxr-xr-x  2 root root    4096 Mar 30  2020 visu
      -rw-r--r--  1 root root   32684 Feb  8  2023 WibuCtxt.ctx
      
       
  • jbunel - 2019-10-21

    Hi Edwin.
    Thank you very much. It work's fine.

    BR.

     

Log in to post a comment.