Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. ioBroker general
    4. iobroker - problem with the installation

    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

    iobroker - problem with the installation

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

      Can someone help me with installation ibroker on my cubieboard?
      I try instal based on some information:

      1. Node.js
        [as user by sudo or as root]

      curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
      sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
      reboot

      1. iobroker
        [as user or as root]

      curl -sL https://iobroker.net/install.sh | bash -

      And.. administrator panel i see on http://192.168.10.xx:8081/
      But when i try to add some Instances from Adapters tabs then it's impossible. See on log bellow:
      $ ./iobroker add modbus --host cubietruck
      NPM version: 6.4.1
      npm install iobroker.modbus@2.0.9 --production --save --prefix "/opt/iobroker" (System call)
      Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker'
      npm ERR! cb() never called!
      npm ERR! This is an error with npm itself. Please report this error at:
      npm ERR! https://npm.community

      host.cubietruck install adapter modbus
      NPM version: 6.4.1
      npm install iobroker.modbus@2.0.9 --production --save --prefix "/opt/iobroker" (System call)
      Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker'
      npm ERR! cb() never called!
      npm ERR! This is an error with npm itself. Please report this error at:
      npm ERR! https://npm.community

      host.cubietruck install adapter modbus
      NPM version: 6.4.1npm install iobroker.modbus@2.0.9 --production --save --prefix "/opt/iobroker" (System call)

      Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker'
      npm ERR! cb() never called!
      npm ERR! This is an error with npm itself. Please report this error at:
      npm ERR! https://npm.community

      host.cubietruck install adapter modbus
      ERROR: host.cubietruck Cannot install modbus
      ERROR: process exited with code 13

      =======================================================================
      iobroker 2019-06-20 13:11:07.736 info exit 13
      iobroker 2019-06-20 13:11:07.701 error host.cubietruck Cannot install modbus
      iobroker 2019-06-20 13:11:07.691 info host.cubietruck install adapter modbus
      iobroker 2019-06-20 13:11:07.651 info npm ERR! https://npm.community
      iobroker 2019-06-20 13:11:07.651 info npm ERR! This is an error with npm itself. Please report this error at:
      iobroker 2019-06-20 13:11:07.640 info npm ERR! cb() never called!
      iobroker 2019-06-20 13:11:07.624 info Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker'
      iobroker 2019-06-20 13:10:41.166 info npm install iobroker.modbus@2.0.9 --production --save --prefix "/opt/iobroker" (System call)
      iobroker 2019-06-20 13:10:41.156 info NPM version: 6.4.1
      iobroker 2019-06-20 13:10:37.983 info host.cubietruck install adapter modbus
      iobroker 2019-06-20 13:10:37.946 info npm ERR! https://npm.community
      iobroker 2019-06-20 13:10:37.946 info npm ERR! This is an error with npm itself. Please report this error at:
      iobroker 2019-06-20 13:10:37.932 info npm ERR! cb() never called!
      iobroker 2019-06-20 13:10:37.912 info Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker'
      iobroker 2019-06-20 13:10:11.309 info npm install iobroker.modbus@2.0.9 --production --save --prefix "/opt/iobroker" (System call)
      iobroker 2019-06-20 13:10:11.305 info NPM version: 6.4.1
      iobroker 2019-06-20 13:10:07.994 info host.cubietruck install adapter modbus
      iobroker 2019-06-20 13:10:07.876 info npm ERR! https://npm.community
      iobroker 2019-06-20 13:10:07.876 info npm ERR! This is an error with npm itself. Please report this error at:
      iobroker 2019-06-20 13:10:07.876 info npm ERR! cb() never called!
      iobroker 2019-06-20 13:10:07.858 info Unhandled rejection Error: EACCES: permission denied, mkdir '/home/iobroker'
      iobroker 2019-06-20 13:09:40.412 info npm install iobroker.modbus@2.0.9 --production --save --prefix "/opt/iobroker" (System call)
      iobroker 2019-06-20 13:09:38.369 info NPM version: 6.4.1
      iobroker 2019-06-20 13:09:31.903 info add modbus --host cubietruck

      I try with node6, 8 and 10 with the same effect. Where is my bug ?

      M 1 Reply Last reply Reply Quote 0
      • M
        mguc @mguc last edited by

        Finally - I found the cause of my problem 😄
        The error is in the installation script (install.sh). He's creates the user "iobroker" but does not assume the home directory: / home / iobroker (at least for me).
        The installation process looks like this:

        1. Node.js installation (as user)

        sudo apt-get --purge remove node
        sudo apt-get --purge remove nodejs
        sudo apt-get autoremove
        sudo reboot
        curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
        sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
        sudo reboot

        2 iobroker installation (as user)

        curl -sL https://iobroker.net/install.sh | bash -
        iobroker stop
        sudo mkdir /home/iobroker
        sudo chown iobroker /home/iobroker
        iobroker start

        .. done.

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

          @mguc the install script executes a command that creates the user together with the home directory. If it didn't, something must have went wrong. Do you by any chance still have the output of the installer?

          M 2 Replies Last reply Reply Quote 0
          • M
            mguc @AlCalzone last edited by

            @AlCalzone
            where can i find any installer log ?

            1 Reply Last reply Reply Quote 0
            • M
              mguc @AlCalzone last edited by

              @AlCalzone
              I found my fault. Some days ago i removed this folder (removed folder than remove iobroker user 😉 )
              And when i try to install again - in system was iobroker user then (probably) install script not created it again.

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

                @mguc Yes that makes sense

                M 1 Reply Last reply Reply Quote 0
                • M
                  mguc @AlCalzone last edited by

                  @AlCalzone
                  I reinstalled yesterday all iobroker system (now with remove user 😉 ).
                  After that install script works fine - then now i can confirm my mistake.

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

                    @mguc I added an issue to the installer repo so we can catch this problem in the future. Thanks for reporting.

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    931
                    Online

                    31.8k
                    Users

                    80.0k
                    Topics

                    1.3m
                    Posts

                    iobroker installation iobroker nodejs iobroker update
                    4
                    8
                    1398
                    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