Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] RFLink - Serialport: "nicht möglich"

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] RFLink - Serialport: "nicht möglich"

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators last edited by

      @lobomau:

      ./reinstall.sh: /bin/bash****^M****: `
      mit windows editor bearbeitet?

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

        Dass ich das ganze über JuiceSSH mache ist nicht das Problem?
        @Homoran:

        @lobomau:

        ./reinstall.sh: /bin/bash****^M****: mit windows editor bearbeitet?
        Das ist mir auch aufgefallen. Nein, alles Ubuntu.
        @apollon77:

        Gibt es /bin/bash bei dir? `
        Ja.

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

          Dann lad doch die richtige Datei nochmal aus Github:

          https://github.com/ioBroker/ioBroker.js … install.sh

          und überschreib die Version Di du da hast. Klappts dann?

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

            @apollon77:

            Dann lad doch die richtige Datei nochmal aus Github:

            https://github.com/ioBroker/ioBroker.js … install.sh

            und überschreib die Version Di du da hast. Klappts dann? `
            Hab gemacht:

            wget https://raw.githubusercontent.com/ioBroker/ioBroker.js-controller/master/reinstall.sh
            

            war nix. Die Datei heisst dann reinstall.sh.1. Muss ich die umbennen? Sonst läuft die wie vorher nicht.

            Dann hab ich den Text kopiert und rüberkopiert. Ändert auch nix.

            EDIT: Nach Downgrade node 6.10.3 -> 4.8.3 lief es sofort wieder.

            1 Reply Last reply Reply Quote 0
            • N
              noxx last edited by

              habe heute ebenfalls ein Update von 4.x auf 6.x gefahren.

              Einige Apapter liefen (zb rflink) nicht mehr.

              reinstall.sh habe ich durchlaufen lassen, ziemlich viele

              Fehler und Warnungen, zb

              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.11.1 (node-v48 ABI) (falling back to source compile with node-gyp)
              

              ! ... ...npm WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport@4.0.7 (node_modules/serialport): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 DONE iobroker.mqtt ! > serialport@4.0.7 install /opt/iobroker/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.11.1 (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.11.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/serialport/.node-gyp" ... ... !

              ! ````
              ...
              ...
              node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/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:891:16)
              node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
              node-pre-gyp ERR! System Linux 4.9.35-v7+
              node-pre-gyp ERR! command "/usr/bin/nodejs" "/opt/iobroker/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
              node-pre-gyp ERR! cwd /opt/iobroker/node_modules/serialport
              node-pre-gyp ERR! node -v v6.11.1
              node-pre-gyp ERR! node-pre-gyp -v v0.6.32
              node-pre-gyp ERR! not ok
              Failed to execute '/usr/bin/nodejs /opt/iobroker/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/opt/iobroker/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/opt/iobroker/node_modules/serialport/build/Release' (1)
              ...
              ...</anonymous>

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

                Dann scheint es als ob serial port probleme hat. Installiere mal den rflink adapter neu (von github oder so) und poste mal komplette ausgabe. Danke!

                1 Reply Last reply Reply Quote 0
                • N
                  noxx last edited by

                  Hier das LOG. Das reinstall.sh hat nicht geholfen.

                  ! ````
                  pi@raspberrypi:/opt/iobroker $ sudo npm install iobroker.rflink --production
                  ! > serialport@4.0.7 install /opt/iobroker/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.11.1 (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.11.1"
                  gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/serialport/.node-gyp"
                  node-pre-gyp ERR! UNCAUGHT EXCEPTION
                  node-pre-gyp ERR! stack Error: ENOENT: no such file or directory, open './package.json'
                  node-pre-gyp ERR! stack at Error (native)
                  node-pre-gyp ERR! stack at Object.fs.openSync (fs.js:641:18)
                  node-pre-gyp ERR! stack at Object.fs.readFileSync (fs.js:509:33)
                  node-pre-gyp ERR! stack at handle_gyp_opts (/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js:54:50)
                  node-pre-gyp ERR! stack at do_build (/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/lib/build.js:12:5)
                  node-pre-gyp ERR! stack at /opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/lib/build.js:37:24
                  node-pre-gyp ERR! stack at /opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/lib/configure.js:44:24
                  node-pre-gyp ERR! stack at ChildProcess. <anonymous>(/opt/iobroker/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:85:9)
                  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! System Linux 4.9.35-v7+
                  node-pre-gyp ERR! command "/usr/bin/nodejs" "/opt/iobroker/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
                  node-pre-gyp ERR! cwd /opt/iobroker/node_modules/serialport
                  node-pre-gyp ERR! node -v v6.11.1
                  node-pre-gyp ERR! node-pre-gyp -v v0.6.32
                  node-pre-gyp ERR! This is a bug in node-pre-gyp.
                  node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
                  node-pre-gyp ERR! <https: github.com/mapbox/node-pre-gyp/issues="">iobroker@1.0.0 /opt/iobroker
                  └── (empty)
                  ! npm ERR! Linux 4.9.35-v7+
                  npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.rflink" "--production"
                  npm ERR! node v6.11.1
                  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 7
                  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</https:></anonymous>

                  1 Reply Last reply Reply Quote 0
                  • N
                    noxx last edited by

                    habs nun als root installiert, das ging. kann aber wohl nicht der sinn sein…. :oops:

                    pi@raspberrypi:/opt/iobroker $ su
                    Passwort:
                    root@raspberrypi:/opt/iobroker# sudo npm install iobroker.rflink --production
                    iobroker@1.0.0 /opt/iobroker
                    └─┬ iobroker.rflink@1.1.5
                      └─┬ avrgirl-arduino@1.11.12
                        ├── browser-serialport@2.0.3  (git://github.com/noopkat/browser-serialport.git#a1cecbee1276bfe78b0491f8d13544c70859ff36)
                        └── stk500@1.0.4  (git://github.com/noopkat/js-stk500v1.git#e116a1f72abdafc7d57eb0ee58221556d2b5def4)
                    
                    root@raspberrypi:/opt/iobroker#
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators last edited by

                      @noxx:

                      kann aber wohl nicht der sinn sein…. `
                      Doch!

                      Der serialport benötigt root-Rechte.

                      Gruß

                      Rainer

                      1 Reply Last reply Reply Quote 0
                      • N
                        noxx last edited by

                        ok, wenn dem so ist und das "Problem" nur Serialport betrifft,

                        dann ist das halt so.

                        danke

                        Gruß

                        1 Reply Last reply Reply Quote 0
                        • Homoran
                          Homoran Global Moderator Administrators last edited by

                          Serialport greift aber auch bei USB!

                          Also gpio, cul….

                          Gruß

                          Rainer

                          1 Reply Last reply Reply Quote 0
                          • N
                            noxx last edited by

                            hätte aber gedacht, das ein sudo ausreicht.

                            1 Reply Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators last edited by

                              Die Diskussion führe ich als Linux noob schon lange.

                              Mit sudo installlierst du einige Dateien im Homeverzeichnis von pi, als root in cessen Home.

                              Zusätzlich bleibt bei sudo der user pi der Besitzer.

                              Gruß

                              Rainer

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

                                War da nicht was mit "den User zur Gruppe dialout hinzufügen und es ging" ?!

                                1 Reply Last reply Reply Quote 0
                                • K
                                  krissi last edited by

                                  Ich hab jetzt alles gemacht. Ist auch alles durchgelaufen (reinstall.sh, update auf nodejs 6.x). Die Steckdose geht aber immer noch nicht an. 😞

                                  http://forum.iobroker.net/viewtopic.php … 340#p73587

                                  Was braucht ihr an Infos um mir zu helfen.

                                  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

                                  870
                                  Online

                                  32.0k
                                  Users

                                  80.5k
                                  Topics

                                  1.3m
                                  Posts

                                  6
                                  33
                                  4770
                                  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