NEWS
iobroker - problem with the installation
-
Can someone help me with installation ibroker on my cubieboard?
I try instal based on some information:- 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- 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.communityhost.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.communityhost.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.communityhost.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 cubietruckI try with node6, 8 and 10 with the same effect. Where is my bug ?
- Node.js
-
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:- 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 reboot2 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.
-
@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?
-
@AlCalzone
where can i find any installer log ? -
@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. -
@mguc Yes that makes sense
-
@AlCalzone
I reinstalled yesterday all iobroker system (now with remove user ).
After that install script works fine - then now i can confirm my mistake. -
@mguc I added an issue to the installer repo so we can catch this problem in the future. Thanks for reporting.