Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Unable to download the code

2022-06-08
2022-07-04
  • princessdvlk - 2022-06-08

    Hello All,
    I am using a Raspberry Pi based PLC and Codesys version is Version 3.5 SP 17 Patch 3. I have been working on the unit for over three months now. I was able to login using the device logon credentials every time before downloading the code into PLC. But now today, I found a very weird issue. When I wanted to login to download like every other time, it asked me to enter the credentials and I did. The device got highlighted in green that means the credentials i entered were right and now it has to just allow me to download the code but all I see is that the pop up dialog to enter my credentials appear on my screen again. I entered the credentials again assuming something must be wrong and but guess what, it kept popping the same dialog to enter my credentials every 2 seconds. Now, I must have entered my credentials over a 500 times by now. But I can't download the code. Can anyone help me with this? This is very strange. I am attaching the image for reference. Please help me!

    Best Regards!

     
  • paulpotat

    paulpotat - 2022-06-30

    Hello,
    Were you able to fix this issue ? We are having the same kind of problem using CodeSys 3.5.18...

     
    πŸ‘
    1
    • princessdvlk - 2022-07-04

      First of all, I am so sorry for late reply. I just saw your message.

      Yes, I was able to fix it. But it was with Codesys V3.5 Patch 3 SP17. However, I don't think this issue has anything to do with codesys version.

      Here is what I did.

      Since my plc is based on linux system (raspberry pi), I had to first stop the plc then remove a few files and then start the plc again. The detailed description is given below.

      I first went into file manager in pi. There, I navigated through the folders in the path /var/opt/codesys.

      Here, check if you can see the files .UserMgmtRightsDB.csv, .GroupDatabase.csv, .UserDatabase.csv.
      Suppose you don't see them then go to View option in file manger and select 'show hidden files'. Now, you will be able to see these files.

      Next, go to lx terminal in pi. Type this to stop the plc 'sudo /etc/init.d/codesyscontrol stop'

      Then to remove files I typed 'sudo rm.UserDatabase.csv'
      'sudo rm.GroupDatabase.csv'
      'sudo rm.UserMgmtRightsDB.csv'

      Then to start the plc again type 'sudo /etc/init.d/codesyscontrol start'

      Now, close the lx terminal. Go back to Codesys software, try to connect to the device before you decide to load the code. You will asked to create the device user management credentials like before. Create a username and password. Note them somewhere as a precaution. You need to enter the username and password twice (as per my knowledge). Then, your device will get connected and you will be able to load the code.

      Hope this will help. Do let me know how it goes.

      Good Luck!
      Best Regards!

       
      πŸ‘
      1
      • paulpotat

        paulpotat - 2022-07-04

        Hello,
        Thank you very much for your answer !
        We ended-up re-installing the OS on the PLC that was bugged and it worked but your solution is way better (and faster) ! I'll try it if we stumble upon this bug again :)

        Thanks again for such a detailed answer, have a good day !

        BR

         
        πŸ‘
        1
        • princessdvlk - 2022-07-04

          Hi,
          Yes, reinstalling the OS of the plc is also a way. Good to hear that your issue is resolved. :)
          Have a good day!

          Best Regards!

           
        • princessdvlk - 2022-07-04

          Hi,
          Yes, reinstalling the OS of the plc is also a way. Good to hear that your issue is resolved. :)
          Have a good day!

          Best Regards!

           

Log in to post a comment.