• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    sscp-to-sql-bridge error code: 1

    Scheduled Pinned Locked Moved Mervis
    4 Posts 2 Posters 1.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Petr Helebrant
      last edited by

      I am trying to set up sscp-to-sql-bridge on external server with MariaDB. Both devices are on same network. Everything is set up according to the manual placed here:
      https://kb.unipi.technology/en:sw:01-mervis:08-sscp-bridge

      When I try to run program directly I'm stuck on this:

      /opt/unipi/tools/sscp-sql-bridge -v
      MAIN: Mervis SSCP-to-SQL bridge started
      VLIST: Variables from file "/opt/unipi/data/PLC_1db8c22a-8b00-4013-8b81-fbe880ced0a2_utf8.vlist" loaded successfully
      MAP: Variable mapping from file: "/etc/unipi/sscp-sql-bridge.d/mapping.yaml" loaded successfully.
      MAP: VLIST variables associated
      SSCP: Initialised PLC device 34384064:12346
      SSCP: Cannot connect to plc plc_1 at ip 192.168.12.2:12346, error code: 1
      MAIN: Starting polling loop
      
      

      Is there any way to debug this with more verbosity?

      aeae9058-316c-483d-b973-796a360950c7-image.png

      Is there anything more to be set up in Mervis on other place then this? Port 12346 seems to be open and listening.

      I am on Neuron L403 with Mervis 2.5.0 installed. Server is Ubuntu jammy on ARM. I had to install some outdated packages manually to meet apt integrity.

      Z 1 Reply Last reply
      Reply Quote 0
      • Z
        zdenek_rusek @Petr Helebrant
        last edited by

        @Petr-Helebrant Hello Petr,

        most probably you have your storage as read only. Please try:

        1. temporarily set partition as read-write (after restart both partitions will be rest as read-only)
        remount rw
        
        1. set partition as read-write before writing on it
        remount rw
        

        and after writing set it again as read-only

        remount ro
        
        1. permanent setup of partition as read-write (it will also alter /etc/fstab)
        remount rw -p*
        
        P 1 Reply Last reply
        Reply Quote 0
        • P
          Petr Helebrant @zdenek_rusek
          last edited by

          @zdenek_rusek said in sscp-to-sql-bridge error code: 1:

          @Petr-Helebrant Hello Petr,

          most probably you have your storage as read only. Please try:

          1. temporarily set partition as read-write (after restart both partitions will be rest as read-only)
          remount rw
          
          1. set partition as read-write before writing on it
          remount rw
          

          and after writing set it again as read-only

          remount ro
          
          1. permanent setup of partition as read-write (it will also alter /etc/fstab)
          remount rw -p*
          

          Hello @zdenek_rusek, I don't think this is the issue as I have my whole root mounted as read/writeable on server side like this.

          /dev/nvme0n1p2 on / type ext4 (rw,relatime,errors=remount-ro,stripe=32)
          
          

          Is there any way to test connection and authorization to SSCP server with something like telnet or so?

          Z 1 Reply Last reply
          Reply Quote 0
          • Z
            zdenek_rusek @Petr Helebrant
            last edited by

            @Petr-Helebrant Hello Petr, this is strange, please contacts us via email ([email protected]), we will check this deeper.
            ZR

            1 Reply Last reply
            Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post