Announcement

Collapse
No announcement yet.

Cannot start programs through web interface

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot start programs through web interface

    Hi! I can start programs through RobotinoView without a problem, but I cannot start programs through Robotino's web interface. When clicking the green triangle (start) button, it shows the red square (stop) button for a second and then jumps back to the green triangle indicating that the program is immediately stopped.
    The log / console output at the bottom of the program page doesn't show any errors. But what's strange is that there is an output saying something like "Simulation started". Why is Robotino starting a simulation?

    Did I miss a setting in the web interface? What do I have to do to start a programs through the web interface ?

  • #2
    Hi Aljosha,

    What we regularly see is that one of two things happens:
    - The file you want to run for some reason does not have the right CHMOD properties -> please compare this to programs that are working
    - The file you want to run includes "devices" added in View that need to be configured - try logging in via VNC and opening the programming manually. We are aware that the interpreter the webinterface fires up does not run all programs and we are working on this, but with low priority.


    The Webitnerface is also using REST, feel free to look into the files stored on Robotino.

    Hope this helps!

    Regards

    Christian

    Comment


    • #3
      Hi Christian,

      thanks for your tipps. I will look at them as soon as I'm back in our lab next week.
      • Currently, none of my programs work, but chmod properties is a good hint- will look at that.
      • I'm not sure which kind of devices cause problems here. Could you name some examples? Even simple programs (e.g., ones that just use the omnidirectional drive with the three axis blocks) fail.
      • I'm not quite sure what files I could look into for the Robotino REST API. Do you mean documentation or are there any config files that could come into play here? I have tested the REST API for getting an image or getting all programs - both works fine
      And btw: Is there any rationale behind the decision to not allow program execution via REST? In my opinion, that is THE one most important function that I would like to have exposed via the REST API...

      Best regards
      Aljosha

      Comment


      • #4
        Hey there,
        unfortunately. the previous tips didn't really help.
        • I checked chmod properties and ended up setting them to rwx-rwx-rwx so that all users should be able to read / write / execute -> No changes. I still can't execute programs over the web UI.
        • I saw that the programs folder was owned by "robotino", but the individual programs were owned by root. I changed ownership to robotino -> No changes
        @Christian: What exactly do you mean by "open the program manually"? Do you mean starting the interpreter? How can I open a (binary) program file? Why are there even two different interpreters?
        And what do you mean by "web interface is using REST, look into the files"? What files?

        When I start a program, this is what the log at the bottom of the programs page shows:
        Initial working directory: "/"
        New working directory: "/opt/robview4/bin"
        RobotinoView Interpreter Version 4.2.0
        Loading types...
        done.
        Loading actor types...
        done.
        Loading devices...
        done.
        Loading project ""/home/robotino/programs/myVorwaerts.rvwx""...
        success!
        done.
        Connecting to device "Robotino®"...
        done.
        Successfully connected to all devices.
        Project ready!
        Starting program...
        done.
        Starting simulation!
        EDIT: In the journal, there's the following entry when I try to execute a program:
        Code:
        4.11.2021, 12:29:52    restapid[755]    12:26:08.938 | ScriptRunner::on_process_error /usr/bin/robview_interpreter : error = 1
        Any tips on how to diagnose and fix this are greatly appreciated!
        Last edited by aljosha; 11-04-2021, 01:40 PM.

        Comment


        • #5
          Please try to run the interpreter on Robotino from the command line

          sudo su
          /opt/robview4/bin/robview4_interpreter -f /home/robotino/programs/myVorwaerts.rvwx

          Comment


          • #6
            Alright... I tried to run the interpreter manually and this is the output I got:
            Code:
            ino/programs/myVorwaerts.rvwx
            Initial working directory: "/home/robotino"
            New working directory: "/opt/robview4/bin"
            RobotinoView Interpreter Version 4.2.0
            
            Loading types... done.
            Loading actor types... done.
            Loading devices... done.
            
            Loading project ""/home/robotino/programs/myVorwaerts.rvwx""... success!
            done.
            
            Connecting to device "Robotino®"... done.
            
            Successfully connected to all devices.
            
            Project ready!
            Starting program... done.
            Starting simulation!
            [B]Speicherzugriffsfehler[/B]
            I guess that last line is were my problem is... Any ideas on what might cause this? As I said before, I changed chmod properties to "rwx" for all users and the folder is also owned by user "robotino"...

            (Speicherzugriffsfehler = "memory access exception" for all the non-German speakers)

            Comment


            • #7
              memory access exception probably arises from a library version mismatch. Are you using an unmodified Robotino image or did you install/upgrade some packages manually?

              Comment


              • #8
                I'm using an unmodified image which was just recently (ca. 6-8 weeks) installed so it should be a pretty recent version (have to check for the exact version). Only thing we did after the update was change the close lid action as per https://wiki.openrobotino.org/index....d_Close_Action

                Comment


                • #9
                  please post your
                  myVorwaerts.rvwx

                  Comment


                  • #10
                    Hey, please find the program attached.
                    Robotino is running on "Version 5.0.3-smartsoft-3.1.1". The program was created using RobotinoView 3.1.3.
                    Attached Files

                    Comment


                    • #11
                      I opend the program and got an error. I saved it and now I do not get an error any more when opening it. Maybe thats the reason for your problems. Please try the attached program.
                      Attached Files

                      Comment


                      • #12
                        Thanks for your quick response. I tried it and got exactly the same output (memory access exception).
                        I then created a fresh program using exactly the same function blocks (3 motors + omnidirectional drive), just one simple step. And this one strangely leads to a different log output:

                        Initial working directory: "/home/robotino"
                        New working directory: "/opt/robview4/bin"
                        RobotinoView Interpreter Version 4.2.0

                        Loading types... done.
                        Loading actor types... done.
                        Loading devices... done.

                        Loading project ""/home/robotino/programs/yetAnotherSimpleTest.rvwx""... success!
                        done.

                        Connecting to device "Robotino®"... failed.

                        Error: could not connect to all devices! Program will not run.

                        Comment


                        • #13
                          Please try installing


                          sudo dpkg -i robview4_4.4.2_amd64.deb

                          Comment


                          • #14
                            Damn, I can't believe it but that worked! I just installed it and without reloading any daemons or even rebooting robotino I could start my program through the web UI. Thank you so much!
                            But I'm curious: Why is that .deb not included in the latest version? And is there any documentation from which I could have gotten this info?

                            Comment


                            • #15
                              Robotino View is under development all the time. So this deb or a later one will be included in the next image. I send you an internal release.

                              Comment

                              Working...
                              X