Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Visualization
    4. Node-Red Adapter: Error: EACCES: permission denied

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Node-Red Adapter: Error: EACCES: permission denied

    This topic has been deleted. Only users with topic management privileges can see it.
    • Bit Mage
      Bit Mage last edited by

      Hello,
      I am using a Linux system with IO-Broker and Node-Red.
      iobroker V6.10.1
      node-red v4.0.3

      I created a ".json" on my linux system under "/home/bitmage/x.json". I am trying to read the file inside Node-Red and I am always getting the following fault: "Error: EACCES: permission denied, open '/home/bitmage/x.json'".

      I did not find any solution in the internet. I opened a post on Node-red forum, but the community said I should ask here, because it seems to be a permission thing of the iobroker.

      My target is to read a .json file with the "read file" node and use the information in node-red.

      I saw this post here: Node-red-contrib-persist on DietPi : EACCES: permission denied, open '/root/data/persistence.json' - #46 by devifast

      but my /mnt folder is empty.

      Thank you in advance

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Bit Mage last edited by

        @bit-mage

        Put it in /home/iobroker and change the owner of the file to iobroker:iobroker.

        Bit Mage 1 Reply Last reply Reply Quote 1
        • Bit Mage
          Bit Mage @Thomas Braun last edited by

          @thomas-braun

          First of all thank you for your reply. Really cool from you.

          When I try to move the file into the folder "/home/iobroker" my linux system says "permission denied".

          I then tried the sudo chown command for the file and the the new user and group is now iobroker:iobroker.
          I can see it in my terminal that the user has changed correctly.

          However I still can not move the file into the path: "/home/iobroker".
          Do you know what I am missing?

          Bit Mage Thomas Braun 2 Replies Last reply Reply Quote 0
          • Bit Mage
            Bit Mage @Bit Mage last edited by

            @bit-mage @Thomas-Braun

            Ahhh I found out by myself and it is working now!

            I used the command " sudo mv" command to move the file 🙂

            YOU ARE A GIANT! TYVM!

            Bit Mage 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Bit Mage last edited by

              @bit-mage sagte in Node-Red Adapter: Error: EACCES: permission denied:

              Do you know what I am missing?

              Proper rights...
              Your user 'bitmage' should be member of group 'iobroker' and therefore able to write into /home/iobroker.
              Check it:

              groups
              

              as user 'bitmage' gives?

              Bit Mage 1 Reply Last reply Reply Quote 0
              • Bit Mage
                Bit Mage @Bit Mage last edited by

                @bit-mage @Thomas-Braun

                You dont accept crypto as donation?
                We all use crypto, right?

                1 Reply Last reply Reply Quote 0
                • Bit Mage
                  Bit Mage @Thomas Braun last edited by

                  @thomas-braun Thank you - i added the user now too 🙂 Everything is working and I can read the file. Awesome 🙂

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  810
                  Online

                  31.8k
                  Users

                  80.0k
                  Topics

                  1.3m
                  Posts

                  2
                  7
                  1153
                  Loading More Posts
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes
                  Reply
                  • Reply as topic
                  Log in to reply
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                  The ioBroker Community 2014-2023
                  logo