Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Simatic S7 Adapter Fehlermeldung

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Simatic S7 Adapter Fehlermeldung

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Peachy @Peachy last edited by

      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 Reply Last reply Reply Quote 0
      • Vraanaa
        Vraanaa @Darkmann2000 last edited by

        @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 Braun D 2 Replies Last reply Reply Quote 1
        • Thomas Braun
          Thomas Braun Most Active @Vraanaa last edited by

          @vraanaa

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

          Vraanaa 1 Reply Last reply Reply Quote 1
          • D
            Darkmann2000 @Vraanaa last edited by

            @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 Reply Last reply Reply Quote 1
            • Vraanaa
              Vraanaa @Thomas Braun last edited by 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 😬 :
              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 Braun 2 Replies Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Vraanaa last edited by

                @vraanaa

                Schau in meiner Signatur.

                Vraanaa 1 Reply Last reply Reply Quote 1
                • Thomas Braun
                  Thomas Braun Most Active @Vraanaa last edited by

                  @vraanaa

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

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

                  Grothesk242 created this issue in mathiask88/node-snap7

                  closed Won't build with nodejs19 #88

                  1 Reply Last reply Reply Quote 1
                  • Thomas Braun
                    Thomas Braun Most Active @Darkmann2000 last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • Vraanaa
                      Vraanaa @Thomas Braun last edited by

                      @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 Braun 2 Replies Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Vraanaa last edited by 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.

                        Vraanaa 1 Reply Last reply Reply Quote 1
                        • Thomas Braun
                          Thomas Braun Most Active @Vraanaa last edited by

                          @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.

                          1 Reply Last reply Reply Quote 0
                          • Vraanaa
                            Vraanaa @Thomas Braun last edited by

                            @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 Braun 1 Reply Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Vraanaa last edited by

                              @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.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Support us

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

                              876
                              Online

                              31.9k
                              Users

                              80.2k
                              Topics

                              1.3m
                              Posts

                              4
                              18
                              1558
                              Loading More Posts
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes
                              Reply
                              • Reply as topic
                              Log in to reply
                              Community
                              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                              The ioBroker Community 2014-2023
                              logo