ioBroker.esphome
ioBroker.esphome copied to clipboard
Installation fails with npm code 1.
I tried several times to install the adapter via the github symbol of iobroker admin panel. I updated all dependencys i cound find in the container but it still does not work and i can not make any sense out of the log file.
I use iobroker in a docker container running on a RPI4.
0 verbose cli /usr/bin/node /usr/bin/npm
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 6ms
5 timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 11ms
6 timing config:load:builtin Completed in 11ms
7 timing config:load:cli Completed in 47ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 28ms
10 timing config:load:file:/opt/iobroker/.npmrc Completed in 18ms
11 timing config:load:user Completed in 19ms
12 timing config:load:file:/usr/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 2ms
14 timing config:load:validate Completed in 1ms
15 timing config:load:credentials Completed in 3ms
16 timing config:load:setEnvs Completed in 3ms
17 timing config:load Completed in 126ms
18 timing npm:load:configload Completed in 127ms
19 timing npm:load:mkdirpcache Completed in 3ms
20 timing npm:load:mkdirplogs Completed in 1ms
21 verbose title npm install DrozmotiX/ioBroker.esphome#b6adb149202b81607fe1d726bbe7ffa6717d2352
22 verbose argv "install" "DrozmotiX/ioBroker.esphome#b6adb149202b81607fe1d726bbe7ffa6717d2352"
23 timing npm:load:setTitle Completed in 3ms
24 timing config:load:flatten Completed in 12ms
25 timing npm:load:display Completed in 15ms
26 verbose logfile logs-max:10 dir:/opt/iobroker/.npm/_logs
27 verbose logfile /opt/iobroker/.npm/_logs/2022-09-04T19_59_20_253Z-debug-0.log
28 timing npm:load:logFile Completed in 18ms
29 timing npm:load:timers Completed in 0ms
30 timing npm:load:configScope Completed in 0ms
31 timing npm:load Completed in 172ms
32 timing arborist:ctor Completed in 5ms
33 silly logfile start cleaning logs, removing 3 files
34 silly logfile done cleaning log files
35 timing idealTree:init Completed in 2599ms
36 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules/iobroker.admin
37 http fetch GET 200 https://codeload.github.com/DrozmotiX/ioBroker.esphome/tar.gz/b6adb149202b81607fe1d726bbe7ffa6717d2352 1265ms (cache revalidated)
38 timing idealTree Completed in 106647ms
39 timing command:install Completed in 106726ms
40 verbose stack Error: git dep preparation failed
40 verbose stack at ChildProcess.
49 error × Getting requirements to build wheel did not run successfully.
49 error │ exit code: 1
49 error ╰─> [29 lines of output]
49 error
49 error =============================DEBUG ASSISTANCE==========================
49 error If you are seeing an error here please try the following to
49 error successfully install cryptography:
49 error
49 error Upgrade to the latest pip and try again. This will fix errors for most
49 error users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
49 error =============================DEBUG ASSISTANCE==========================
49 error
49 error Traceback (most recent call last):
49 error File "/opt/iobroker/.npm/_cacache/tmp/git-clone2LCGlO/python_modules/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
49 error note: This error originates from a subprocess, and is likely not a problem with pip.
49 error error: subprocess-exited-with-error
49 error
49 error × Getting requirements to build wheel did not run successfully.
49 error │ exit code: 1
49 error ╰─> See above for output.
49 error
49 error note: This error originates from a subprocess, and is likely not a problem with pip.
49 error npm ERR! code 1
49 error npm ERR! path /opt/iobroker/.npm/_cacache/tmp/git-clone2LCGlO
49 error npm ERR! command failed
49 error npm ERR! command sh /tmp/install-478da927.sh
49 error
49 error npm ERR! A complete log of this run can be found in:
49 error npm ERR! /opt/iobroker/.npm/_logs/2022-09-04T19_59_35_161Z-debug-0.log
50 verbose exit 1
51 timing npm Completed in 108439ms
52 verbose unfinished npm timer reify 1662321561924
53 verbose unfinished npm timer reify:loadTrees 1662321561969
54 verbose unfinished npm timer idealTree:userRequests 1662321564584
55 verbose code 1
56 error A complete log of this run can be found in:
56 error /opt/iobroker/.npm/_logs/2022-09-04T19_59_20_253Z-debug-0.log<
I guess its the 32bit problem mentioned in the iobroker forums here: https://forum.iobroker.net/topic/54265/esphome-error-process-exited-with-code-25/108 -> It seems ESPHOME adapter will not install when the used Raspberry OS is a 32bit one (like ARMv71 , you see when you do a "uname -m" on raspberry), there is often a problem writing to the /tmp/ folder (permission denied). - As soon as the Host-OS is a 64bit one (like ARMv8 on raspberry) the installation of the ESPHOME adapter will run fine. - You mentioned you are running this inside a docker container on a RPI4, so please check if there is a chance this will also fix if you get the container/RPI4 to 64bit. So at the moment the only way to get it running is to make a iobroker BACKUP with the backup-adapter, reinstall iobroker on a 64bit OS, and after that: Restore your iobroker backup on that 64bit machine. - Then normaly ESPHOME adapter will install without problems.
The problem for me is, switching to 64bit I no option on the RPI. But in the meantime I saw the need for more power and got a used x86_64 machine. I will test the install the once I have that one running.