Adding PLC to the List view resolves in Unknown Error

janber0206
2025-02-21
2025-02-24
  • janber0206 - 2025-02-21

    Hello,
    I try to add one of my PLC from the Gateways to the List view.
    The Gateway is shown me as online, also i have other remote tools to verify the Internet connection is working.
    I do the Network Scan and the Gateway shows up, i select it and click on "Add to Server".
    Then I type in Username and password and click on confirm. There it shows me the "Unkown Error", see screenshot.
    If I use the wrong credentials it gives me the error message for this.
    Other Devices work fine it's just this one.
    Greetings
    Jannis

     
  • janber0206 - 2025-02-24

    Problem Solved
    The Problem was within the Usermanagment.
    There should be 6 files for the Usermanagment in /var/opt/codesys/

    .UserMgmtDB.csv

    .UserMgmRightstDB.csv

    .GroupDatabase.csv

    .UserDatabase.csv_

    .GroupDatabase.csv_

    .UserDatabase.csv

    The file .UserMgmtDB.csv was missing.
    I moved the other files in a savefolder.

    Full Step by step instructions

    1. stop the runtime with

    sudo /etc/init.d/codesyscontrol stop

    1. rename the following files on the PI: (or save them and then delete them) in this directory: /var/opt/codesys/

    .UserMgmtDB.csv

    .UserMgmRightstDB.csv

    .GroupDatabase.csv

    .UserDatabase.csv_

    .GroupDatabase.csv_

    .UserDatabase.csv

    1. then restart the Runtime:

    sudo /etc/init.d/codesyscontrol start

    1. now reconnect the PLC via the Automation Server - here you will be asked to create a new CODESYS user password,

    The user management files deleted above are then created again (in /var/opt/codesys/ on the PI).

     

Log in to post a comment.