NEWS
Инсталляция под Linux
-
Теперь при установке iobroker появились проблемы, удаление папки iodroker и очистка кэш не помогли
284_2.png -
во, у меня то же самое, очистка кэша не помогла.
-
Только что проверил на новой debian:
root@bluefox4:/opt# ls iobroker root@bluefox4:/opt# cd iobroker/ root@bluefox4:/opt/iobroker# npm install iobroker > iobroker@0.5.1 install /opt/iobroker/node_modules/iobroker > node lib/setup.js npm install iobroker.js-controller --production --silent --prefix "/opt/iobroker/node_modules/iobroker/lib/../../../" npm install iobroker.admin --production --silent --prefix "/opt/iobroker/node_modules/iobroker/lib/../../../" Write "./iobroker start" to start the ioBroker Auto-start was enabled. Write "update-rc.d -f iobroker.sh remove" to disable auto-start iobroker is started. Go to "http://ip-addr:8081" to open the admin UI. iobroker@0.5.1 node_modules/iobroker └── yargs@1.2.6 (minimist@0.1.0) root@bluefox4:/opt/iobroker# ps -A PID TTY TIME CMD 1 ? 00:00:00 init 2 ? 00:00:00 kthreadd/679991 3 ? 00:00:00 khelper/679991 89 ? 00:00:00 upstart-udev-br 97 ? 00:00:00 udevd 127 ? 00:00:00 udevd 130 ? 00:00:00 udevd 201 ? 00:00:00 upstart-socket- 1635 ? 00:00:00 named 1668 ? 00:00:00 rsyslogd 1713 ? 00:00:00 saslauthd 1714 ? 00:00:00 saslauthd 1780 ? 00:00:00 sendmail-mta 1864 ? 00:00:00 xinetd 1883 ? 00:00:00 apache2 1886 ? 00:00:00 apache2 1927 ? 00:00:00 cron 1977 ? 00:00:00 ptyserved 1980 ? 00:00:00 nginx 1981 ? 00:00:00 nginx 1988 ? 00:00:00 node 1993 tty1 00:00:00 getty 1995 tty2 00:00:00 getty 2004 ? 00:00:02 Terminal server 2295 ? 00:00:00 sshd 2354 pts/1 00:00:00 su 2355 pts/1 00:00:00 bash 2559 ? 00:00:00 io.js-controlle 2565 ? 00:00:00 io.admin.0 2571 pts/1 00:00:00 ps root@bluefox4:/opt/iobroker# root@bluefox4:/opt/iobroker# node -v v0.10.29
-
Только что проверил на новой debian `
Может такая ошибка только после ручного удаления iobroker и потом новой установки? -
Я устанавливал с нуля, единственное отличие это версии node
Вот что пишет при установке iobroker.js-controller:
root@test:/opt/iobroker# npm install iobroker.js-controller npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.37","npm":"1.4.28"}) npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.37","npm":"1.4.28"}) > ws@0.4.31 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) make: Вход в каталог `/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Выход из каталога `/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build' > ws@0.5.0 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) make: Вход в каталог `/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Выход из каталога `/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build' > iobroker.js-controller@0.5.15 install /opt/iobroker/node_modules/iobroker.js-controller > node lib/setup.js setup first creating conf/iobroker.json fs.js:654 return binding.mkdir(pathModule._makeLong(path), ^ Error: EACCES, permission denied '/opt/iobroker/node_modules/iobroker.js-controller/lib/../../../iobroker-data/' at Object.fs.mkdirSync (fs.js:654:18) at mkpathSync (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:821:20) at setup (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:903:9) at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:305:13) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) npm ERR! iobroker.js-controller@0.5.15 install: `node lib/setup.js setup first` npm ERR! Exit status 8 npm ERR! npm ERR! Failed at the iobroker.js-controller@0.5.15 install script. npm ERR! This is most likely a problem with the iobroker.js-controller package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/setup.js setup first npm ERR! You can get their info via: npm ERR! npm owner ls iobroker.js-controller npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.13.0-45-generic npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.js-controller" npm ERR! cwd /opt/iobroker npm ERR! node -v v0.10.37 npm ERR! npm -v 1.4.28 npm ERR! code ELIFECYCLE npm ERR! not ok code 0</anonymous>
-
Не может создать папку 'iobroker-data' в /opt/iobroker
EACCES, permission denied '/opt/iobroker/node_modules/iobroker.js-controller/lib/../../../iobroker-data/'
дай ручками права на папку
chmod 777 /opt/iobroker
и вызывай:
sudo npm install iobroker.js-controller
А почему ты вызываешь установку iobroker.js-controller, а не iobroker ?
-
Не может создать папку 'iobroker-data' в /opt/iobroker
дай ручками права на папку
chmod 777 /opt/iobroker ```` `
Получилось, странно, что под рутом делал и не хватило прав.
А почему ты вызываешь установку iobroker.js-controller, а не iobroker ? `
Хочу попробовать подключить WebStorm и по изучать. Может созрею на написание какого нибудь драйвера -
Ну если советов нет, то буду переустанавлиать линукс и пробовать ставить на чистый линукс.
-
Ну если советов нет, то буду переустанавлиать линукс и пробовать ставить на чистый линукс. `
sudo rm -rf /opt/iobroker mkdir /opt/iobroker sudo chmod 777 /opt/iobroker sudo npm install iobroker
-
-
Ну если советов нет, то буду переустанавлиать линукс и пробовать ставить на чистый линукс. `
sudo rm -rf /opt/iobroker mkdir /opt/iobroker sudo chmod 777 /opt/iobroker sudo npm install iobroker ```` `
после переустановки линукс, назначение прав не помогает…........
izum@izum-eM350:/opt/iobroker$ cd /opt izum@izum-eM350:/opt$ sudo mkdir iobroker izum@izum-eM350:/opt$ sudo chmod 777 /opt/iobroker izum@izum-eM350:/opt$ sudo npm install iobroker npm http GET https://registry.npmjs.org/iobroker npm ERR! Error: failed to fetch from registry: iobroker npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12 npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9) npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18) npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22) npm ERR! at Request. <anonymous>(/usr/lib/nodejs/request/main.js:212:58) npm ERR! at Request.emit (events.js:88:20) npm ERR! at ClientRequest. <anonymous>(/usr/lib/nodejs/request/main.js:412:12) npm ERR! at ClientRequest.emit (events.js:67:17) npm ERR! at HTTPParser.onIncoming (http.js:1261:11) npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31) npm ERR! You may report this log at: npm ERR! <http: bugs.debian.org/npm="">npm ERR! or use npm ERR! reportbug --attach /opt/npm-debug.log npm npm ERR! npm ERR! System Linux 3.13.0-32-generic npm ERR! command "node" "/usr/bin/npm" "install" "iobroker" npm ERR! cwd /opt npm ERR! node -v v0.6.12 npm ERR! npm -v 1.1.4 npm ERR! message failed to fetch from registry: iobroker npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/npm-debug.log npm not ok</http:></anonymous></anonymous>
-
Попробуй так, что напишет
cd /opt/iobroker sudo npm install iobroker.js-controller
-
после переустановки линукс, назначение прав не помогает…........
izum@izum-eM350:/opt/iobroker$ cd /opt izum@izum-eM350:/opt$ sudo mkdir iobroker izum@izum-eM350:/opt$ sudo chmod 777 /opt/iobroker izum@izum-eM350:/opt$ sudo npm install iobroker ```` `
Устанавливать надо в /opt/iobroker, а не в /opt
З.Ы. Вообще код какой то странный))
Уже находишься в izum@izum-eM350:/opt/iobroker$
но при этом переходишь в cd /opt
потом создаешь уже существующую директорию sudo mkdir iobroker
Разбиритесь что куда скопировать, перейти, установить…
-
после переустановки линукс, назначение прав не помогает…........
izum@izum-eM350:/opt/iobroker$ cd /opt izum@izum-eM350:/opt$ sudo mkdir iobroker izum@izum-eM350:/opt$ sudo chmod 777 /opt/iobroker izum@izum-eM350:/opt$ sudo npm install iobroker ```` `
Устанавливать надо в /opt/iobroker, а не в /opt
З.Ы. Вообще код какой то странный))
Уже находишься в izum@izum-eM350:/opt/iobroker$
но при этом переходишь в cd /opt
потом создаешь уже существующую директорию sudo mkdir iobroker
Разбиритесь что куда скопировать, перейти, установить… `
Находясь в /opt/iobroker я удалял до этого папку iobroker , по этому возвращался в /opt/ -
Попробуй так, что напишет
cd /opt/iobroker sudo npm install iobroker.js-controller ```` `
izum@izum-eM350:/opt/iobroker$ sudo npm cache clean izum@izum-eM350:/opt/iobroker$ sudo npm install iobroker.js-controller > ws@0.5.0 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) / > ws@0.4.31 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys > ws@0.4.31 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/iobroker.admin/node_modules/socket.io/node_modules/engine.io/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) > ws@0.4.31 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/iobroker.admin/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) - > iobroker.js-controller@0.5.15 install /opt/iobroker/node_modules/iobroker.js-controller > node lib/setup.js setup first sh: 1: node: not found npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian npm ERR! iobroker.js-controller@0.5.15 install: `node lib/setup.js setup first` npm ERR! Exit status 127 npm ERR! npm ERR! Failed at the iobroker.js-controller@0.5.15 install script. npm ERR! This is most likely a problem with the iobroker.js-controller package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node lib/setup.js setup first npm ERR! You can get their info via: npm ERR! npm owner ls iobroker.js-controller npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.16.0-23-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.js-controller" npm ERR! cwd /opt/iobroker npm ERR! node -v v0.10.25 npm ERR! npm -v 1.4.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/iobroker/npm-debug.log npm ERR! not ok code 0 izum@izum-eM350:/opt/iobroker$
-
node.js не доступен по команде "node"
Что происходит если в консоли написать?
izum@izum-eM350:/opt$ node
-
node.js не доступен по команде "node"
Что происходит если в консоли написать?
izum@izum-eM350:/opt$ node ```` `
izum@izum-eM350:~$ izum@izum-eM350:/opt$ node bash: izum@izum-eM350:/opt$: Нет такого файла или каталога izum@izum-eM350:~$ /opt$ node bash: /opt$: Нет такого файла или каталога izum@izum-eM350:~$
-
Создай ссылку на "node" с помощью команды "sudo ln -s /usr/bin/nodejs /usr/bin/node"
-
Создай ссылку на "node" с помощью команды "sudo ln -s /usr/bin/nodejs /usr/bin/node" `
izum@izum-eM350:/opt/iobroker$ sudo npm install iobroker.js-controller > ws@0.5.0 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) make: вход в каталог «/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build» CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: выход из каталога «/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build» npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"0.10.25","npm":"1.4.21"}) > ws@0.4.31 install /opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) make: вход в каталог «/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build» CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: выход из каталога «/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build» > iobroker.js-controller@0.5.15 install /opt/iobroker/node_modules/iobroker.js-controller > node lib/setup.js setup first creating conf/iobroker.json object system.certificates created object system.repositories created object system.config created object enum.rooms created object system.group.user created object system.group.administrator created object _design/system created object system.user.admin created object system.meta.uuid created install adapter admin object system.adapter.admin created create instance admin object system.adapter.admin.0.uptime created object system.adapter.admin.0.memRss created object system.adapter.admin.0.memHeapTotal created object system.adapter.admin.0.memHeapUsed created object system.adapter.admin.0.connected created object system.adapter.admin.0.alive created object system.adapter.admin.0 created iobroker.js-controller@0.5.15 node_modules/iobroker.js-controller ├── daemonize2@0.4.2 ├── mime@1.2.11 ├── node-schedule@0.1.13 ├── ncp@0.6.0 ├── node.extend@1.0.10 (is@0.3.0) ├── adm-zip@0.4.7 ├── yargs@1.2.6 (minimist@0.1.0) ├── request@2.38.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, oauth-sign@0.3.0, stringstream@0.0.4, tunnel-agent@0.4.0, node-uuid@1.4.3, mime-types@1.0.2, form-data@0.1.4, http-signature@0.10.1, tough-cookie@0.12.1, hawk@1.1.1) ├── tar.gz@0.1.1 (commander@1.1.1, tar@0.1.20, fstream@0.1.31) ├── socket.io@1.2.1 (debug@0.7.4, has-binary-data@0.1.3, socket.io-adapter@0.3.1, socket.io-parser@2.2.2, engine.io@1.4.3) ├── winston@0.7.3 (cycle@1.0.3, stack-trace@0.0.9, eyes@0.1.8, colors@0.6.2, async@0.2.10, pkginfo@0.3.0, request@2.16.6) ├── socket.io-client@1.2.1 (to-array@0.1.3, indexof@0.0.1, component-bind@1.0.0, debug@0.7.4, object-component@0.0.3, component-emitter@1.1.2, has-binary@0.1.5, parseuri@0.0.2, socket.io-parser@2.2.2, engine.io-client@1.4.3) └── npm@2.3.0 izum@izum-eM350:/opt/iobroker$
Вроде ошибок нет ,но http://localhost:8081/ не открывается.
-
node iobroker start