Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. Fehler bei Installation i2c Adapter

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.0k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    698

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.0k

Fehler bei Installation i2c Adapter

Geplant Angeheftet Gesperrt Verschoben Error/Bug
58 Beiträge 4 Kommentatoren 4.1k Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • C Chris_B

    @thomas-braun Hier die Infos:
    Aus iob diag

    Skript v.2023-01-02
    
    *** BASE SYSTEM ***
    Model           : Raspberry Pi 4 Model B Rev 1.5
    Architecture:   armv7l
    Docker:         false
    Virtualization: none
    Distributor ID: Raspbian
    Description:    Raspbian GNU/Linux 11 (bullseye)
    Release:        11
    Codename:       bullseye
    
    PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="11"
    VERSION="11 (bullseye)"
    VERSION_CODENAME=bullseye
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    
    Systemuptime and Load:
     15:50:10 up 43 min,  1 user,  load average: 0.35, 0.25, 0.31
    CPU threads: 4
    
    *** Time and Time Zones ***
    Sat Feb 18 14:50:10 UTC 2023
    Sat Feb 18 15:50:10 CET 2023
    CET +0100
    Europe/Zurich
    
    *** User and Groups ***
    pi
    /home/pi
    pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi iobroker pijuice
    
    *** X-Server-Setup ***
    X-Server:       false
    Desktop:
    Terminal:       tty
    Boot Target:    graphical.target
    
    *** MEMORY ***
                   total        used        free      shared  buff/cache   available
    Mem:            3.8G        1.1G        2.4G        0.0K        312M        2.9G
    Swap:            99M          0B         99M
    Total:          3.9G        1.1G        2.5G
    
             3838 M total memory
             1105 M used memory
              184 M active memory
             1127 M inactive memory
             2420 M free memory
               50 M buffer memory
              262 M swap cache
               99 M total swap
                0 M used swap
               99 M free swap
    
    *** FILESYSTEM ***
    Filesystem     Type      Size  Used Avail Use% Mounted on
    /dev/root      ext4       15G  4.8G  9.0G  35% /
    devtmpfs       devtmpfs  1.8G     0  1.8G   0% /dev
    tmpfs          tmpfs     1.9G     0  1.9G   0% /dev/shm
    tmpfs          tmpfs     768M  688K  768M   1% /run
    tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
    /dev/mmcblk0p1 vfat      253M   50M  203M  20% /boot
    tmpfs          tmpfs     384M     0  384M   0% /run/user/1000
    
    Messages in dmesg:
    [Sat Feb 18 15:06:39 2023] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1  smsc95xx.macaddr=E4:5F:01:A8:12:03 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 console=tty1 root=PARTUUID=cd3e8f54-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
    [Sat Feb 18 15:06:42 2023] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
    [Sat Feb 18 15:06:42 2023] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [Sat Feb 18 15:06:44 2023] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: none.
    
    Show mounted filesystems (real ones only):
    TARGET  SOURCE         FSTYPE OPTIONS
    /       /dev/mmcblk0p2 ext4   rw,noatime
    `-/boot /dev/mmcblk0p1 vfat   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,flush,errors=remount-ro
    
    Files in neuralgic directories:
    
    /var:
    548M    /var/
    299M    /var/cache
    294M    /var/cache/apt
    229M    /var/cache/apt/archives
    95M     /var/lib
    
    /opt/iobroker/backups:
    21M     /opt/iobroker/backups/
    
    /opt/iobroker/iobroker-data:
    234M    /opt/iobroker/iobroker-data/
    105M    /opt/iobroker/iobroker-data/files
    94M     /opt/iobroker/iobroker-data/backup-objects
    51M     /opt/iobroker/iobroker-data/files/javascript.admin
    32M     /opt/iobroker/iobroker-data/files/javascript.admin/static/js
    
    The five largest files in iobroker-data are:
    20M     /opt/iobroker/iobroker-data/objects.jsonl
    6.9M    /opt/iobroker/iobroker-data/files/javascript.admin/static/js/610.de0231c9.chunk.js.map
    6.3M    /opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_assets_devices_parseNames_js-node_modules_iobr-99c23e.847b8ad9.chunk.js.map
    6.2M    /opt/iobroker/iobroker-data/objects.json.migrated
    6.2M    /opt/iobroker/iobroker-data/objects.json.bak.migrated
    
    *** NodeJS-Installation ***
    
    /usr/bin/nodejs         v16.19.1
    /usr/bin/node           v16.19.1
    /usr/bin/npm            8.19.3
    /usr/bin/npx            8.19.3
    
    nodejs:
      Installed: 16.19.1-deb-1nodesource1
      Candidate: 16.19.1-deb-1nodesource1
      Version table:
     *** 16.19.1-deb-1nodesource1 500
            500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
            100 /var/lib/dpkg/status
         12.22.12~dfsg-1~deb11u3 500
            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
    
    Temp directories causing npm8 problem: 0
    
    *** ioBroker-Installation ***
    
    ioBroker Status
    iobroker is running on this host.
    
    
    Objects type: jsonl
    States  type: jsonl
    
    Core adapters versions
    js-controller:  4.0.24
    admin:          6.3.5
    javascript:     6.1.4
    
    Adapters from github:   0
    
    Adapter State
    + system.adapter.admin.0                  : admin                 : raspberrypi4-iob                         -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
    + system.adapter.backitup.0               : backitup              : raspberrypi4-iob                         -  enabled
    + system.adapter.cloud.0                  : cloud                 : raspberrypi4-iob                         -  enabled
    + system.adapter.denon.0                  : denon                 : raspberrypi4-iob                         -  enabled
    + system.adapter.denon.1                  : denon                 : raspberrypi4-iob                         -  enabled
    + system.adapter.discovery.0              : discovery             : raspberrypi4-iob                         -  enabled
      system.adapter.flot.0                   : flot                  : raspberrypi4-iob                         - disabled
    + system.adapter.heos.0                   : heos                  : raspberrypi4-iob                         -  enabled
    + system.adapter.history.0                : history               : raspberrypi4-iob                         -  enabled
    + system.adapter.hue.0                    : hue                   : raspberrypi4-iob                         -  enabled, port: 80
    + system.adapter.hue.1                    : hue                   : raspberrypi4-iob                         -  enabled, port: 80
    + system.adapter.info.0                   : info                  : raspberrypi4-iob                         -  enabled
    + system.adapter.javascript.0             : javascript            : raspberrypi4-iob                         -  enabled
    + system.adapter.netatmo.0                : netatmo               : raspberrypi4-iob                         -  enabled
    + system.adapter.ping.0                   : ping                  : raspberrypi4-iob                         -  enabled
    + system.adapter.rpi2.0                   : rpi2                  : raspberrypi4-iob                         -  enabled
    + system.adapter.simple-api.0             : simple-api            : raspberrypi4-iob                         -  enabled, port: 8087, bind: 0.0.0.0, run as: admin
    + system.adapter.socketio.0               : socketio              : raspberrypi4-iob                         -  enabled, port: 8084, bind: 0.0.0.0, run as: admin
      system.adapter.vis-hqwidgets.0          : vis-hqwidgets         : raspberrypi4-iob                         - disabled
      system.adapter.vis.0                    : vis                   : raspberrypi4-iob                         -  enabled
    + system.adapter.web.0                    : web                   : raspberrypi4-iob                         -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
    + system.adapter.yahka.0                  : yahka                 : raspberrypi4-iob                         -  enabled
    
    + instance is alive
    
    Enabled adapters with bindings
    + system.adapter.admin.0                  : admin                 : raspberrypi4-iob                         -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
    + system.adapter.hue.0                    : hue                   : raspberrypi4-iob                         -  enabled, port: 80
    + system.adapter.hue.1                    : hue                   : raspberrypi4-iob                         -  enabled, port: 80
    + system.adapter.simple-api.0             : simple-api            : raspberrypi4-iob                         -  enabled, port: 8087, bind: 0.0.0.0, run as: admin
    + system.adapter.socketio.0               : socketio              : raspberrypi4-iob                         -  enabled, port: 8084, bind: 0.0.0.0, run as: admin
    + system.adapter.web.0                    : web                   : raspberrypi4-iob                         -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
    
    ioBroker-Repositories
    stable        : http://download.iobroker.net/sources-dist.json
    beta          : http://download.iobroker.net/sources-dist-latest.json
    
    Active repo(s): stable
    
    Installed ioBroker-Instances
    Used repository: stable
    Adapter    "admin"        : 6.3.5    , installed 6.3.5
    Adapter    "backitup"     : 2.5.12   , installed 2.5.12
    Adapter    "cloud"        : 4.3.0    , installed 4.3.0
    Adapter    "denon"        : 1.13.4   , installed 1.13.4
    Adapter    "discovery"    : 3.1.0    , installed 3.1.0
    Adapter    "email"        : 1.1.4    , installed 1.1.4
    Adapter    "flot"         : 1.11.0   , installed 1.11.0
    Adapter    "heos"         : 1.10.0   , installed 1.10.0
    Adapter    "history"      : 2.2.4    , installed 2.2.4
    Adapter    "homekit-controller": 0.5.1, installed 0.5.1
    Adapter    "hue"          : 3.7.1    , installed 3.7.1
    Adapter    "info"         : 1.9.19   , installed 1.9.19
    Adapter    "javascript"   : 6.1.4    , installed 6.1.4
    Controller "js-controller": 4.0.24   , installed 4.0.24
    Adapter    "netatmo"      : 2.0.5    , installed 2.0.5
    Adapter    "ping"         : 1.5.3    , installed 1.5.3
    Adapter    "rpi2"         : 1.3.2    , installed 1.3.2
    Adapter    "simple-api"   : 2.7.2    , installed 2.7.2
    Adapter    "socketio"     : 4.2.0    , installed 4.2.0
    Adapter    "vis"          : 1.4.15   , installed 1.4.15
    Adapter    "vis-hqwidgets": 1.3.0    , installed 1.3.0
    Adapter    "web"          : 4.3.0    , installed 4.3.0
    Adapter    "ws"           : 1.3.0    , installed 1.3.0
    Adapter    "yahka"        : 0.13.1   , installed 0.13.1
    
    Objects and States
    Please stand by - This may take a while
    Objects:        3096
    States:         2594
    
    *** OS-Repositories and Updates ***
    Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
    Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
    Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease
    Hit:4 https://phoscon.de/apt/deconz bullseye InRelease
    Reading package lists...
    Pending Updates: 0
    
    *** Listening Ports ***
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
    tcp        0      0 127.0.0.1:44821         0.0.0.0:*               LISTEN      1001       56591      13999/io.yahka.0
    tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       52502      12844/iobroker.js-c
    tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       52495      12844/iobroker.js-c
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          10727      483/sshd: /usr/sbin
    tcp6       0      0 :::8082                 :::*                    LISTEN      1001       56445      13795/io.web.0
    tcp6       0      0 :::8081                 :::*                    LISTEN      1001       51533      12879/io.admin.0
    tcp6       0      0 :::8087                 :::*                    LISTEN      1001       53094      13274/io.simple-api
    tcp6       0      0 :::8084                 :::*                    LISTEN      1001       52191      13449/io.socketio.0
    tcp6       0      0 :::39029                :::*                    LISTEN      1001       56583      13999/io.yahka.0
    tcp6       0      0 :::22                   :::*                    LISTEN      0          10729      483/sshd: /usr/sbin
    udp        0      0 0.0.0.0:49190           0.0.0.0:*                           1001       51872      13217/io.heos.0
    udp        0      0 0.0.0.0:68              0.0.0.0:*                           0          14614      645/dhcpcd
    udp        0      0 0.0.0.0:5353            0.0.0.0:*                           1001       56584      13999/io.yahka.0
    udp        0      0 0.0.0.0:5353            0.0.0.0:*                           108        11680      363/avahi-daemon: r
    udp        0      0 0.0.0.0:53498           0.0.0.0:*                           108        11682      363/avahi-daemon: r
    udp6       0      0 :::546                  :::*                                0          14642      645/dhcpcd
    udp6       0      0 :::5353                 :::*                                108        11681      363/avahi-daemon: r
    udp6       0      0 :::52971                :::*                                108        11683      363/avahi-daemon: r
    
    *** Log File - Last 25 Lines ***
    
    2023-02-18 15:17:24.642  - info: yahka.0 (13999) adding Wasser Höfli 2A with UUID: e801a2ae-6c62-44d0-870f-a7a316e4a4b6
    2023-02-18 15:17:24.646  - info: yahka.0 (13999) adding Wasser Garten 3A with UUID: e7a975c7-14b7-4db6-93c9-a5c06b0f0906
    2023-02-18 15:17:24.651  - info: yahka.0 (13999) adding Wasser Garten 4A with UUID: b19d1566-51f7-4dbf-a436-f10b00d4d3bf
    2023-02-18 15:17:24.654  - info: yahka.0 (13999) adding Wasser Garten 5A with UUID: cfba9462-495d-445e-bdaf-92d89e5d323c
    2023-02-18 15:17:24.659  - info: yahka.0 (13999) adding Wasser Feedback 1 with UUID: 80efd4c4-8f76-48b0-b794-663ac97d7d2a
    2023-02-18 15:17:24.662  - info: yahka.0 (13999) adding Wasser Feedback 2 with UUID: c7c1a3fe-b438-43eb-a479-bbda51d1d6c8
    2023-02-18 15:17:24.666  - info: yahka.0 (13999) adding Wasser Feedback 3 with UUID: 3270564c-f984-4208-88ed-bcafad48b3e3
    2023-02-18 15:17:24.671  - info: yahka.0 (13999) adding Wasser Feedback 4 with UUID: 94316748-7b8a-456d-9813-e1529df2ff42
    2023-02-18 15:17:24.675  - info: yahka.0 (13999) adding Wasser Feedback 5 with UUID: 192619c5-90be-4580-8af2-9cdd5282fc7a
    2023-02-18 15:17:24.678  - info: yahka.0 (13999) adding Wasser Feedback 6 with UUID: 442ced11-b93a-4a60-9eaf-d6b789ce2e54
    2023-02-18 15:17:24.682  - info: yahka.0 (13999) adding Wasser Garten 6A with UUID: 5356872a-1195-47ad-a30c-62d253157baf
    2023-02-18 15:17:24.686  - info: yahka.0 (13999) adding Motion Cat1 with UUID: 01ba38ce-6b34-4467-8989-7af6f0774eeb
    2023-02-18 15:17:24.689  - info: yahka.0 (13999) adding Motion Cat2 with UUID: 9122c6a7-6598-4298-84f5-ecc8c2598e8d
    2023-02-18 15:17:24.692  - info: yahka.0 (13999) publishing bridge Yahka-0 on 0.0.0.0 using ciao
    2023-02-18 15:19:16.604  - info: admin.0 (12879) ==> Connected system.user.admin from ::ffff:192.168.1.137
    2023-02-18 15:21:14.629  - info: host.raspberrypi4-iob iobroker add i2c auto --host raspberrypi4-iob --debug
    2023-02-18 15:21:18.476  - info: host.raspberrypi4-iob iobroker NPM version: 8.19.3
    2023-02-18 15:21:18.480  - info: host.raspberrypi4-iob iobroker Installing iobroker.i2c@1.2.1... (System call)
    2023-02-18 15:21:27.131  - info: host.raspberrypi4-iob iobroker npm ERR! code 1npm ERR! path /opt/iobroker/node_modules/i2c-bus
    2023-02-18 15:21:27.137  - info: host.raspberrypi4-iob iobroker npm ERR! command failed
    2023-02-18 15:21:27.138  - info: host.raspberrypi4-iob iobroker npm ERR! command sh -c -- node-gyp rebuildnpm ERR! node:internal/modules/cjs/loader:1024npm ERR!   throw err;npm ERR!   ^npm ERR! npm ERR! Error: Cannot find module 'object-assign'npm ERR! Require stack:npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
    2023-02-18 15:21:27.148  - info: host.raspberrypi4-iob iobroker npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:866:27)npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19)npm ERR!     at require (node:internal/modules/cjs/helpers:108:18)npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1191:14)npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)npm ERR!     at Module.load (node:internal/modules/cjs/loader:1069:32)npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:904:12)npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19) {npm ERR!   code: 'MODULE_NOT_FOUND',npm ERR!   requireStack: [npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'npm ERR!   ]npm ERR! }npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2023-02-18T14_21_19_654Z-debug-0.log
    2023-02-18 15:21:27.176  - error: host.raspberrypi4-iob iobroker host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
    2023-02-18 15:21:28.217  - info: host.raspberrypi4-iob iobroker exit 25
    2023-02-18 15:28:25.784  - info: admin.0 (12879) <== Disconnect system.user.admin from ::ffff:192.168.1.137 admin
    
    
    ======================= SUMMARY =======================
                         v.2023-01-02
    
    
    Operatingsystem:        Raspbian GNU/Linux 11 (bullseye)
    Installation:           Native
    Timezone:               Europe/Zurich
    User-ID:                1000
    X-Server:               false
    Boot Target:            graphical.target
    
    Pending OS-Updates:     0
    
    Nodejs-Installation:    /usr/bin/nodejs         v16.19.1
                            /usr/bin/node           v16.19.1
                            /usr/bin/npm            8.19.3
                            /usr/bin/npx            8.19.3
    
    ioBroker Core:          js-controller           4.0.24
                            admin                   6.3.5
    
    ioBroker Status:        iobroker is running on this host.
    
    
    Objects type: jsonl
    States  type: jsonl
    
    Status admin:
    + system.adapter.admin.0                  : admin                 : raspberrypi4-iob                         -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
    
    Pending iob updates:    0
    
    Active repo(s): stable
    
    Objects:                3096
    States:                 2594
    
    Size of iob-Database:
    
    20M     /opt/iobroker/iobroker-data/objects.jsonl
    6.2M    /opt/iobroker/iobroker-data/objects.json.migrated
    6.2M    /opt/iobroker/iobroker-data/objects.json.bak.migrated
    2.1M    /opt/iobroker/iobroker-data/states.jsonl
    684K    /opt/iobroker/iobroker-data/states.json.migrated
    684K    /opt/iobroker/iobroker-data/states.json.bak.migrated
    
    
    =================== END OF SUMMARY ====================
    

    Und hier noch das log (wieder diese superlangen Zeilen):

    host.raspberrypi4-iob
    	2023-02-18 15:21:28.217	info	iobroker exit 25
    host.raspberrypi4-iob
    	2023-02-18 15:21:27.176	error	iobroker host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
    host.raspberrypi4-iob
    	2023-02-18 15:21:27.148	info	iobroker npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:866:27)npm ERR! at Module.require (node:internal/modules/cjs/loader:1093:19)npm ERR! at require (node:internal/modules/cjs/helpers:108:18)npm ERR! at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)npm ERR! at Module._compile (node:internal/modules/cjs/loader:1191:14)npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)npm ERR! at Module.load (node:internal/modules/cjs/loader:1069:32)npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:904:12)npm ERR! at Module.require (node:internal/modules/cjs/loader:1093:19) {npm ERR! code: 'MODULE_NOT_FOUND',npm ERR! requireStack: [npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',npm ERR! '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'npm ERR! ]npm ERR! }npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2023-02-18T14_21_19_654Z-debug-0.log
    host.raspberrypi4-iob
    	2023-02-18 15:21:27.138	info	iobroker npm ERR! command sh -c -- node-gyp rebuildnpm ERR! node:internal/modules/cjs/loader:1024npm ERR! throw err;npm ERR! ^npm ERR! npm ERR! Error: Cannot find module 'object-assign'npm ERR! Require stack:npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.jsnpm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
    host.raspberrypi4-iob
    	2023-02-18 15:21:27.137	info	iobroker npm ERR! command failed
    host.raspberrypi4-iob
    	2023-02-18 15:21:27.131	info	iobroker npm ERR! code 1npm ERR! path /opt/iobroker/node_modules/i2c-bus
    host.raspberrypi4-iob
    	2023-02-18 15:21:18.480	info	iobroker Installing iobroker.i2c@1.2.1... (System call)
    

    Die alternative Lösung ist, dass ich mein i2c Gerät anders ansteuere (über python oder ein C++ Programm) und die Daten dann an iobroker übergebe.

    Thomas BraunT Online
    Thomas BraunT Online
    Thomas Braun
    Most Active
    schrieb am zuletzt editiert von
    #32

    @chris_b

    Warum hast du nicht die 64bit-Version genommen?

    Linux-Werkzeugkasten:
    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
    NodeJS Fixer Skript:
    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

    C 1 Antwort Letzte Antwort
    0
    • Thomas BraunT Thomas Braun

      @chris_b

      Warum hast du nicht die 64bit-Version genommen?

      C Offline
      C Offline
      Chris_B
      schrieb am zuletzt editiert von
      #33

      @thomas-braun Ja, das ist mir auch aufgefallen. Ich habe den Update nach Deiner Anleitung durchgeführt, und das ursprüngliche System war eben noch 32-bit. Der Update bleibt auf dieser Variante, so wie ich das verstehe. 64-bit würde eine komplette Neuinstallation bedeuten, korrekt?

      Thomas BraunT 2 Antworten Letzte Antwort
      0
      • C Chris_B

        @thomas-braun Ja, das ist mir auch aufgefallen. Ich habe den Update nach Deiner Anleitung durchgeführt, und das ursprüngliche System war eben noch 32-bit. Der Update bleibt auf dieser Variante, so wie ich das verstehe. 64-bit würde eine komplette Neuinstallation bedeuten, korrekt?

        Thomas BraunT Online
        Thomas BraunT Online
        Thomas Braun
        Most Active
        schrieb am zuletzt editiert von Thomas Braun
        #34

        @chris_b

        64-bit würde eine komplette Neuinstallation bedeuten, korrekt?

        Ja, richtig.

        Linux-Werkzeugkasten:
        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
        NodeJS Fixer Skript:
        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

        1 Antwort Letzte Antwort
        0
        • C Chris_B

          @thomas-braun Ja, das ist mir auch aufgefallen. Ich habe den Update nach Deiner Anleitung durchgeführt, und das ursprüngliche System war eben noch 32-bit. Der Update bleibt auf dieser Variante, so wie ich das verstehe. 64-bit würde eine komplette Neuinstallation bedeuten, korrekt?

          Thomas BraunT Online
          Thomas BraunT Online
          Thomas Braun
          Most Active
          schrieb am zuletzt editiert von
          #35

          @chris_b

          cd /opt/iobroker 
          npm ls
          npm ls object-assign
          

          Linux-Werkzeugkasten:
          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
          NodeJS Fixer Skript:
          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

          C 1 Antwort Letzte Antwort
          0
          • Thomas BraunT Thomas Braun

            @chris_b

            cd /opt/iobroker 
            npm ls
            npm ls object-assign
            
            C Offline
            C Offline
            Chris_B
            schrieb am zuletzt editiert von
            #36

            @thomas-braun So sieht es aus:

            iobroker.inst@3.0.0 /opt/iobroker
            ├── @types/caseless@0.12.2 extraneous
            ├── @types/request@2.48.8 extraneous
            ├── @types/tough-cookie@4.0.2 extraneous
            ├── coffeescript@1.12.7 extraneous
            ├── iobroker.admin@6.3.5
            ├── iobroker.backitup@2.5.12
            ├── iobroker.cloud@4.3.0
            ├── iobroker.denon@1.13.4
            ├── iobroker.discovery@3.1.0
            ├── iobroker.email@1.1.4
            ├── iobroker.flot@1.11.0
            ├── iobroker.heos@1.10.0
            ├── iobroker.history@2.2.4
            ├── iobroker.homekit-controller@0.5.1
            ├── iobroker.hue@3.7.1
            ├── iobroker.info@1.9.19
            ├── iobroker.javascript@6.1.4
            ├── iobroker.js-controller@4.0.24
            ├── iobroker.netatmo@2.0.5
            ├── iobroker.ping@1.5.3
            ├── iobroker.rpi2@1.3.2
            ├── iobroker.simple-api@2.7.2
            ├── iobroker.socketio@4.2.0
            ├── iobroker.vis-hqwidgets@1.3.0
            ├── iobroker.vis@1.4.15
            ├── iobroker.web@4.3.0
            ├── iobroker.yahka@0.13.1
            ├── jsonata@1.8.6 extraneous
            ├── node-inspect@2.0.0 extraneous
            ├── picocolors@1.0.0 extraneous
            ├── suncalc2@1.8.1 extraneous
            ├── typescript@4.8.2 extraneous
            ├── virtual-tsc@0.6.2 extraneous
            └── wake_on_lan@1.0.0 extraneous
            
            iobroker.inst@3.0.0 /opt/iobroker
            └─┬ iobroker.homekit-controller@0.5.1
              └─┬ hap-controller@0.8.1
                └─┬ @abandonware/noble@1.9.2-15
                  └─┬ @abandonware/bluetooth-hci-socket@0.5.3-8
                    └─┬ @mapbox/node-pre-gyp@1.0.9
                      └─┬ npmlog@5.0.1
                        └─┬ gauge@3.0.2
                          └── object-assign@4.1.1
            
            Thomas BraunT 1 Antwort Letzte Antwort
            0
            • C Chris_B

              @thomas-braun So sieht es aus:

              iobroker.inst@3.0.0 /opt/iobroker
              ├── @types/caseless@0.12.2 extraneous
              ├── @types/request@2.48.8 extraneous
              ├── @types/tough-cookie@4.0.2 extraneous
              ├── coffeescript@1.12.7 extraneous
              ├── iobroker.admin@6.3.5
              ├── iobroker.backitup@2.5.12
              ├── iobroker.cloud@4.3.0
              ├── iobroker.denon@1.13.4
              ├── iobroker.discovery@3.1.0
              ├── iobroker.email@1.1.4
              ├── iobroker.flot@1.11.0
              ├── iobroker.heos@1.10.0
              ├── iobroker.history@2.2.4
              ├── iobroker.homekit-controller@0.5.1
              ├── iobroker.hue@3.7.1
              ├── iobroker.info@1.9.19
              ├── iobroker.javascript@6.1.4
              ├── iobroker.js-controller@4.0.24
              ├── iobroker.netatmo@2.0.5
              ├── iobroker.ping@1.5.3
              ├── iobroker.rpi2@1.3.2
              ├── iobroker.simple-api@2.7.2
              ├── iobroker.socketio@4.2.0
              ├── iobroker.vis-hqwidgets@1.3.0
              ├── iobroker.vis@1.4.15
              ├── iobroker.web@4.3.0
              ├── iobroker.yahka@0.13.1
              ├── jsonata@1.8.6 extraneous
              ├── node-inspect@2.0.0 extraneous
              ├── picocolors@1.0.0 extraneous
              ├── suncalc2@1.8.1 extraneous
              ├── typescript@4.8.2 extraneous
              ├── virtual-tsc@0.6.2 extraneous
              └── wake_on_lan@1.0.0 extraneous
              
              iobroker.inst@3.0.0 /opt/iobroker
              └─┬ iobroker.homekit-controller@0.5.1
                └─┬ hap-controller@0.8.1
                  └─┬ @abandonware/noble@1.9.2-15
                    └─┬ @abandonware/bluetooth-hci-socket@0.5.3-8
                      └─┬ @mapbox/node-pre-gyp@1.0.9
                        └─┬ npmlog@5.0.1
                          └─┬ gauge@3.0.2
                            └── object-assign@4.1.1
              
              Thomas BraunT Online
              Thomas BraunT Online
              Thomas Braun
              Most Active
              schrieb am zuletzt editiert von Thomas Braun
              #37

              @chris_b

              cd /opt/iobroker 
              npm cache clear --force
              iobroker add i2c --debug
              

              Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.

              Linux-Werkzeugkasten:
              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
              NodeJS Fixer Skript:
              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

              C 2 Antworten Letzte Antwort
              0
              • Thomas BraunT Thomas Braun

                @chris_b

                cd /opt/iobroker 
                npm cache clear --force
                iobroker add i2c --debug
                

                Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.

                C Offline
                C Offline
                Chris_B
                schrieb am zuletzt editiert von
                #38

                @thomas-braun Das löschen des Caches scheint auch nichts zu bringen.

                pi@raspberrypi4-iob:/opt/iobroker $ npm cache clear --force
                npm WARN using --force Recommended protections disabled.
                pi@raspberrypi4-iob:/opt/iobroker $ iobroker add i2c auto --debug
                NPM version: 8.19.3
                Installing iobroker.i2c@1.2.1... (System call)
                npm ERR! code 1
                npm ERR! path /opt/iobroker/node_modules/i2c-bus
                npm ERR! command failed
                npm ERR! command sh -c -- node-gyp rebuild
                npm ERR! node:internal/modules/cjs/loader:1024
                npm ERR!   throw err;
                npm ERR!   ^
                npm ERR!
                npm ERR! Error: Cannot find module 'object-assign'
                npm ERR! Require stack:
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
                npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:866:27)
                npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19)
                npm ERR!     at require (node:internal/modules/cjs/helpers:108:18)
                npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/r    ender-template.js:4:20)
                npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1191:14)
                npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
                npm ERR!     at Module.load (node:internal/modules/cjs/loader:1069:32)
                npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
                npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19) {
                npm ERR!   code: 'MODULE_NOT_FOUND',
                npm ERR!   requireStack: [
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                npm ERR!   ]
                npm ERR! }
                
                npm ERR! A complete log of this run can be found in:
                npm ERR!     /home/iobroker/.npm/_logs/2023-02-18T15_54_49_210Z-debug-0.log
                host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
                
                1 Antwort Letzte Antwort
                0
                • Thomas BraunT Thomas Braun

                  @chris_b

                  cd /opt/iobroker 
                  npm cache clear --force
                  iobroker add i2c --debug
                  

                  Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.

                  C Offline
                  C Offline
                  Chris_B
                  schrieb am zuletzt editiert von
                  #39

                  @thomas-braun Bemerkung dazu: Ich habe davor iobroker nicht gestoppt. Ist das korrekt?

                  Thomas BraunT 2 Antworten Letzte Antwort
                  0
                  • C Chris_B

                    @thomas-braun Bemerkung dazu: Ich habe davor iobroker nicht gestoppt. Ist das korrekt?

                    Thomas BraunT Online
                    Thomas BraunT Online
                    Thomas Braun
                    Most Active
                    schrieb am zuletzt editiert von
                    #40

                    @chris_b

                    apt policy npm node-gyp nodejs
                    

                    Linux-Werkzeugkasten:
                    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                    NodeJS Fixer Skript:
                    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                    1 Antwort Letzte Antwort
                    0
                    • C Chris_B

                      @thomas-braun Bemerkung dazu: Ich habe davor iobroker nicht gestoppt. Ist das korrekt?

                      Thomas BraunT Online
                      Thomas BraunT Online
                      Thomas Braun
                      Most Active
                      schrieb am zuletzt editiert von
                      #41

                      @chris_b sagte in Fehler bei Installation i2c Adapter:

                      Ich habe davor iobroker nicht gestoppt. Ist das korrekt?

                      Das ist wurscht.

                      Linux-Werkzeugkasten:
                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                      NodeJS Fixer Skript:
                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                      C 1 Antwort Letzte Antwort
                      0
                      • Thomas BraunT Thomas Braun

                        @chris_b sagte in Fehler bei Installation i2c Adapter:

                        Ich habe davor iobroker nicht gestoppt. Ist das korrekt?

                        Das ist wurscht.

                        C Offline
                        C Offline
                        Chris_B
                        schrieb am zuletzt editiert von
                        #42

                        @thomas-braun

                        npm:
                          Installiert:           (keine)
                          Installationskandidat: 7.5.2+ds-2
                          Versionstabelle:
                             7.5.2+ds-2 500
                                500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                        node-gyp:
                          Installiert:           (keine)
                          Installationskandidat: 7.1.2-4
                          Versionstabelle:
                             7.1.2-4 500
                                500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                        nodejs:
                          Installiert:           16.19.1-deb-1nodesource1
                          Installationskandidat: 16.19.1-deb-1nodesource1
                          Versionstabelle:
                         *** 16.19.1-deb-1nodesource1 500
                                500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                100 /var/lib/dpkg/status
                             12.22.12~dfsg-1~deb11u3 500
                                500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                        
                        Thomas BraunT 2 Antworten Letzte Antwort
                        0
                        • C Chris_B

                          @thomas-braun

                          npm:
                            Installiert:           (keine)
                            Installationskandidat: 7.5.2+ds-2
                            Versionstabelle:
                               7.5.2+ds-2 500
                                  500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                          node-gyp:
                            Installiert:           (keine)
                            Installationskandidat: 7.1.2-4
                            Versionstabelle:
                               7.1.2-4 500
                                  500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                          nodejs:
                            Installiert:           16.19.1-deb-1nodesource1
                            Installationskandidat: 16.19.1-deb-1nodesource1
                            Versionstabelle:
                           *** 16.19.1-deb-1nodesource1 500
                                  500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                  100 /var/lib/dpkg/status
                               12.22.12~dfsg-1~deb11u3 500
                                  500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                          
                          Thomas BraunT Online
                          Thomas BraunT Online
                          Thomas Braun
                          Most Active
                          schrieb am zuletzt editiert von
                          #43

                          @chris_b

                          Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.

                          Linux-Werkzeugkasten:
                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                          NodeJS Fixer Skript:
                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                          C 1 Antwort Letzte Antwort
                          0
                          • Thomas BraunT Thomas Braun

                            @chris_b

                            Bitte immer vollständig aus der Konsole kopieren, inkl. log in prompt usw.

                            C Offline
                            C Offline
                            Chris_B
                            schrieb am zuletzt editiert von
                            #44

                            @thomas-braun Sorry, eigentlich war das bis auf die Kommandozeile und die Zeile danach vollständig. Hier nochmals mit den zusätzlichen 2 Zeilen:

                            pi@raspberrypi4-iob:~ $ apt policy npm node-gyp nodejs
                            npm:
                              Installiert:           (keine)
                              Installationskandidat: 7.5.2+ds-2
                              Versionstabelle:
                                 7.5.2+ds-2 500
                                    500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                            node-gyp:
                              Installiert:           (keine)
                              Installationskandidat: 7.1.2-4
                              Versionstabelle:
                                 7.1.2-4 500
                                    500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                            nodejs:
                              Installiert:           16.19.1-deb-1nodesource1
                              Installationskandidat: 16.19.1-deb-1nodesource1
                              Versionstabelle:
                             *** 16.19.1-deb-1nodesource1 500
                                    500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                    100 /var/lib/dpkg/status
                                 12.22.12~dfsg-1~deb11u3 500
                                    500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                            pi@raspberrypi4-iob:~ $
                            
                            Thomas BraunT 1 Antwort Letzte Antwort
                            0
                            • C Chris_B

                              @thomas-braun

                              npm:
                                Installiert:           (keine)
                                Installationskandidat: 7.5.2+ds-2
                                Versionstabelle:
                                   7.5.2+ds-2 500
                                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                              node-gyp:
                                Installiert:           (keine)
                                Installationskandidat: 7.1.2-4
                                Versionstabelle:
                                   7.1.2-4 500
                                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                              nodejs:
                                Installiert:           16.19.1-deb-1nodesource1
                                Installationskandidat: 16.19.1-deb-1nodesource1
                                Versionstabelle:
                               *** 16.19.1-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                      100 /var/lib/dpkg/status
                                   12.22.12~dfsg-1~deb11u3 500
                                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                              
                              Thomas BraunT Online
                              Thomas BraunT Online
                              Thomas Braun
                              Most Active
                              schrieb am zuletzt editiert von
                              #45

                              @chris_b

                              iob stop
                              sudo apt install --reinstall nodejs
                              iob start
                              

                              Linux-Werkzeugkasten:
                              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                              NodeJS Fixer Skript:
                              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                              C 1 Antwort Letzte Antwort
                              0
                              • C Chris_B

                                @thomas-braun Sorry, eigentlich war das bis auf die Kommandozeile und die Zeile danach vollständig. Hier nochmals mit den zusätzlichen 2 Zeilen:

                                pi@raspberrypi4-iob:~ $ apt policy npm node-gyp nodejs
                                npm:
                                  Installiert:           (keine)
                                  Installationskandidat: 7.5.2+ds-2
                                  Versionstabelle:
                                     7.5.2+ds-2 500
                                        500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                                node-gyp:
                                  Installiert:           (keine)
                                  Installationskandidat: 7.1.2-4
                                  Versionstabelle:
                                     7.1.2-4 500
                                        500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                                nodejs:
                                  Installiert:           16.19.1-deb-1nodesource1
                                  Installationskandidat: 16.19.1-deb-1nodesource1
                                  Versionstabelle:
                                 *** 16.19.1-deb-1nodesource1 500
                                        500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                        100 /var/lib/dpkg/status
                                     12.22.12~dfsg-1~deb11u3 500
                                        500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                                pi@raspberrypi4-iob:~ $
                                
                                Thomas BraunT Online
                                Thomas BraunT Online
                                Thomas Braun
                                Most Active
                                schrieb am zuletzt editiert von
                                #46

                                @chris_b sagte in Fehler bei Installation i2c Adapter:

                                bis auf die Kommandozeile und die Zeile danach vollständig.

                                Und die fehlten halt. Anhand der Zeilen kann man viel besser sehen wo du da wie unterwegs bist und ob das vollständig ist.

                                Linux-Werkzeugkasten:
                                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                NodeJS Fixer Skript:
                                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                C 1 Antwort Letzte Antwort
                                0
                                • Thomas BraunT Thomas Braun

                                  @chris_b

                                  iob stop
                                  sudo apt install --reinstall nodejs
                                  iob start
                                  
                                  C Offline
                                  C Offline
                                  Chris_B
                                  schrieb am zuletzt editiert von
                                  #47

                                  @thomas-braun

                                  pi@raspberrypi4-iob:~ $ iob stop
                                  pi@raspberrypi4-iob:~ $ sudo apt install --reinstall nodejs
                                  Paketlisten werden gelesen… Fertig
                                  Abhängigkeitsbaum wird aufgebaut… Fertig
                                  Statusinformationen werden eingelesen… Fertig
                                  Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
                                    bsdmainutils g++-8 geoip-database libbind9-161 libcroco3 libdns1104 libdns1110 libevent-2.1-6 libfl2
                                    libgdk-pixbuf2.0-0 libgeoip1 libicu63 libisc1100 libisc1105 libisccc161 libisccfg163 libisl19
                                    libjim0.77 libjsoncpp1 liblwres161 libmpdec2 libncursesw5 libperl5.28 libpython2-dev
                                    libpython2-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib
                                    libpython3.7 libpython3.7-minimal libpython3.7-stdlib libstdc++-8-dev perl-modules-5.28 python2
                                    python2-dev python2-minimal python2.7 python2.7-dev python2.7-minimal python3.7-minimal raspinfo
                                    rpi.gpio-common usb.ids
                                  Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
                                  0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
                                  Es müssen 24.2 MB an Archiven heruntergeladen werden.
                                  Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
                                  Holen:1 https://deb.nodesource.com/node_16.x bullseye/main armhf nodejs armhf 16.19.1-deb-1nodesource1 [24.2 MB]
                                  Es wurden 24.2 MB in 2 s geholt (15.2 MB/s).
                                  (Lese Datenbank ... 57038 Dateien und Verzeichnisse sind derzeit installiert.)
                                  Vorbereitung zum Entpacken von .../nodejs_16.19.1-deb-1nodesource1_armhf.deb ...
                                  Entpacken von nodejs (16.19.1-deb-1nodesource1) über (16.19.1-deb-1nodesource1) ...
                                  nodejs (16.19.1-deb-1nodesource1) wird eingerichtet ...
                                  Trigger für man-db (2.9.4-2) werden verarbeitet ...
                                  pi@raspberrypi4-iob:~ $ iob start
                                  pi@raspberrypi4-iob:~ $
                                  
                                  1 Antwort Letzte Antwort
                                  0
                                  • Thomas BraunT Thomas Braun

                                    @chris_b sagte in Fehler bei Installation i2c Adapter:

                                    bis auf die Kommandozeile und die Zeile danach vollständig.

                                    Und die fehlten halt. Anhand der Zeilen kann man viel besser sehen wo du da wie unterwegs bist und ob das vollständig ist.

                                    C Offline
                                    C Offline
                                    Chris_B
                                    schrieb am zuletzt editiert von
                                    #48

                                    @thomas-braun Und jetzt noch einmal über die Kommandozeile den i2c Adapter installieren versuchen?

                                    Thomas BraunT 1 Antwort Letzte Antwort
                                    0
                                    • C Chris_B

                                      @thomas-braun Und jetzt noch einmal über die Kommandozeile den i2c Adapter installieren versuchen?

                                      Thomas BraunT Online
                                      Thomas BraunT Online
                                      Thomas Braun
                                      Most Active
                                      schrieb am zuletzt editiert von
                                      #49

                                      @chris_b

                                      Versuch nochmal

                                      iobroker add i2c --debug
                                      

                                      Linux-Werkzeugkasten:
                                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                      NodeJS Fixer Skript:
                                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                      C 1 Antwort Letzte Antwort
                                      0
                                      • Thomas BraunT Thomas Braun

                                        @chris_b

                                        Versuch nochmal

                                        iobroker add i2c --debug
                                        
                                        C Offline
                                        C Offline
                                        Chris_B
                                        schrieb am zuletzt editiert von
                                        #50

                                        @thomas-braun Irgend etwas ist mit dem Adapter nicht OK. Ich glaube nicht, dass es an meinem System liegt.

                                        pi@raspberrypi4-iob:~ $ iobroker add i2c --debug
                                        NPM version: 8.19.3
                                        Installing iobroker.i2c@1.2.1... (System call)
                                        npm ERR! code 1
                                        npm ERR! path /opt/iobroker/node_modules/i2c-bus
                                        npm ERR! command failed
                                        npm ERR! command sh -c -- node-gyp rebuild
                                        npm ERR! node:internal/modules/cjs/loader:1024
                                        npm ERR!   throw err;
                                        npm ERR!   ^
                                        npm ERR!
                                        npm ERR! Error: Cannot find module 'object-assign'
                                        npm ERR! Require stack:
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                                        npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                                        npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
                                        npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:866:27)
                                        npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19)
                                        npm ERR!     at require (node:internal/modules/cjs/helpers:108:18)
                                        npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                                        npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1191:14)
                                        npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
                                        npm ERR!     at Module.load (node:internal/modules/cjs/loader:1069:32)
                                        npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
                                        npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19) {
                                        npm ERR!   code: 'MODULE_NOT_FOUND',
                                        npm ERR!   requireStack: [
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                                        npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                                        npm ERR!   ]
                                        npm ERR! }
                                        
                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR!     /home/iobroker/.npm/_logs/2023-02-18T16_18_11_324Z-debug-0.log
                                        host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
                                        pi@raspberrypi4-iob:~ $
                                        
                                        Thomas BraunT 2 Antworten Letzte Antwort
                                        0
                                        • C Chris_B

                                          @thomas-braun Irgend etwas ist mit dem Adapter nicht OK. Ich glaube nicht, dass es an meinem System liegt.

                                          pi@raspberrypi4-iob:~ $ iobroker add i2c --debug
                                          NPM version: 8.19.3
                                          Installing iobroker.i2c@1.2.1... (System call)
                                          npm ERR! code 1
                                          npm ERR! path /opt/iobroker/node_modules/i2c-bus
                                          npm ERR! command failed
                                          npm ERR! command sh -c -- node-gyp rebuild
                                          npm ERR! node:internal/modules/cjs/loader:1024
                                          npm ERR!   throw err;
                                          npm ERR!   ^
                                          npm ERR!
                                          npm ERR! Error: Cannot find module 'object-assign'
                                          npm ERR! Require stack:
                                          npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js
                                          npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js
                                          npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js
                                          npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js
                                          npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js
                                          npm ERR! - /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
                                          npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
                                          npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:866:27)
                                          npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19)
                                          npm ERR!     at require (node:internal/modules/cjs/helpers:108:18)
                                          npm ERR!     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js:4:20)
                                          npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1191:14)
                                          npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
                                          npm ERR!     at Module.load (node:internal/modules/cjs/loader:1069:32)
                                          npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
                                          npm ERR!     at Module.require (node:internal/modules/cjs/loader:1093:19) {
                                          npm ERR!   code: 'MODULE_NOT_FOUND',
                                          npm ERR!   requireStack: [
                                          npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/render-template.js',
                                          npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/plumbing.js',
                                          npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/gauge/index.js',
                                          npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/node_modules/npmlog/log.js',
                                          npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js',
                                          npm ERR!     '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
                                          npm ERR!   ]
                                          npm ERR! }
                                          
                                          npm ERR! A complete log of this run can be found in:
                                          npm ERR!     /home/iobroker/.npm/_logs/2023-02-18T16_18_11_324Z-debug-0.log
                                          host.raspberrypi4-iob Cannot install iobroker.i2c@1.2.1: 1
                                          pi@raspberrypi4-iob:~ $
                                          
                                          Thomas BraunT Online
                                          Thomas BraunT Online
                                          Thomas Braun
                                          Most Active
                                          schrieb am zuletzt editiert von
                                          #51

                                          @chris_b sagte in Fehler bei Installation i2c Adapter:

                                          Irgend etwas ist mit dem Adapter nicht OK.

                                          Nö, der ist prima. Hab ich eben hier ganz sauber installiert:

                                          echad@chet:~ $ iobroker add i2c --debug
                                          NPM version: 9.4.0
                                          Installing iobroker.i2c@1.2.1... (System call)
                                          
                                          added 2 packages in 19s
                                          
                                          99 packages are looking for funding
                                            run `npm fund` for details
                                          host.chet install adapter i2c
                                          upload [4] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/build/index.css build/index.css text/css
                                          upload [3] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/build/index.js build/index.js application/javascript
                                          upload [2] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/i2c.png i2c.png image/png
                                          upload [1] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/index_m.html index_m.html text/html
                                          upload [0] i2c.admin /opt/iobroker/node_modules/iobroker.i2c/admin/style.css style.css text/css
                                          host.chet object system.adapter.i2c created/updated
                                          host.chet create instance i2c
                                          host.chet object system.adapter.i2c.0.alive created
                                          host.chet object system.adapter.i2c.0.connected created
                                          host.chet object system.adapter.i2c.0.compactMode created
                                          host.chet object system.adapter.i2c.0.cpu created
                                          host.chet object system.adapter.i2c.0.cputime created
                                          host.chet object system.adapter.i2c.0.memHeapUsed created
                                          host.chet object system.adapter.i2c.0.memHeapTotal created
                                          host.chet object system.adapter.i2c.0.memRss created
                                          host.chet object system.adapter.i2c.0.uptime created
                                          host.chet object system.adapter.i2c.0.inputCount created
                                          host.chet object system.adapter.i2c.0.outputCount created
                                          host.chet object system.adapter.i2c.0.eventLoopLag created
                                          host.chet object system.adapter.i2c.0.sigKill created
                                          host.chet object system.adapter.i2c.0.logLevel created
                                          host.chet object system.adapter.i2c.0 created
                                          echad@chet:~ $
                                          

                                          Linux-Werkzeugkasten:
                                          https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                          NodeJS Fixer Skript:
                                          https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                          iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                          C 1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          639

                                          Online

                                          32.6k

                                          Benutzer

                                          82.0k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe