Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. [Aufruf] modbus 1.1.0 testen (Serialport upgrade)

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Aufruf] modbus 1.1.0 testen (Serialport upgrade)

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

      Hi Ingo,

      das sieht gut aus:

       "name": "serialport",
        "version": "6.0.4",
      

      Mirko

      1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 last edited by

        Dann wäre mein "guess": passt 🙂

        Es sollte das "lokale "node_modules" vor dem anderen Vorrang haben.

        1 Reply Last reply Reply Quote 0
        • wendy2702
          wendy2702 last edited by

          Zumindest friert der PI /SSH nicht mehr ein wie ich zu beginn hatte.

          1 Reply Last reply Reply Quote 0
          • wendy2702
            wendy2702 last edited by

            Hi,

            muss leider meine letzte Aussage revidieren.

            Heute morgen wieder kein SSH Zugriff mehr möglich.

            Ich werde jetzt mal versuchen den Modbus wieder auf 0.5.4 zu bringen.

            Gruß

            1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 last edited by

              Wäre ja echt mal interessant was genau das Problem ist … kannst Du irgendwie dauerhaft ein "top" auf nem Bildschirm mitlaufen lassen? Bzw was seind denn so die letzten ioBroker logausgaben? Steht in /var/log/syslog irgendwas verwertbares?

              1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 last edited by

                Hi,

                da kein SSH möglich war habe ich erstmal gedacht:

                1. reboot über iobroker Terminal –> kein SSH über Putty, TOP geht leider nicht im iobroker Terminal oder ich weiß nicht wie.

                2. Versuch Downgrade Modbus Adapter. --> ausgeführt, Adapter läuft mit 0.5.4-> immer noch kein SSH

                3. reboot über iobroker Terminal --> weiterhin kein SSH über Putty

                4. downgrade Smartmeter Adapter (wegen Serialport) --> Adapter 1.0.0 läuft --> immer noch kein SSH

                5. reboot über iobroker Terminal --> weiterhin kein SSH über Putty

                6. shutdown über iobroker Terminal. Strom aus, 30 sek. gewartet, Strom an --> SSH OK!!!

                Im Syslog kann ich nur sehen das gestern Abend gegen 21:20 mal die WLAN Verbindung unterbrochen war und das heute morgen der Cron:

                pi-iobroker CRON[6184]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
                

                lief.

                Würde mal vermuten das die Fehlende WLAN Verbindung nicht das SSH Problem verursachen sollte da ich das WLAN schon mal häufiger abgeschaltet habe im zuge von SW Upgrades der Box und APs.

                Ich lassen das jetzt mal mit Top Fenster und den alten Adapter Versionen laufen. Mal sehen ob morgen SSH noch geht. Wenn nicht liegt es an etwas anderem… nur an was 😞

                1 Reply Last reply Reply Quote 0
                • wendy2702
                  wendy2702 last edited by

                  Moin,

                  ich wieder. Nachdem ich einen Workaround wegen meinem SSH Problem gefunden habe wollte ich nochmal die neue Modbus version testen.

                  Habe dazu um sicher zu gehen das meine Node und NPM Versionen nicht zu alt sind dies zuerst upgedated auf:

                  pi@pi-iobroker:/opt/iobroker $ node -v
                  v6.12.3
                  pi@pi-iobroker:/opt/iobroker $ npm -v
                  3.10.10
                  pi@pi-iobroker:/opt/iobroker $
                  
                  

                  Danach dann das````
                  reinstall.sh

                  
                  Wenn ich jetzt sage "Adapter aus GIT installieren" und Modbus auswähle kommt das:
                  
                  

                  $ ./iobroker url "https://github.com/ioBroker/ioBroker.modbus/tarball/master" modbus
                  install https://github.com/ioBroker/ioBroker.modbus/tarball/master
                  npm install https://github.com/ioBroker/ioBroker.modbus/tarball/master --production --prefix "/opt/iobroker" (System call)
                  npm
                  ERR! Linux 4.9.35-v7+npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "https://github.com/ioBroker/ioBroker.modbus/tarball/master" "--production" "--prefix" "/opt/iobroker"
                  npm ERR! node v6.12.3
                  npm ERR! npm v3.10.10
                  npm
                  ERR! path /opt/iobroker/node_modules/jsmodbus/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/uuid/bin/uuidnpm ERR! code ENOENT
                  npm ERR! errno -2
                  npm ERR! syscall chmod

                  npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/uuid/bin/uuid'npm ERR! enoent ENOENT: no such file or directory, chmod '/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/uuid/bin/uuid'
                  npm ERR! enoent This is most likely not a problem with npm itself
                  npm ERR!
                  enoent and is related to npm not being able to find a file.npm ERR! enoent

                  npm ERR! Please include the following file with any support request:npm ERR! /opt/npm-debug.log
                  npm ERR! code 1

                  ERROR: Cannot parse /opt/iobroker/node_modules/iobroker.js-controller/adapter/modbus/io-package.json:Error: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.js-controller/adapter/modbus/io-package.json'
                  process exited with code 0

                  
                  Lustiger weise sagt mir der neue Admin "Erfolgreich" :?
                  
                   ![999_admin_modbus_erfolgreich_.jpg](/assets/uploads/files/999_admin_modbus_erfolgreich_.jpg) 
                  
                  Das werde ich im Admin Thread aber als "Bug" melden.
                  
                  Wie bekomme ich denn jetzt den Modbus wieder ans laufen ohne das ich meine Register Einstellungen verliere?
                  
                  Danke und Gruß
                  
                  Mirko
                  
                  EDIT: Wenn ich es mit sudo davor versuche sieht es so aus:
                  >! ````
                   sudo npm install https://github.com/ioBroker/ioBroker.modbus/tarball/master --production --prefix "/opt/iobroker"
                  >! > serialport@4.0.7 install /opt/iobroker/node_modules/jsmodbus/node_modules/serialport
                  > node-pre-gyp install --fallback-to-build
                  >! node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v48-linux-arm.tar.gz
                  node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@6.12.3 (node-v48 ABI) (falling back to source compile with node-gyp)
                  gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/6.12.3"
                  gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/.node-gyp"
                  make: Entering directory '/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/build'
                  make: *** No rule to make target '../.node-gyp/6.12.3/include/node/common.gypi', needed by 'Makefile'.  Schluss.
                  make: Leaving directory '/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/build'
                  gyp ERR! build error
                  gyp ERR! stack Error: `make` failed with exit code: 2
                  gyp ERR! stack     at ChildProcess.onExit (/opt/iobroker/node_modules/npm/node_modules/node-gyp/lib/build.js:285:23)
                  gyp ERR! stack     at emitTwo (events.js:106:13)
                  gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
                  gyp ERR! System Linux 4.9.35-v7+
                  gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/build/Release"
                  gyp ERR! cwd /opt/iobroker/node_modules/jsmodbus/node_modules/serialport
                  gyp ERR! node -v v6.12.3
                  gyp ERR! node-gyp -v v3.6.0
                  gyp ERR! not ok
                  node-pre-gyp ERR! build error
                  node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/build/Release' (1)
                  node-pre-gyp ERR! stack     at ChildProcess. <anonymous>(/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
                  node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
                  node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
                  node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:920:16)
                  node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
                  node-pre-gyp ERR! System Linux 4.9.35-v7+
                  node-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
                  node-pre-gyp ERR! cwd /opt/iobroker/node_modules/jsmodbus/node_modules/serialport
                  node-pre-gyp ERR! node -v v6.12.3
                  node-pre-gyp ERR! node-pre-gyp -v v0.6.32
                  node-pre-gyp ERR! not ok
                  Failed to execute '/usr/bin/node /opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/jsmodbus/node_modules/serialport/build/Release' (1)
                  iobroker.core@0.1.0 /opt/iobroker
                  └── (empty)
                  >! npm ERR! Linux 4.9.35-v7+
                  npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "https://github.com/ioBroker/ioBroker.modbus/tarball/master" "--production" "--prefix" "/opt/iobroker"
                  npm ERR! node v6.12.3
                  npm ERR! npm  v3.10.10
                  npm ERR! code ELIFECYCLE
                  >! npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build`
                  npm ERR! Exit status 1
                  npm ERR!
                  npm ERR! Failed at the serialport@4.0.7 install script 'node-pre-gyp install --fallback-to-build'.
                  npm ERR! Make sure you have the latest version of node.js and npm installed.
                  npm ERR! If you do, this is most likely a problem with the serialport package,
                  npm ERR! not with npm itself.
                  npm ERR! Tell the author that this fails on your system:
                  npm ERR!     node-pre-gyp install --fallback-to-build
                  npm ERR! You can get information on how to open an issue for this project with:
                  npm ERR!     npm bugs serialport
                  npm ERR! Or if that isn't available, you can get their info via:
                  npm ERR!     npm owner ls serialport
                  npm ERR! There is likely additional logging output above.
                  >! npm ERR! Please include the following file with any support request:
                  npm ERR!     /opt/iobroker/npm-debug.log
                  npm ERR! code 1
                  pi@pi-iobroker:/opt/iobroker $</anonymous> 
                  
                  1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 last edited by

                    mal npm cache clean versucht?

                    ansonsten lösche doch mal alles in /opt/iobroker/node_modules/jsmodbus/ (inklusiv dem verzeichnis) weil wird ja an sich eh neu erzeugt

                    1 Reply Last reply Reply Quote 0
                    • wendy2702
                      wendy2702 last edited by

                      und was nach dem npm cache clean?

                      Update des Adapters über Browser?

                      Update/installation über konsole mit oder ohne sudo?

                      erneutes reinstall.sh?

                      Bin ja immer ungeduldig 😛

                      Nach npm cache clean gerade mal installieren von GIT gemacht und das scheint diesmal geklappt zu haben:

                      $ ./iobroker url "https://github.com/ioBroker/ioBroker.modbus/tarball/master" modbus
                      install https://github.com/ioBroker/ioBroker.modbus/tarball/master
                      npm install https://github.com/ioBroker/ioBroker.modbus/tarball/master --production --prefix "/opt/iobroker" (System call)
                      got /opt/iobroker/node_modules/iobroker.modbus/admin
                      upload [20] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/words.js words.js application/javascript
                      upload [19] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/modbus.png modbus.png image/png
                      upload [18] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/js/jsgrid.min.js lib/js/jsgrid.min.js application/javascript
                      upload [17] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/js/jsgrid.js lib/js/jsgrid.js application/javascript
                      upload [16] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/js/grid.locale-ru.js lib/js/grid.locale-ru.js application/javascript
                      upload [15] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/js/grid.locale-de.js lib/js/grid.locale-de.js application/javascript
                      upload [14] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/css/jsgrid.min.css lib/css/jsgrid.min.css text/css
                      upload [13] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/css/jsgrid.css lib/css/jsgrid.css text/css
                      upload [12] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/css/jsgrid-theme.min.css lib/css/jsgrid-theme.min.css text/css
                      upload [11] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/lib/css/jsgrid-theme.css lib/css/jsgrid-theme.css text/css
                      upload [10] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/index.html index.html text/html
                      upload [9] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/img/plc_back.png img/plc_back.png image/png
                      upload [8] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/ru/translations.json i18n/ru/translations.json application/json
                      upload [7] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/pt/translations.json i18n/pt/translations.json application/json
                      upload [6] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/pl/translations.json i18n/pl/translations.json application/json
                      upload [5] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/nl/translations.json i18n/nl/translations.json application/json
                      upload [4] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/it/translations.json i18n/it/translations.json application/json
                      upload [3] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/fr/translations.json i18n/fr/translations.json application/json
                      upload [2] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/es/translations.json i18n/es/translations.json application/json
                      upload [1] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/en/translations.json i18n/en/translations.json application/json
                      upload [0] modbus.admin /opt/iobroker/node_modules/iobroker.modbus/admin/i18n/de/translations.json i18n/de/translations.json application/json
                      process exited with code 0
                      
                      1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 last edited by

                        jupp sieht gut aus

                        1 Reply Last reply Reply Quote 0
                        • E
                          edno-bommel77 last edited by

                          Hallo,

                          ich bräuchte auch Hilfe seit update auf 1.0.3 und dann nach Anleitung von hier auf 1.1.0 läuft der Modbus nicht mehr habe es auch schon alles wie hier erwähnt probiert. Bin kein Profi muss ich dazusagen aber mit 0.5.4 lief es. Habe aber keinen PI sondern ein apu board wo ich mit proxmox iobroker Visualisiere. Habe auch versucht auf 0.5.4 zurück zukommen hilft auch nicht. Hat jemand noch eine Idee was ich machen kann ausser einen alten Snapshot einzuspielen wo dann meine Arbeit der letzten zwei Monaten weg ist. Habe auch ehrlich vergessen einen neuen Snapshot zu erstellen vor dem update. :oops:

                          danke schone einmal.

                          Gruß Markus

                          1 Reply Last reply Reply Quote 0
                          • wendy2702
                            wendy2702 last edited by

                            Was bedeutet denn````
                            1.1.0 läuft der Modbus nicht mehr

                            
                            Wie nutzt du den Modbus? TCP oder Serial ?
                            
                            Logfile?
                            
                            Gab es error beim upgrade?
                            1 Reply Last reply Reply Quote 0
                            • E
                              edno-bommel77 last edited by

                              Hallo,

                              ich Nutze TCP. Habe meine Lüftungsanlage darüber am laufen. Wie gesagt vor dem Update war alles okay und kommt die gelbe leuchte (Verbunden mit Modus falsch).

                              Hier mal eine Zeile aus dem Log:

                              modbus.0 2018-02-07 15:44:26.504 warn On error: {"code":"EHOSTUNREACH","errno":"EHOSTUNREACH","syscall":"connect","address":"192.168.77.121","port":502}

                              Fehler kammen wie vorher im Beitrag mit Version passt nicht.

                              Gruß

                              Markus

                              1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 last edited by

                                Der fehlt bedeutet das die ip nicht erreicht werden kann. Mach mal auf den Rechner ein „ping 192.168.77.122“. Geht das? Ist die ip korrekt?

                                Das Update hatte nur was bei seriell geändert, also für tcp sollte das Update egal sein. Wenn du sagst das auch die 0.5.4 nicht mehr tut checke mal das Netzwerk und die ip

                                1 Reply Last reply Reply Quote 0
                                • E
                                  edno-bommel77 last edited by

                                  Hallo,

                                  mit 0.5.4 läuft es wieder. Das war die Netzwerkkarte in der Lüftungsanlage die wohl dann heute nachmittag gestreikt hat. Mache erst mal ein Snapshot der VM und dann probiere ich es noch mal die 1.0.3 oder die 1.1.0 zu installieren?

                                  Jetzt habe ich wieder Mut zum Testen.

                                  Gruß

                                  Markus

                                  1 Reply Last reply Reply Quote 0
                                  • apollon77
                                    apollon77 last edited by

                                    Super. Die 1.1.0 ist „latest“ also nimm die

                                    1 Reply Last reply Reply Quote 0
                                    • Q
                                      Qlink last edited by

                                      @Qlink:

                                      Hi Leute,

                                      nach einem Upgrade des Modbus Adapters von 0.5.3 auf 1.0.3 bekomme ich folgende Fehlermeldung:

                                      host.iobroker	2018-01-27 22:42:51.398	error	startInstance modbus.0: cannot find start file!
                                      host.iobroker	2018-01-27 22:42:51.398	info	object change system.adapter.modbus.0
                                      host.iobroker	2018-01-27 22:42:43.981	info	object change system.adapter.modbus.0
                                      host.iobroker	2018-01-27 22:41:54.021	error	startInstance modbus.0: cannot find start file!
                                      host.iobroker	2018-01-27 22:41:53.913	info	object change system.adapter.modbus.0
                                      

                                      Der Adapter startet nicht mehr seit dem Upgrade.

                                      Bei einem Rollback zu 0.5.3 startet er wieder ganz normal und läuft ohne Probleme …

                                      Hat jemand eine Idee? `

                                      Leider sieht es mit 1.1.0 genauso aus. Sobald ich ein Upgrade durchführe kommt die o.g. Fehlermeldung und der Adapter läuft nicht mehr.

                                      Mache ich ein Downgrade auf 0.5.3 läuft er wieder…

                                      @apollon77: Hast du eventuell Unterstützung für mich ?

                                      Danke.

                                      Beste Grüße

                                      1 Reply Last reply Reply Quote 0
                                      • wendy2702
                                        wendy2702 last edited by

                                        Und was steht während dem Upgrade im log?

                                        1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 last edited by

                                          Kann ich mir nicht erklären. Bei mir und anderen tut es.

                                          Welche nodejs/npm Version hast Du? Das wäre das einzige was ich befürchten könnte das du npm 5 jast

                                          1 Reply Last reply Reply Quote 0
                                          • Q
                                            Qlink last edited by

                                            Wenn ich nodejs command prompt starte erscheint am Anfang:

                                            Your environment has been set up for using Node.js 4.5.0 (x64) and npm.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            536
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            52
                                            4802
                                            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