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. ioBroker Allgemein
  4. Simatic S7 Adapter Fehlermeldung

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    13
    1
    117

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    11
    1
    561

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.7k

Simatic S7 Adapter Fehlermeldung

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
18 Beiträge 4 Kommentatoren 2.2k Aufrufe 4 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.
  • D Offline
    D Offline
    Darkmann2000
    schrieb am zuletzt editiert von Darkmann2000
    #1

    Hallo liebe Forengemeinde,

    ich bekomme den Simatic S7 Adapter nicht ans laufen. Was kann ich tun ?

    Alle Instanzen laufen ohne Probleme.

    Vielen Dank im Voraus.

    npm install --production ergibt folgende Fehlermeldung
    5ac0bdb9-81f7-432b-a9fe-bc79a9312882-grafik.png

    System Info
    d5f5173e-3791-4a88-abe5-84fba34c61c8-grafik.png

    6818d4a7-5f01-449d-92b1-b5525113aa16-grafik.png

    Log:

    host.ServerSmartHome)
    2022-12-13 18:34:37.468	info	host.Server(SmartHome) Rebuild for adapter system.adapter.s7.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) instance system.adapter.s7.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: }
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: code: 'ERR_DLOPEN_FAILED'
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) {
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Object.<anonymous> (C:\iobroker\SmartHome\node_modules\node-snap7\lib\node-snap7.js:8:45)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at bindings (C:\iobroker\SmartHome\node_modules\bindings\bindings.js:112:48)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1028:19)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1210:18)
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`).
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: NODE_MODULE_VERSION 72. This version of Node.js requires
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: was compiled against a different Node.js version using
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: Error: The module '\\?\C:\iobroker\SmartHome\node_modules\node-snap7\build\Release\node_snap7.node'
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]:
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: ^
    host.ServerSmartHome)
    2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: throw e;
    host.ServerSmartHome)
    2022-12-13 18:34:37.466	error	host.Server(SmartHome) Caught by controller[0]: C:\iobroker\SmartHome\node_modules\bindings\bindings.js:121
    
    D 1 Antwort Letzte Antwort
    0
    • D Darkmann2000

      Hallo liebe Forengemeinde,

      ich bekomme den Simatic S7 Adapter nicht ans laufen. Was kann ich tun ?

      Alle Instanzen laufen ohne Probleme.

      Vielen Dank im Voraus.

      npm install --production ergibt folgende Fehlermeldung
      5ac0bdb9-81f7-432b-a9fe-bc79a9312882-grafik.png

      System Info
      d5f5173e-3791-4a88-abe5-84fba34c61c8-grafik.png

      6818d4a7-5f01-449d-92b1-b5525113aa16-grafik.png

      Log:

      host.ServerSmartHome)
      2022-12-13 18:34:37.468	info	host.Server(SmartHome) Rebuild for adapter system.adapter.s7.0 not successful in 3 tries. Adapter will not be restarted again. Please execute "npm install --production" in adapter directory manually.
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) instance system.adapter.s7.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: }
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: code: 'ERR_DLOPEN_FAILED'
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32) {
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1126:14)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Object.<anonymous> (C:\iobroker\SmartHome\node_modules\node-snap7\lib\node-snap7.js:8:45)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at bindings (C:\iobroker\SmartHome\node_modules\bindings\bindings.js:112:48)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at require (node:internal/modules/cjs/helpers:102:18)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Module.require (node:internal/modules/cjs/loader:1028:19)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Function.Module._load (node:internal/modules/cjs/loader:839:12)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1004:32)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: at Object.Module._extensions..node (node:internal/modules/cjs/loader:1210:18)
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: the module (for instance, using `npm rebuild` or `npm install`).
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: NODE_MODULE_VERSION 93. Please try re-compiling or re-installing
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: NODE_MODULE_VERSION 72. This version of Node.js requires
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: was compiled against a different Node.js version using
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: Error: The module '\\?\C:\iobroker\SmartHome\node_modules\node-snap7\build\Release\node_snap7.node'
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]:
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: ^
      host.ServerSmartHome)
      2022-12-13 18:34:37.467	error	host.Server(SmartHome) Caught by controller[0]: throw e;
      host.ServerSmartHome)
      2022-12-13 18:34:37.466	error	host.Server(SmartHome) Caught by controller[0]: C:\iobroker\SmartHome\node_modules\bindings\bindings.js:121
      
      D Offline
      D Offline
      Darkmann2000
      schrieb am zuletzt editiert von
      #2

      Ich habe es hinbekommen :-)

      NPM neu installiert und jetzt läuft der S7 Adapter.

      fedaf185-6a9b-4752-a36e-e41b5a370b5f-grafik.png

      P VraanaaV 2 Antworten Letzte Antwort
      1
      • D Darkmann2000

        Ich habe es hinbekommen :-)

        NPM neu installiert und jetzt läuft der S7 Adapter.

        fedaf185-6a9b-4752-a36e-e41b5a370b5f-grafik.png

        P Offline
        P Offline
        Peachy
        schrieb am zuletzt editiert von
        #3

        @darkmann2000 Hallo, wie genau bist du vorgegangen? Bei mir funktioniert der Adapter seit dem js Controller Update nicht mehr.

        D 1 Antwort Letzte Antwort
        0
        • P Peachy

          @darkmann2000 Hallo, wie genau bist du vorgegangen? Bei mir funktioniert der Adapter seit dem js Controller Update nicht mehr.

          D Offline
          D Offline
          Darkmann2000
          schrieb am zuletzt editiert von
          #4

          @peachy

          Hi,

          bei mir stand im Log npm audit fix --force

          Das habe eingegeben und dann lief der Adapter wieder.

          P Thomas BraunT 2 Antworten Letzte Antwort
          0
          • D Darkmann2000

            @peachy

            Hi,

            bei mir stand im Log npm audit fix --force

            Das habe eingegeben und dann lief der Adapter wieder.

            P Offline
            P Offline
            Peachy
            schrieb am zuletzt editiert von
            #5

            @darkmann2000 Danke für die Rückmeldung. Bei mir scheint das dann wohl noch an was anderem zu haken.

            P 1 Antwort Letzte Antwort
            0
            • P Peachy

              @darkmann2000 Danke für die Rückmeldung. Bei mir scheint das dann wohl noch an was anderem zu haken.

              P Offline
              P Offline
              Peachy
              schrieb am zuletzt editiert von
              #6
              NPM version: 8.19.3
              Installing iobroker.s7@1.3.14... (System call)
              npm WARN deprecated dgram@1.0.1: npm is holding this package for security reasons. As it's a core Node module, we will not transfer it over to other users. You may safely remove the package from your dependencies.
              npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
              npm ERR! code 1
              npm ERR! path /opt/iobroker/node_modules/node-snap7
              npm ERR! command failed
              npm ERR! command sh -c -- prebuild-install || node-gyp rebuild
              npm ERR! sh: 1: prebuild-install: Permission denied
              npm ERR! node:internal/modules/cjs/loader:998
              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:995:15)
              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:841:27)
              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1067:19)
              npm ERR!     at require (node:internal/modules/cjs/helpers:103: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:1165:14)
              npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
              npm ERR!     at Module.load (node:internal/modules/cjs/loader:1043:32)
              npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:878:12)
              npm ERR!     at Module.require (node:internal/modules/cjs/loader:1067: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/2022-12-24T13_58_16_365Z-debug-0.log
              host.raspberrypi Cannot install iobroker.s7@1.3.14: 1
              1 Antwort Letzte Antwort
              0
              • D Darkmann2000

                Ich habe es hinbekommen :-)

                NPM neu installiert und jetzt läuft der S7 Adapter.

                fedaf185-6a9b-4752-a36e-e41b5a370b5f-grafik.png

                VraanaaV Offline
                VraanaaV Offline
                Vraanaa
                schrieb am zuletzt editiert von
                #7

                @darkmann2000 Ich habe ganz Neue Iobroker und NPM installiert...alle anderes siehst gut, aber kann nicht S7 Adapter installieren..
                habe NPM V9

                $ iobroker add s7 0 --host raspberrypi --debug
                
                NPM version: 9.2.0
                
                Installing iobroker.s7@1.3.15... (System call)
                
                npm ERR! code 1
                
                npm ERR! path /opt/iobroker/node_modules/node-snap7
                
                npm ERR! command failed
                
                npm ERR! command sh -c prebuild-install || node-gyp rebuildnpm ERR! make: Entering directory '/opt/iobroker/node_modules/node-snap7/build'npm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_msgsock.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_sysutils.o
                
                npm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_tcpsrvr.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_threads.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_client.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_isotcp.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_partner.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_peer.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_server.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_text.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_micro_client.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/lib/snap7_libmain.onpm ERR! rm -f Release/obj.target/snap7.a Release/obj.target/snap7.a.ar-file-list; mkdir -p `dirname Release/obj.target/snap7.a`npm ERR! ar crs Release/obj.target/snap7.a @Release/obj.target/snap7.a.ar-file-listnpm ERR! COPY Release/snap7.a
                
                npm ERR! CXX(target) Release/obj.target/node_snap7/src/node_snap7.onpm ERR! make: Leaving directory '/opt/iobroker/node_modules/node-snap7/build'npm ERR! prebuild-install WARN install No prebuilt binaries found (target=19.3.0 runtime=node arch=arm64 libc= platform=linux)npm ERR! gyp info it worked if it ends with oknpm ERR! gyp info using node-gyp@9.3.0npm ERR! gyp info using node@19.3.0 | linux | arm64npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"npm ERR! gyp info spawn /usr/bin/python3npm ERR! gyp info spawn args [npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',npm ERR! gyp info spawn args 'binding.gyp',npm ERR! gyp info spawn args '-f',npm ERR! gyp info spawn args 'make',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-snap7/build/config.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/19.3.0/include/node/common.gypi',npm ERR! gyp info spawn args '-Dlibrary=shared_library',npm ERR! gyp info spawn args '-Dvisibility=default',npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/19.3.0',npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/19.3.0/<(target_arch)/node.lib',npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-snap7',npm ERR! gyp info spawn args '-Dnode_engine=v8',npm ERR! gyp info spawn args '--depth=.',
                
                npm ERR! gyp info spawn args '--no-parallel',npm ERR! gyp info spawn args '--generator-output',npm ERR! gyp info spawn args 'build',npm ERR! gyp info spawn args '-Goutput_dir=.'npm ERR! gyp info spawn args ]npm ERR! gyp info spawn makenpm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]npm ERR! ../deps/snap7/src/sys/snap_tcpsrvr.cpp: In member function ‘int TCustomMsgServer::StartTo(const char*, word)’:npm ERR! ../deps/snap7/src/sys/snap_tcpsrvr.cpp:429:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 429 | strncpy(FLocalAddress, Address, 16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_isotcp.cpp: In member function ‘int TIsoTcpSocket::IsoConfirmConnection(u_char)’:npm ERR! ../deps/snap7/src/core/s7_isotcp.cpp:163:10: warning: variable ‘TempRef’ set but not used [-Wunused-but-set-variable]npm ERR! 163 | u_short TempRef;npm ERR! | ^~~~~~~npm ERR! ../deps/snap7/src/core/s7_partner.cpp: In member function ‘int TConnectionServer::StartTo(const char*)’:npm ERR! ../deps/snap7/src/core/s7_partner.cpp:252:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 252 | strncpy(FLocalAddress,Address,16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘byte TS7Worker::WriteArea(PReqFunWriteDataItem, PReqFunWriteItem, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:626:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]npm ERR! 626 | if ((ReqItemPar->Area==S7AreaTM) ^ (ReqItemPar->TransportSize==S7WLTimer))npm ERR! | ^~npm ERR! ../deps/snap7/src/core/s7_server.cpp:629:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’npm ERR! 629 | if ((ReqItemPar->Area==S7AreaCT) ^ (ReqItemPar->TransportSize==S7WLCounter))npm ERR! | ^~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘void TS7Worker::SZLSystemState()’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:1247:11: warning: ‘void* memcpy(void*, const void*, size_t)’ forming offset [4, 5] is out of the bounds [0, 4] of object ‘SZLNotAvail’ with type ‘byte [4]’ {aka ‘unsigned char [4]’} [-Warray-bounds]
                
                npm ERR! 1247 | memcpy(SZL.ResData,&SZLNotAvail,sizeof(SZLSysState));npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! In file included from ../deps/snap7/src/core/s7_server.cpp:27:npm ERR! ../deps/snap7/src/core/s7_firmware.h:36:8: note: ‘SZLNotAvail’ declared herenpm ERR! 36 | byte SZLNotAvail[4] = {npm ERR! | ^~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘word TS7Worker::ReadArea(PResFunReadItem, PReqFunReadItem, int&, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:454:34: warning: ‘BitIndex’ may be used uninitialized in this function [-Wmaybe-uninitialized]npm ERR! 454 | if ((ByteVal & BitMask[BitIndex])!=0)npm ERR! | ^~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘byte TS7Worker::WriteArea(PReqFunWriteDataItem, PReqFunWriteItem, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:698:32: warning: ‘BitIndex’ may be used uninitialized in this function [-Wmaybe-uninitialized]npm ERR! 698 | *Target=*Target | BitMask[BitIndex];npm ERR! | ^~~~~~~~npm ERR! ../deps/snap7/src/core/s7_text.cpp: In function ‘char* EvtSrvText(TSrvEvent&, char*, int)’:npm ERR! ../deps/snap7/src/core/s7_text.cpp:782:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]npm ERR! 782 | elsenpm ERR! | ^~~~npm ERR! ../deps/snap7/src/core/s7_text.cpp:785:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’npm ERR! 785 | strncpy(Result, S, TextLen);npm ERR! | ^~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp: In member function ‘void TSnap7MicroClient::SetConnectionParams(const char*, word, word)’:npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:2675:13: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 2675 | strncpy(RemoteAddress, RemAddress, 16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp: In member function ‘int TSnap7MicroClient::SetSessionPassword(char*)’:npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:3306:16: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]npm ERR! 3306 | strncpy((char*)&opData,Password,L);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:3298:26: note: length computed herenpm ERR! 3298 | size_t L = strlen(Password);npm ERR! | ~~~~~~^~~~~~~~~~npm ERR! In file included from ../node_modules/nan/nan.h:176,npm ERR! from ../src/node_snap7_client.h:11,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
                
                npm ERR! 55 | typedef v8::Local<v8::AccessorSignature> Sig;npm ERR! | ^~~~~~~~~~~~~~~~~npm ERR! ../node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalidnpm ERR! 55 | typedef v8::Local<v8::AccessorSignature> Sig;npm ERR! | ^npm ERR! In file included from ../src/node_snap7_client.h:11,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:npm ERR! ../node_modules/nan/nan.h:2549:16: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’npm ERR! 2549 | , signature);npm ERR! | ^npm ERR! In file included from /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-function.h:15,npm ERR! from /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8.h:33,npm ERR! from /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:73,npm ERR! from ../src/node_snap7_client.h:10,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:807:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’npm ERR! 807 | void SetAccessor(npm ERR! | ^~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:812:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’npm ERR! 812 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:814:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’npm ERR! 814 | void SetAccessor(npm ERR! | ^~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:819:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’npm ERR! 819 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! In file included from ../src/node_snap7_client.h:10,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../src/node_snap7.cpp: At global scope:npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:993:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]npm ERR! 993 | (node::addon_register_func) (regfunc), \npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:1027:3: note: in expansion of macro ‘NODE_MODULE_X’npm ERR! 1027 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)npm ERR! | ^~~~~~~~~~~~~npm ERR! ../src/node_snap7.cpp:16:1: note: in expansion of macro ‘NODE_MODULE’npm ERR! 16 | NODE_MODULE(node_snap7, InitAll)
                
                npm ERR! | ^~~~~~~~~~~npm ERR! make: *** [node_snap7.target.mk:119: Release/obj.target/node_snap7/src/node_snap7.o] Error 1npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)npm ERR! gyp ERR! System Linux 5.15.76-v8+npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/node-snap7npm ERR! gyp ERR! node -v v19.3.0npm ERR! gyp ERR! node-gyp -v v9.3.0npm ERR! gyp ERR! not ok
                
                npm ERR! A complete log of this run can be found in:
                
                npm ERR! /home/iobroker/.npm/_logs/2022-12-29T01_06_46_239Z-debug-0.log
                
                host.raspberrypi Cannot install iobroker.s7@1.3.15: 1
                
                ERROR: Process exited with code 25
                
                Thomas BraunT D 2 Antworten Letzte Antwort
                1
                • VraanaaV Vraanaa

                  @darkmann2000 Ich habe ganz Neue Iobroker und NPM installiert...alle anderes siehst gut, aber kann nicht S7 Adapter installieren..
                  habe NPM V9

                  $ iobroker add s7 0 --host raspberrypi --debug
                  
                  NPM version: 9.2.0
                  
                  Installing iobroker.s7@1.3.15... (System call)
                  
                  npm ERR! code 1
                  
                  npm ERR! path /opt/iobroker/node_modules/node-snap7
                  
                  npm ERR! command failed
                  
                  npm ERR! command sh -c prebuild-install || node-gyp rebuildnpm ERR! make: Entering directory '/opt/iobroker/node_modules/node-snap7/build'npm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_msgsock.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_sysutils.o
                  
                  npm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_tcpsrvr.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_threads.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_client.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_isotcp.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_partner.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_peer.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_server.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_text.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_micro_client.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/lib/snap7_libmain.onpm ERR! rm -f Release/obj.target/snap7.a Release/obj.target/snap7.a.ar-file-list; mkdir -p `dirname Release/obj.target/snap7.a`npm ERR! ar crs Release/obj.target/snap7.a @Release/obj.target/snap7.a.ar-file-listnpm ERR! COPY Release/snap7.a
                  
                  npm ERR! CXX(target) Release/obj.target/node_snap7/src/node_snap7.onpm ERR! make: Leaving directory '/opt/iobroker/node_modules/node-snap7/build'npm ERR! prebuild-install WARN install No prebuilt binaries found (target=19.3.0 runtime=node arch=arm64 libc= platform=linux)npm ERR! gyp info it worked if it ends with oknpm ERR! gyp info using node-gyp@9.3.0npm ERR! gyp info using node@19.3.0 | linux | arm64npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"npm ERR! gyp info spawn /usr/bin/python3npm ERR! gyp info spawn args [npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',npm ERR! gyp info spawn args 'binding.gyp',npm ERR! gyp info spawn args '-f',npm ERR! gyp info spawn args 'make',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-snap7/build/config.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/19.3.0/include/node/common.gypi',npm ERR! gyp info spawn args '-Dlibrary=shared_library',npm ERR! gyp info spawn args '-Dvisibility=default',npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/19.3.0',npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/19.3.0/<(target_arch)/node.lib',npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-snap7',npm ERR! gyp info spawn args '-Dnode_engine=v8',npm ERR! gyp info spawn args '--depth=.',
                  
                  npm ERR! gyp info spawn args '--no-parallel',npm ERR! gyp info spawn args '--generator-output',npm ERR! gyp info spawn args 'build',npm ERR! gyp info spawn args '-Goutput_dir=.'npm ERR! gyp info spawn args ]npm ERR! gyp info spawn makenpm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]npm ERR! ../deps/snap7/src/sys/snap_tcpsrvr.cpp: In member function ‘int TCustomMsgServer::StartTo(const char*, word)’:npm ERR! ../deps/snap7/src/sys/snap_tcpsrvr.cpp:429:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 429 | strncpy(FLocalAddress, Address, 16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_isotcp.cpp: In member function ‘int TIsoTcpSocket::IsoConfirmConnection(u_char)’:npm ERR! ../deps/snap7/src/core/s7_isotcp.cpp:163:10: warning: variable ‘TempRef’ set but not used [-Wunused-but-set-variable]npm ERR! 163 | u_short TempRef;npm ERR! | ^~~~~~~npm ERR! ../deps/snap7/src/core/s7_partner.cpp: In member function ‘int TConnectionServer::StartTo(const char*)’:npm ERR! ../deps/snap7/src/core/s7_partner.cpp:252:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 252 | strncpy(FLocalAddress,Address,16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘byte TS7Worker::WriteArea(PReqFunWriteDataItem, PReqFunWriteItem, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:626:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]npm ERR! 626 | if ((ReqItemPar->Area==S7AreaTM) ^ (ReqItemPar->TransportSize==S7WLTimer))npm ERR! | ^~npm ERR! ../deps/snap7/src/core/s7_server.cpp:629:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’npm ERR! 629 | if ((ReqItemPar->Area==S7AreaCT) ^ (ReqItemPar->TransportSize==S7WLCounter))npm ERR! | ^~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘void TS7Worker::SZLSystemState()’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:1247:11: warning: ‘void* memcpy(void*, const void*, size_t)’ forming offset [4, 5] is out of the bounds [0, 4] of object ‘SZLNotAvail’ with type ‘byte [4]’ {aka ‘unsigned char [4]’} [-Warray-bounds]
                  
                  npm ERR! 1247 | memcpy(SZL.ResData,&SZLNotAvail,sizeof(SZLSysState));npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! In file included from ../deps/snap7/src/core/s7_server.cpp:27:npm ERR! ../deps/snap7/src/core/s7_firmware.h:36:8: note: ‘SZLNotAvail’ declared herenpm ERR! 36 | byte SZLNotAvail[4] = {npm ERR! | ^~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘word TS7Worker::ReadArea(PResFunReadItem, PReqFunReadItem, int&, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:454:34: warning: ‘BitIndex’ may be used uninitialized in this function [-Wmaybe-uninitialized]npm ERR! 454 | if ((ByteVal & BitMask[BitIndex])!=0)npm ERR! | ^~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘byte TS7Worker::WriteArea(PReqFunWriteDataItem, PReqFunWriteItem, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:698:32: warning: ‘BitIndex’ may be used uninitialized in this function [-Wmaybe-uninitialized]npm ERR! 698 | *Target=*Target | BitMask[BitIndex];npm ERR! | ^~~~~~~~npm ERR! ../deps/snap7/src/core/s7_text.cpp: In function ‘char* EvtSrvText(TSrvEvent&, char*, int)’:npm ERR! ../deps/snap7/src/core/s7_text.cpp:782:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]npm ERR! 782 | elsenpm ERR! | ^~~~npm ERR! ../deps/snap7/src/core/s7_text.cpp:785:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’npm ERR! 785 | strncpy(Result, S, TextLen);npm ERR! | ^~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp: In member function ‘void TSnap7MicroClient::SetConnectionParams(const char*, word, word)’:npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:2675:13: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 2675 | strncpy(RemoteAddress, RemAddress, 16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp: In member function ‘int TSnap7MicroClient::SetSessionPassword(char*)’:npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:3306:16: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]npm ERR! 3306 | strncpy((char*)&opData,Password,L);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:3298:26: note: length computed herenpm ERR! 3298 | size_t L = strlen(Password);npm ERR! | ~~~~~~^~~~~~~~~~npm ERR! In file included from ../node_modules/nan/nan.h:176,npm ERR! from ../src/node_snap7_client.h:11,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
                  
                  npm ERR! 55 | typedef v8::Local<v8::AccessorSignature> Sig;npm ERR! | ^~~~~~~~~~~~~~~~~npm ERR! ../node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalidnpm ERR! 55 | typedef v8::Local<v8::AccessorSignature> Sig;npm ERR! | ^npm ERR! In file included from ../src/node_snap7_client.h:11,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:npm ERR! ../node_modules/nan/nan.h:2549:16: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’npm ERR! 2549 | , signature);npm ERR! | ^npm ERR! In file included from /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-function.h:15,npm ERR! from /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8.h:33,npm ERR! from /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:73,npm ERR! from ../src/node_snap7_client.h:10,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:807:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’npm ERR! 807 | void SetAccessor(npm ERR! | ^~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:812:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’npm ERR! 812 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:814:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’npm ERR! 814 | void SetAccessor(npm ERR! | ^~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:819:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’npm ERR! 819 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! In file included from ../src/node_snap7_client.h:10,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../src/node_snap7.cpp: At global scope:npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:993:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]npm ERR! 993 | (node::addon_register_func) (regfunc), \npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:1027:3: note: in expansion of macro ‘NODE_MODULE_X’npm ERR! 1027 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)npm ERR! | ^~~~~~~~~~~~~npm ERR! ../src/node_snap7.cpp:16:1: note: in expansion of macro ‘NODE_MODULE’npm ERR! 16 | NODE_MODULE(node_snap7, InitAll)
                  
                  npm ERR! | ^~~~~~~~~~~npm ERR! make: *** [node_snap7.target.mk:119: Release/obj.target/node_snap7/src/node_snap7.o] Error 1npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)npm ERR! gyp ERR! System Linux 5.15.76-v8+npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/node-snap7npm ERR! gyp ERR! node -v v19.3.0npm ERR! gyp ERR! node-gyp -v v9.3.0npm ERR! gyp ERR! not ok
                  
                  npm ERR! A complete log of this run can be found in:
                  
                  npm ERR! /home/iobroker/.npm/_logs/2022-12-29T01_06_46_239Z-debug-0.log
                  
                  host.raspberrypi Cannot install iobroker.s7@1.3.15: 1
                  
                  ERROR: Process exited with code 25
                  
                  Thomas BraunT Online
                  Thomas BraunT Online
                  Thomas Braun
                  Most Active
                  schrieb am zuletzt editiert von
                  #8

                  @vraanaa

                  Versuch es mit der zur Zeit empfohlenen nodejs16.
                  Warum eierst du da mit der Entwicklerversion v19 herum?

                  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

                  VraanaaV 1 Antwort Letzte Antwort
                  1
                  • VraanaaV Vraanaa

                    @darkmann2000 Ich habe ganz Neue Iobroker und NPM installiert...alle anderes siehst gut, aber kann nicht S7 Adapter installieren..
                    habe NPM V9

                    $ iobroker add s7 0 --host raspberrypi --debug
                    
                    NPM version: 9.2.0
                    
                    Installing iobroker.s7@1.3.15... (System call)
                    
                    npm ERR! code 1
                    
                    npm ERR! path /opt/iobroker/node_modules/node-snap7
                    
                    npm ERR! command failed
                    
                    npm ERR! command sh -c prebuild-install || node-gyp rebuildnpm ERR! make: Entering directory '/opt/iobroker/node_modules/node-snap7/build'npm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_msgsock.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_sysutils.o
                    
                    npm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_tcpsrvr.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/sys/snap_threads.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_client.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_isotcp.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_partner.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_peer.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_server.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_text.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/core/s7_micro_client.onpm ERR! CXX(target) Release/obj.target/snap7/deps/snap7/src/lib/snap7_libmain.onpm ERR! rm -f Release/obj.target/snap7.a Release/obj.target/snap7.a.ar-file-list; mkdir -p `dirname Release/obj.target/snap7.a`npm ERR! ar crs Release/obj.target/snap7.a @Release/obj.target/snap7.a.ar-file-listnpm ERR! COPY Release/snap7.a
                    
                    npm ERR! CXX(target) Release/obj.target/node_snap7/src/node_snap7.onpm ERR! make: Leaving directory '/opt/iobroker/node_modules/node-snap7/build'npm ERR! prebuild-install WARN install No prebuilt binaries found (target=19.3.0 runtime=node arch=arm64 libc= platform=linux)npm ERR! gyp info it worked if it ends with oknpm ERR! gyp info using node-gyp@9.3.0npm ERR! gyp info using node@19.3.0 | linux | arm64npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"npm ERR! gyp info spawn /usr/bin/python3npm ERR! gyp info spawn args [npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',npm ERR! gyp info spawn args 'binding.gyp',npm ERR! gyp info spawn args '-f',npm ERR! gyp info spawn args 'make',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/opt/iobroker/node_modules/node-snap7/build/config.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',npm ERR! gyp info spawn args '-I',npm ERR! gyp info spawn args '/home/iobroker/.cache/node-gyp/19.3.0/include/node/common.gypi',npm ERR! gyp info spawn args '-Dlibrary=shared_library',npm ERR! gyp info spawn args '-Dvisibility=default',npm ERR! gyp info spawn args '-Dnode_root_dir=/home/iobroker/.cache/node-gyp/19.3.0',npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',npm ERR! gyp info spawn args '-Dnode_lib_file=/home/iobroker/.cache/node-gyp/19.3.0/<(target_arch)/node.lib',npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/iobroker/node_modules/node-snap7',npm ERR! gyp info spawn args '-Dnode_engine=v8',npm ERR! gyp info spawn args '--depth=.',
                    
                    npm ERR! gyp info spawn args '--no-parallel',npm ERR! gyp info spawn args '--generator-output',npm ERR! gyp info spawn args 'build',npm ERR! gyp info spawn args '-Goutput_dir=.'npm ERR! gyp info spawn args ]npm ERR! gyp info spawn makenpm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]npm ERR! ../deps/snap7/src/sys/snap_tcpsrvr.cpp: In member function ‘int TCustomMsgServer::StartTo(const char*, word)’:npm ERR! ../deps/snap7/src/sys/snap_tcpsrvr.cpp:429:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 429 | strncpy(FLocalAddress, Address, 16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_isotcp.cpp: In member function ‘int TIsoTcpSocket::IsoConfirmConnection(u_char)’:npm ERR! ../deps/snap7/src/core/s7_isotcp.cpp:163:10: warning: variable ‘TempRef’ set but not used [-Wunused-but-set-variable]npm ERR! 163 | u_short TempRef;npm ERR! | ^~~~~~~npm ERR! ../deps/snap7/src/core/s7_partner.cpp: In member function ‘int TConnectionServer::StartTo(const char*)’:npm ERR! ../deps/snap7/src/core/s7_partner.cpp:252:12: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 252 | strncpy(FLocalAddress,Address,16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘byte TS7Worker::WriteArea(PReqFunWriteDataItem, PReqFunWriteItem, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:626:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]npm ERR! 626 | if ((ReqItemPar->Area==S7AreaTM) ^ (ReqItemPar->TransportSize==S7WLTimer))npm ERR! | ^~npm ERR! ../deps/snap7/src/core/s7_server.cpp:629:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’npm ERR! 629 | if ((ReqItemPar->Area==S7AreaCT) ^ (ReqItemPar->TransportSize==S7WLCounter))npm ERR! | ^~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘void TS7Worker::SZLSystemState()’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:1247:11: warning: ‘void* memcpy(void*, const void*, size_t)’ forming offset [4, 5] is out of the bounds [0, 4] of object ‘SZLNotAvail’ with type ‘byte [4]’ {aka ‘unsigned char [4]’} [-Warray-bounds]
                    
                    npm ERR! 1247 | memcpy(SZL.ResData,&SZLNotAvail,sizeof(SZLSysState));npm ERR! | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! In file included from ../deps/snap7/src/core/s7_server.cpp:27:npm ERR! ../deps/snap7/src/core/s7_firmware.h:36:8: note: ‘SZLNotAvail’ declared herenpm ERR! 36 | byte SZLNotAvail[4] = {npm ERR! | ^~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘word TS7Worker::ReadArea(PResFunReadItem, PReqFunReadItem, int&, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:454:34: warning: ‘BitIndex’ may be used uninitialized in this function [-Wmaybe-uninitialized]npm ERR! 454 | if ((ByteVal & BitMask[BitIndex])!=0)npm ERR! | ^~~~~~~~npm ERR! ../deps/snap7/src/core/s7_server.cpp: In member function ‘byte TS7Worker::WriteArea(PReqFunWriteDataItem, PReqFunWriteItem, TEv&)’:npm ERR! ../deps/snap7/src/core/s7_server.cpp:698:32: warning: ‘BitIndex’ may be used uninitialized in this function [-Wmaybe-uninitialized]npm ERR! 698 | *Target=*Target | BitMask[BitIndex];npm ERR! | ^~~~~~~~npm ERR! ../deps/snap7/src/core/s7_text.cpp: In function ‘char* EvtSrvText(TSrvEvent&, char*, int)’:npm ERR! ../deps/snap7/src/core/s7_text.cpp:782:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]npm ERR! 782 | elsenpm ERR! | ^~~~npm ERR! ../deps/snap7/src/core/s7_text.cpp:785:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’npm ERR! 785 | strncpy(Result, S, TextLen);npm ERR! | ^~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp: In member function ‘void TSnap7MicroClient::SetConnectionParams(const char*, word, word)’:npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:2675:13: warning: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Wstringop-truncation]npm ERR! 2675 | strncpy(RemoteAddress, RemAddress, 16);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp: In member function ‘int TSnap7MicroClient::SetSessionPassword(char*)’:npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:3306:16: warning: ‘char* strncpy(char*, const char*, size_t)’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]npm ERR! 3306 | strncpy((char*)&opData,Password,L);npm ERR! | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! ../deps/snap7/src/core/s7_micro_client.cpp:3298:26: note: length computed herenpm ERR! 3298 | size_t L = strlen(Password);npm ERR! | ~~~~~~^~~~~~~~~~npm ERR! In file included from ../node_modules/nan/nan.h:176,npm ERR! from ../src/node_snap7_client.h:11,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignature’ is not a member of ‘v8’
                    
                    npm ERR! 55 | typedef v8::Local<v8::AccessorSignature> Sig;npm ERR! | ^~~~~~~~~~~~~~~~~npm ERR! ../node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalidnpm ERR! 55 | typedef v8::Local<v8::AccessorSignature> Sig;npm ERR! | ^npm ERR! In file included from ../src/node_snap7_client.h:11,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, Nan::GetterCallback, Nan::SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:npm ERR! ../node_modules/nan/nan.h:2549:16: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’npm ERR! 2549 | , signature);npm ERR! | ^npm ERR! In file included from /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-function.h:15,npm ERR! from /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8.h:33,npm ERR! from /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:73,npm ERR! from ../src/node_snap7_client.h:10,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:807:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’npm ERR! 807 | void SetAccessor(npm ERR! | ^~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:812:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’npm ERR! 812 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:814:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’npm ERR! 814 | void SetAccessor(npm ERR! | ^~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/v8-template.h:819:22: note: no known conversion for argument 7 from ‘Nan::imp::Sig’ {aka ‘int’} to ‘v8::SideEffectType’npm ERR! 819 | SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,npm ERR! | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! In file included from ../src/node_snap7_client.h:10,npm ERR! from ../src/node_snap7.cpp:6:npm ERR! ../src/node_snap7.cpp: At global scope:npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:993:7: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]npm ERR! 993 | (node::addon_register_func) (regfunc), \npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~npm ERR! /home/iobroker/.cache/node-gyp/19.3.0/include/node/node.h:1027:3: note: in expansion of macro ‘NODE_MODULE_X’npm ERR! 1027 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)npm ERR! | ^~~~~~~~~~~~~npm ERR! ../src/node_snap7.cpp:16:1: note: in expansion of macro ‘NODE_MODULE’npm ERR! 16 | NODE_MODULE(node_snap7, InitAll)
                    
                    npm ERR! | ^~~~~~~~~~~npm ERR! make: *** [node_snap7.target.mk:119: Release/obj.target/node_snap7/src/node_snap7.o] Error 1npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)npm ERR! gyp ERR! System Linux 5.15.76-v8+npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/node-snap7npm ERR! gyp ERR! node -v v19.3.0npm ERR! gyp ERR! node-gyp -v v9.3.0npm ERR! gyp ERR! not ok
                    
                    npm ERR! A complete log of this run can be found in:
                    
                    npm ERR! /home/iobroker/.npm/_logs/2022-12-29T01_06_46_239Z-debug-0.log
                    
                    host.raspberrypi Cannot install iobroker.s7@1.3.15: 1
                    
                    ERROR: Process exited with code 25
                    
                    D Offline
                    D Offline
                    Darkmann2000
                    schrieb am zuletzt editiert von
                    #9

                    @vraanaa

                    Mein System ist auf folgenden Stand:

                    Admin Version 6.3.5
                    JS Controller Version 4.0.23
                    Node JS version 16.19.0
                    NPM 8.19.3

                    Damit läuft es ohne Probleme

                    1 Antwort Letzte Antwort
                    1
                    • Thomas BraunT Thomas Braun

                      @vraanaa

                      Versuch es mit der zur Zeit empfohlenen nodejs16.
                      Warum eierst du da mit der Entwicklerversion v19 herum?

                      VraanaaV Offline
                      VraanaaV Offline
                      Vraanaa
                      schrieb am zuletzt editiert von Vraanaa
                      #10

                      @thomas-braun Danke fuer Antwort...Hmm, ja - hab ich ganz neue Image in Pi installiert und dachte alles UpToDate ist besser...is es moeglich jetzt und Problemloss zu Downgrade?

                      In Info steht auch Warning :grimacing: :
                      Platform
                      linux
                      OS
                      linux
                      Architecture
                      arm64
                      CPUs
                      4
                      Speed
                      1200 MHz
                      Model
                      Cortex-A72
                      RAM
                      3.71 GB
                      System uptime
                      08:43:59
                      Node.js
                      v19.3.0 (Version v19.x of Node.js is currently not fully supported. - Recommended version v16.19.0)
                      time
                      1672308932441
                      timeOffset
                      -60
                      Number of adapters
                      537
                      NPM
                      9.2.0
                      Disk size
                      28.76 GB
                      Disk free
                      23.78 GB
                      Uptime
                      08:26:28
                      Active instances
                      12
                      path
                      /opt/iobroker/
                      Hostname
                      raspberrypi

                      Thomas BraunT 2 Antworten Letzte Antwort
                      0
                      • VraanaaV Vraanaa

                        @thomas-braun Danke fuer Antwort...Hmm, ja - hab ich ganz neue Image in Pi installiert und dachte alles UpToDate ist besser...is es moeglich jetzt und Problemloss zu Downgrade?

                        In Info steht auch Warning :grimacing: :
                        Platform
                        linux
                        OS
                        linux
                        Architecture
                        arm64
                        CPUs
                        4
                        Speed
                        1200 MHz
                        Model
                        Cortex-A72
                        RAM
                        3.71 GB
                        System uptime
                        08:43:59
                        Node.js
                        v19.3.0 (Version v19.x of Node.js is currently not fully supported. - Recommended version v16.19.0)
                        time
                        1672308932441
                        timeOffset
                        -60
                        Number of adapters
                        537
                        NPM
                        9.2.0
                        Disk size
                        28.76 GB
                        Disk free
                        23.78 GB
                        Uptime
                        08:26:28
                        Active instances
                        12
                        path
                        /opt/iobroker/
                        Hostname
                        raspberrypi

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

                        @vraanaa

                        Schau in meiner Signatur.

                        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

                        VraanaaV 1 Antwort Letzte Antwort
                        1
                        • VraanaaV Vraanaa

                          @thomas-braun Danke fuer Antwort...Hmm, ja - hab ich ganz neue Image in Pi installiert und dachte alles UpToDate ist besser...is es moeglich jetzt und Problemloss zu Downgrade?

                          In Info steht auch Warning :grimacing: :
                          Platform
                          linux
                          OS
                          linux
                          Architecture
                          arm64
                          CPUs
                          4
                          Speed
                          1200 MHz
                          Model
                          Cortex-A72
                          RAM
                          3.71 GB
                          System uptime
                          08:43:59
                          Node.js
                          v19.3.0 (Version v19.x of Node.js is currently not fully supported. - Recommended version v16.19.0)
                          time
                          1672308932441
                          timeOffset
                          -60
                          Number of adapters
                          537
                          NPM
                          9.2.0
                          Disk size
                          28.76 GB
                          Disk free
                          23.78 GB
                          Uptime
                          08:26:28
                          Active instances
                          12
                          path
                          /opt/iobroker/
                          Hostname
                          raspberrypi

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

                          @vraanaa

                          https://github.com/mathiask88/node-snap7/issues/88

                          Aber mit der empfohlenen nodeJS@16 und npm@8 funktioniert es noch.

                          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
                          1
                          • D Darkmann2000

                            @peachy

                            Hi,

                            bei mir stand im Log npm audit fix --force

                            Das habe eingegeben und dann lief der Adapter wieder.

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

                            @darkmann2000 sagte in Simatic S7 Adapter Fehlermeldung:

                            bei mir stand im Log npm audit fix --force
                            Das habe eingegeben und dann lief der Adapter wieder.

                            Der Befehl ist allerdings brandgefährlich. Besser die Finger davon lassen. Der zieht dir das System komplett auf Links.

                            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
                            • Thomas BraunT Thomas Braun

                              @vraanaa

                              Schau in meiner Signatur.

                              VraanaaV Offline
                              VraanaaV Offline
                              Vraanaa
                              schrieb am zuletzt editiert von
                              #14

                              @thomas-braun Kann ich kleine Hilfe noch Versuchen - ich habe V16 installiert - aber steht im falsche Pfad (/usr/local/bin/node). Wie kann ich jetzt Aktivieren - sorry bin ich nicht so experienced mit Linux :/
                              Danke

                              pi@raspberrypi:~ $ type -P nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                              /usr/bin/nodejs
                              /usr/local/bin/node
                              /usr/local/bin/npm
                              v19.3.0
                              v16.19.0
                              8.19.3
                              nodejs:
                                Installed: 19.3.0-deb-1nodesource1
                                Candidate: 19.3.0-deb-1nodesource1
                                Version table:
                               *** 19.3.0-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_19.x bullseye/main arm64 Packages
                                      100 /var/lib/dpkg/status
                                   12.22.12~dfsg-1~deb11u1 500
                                      500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                                   12.22.5~dfsg-2~11u1 500
                                      500 http://deb.debian.org/debian bullseye/main arm64 Packages
                              N: Ignoring file 'nodesource.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
                              
                              
                              Thomas BraunT 2 Antworten Letzte Antwort
                              0
                              • VraanaaV Vraanaa

                                @thomas-braun Kann ich kleine Hilfe noch Versuchen - ich habe V16 installiert - aber steht im falsche Pfad (/usr/local/bin/node). Wie kann ich jetzt Aktivieren - sorry bin ich nicht so experienced mit Linux :/
                                Danke

                                pi@raspberrypi:~ $ type -P nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                                /usr/bin/nodejs
                                /usr/local/bin/node
                                /usr/local/bin/npm
                                v19.3.0
                                v16.19.0
                                8.19.3
                                nodejs:
                                  Installed: 19.3.0-deb-1nodesource1
                                  Candidate: 19.3.0-deb-1nodesource1
                                  Version table:
                                 *** 19.3.0-deb-1nodesource1 500
                                        500 https://deb.nodesource.com/node_19.x bullseye/main arm64 Packages
                                        100 /var/lib/dpkg/status
                                     12.22.12~dfsg-1~deb11u1 500
                                        500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                                     12.22.5~dfsg-2~11u1 500
                                        500 http://deb.debian.org/debian bullseye/main arm64 Packages
                                N: Ignoring file 'nodesource.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
                                
                                
                                Thomas BraunT Online
                                Thomas BraunT Online
                                Thomas Braun
                                Most Active
                                schrieb am zuletzt editiert von Thomas Braun
                                #15

                                @vraanaa

                                Lies das HowTo nochmal.

                                Die nodesource.list ist nicht geändert und die Pfade sind falsch.

                                Dafür gibt es jetzt eine Datei nodesource.list.save.1 .
                                Die muss raus.

                                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

                                VraanaaV 1 Antwort Letzte Antwort
                                1
                                • VraanaaV Vraanaa

                                  @thomas-braun Kann ich kleine Hilfe noch Versuchen - ich habe V16 installiert - aber steht im falsche Pfad (/usr/local/bin/node). Wie kann ich jetzt Aktivieren - sorry bin ich nicht so experienced mit Linux :/
                                  Danke

                                  pi@raspberrypi:~ $ type -P nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
                                  /usr/bin/nodejs
                                  /usr/local/bin/node
                                  /usr/local/bin/npm
                                  v19.3.0
                                  v16.19.0
                                  8.19.3
                                  nodejs:
                                    Installed: 19.3.0-deb-1nodesource1
                                    Candidate: 19.3.0-deb-1nodesource1
                                    Version table:
                                   *** 19.3.0-deb-1nodesource1 500
                                          500 https://deb.nodesource.com/node_19.x bullseye/main arm64 Packages
                                          100 /var/lib/dpkg/status
                                       12.22.12~dfsg-1~deb11u1 500
                                          500 http://security.debian.org/debian-security bullseye-security/main arm64 Packages
                                       12.22.5~dfsg-2~11u1 500
                                          500 http://deb.debian.org/debian bullseye/main arm64 Packages
                                  N: Ignoring file 'nodesource.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
                                  
                                  
                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  schrieb am zuletzt editiert von
                                  #16

                                  @vraanaa sagte in Simatic S7 Adapter Fehlermeldung:

                                  ich habe V16 installiert

                                  Aber nicht nach dem HowTo sondern 'irgendwie'.
                                  Mit dem Paketmanager landet das auch alles in den richtigen Verzeichnissen.

                                  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
                                  • Thomas BraunT Thomas Braun

                                    @vraanaa

                                    Lies das HowTo nochmal.

                                    Die nodesource.list ist nicht geändert und die Pfade sind falsch.

                                    Dafür gibt es jetzt eine Datei nodesource.list.save.1 .
                                    Die muss raus.

                                    VraanaaV Offline
                                    VraanaaV Offline
                                    Vraanaa
                                    schrieb am zuletzt editiert von
                                    #17

                                    @thomas-braun jetzt habe ich bei Node - v Antwort fuer Version V16 - jetzt S7 Adapter habe ich problemloss in IO Broker installiert.
                                    Aber wie ich kann die Datei 'nodesource.list.save.1', 'nodesource.list.save.2', 'nodesource.list.save.3' loeschen?

                                    Weiss nicht ob alles siehst wie es soll?

                                    pi@raspberrypi:~ $ apt policy nodejs
                                    nodejs:
                                      Installed: 19.3.0-deb-1nodesource1
                                      Candidate: 19.3.0-deb-1nodesource1
                                      Version table:
                                     *** 19.3.0-deb-1nodesource1 100
                                            100 /var/lib/dpkg/status
                                         16.19.0-deb-1nodesource1 500
                                            500 https://deb.nodesource.com/node_16.x bullseye/main arm64 Packages
                                         12.22.12~dfsg-1~deb11u1 500
                                            500 http://security.debian.org/debian-security bullseye-security/main ar                                                                           m64 Packages
                                         12.22.5~dfsg-2~11u1 500
                                            500 http://deb.debian.org/debian bullseye/main arm64 Packages
                                    N: Ignoring file 'nodesource.list.save.2' in directory '/etc/apt/sources.list.d/                                                                           ' as it has an invalid filename extension
                                    N: Ignoring file 'nodesource.list.save.3' in directory '/etc/apt/sources.list.d/                                                                           ' as it has an invalid filename extension
                                    N: Ignoring file 'nodesource.list.save.1' in directory '/etc/apt/sources.list.d/                                                                           ' as it has an invalid filename extension
                                    pi@raspberrypi:~ $ node -v
                                    v16.19.0
                                    pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list.d/nodesource.list
                                      GNU nano 5.4                                              /etc/apt/sources.list.d/nodesource.list
                                    deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
                                    deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
                                    
                                    
                                    

                                    Platform
                                    linux
                                    OS
                                    linux
                                    Architecture
                                    arm64
                                    CPUs
                                    4
                                    Speed
                                    1800 MHz
                                    Model
                                    Cortex-A72
                                    RAM
                                    3.71 GB
                                    System uptime
                                    00:51:06
                                    Node.js
                                    v16.19.0
                                    time
                                    1672326436528
                                    timeOffset
                                    -60
                                    Number of adapters
                                    537
                                    NPM
                                    8.19.3
                                    Disk size
                                    28.76 GB
                                    Disk free
                                    22.29 GB
                                    Uptime
                                    00:09:39
                                    Active instances
                                    12
                                    path
                                    /opt/iobroker/
                                    Hostname
                                    raspberrypi

                                    Thomas BraunT 1 Antwort Letzte Antwort
                                    0
                                    • VraanaaV Vraanaa

                                      @thomas-braun jetzt habe ich bei Node - v Antwort fuer Version V16 - jetzt S7 Adapter habe ich problemloss in IO Broker installiert.
                                      Aber wie ich kann die Datei 'nodesource.list.save.1', 'nodesource.list.save.2', 'nodesource.list.save.3' loeschen?

                                      Weiss nicht ob alles siehst wie es soll?

                                      pi@raspberrypi:~ $ apt policy nodejs
                                      nodejs:
                                        Installed: 19.3.0-deb-1nodesource1
                                        Candidate: 19.3.0-deb-1nodesource1
                                        Version table:
                                       *** 19.3.0-deb-1nodesource1 100
                                              100 /var/lib/dpkg/status
                                           16.19.0-deb-1nodesource1 500
                                              500 https://deb.nodesource.com/node_16.x bullseye/main arm64 Packages
                                           12.22.12~dfsg-1~deb11u1 500
                                              500 http://security.debian.org/debian-security bullseye-security/main ar                                                                           m64 Packages
                                           12.22.5~dfsg-2~11u1 500
                                              500 http://deb.debian.org/debian bullseye/main arm64 Packages
                                      N: Ignoring file 'nodesource.list.save.2' in directory '/etc/apt/sources.list.d/                                                                           ' as it has an invalid filename extension
                                      N: Ignoring file 'nodesource.list.save.3' in directory '/etc/apt/sources.list.d/                                                                           ' as it has an invalid filename extension
                                      N: Ignoring file 'nodesource.list.save.1' in directory '/etc/apt/sources.list.d/                                                                           ' as it has an invalid filename extension
                                      pi@raspberrypi:~ $ node -v
                                      v16.19.0
                                      pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list.d/nodesource.list
                                        GNU nano 5.4                                              /etc/apt/sources.list.d/nodesource.list
                                      deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
                                      deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main
                                      
                                      
                                      

                                      Platform
                                      linux
                                      OS
                                      linux
                                      Architecture
                                      arm64
                                      CPUs
                                      4
                                      Speed
                                      1800 MHz
                                      Model
                                      Cortex-A72
                                      RAM
                                      3.71 GB
                                      System uptime
                                      00:51:06
                                      Node.js
                                      v16.19.0
                                      time
                                      1672326436528
                                      timeOffset
                                      -60
                                      Number of adapters
                                      537
                                      NPM
                                      8.19.3
                                      Disk size
                                      28.76 GB
                                      Disk free
                                      22.29 GB
                                      Uptime
                                      00:09:39
                                      Active instances
                                      12
                                      path
                                      /opt/iobroker/
                                      Hostname
                                      raspberrypi

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

                                      @vraanaa

                                      Das ist immer noch alles krumm und schief.

                                      sudo rm /etc/apt/sources.list.d/nodesource.list.*
                                      

                                      räumt die überflüssigen Versionen schon mal weg.

                                      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
                                      Antworten
                                      • In einem neuen Thema antworten
                                      Anmelden zum Antworten
                                      • Älteste zuerst
                                      • Neuste zuerst
                                      • Meiste Stimmen


                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate
                                      FAQ Cloud / IOT
                                      HowTo: Node.js-Update
                                      HowTo: Backup/Restore
                                      Downloads
                                      BLOG

                                      834

                                      Online

                                      32.5k

                                      Benutzer

                                      81.8k

                                      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