Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. ioBroker general
    4. EACCES: permission denied

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    EACCES: permission denied

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

      Error EACCES: permission denied happens when I try to install adapters.

      root@wirenboard-AUCPMJ6J:~# iobroker install mqtt
      sudo: unable to resolve host wirenboard-AUCPMJ6J: No such file or directory
      NPM version: 6.11.3
      npm install iobroker.mqtt@2.0.4 --loglevel error --prefix "/opt/iobroker" (System call)
      npm ERR! code EACCES
      npm ERR! syscall mkdir
      npm ERR! path /home/iobroker
      npm ERR! errno -13
      npm ERR! Error: EACCES: permission denied, mkdir '/home/iobroker'
      npm ERR!  { [Error: EACCES: permission denied, mkdir '/home/iobroker']
      npm ERR!   cause:
      npm ERR!    { Error: EACCES: permission denied, mkdir '/home/iobroker'
      npm ERR!      errno: -13,
      npm ERR!      code: 'EACCES',
      npm ERR!      syscall: 'mkdir',
      npm ERR!      path: '/home/iobroker' },
      npm ERR!   isOperational: true,
      npm ERR!   stack: 'Error: EACCES: permission denied, mkdir \'/home/iobroker\'',
      npm ERR!   errno: -13,
      npm ERR!   code: 'EACCES',
      npm ERR!   syscall: 'mkdir',
      npm ERR!   path: '/home/iobroker' }
      npm ERR!
      npm ERR! The operation was rejected by your operating system.
      npm ERR! It is likely you do not have the permissions to access this file as the current user
      npm ERR!
      npm ERR! If you believe this might be a permissions issue, please double-check the
      npm ERR! permissions of the file and its containing directories, or try running
      npm ERR! the command again as root/Administrator.
      

      I've found this topic https://forum.iobroker.net/topic/17206/javascript-adapter-lässt-sich-nicht-mehr-installieren and tried to follow recomendations from it:

      sudo chmod 777 /opt/iobroker
      sudo chown -R $(whoami) ~/.npm
      sudo chown -R $(whoami) ~/.config
      sudo chown -R $(whoami) /opt/iobroker
      

      also, as alternative:

      sudo chown -R iobroker /opt/iobroker
      

      All was useless.

      Could you help to solve the problem?

      1 Reply Last reply Reply Quote 0
      • arteck
        arteck Developer Most Active last edited by

        check this

        curl -sL https://iobroker.net/fix.sh | bash -
        
        1 Reply Last reply Reply Quote 0
        • Akra Bato
          Akra Bato last edited by Akra Bato

          I made it. Problem still exists.

          1 Reply Last reply Reply Quote 0
          • arteck
            arteck Developer Most Active last edited by

            @Akra-Bato sagte in EACCES: permission denied:

            root@wirenboard-AUCPMJ6J:~# iobroker install mqtt

            this is wron also

            check from

            cd /opt/iobroker
            iobroker install mqtt
            
            AlCalzone 1 Reply Last reply Reply Quote 0
            • Akra Bato
              Akra Bato last edited by Akra Bato

              I think the problem is that iobroker don't have rights to make any changes in /home/iobroker directory,
              although I work under root.

              arteck 1 Reply Last reply Reply Quote 0
              • arteck
                arteck Developer Most Active @Akra Bato last edited by

                @Akra-Bato the folder /home/iobroker is the User folder.... here OK
                the install folder is /opt/iobroker .. OK also..

                1 Reply Last reply Reply Quote 0
                • Akra Bato
                  Akra Bato last edited by

                  I think the problem is that iobroker don't have rights to make any changes in /home/iobroker directory,
                  although I work under root.
                  I made some subdirectories manually, but it continues to display error messages with other subdirectories.

                  1 Reply Last reply Reply Quote 0
                  • AlCalzone
                    AlCalzone Developer @arteck last edited by AlCalzone

                    @arteck sagte in EACCES: permission denied:

                    iobroker install mqtt

                    That command can be executed anywhere. Only for npm install you have to be careful.

                    @Akra-Bato
                    Does this help?

                    sudo chown -R iobroker:iobroker /home/iobroker
                    sudo chmod -R 755 /home/iobroker
                    

                    Did you have any user named iobroker before installing?

                    Akra Bato 1 Reply Last reply Reply Quote 0
                    • Akra Bato
                      Akra Bato @AlCalzone last edited by

                      @AlCalzone , thank you! I solved the problem.

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      992
                      Online

                      31.7k
                      Users

                      79.6k
                      Topics

                      1.3m
                      Posts

                      adapters mqtt permission
                      3
                      9
                      3485
                      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