Login problem with FileTransfer on Raspberry Pi 5

fenicklar
2024-03-18
2026-08-18
  • fenicklar - 2024-03-18

    Hello everyone,

    I'm currently trying to set up a FileTransfer function from a Webvisu to my Raspberry Pi 5 on Codesys 3.5 SP 19 Patch 6.

    I went in the files CODESYSControl.cfg and CODESYSControl_User.cfg and added :
    [CmpWebServerHandlerV3]
    AllowFileTransferServices=1

    And it seems to be working. However, I cannot access my several Webvisu without putting my login. That's a problem because one of my webvisu is in kiosk mode on the raspberry itself and there is nokeyboard attached, it's just an information screen, but I can't view it.

    Is there a wey to enable the File Transfer without requiring to login ?

    Thank you for your time

     
  • albertocamina - 2024-04-27

    Sorry about the repeated post by the way...

     
  • eschwellinger

    eschwellinger - 2024-04-28

    maybe to add
    [CmpWebServerHandlerV3]
    CallVisuServicesDirectly=0
    would help

     
    • albertocamina - 2024-06-03

      Thanks @eschwellinger!

      So my settings look like this on CODESYSControl_User.cfg:

      [CmpWebServerHandlerV3]
      AllowFileTransferServices=1
      CallVisuServicesDirectly=0

      Sadly, is still asking for user and password as soon webvisu is loaded...

      Any clue?

      Many thanks!

       
    • albertocamina - 2024-09-24

      Dear @eschwellinger, I have been testing for some time and still i cannot find a sollution for this one.

      Any hint?

      Many thanks!:)

       
  • eschwellinger

    eschwellinger - 2024-09-26

    which Visu versions are you using and which runtime version?

     
  • albertocamina - 2024-10-23

    Dear eschwellinger, sorry for the late repply. Just saw your answer nor. We are using:
    -CODESYS V3.5 SP19 Patch 2
    -Compiler version - 3.5.19.20
    -Visulaization Profile: 4.6.0.0
    -CODESYS Control for Raspberry Pi 64 SL 4.12.0.0

    All the best!

     
  • lmarmonti - 2026-08-14

    Hello everyone,
    I have the same problem.

    I have a Linux-based system with CODESYS 3.6.22.20, and I need to download some files from the external web panel.
    I have enabled:
    [CmpWebServerHandlerV3]
    AllowFileTransferServices=1

    In this case, I can see the login page when the web panel connects to the device.
    I can't disable the device user management access because I need to prevent software modifications.
    Do you have any ideas?

    Regards,

     
  • jasonhogan - 2026-08-15

    That’s a classic CODESYS quirk. As soon as you enable AllowFileTransferServices=1, the web server locks down and demands authentication for everything, including WebVisu sessions. Since you're on a Raspberry Pi / Linux, trying to make the built-in CODESYS web server do both secure file handling and unauthenticated kiosk visu is usually a losing battle. A couple of ways to get around this: The cleaner route (separate the jobs): Turn AllowFileTransferServices back off in the config so your kiosk WebVisu opens freely without any login prompts. Then, handle the file download outside of CODESYS β€” just run a dead-simple Nginx/lighttpd file server or a tiny Python script on the Pi pointed at your export folder (/var/opt/codesys/...). That way your PLC security stays intact, and the kiosk screen just works. If you really want it through CODESYS: Check your Device -> Users and Groups in the IDE. Make sure the Everyone / Anonymous user group actually has explicit view permissions checked for the Visualization. Sometimes when file services are toggled, anonymous users lose the default visu-read rights and get booted straight to the login dialog. URL / Browser trick for kiosk: If the Pi is just opening a local browser on startup, you can sometimes pass the basic credentials in the browser launch script or use a small reverse proxy on localhost to inject the headers automatically so you don't see the popup. Honestly, running a lightweight HTTP/FTP endpoint on Linux (option 1) is by far the least headache.

     
  • lmarmonti - 2026-08-18

    Thanks.
    If I understand correctly, this is a known historical CODESYS bug

     
  • lmarmonti - 2026-08-18
     

    Last edit: lmarmonti 2026-08-18

Log in to post a comment.