Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Javascript Adapter rot

    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

    Javascript Adapter rot

    This topic has been deleted. Only users with topic management privileges can see it.
    • ChrisPrefect
      ChrisPrefect @Thomas Braun last edited by

      @thomas-braun sagte in Javascript Adapter rot:

      Ich würde den js-controller und den Javascript nochmal drüberbügeln.

      OK, und wie mache ich das?

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

        @homoran sagte in Javascript Adapter rot:

        dann einfach zum mitschreiben:
        siehst du in der Liste die du in der Konsole erhalten hast irgendwo den Eintrag Adapter "javascript"....?

        Ich sehe die Instanz ja in der Admin-Oberfläche. Der Admin hat ja immerhin eine Versionsnummer und einen Speicherverbrauch der Instanz und ich kann das Debug-Level umstellen und die Instanz neu starten.

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

          @chrisprefect

          cd /opt/iobroker 
          sudo -H -u iobroker npm install iobroker.js-controller
          

          Danach

          iobroker upgrade iobroker.javascript@latest
          
          ChrisPrefect 1 Reply Last reply Reply Quote 0
          • ChrisPrefect
            ChrisPrefect @Thomas Braun last edited by

            @thomas-braun

            Hat glaube ich nicht ganz geklappt:

             sudo -H -u iobroker npm install iobroker.js-controller
            npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
            
            > iobroker.js-controller@3.3.22 preinstall /opt/iobroker/node_modules/iobroker.js-controller
            > node lib/preinstallCheck.js
            
            NPM version: 6.14.15
            
            > iobroker.js-controller@3.3.22 install /opt/iobroker/node_modules/iobroker.js-controller
            > node iobroker.js setup first
            
            object _design/custom updated
            object _design/system updated
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
            npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.7 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
            npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
            npm WARN bl@0.7.0 requires a peer of stream-browserify@* but none is installed. You must install peer dependencies yourself.
            
            + iobroker.js-controller@3.3.22
            updated 1 package in 39.486s
            
            152 packages are looking for funding
              run `npm fund` for details
            

            iobroker upgrade iobroker.javascript@latest

            Uncaught Rejection: SyntaxError: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input
                at parse (<anonymous>)
                at Object.Module._extensions..json (internal/modules/cjs/loader.js:1128:22)
                at Module.load (internal/modules/cjs/loader.js:950:32)
                at Function.Module._load (internal/modules/cjs/loader.js:790:12)
                at Module.require (internal/modules/cjs/loader.js:974:19)
                at require (internal/modules/cjs/helpers.js:93:18)
                at Upgrade.upgradeAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupUpgrade.js:368:27)
                at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupUpgrade.js:276:26
                at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2623:45)
                at processImmediate (internal/timers.js:466:21)
            
            
            mikeal created this issue in request/request

            open Request’s Past, Present and Future #3142

            Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @ChrisPrefect last edited by

              @chrisprefect sagte in Javascript Adapter rot:

              Hat glaube ich nicht ganz geklappt:

              doch! sind nur optionale Abhängigkeiten

              @chrisprefect sagte in Javascript Adapter rot:

              iobroker upgrade iobroker.javascript@latest

              solange sich ioBroker noch aus dem Cache bedient wird das auch so bleiben

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

                @chrisprefect

                cd /opt/iobroker 
                sudo -H -u iobroker npm cache clean --force
                

                Du bist nicht zufällig da als root unterwegs?

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

                  @thomas-braun sagte in Javascript Adapter rot:

                  Du bist nicht zufällig da als root unterwegs?

                  @chrisprefect sagte in Javascript Adapter rot:

                  Error: EACCES: permission denied, scandir '/root'

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

                    @homoran

                    Genau deswegen... Das /home vom root hat da eigentlich nix zu suchen...

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

                      @thomas-braun Habs nochmals mit einem User ausgeführt:

                      pi@ioBrokerVM:~$ cd /opt/iobroker
                      pi@ioBrokerVM:/opt/iobroker$ sudo -H -u iobroker npm cache clean --force
                      [sudo] Passwort für pi:
                      npm WARN using --force I sure hope you know what you are doing.
                      pi@ioBrokerVM:/opt/iobroker$
                      

                      Hat aber nichts geändert.

                      Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @ChrisPrefect last edited by

                        @chrisprefect sagte in Javascript Adapter rot:

                        Hat aber nichts geändert.

                        wobei?
                        hast du danach nochmal iob update -i ausgeführt?
                        Was kam denn da diesmal?

                        ChrisPrefect 1 Reply Last reply Reply Quote 0
                        • ChrisPrefect
                          ChrisPrefect @Homoran last edited by

                          @homoran

                          pi@ioBrokerVM:/opt/iobroker$ iobroker upgrade iobroker.javascript@latest
                          Uncaught Rejection: SyntaxError: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input
                              at parse (<anonymous>)
                              at Object.Module._extensions..json (internal/modules/cjs/loader.js:1128:22)
                              at Module.load (internal/modules/cjs/loader.js:950:32)
                              at Function.Module._load (internal/modules/cjs/loader.js:790:12)
                              at Module.require (internal/modules/cjs/loader.js:974:19)
                              at require (internal/modules/cjs/helpers.js:93:18)
                              at Upgrade.upgradeAdapter (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupUpgrade.js:368:27)
                              at /opt/iobroker/node_modules/iobroker.js-controller/lib/setup/setupUpgrade.js:276:26
                              at Immediate.<anonymous> (/opt/iobroker/node_modules/iobroker.js-controller/lib/setup.js:2623:45)
                              at processImmediate (internal/timers.js:466:21)
                          pi@ioBrokerVM:/opt/iobroker$ iob update -i
                          Used repository: beta
                          hash unchanged, use cached sources
                          update done
                          Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.javascript/io-package.json: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input
                          Cannot read or parse /opt/iobroker/node_modules/iobroker.js-controller/lib/../node_modules/iobroker.javascript/io-package.json: /opt/iobroker/node_modules/iobroker.javascript/io-package.json: Unexpected end of JSON input
                          Adapter    "admin"         : 5.2.3    , installed 5.2.3
                          Adapter    "alexa2"        : 3.12.0   , installed 3.12.0
                          Adapter    "backitup"      : 2.2.3    , installed 2.2.3
                          Adapter    "cloud"         : 4.1.0    , installed 4.1.0
                          Adapter    "deconz"        : 1.3.19   , installed 1.3.19
                          Adapter    "discovery"     : 2.7.5    , installed 2.7.5
                          Adapter    "email"         : 1.0.10   , installed 1.0.10
                          Adapter    "find-my-iphone": 0.2.17   , installed 0.2.17
                          Adapter    "flot"          : 1.10.7   , installed 1.10.7
                          Adapter    "geofency"      : 1.0.3    , installed 1.0.3
                          Adapter    "habpanel"      : 0.4.3    , installed 0.4.3
                          Adapter    "history"       : 1.10.5   , installed 1.10.5
                          Adapter    "icons-material-png": 0.1.0   , installed 0.1.0
                          Adapter    "icons-material-svg": 0.1.0   , installed 0.1.0
                          Adapter    "icons-ultimate-png": 1.0.1   , installed 1.0.1
                          Adapter    "influxdb"      : 2.4.0    , installed 2.4.0
                          Adapter    "info"          : 1.9.16   , installed 1.9.16
                          Adapter    "iot"           : 1.8.25   , installed 1.8.25
                          Adapter    "iqontrol"      : 1.11.0   , installed 1.11.0
                          Adapter    "jarvis"        : 3.0.7    , installed 3.0.7
                          Controller "js-controller" : 3.3.22   , installed 3.3.22
                          Adapter    "lifx"          : 0.1.1    , installed 0.1.1
                          Adapter    "linkeddevices" : 1.4.3    , installed 1.4.3
                          Adapter    "material"      : 1.1.2    , installed 1.1.2
                          Adapter    "mihome-vacuum" : 3.3.1    , installed 3.3.1
                          Adapter    "mobile"        : 1.0.1    , installed 1.0.1
                          Adapter    "modbus"        : 3.4.17   , installed 3.4.17
                          Adapter    "mqtt"          : 2.4.1    , installed 2.4.1
                          Adapter    "node-red"      : 2.4.1    , installed 2.4.1
                          Adapter    "octoprint"     : 2.1.1    , installed 2.1.1
                          Adapter    "onvif"         : 0.4.4    , installed 0.4.4
                          Adapter    "ping"          : 1.5.0    , installed 1.5.0
                          Adapter    "proxy"         : 1.2.2    , installed 1.2.2
                          Adapter    "rickshaw"      : 1.0.0    , installed 1.0.0
                          Adapter    "rpi2"          : 1.3.1    , installed 1.3.1
                          Adapter    "samsung"       : 0.2.9    , installed 0.2.9
                          Adapter    "scenes"        : 2.3.8    , installed 2.3.8
                          Adapter    "shelly"        : 5.0.0    , installed 5.0.0
                          Adapter    "simple-api"    : 2.6.2    , installed 2.6.2
                          Adapter    "smartcontrol"  : 1.2.1    , installed 1.2.1
                          Adapter    "socketio"      : 3.1.5    , installed 3.1.5
                          Adapter    "sonoff"        : 2.4.7    , installed 2.4.7
                          Adapter    "statistics"    : 1.0.10   , installed 1.0.10
                          Adapter    "stockmarket"   : 0.0.2    , installed 0.0.2
                          Adapter    "sureflap"      : 1.0.9    , installed 1.0.9
                          Adapter    "swiss-weather-api": 1.0.2   , installed 1.0.2
                          Adapter    "telegram"      : 1.10.0   , installed 1.10.0
                          Adapter    "tesla-motors"  : 1.0.7    , installed 1.0.7
                          Adapter    "tileboard"     : 0.3.1    , installed 0.3.1
                          Adapter    "tr-064"        : 4.2.15   , installed 4.2.15
                          Adapter    "unifi"         : 0.5.10   , installed 0.5.10
                          Adapter    "vis"           : 1.4.6    , installed 1.4.7
                          Adapter    "vis-bars"      : 0.1.4    , installed 0.1.4
                          Adapter    "vis-canvas-gauges": 0.1.5   , installed 0.1.5
                          Adapter    "vis-colorpicker": 1.2.0   , installed 1.2.0
                          Adapter    "vis-fancyswitch": 1.1.0   , installed 1.1.0
                          Adapter    "vis-history"   : 1.0.0    , installed 1.0.0
                          Adapter    "vis-hqwidgets" : 1.1.9    , installed 1.1.9
                          Adapter    "vis-inventwo"  : 3.2.5    , installed 3.2.5
                          Adapter    "vis-jqui-mfd"  : 1.0.12   , installed 1.0.12
                          Adapter    "vis-justgage"  : 1.0.2    , installed 1.0.2
                          Adapter    "vis-lcars"     : 1.0.4    , installed 1.0.4
                          Adapter    "vis-map"       : 1.0.4    , installed 1.0.4
                          Adapter    "vis-material"  : 0.1.3    , installed 0.1.3
                          Adapter    "vis-materialdesign": 0.5.9   , installed 0.5.9
                          Adapter    "vis-metro"     : 1.1.2    , installed 1.1.2
                          Adapter    "vis-rgraph"    : 0.0.2    , installed 0.0.2
                          Adapter    "vis-timeandweather": 1.1.7   , installed 1.1.7
                          Adapter    "weatherunderground": 3.3.1   , installed 3.3.1
                          Adapter    "web"           : 3.4.16   , installed 3.4.16
                          Adapter    "windows-control": 0.1.5   , installed 0.1.5
                          Adapter    "yahka"         : 0.13.1   , installed 0.13.1
                          Adapter    "zigbee"        : 1.6.12   , installed 1.6.12
                          pi@ioBrokerVM:/opt/iobroker$
                          
                          
                          Homoran 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @ChrisPrefect last edited by

                            @chrisprefect sagte in Javascript Adapter rot:

                            Habs nochmals mit einem User ausgeführt

                            Dann warst du zuvor da als root unterwegs?

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

                              @thomas-braun ja. Als user bekomme ich sonst zu oft Fehlermeldungen wenn wieder irgend was root Berechtigungen braucht. Das stresst mich dann zu oft.

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Homoran
                                Homoran Global Moderator Administrators @ChrisPrefect last edited by

                                @chrisprefect sagte in Javascript Adapter rot:

                                hash unchanged, use cached sources

                                immer noch

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

                                  @chrisprefect sagte in Javascript Adapter rot:

                                  Das stresst mich dann zu oft.

                                  und jetzt hast du das System zu sehr gestresst
                                  Wahrscheinlich sind die Rechte durch die nutzung von root verbogen

                                  iobroker stop
                                  iobroker fix
                                  iobroker start
                                  

                                  als USER

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

                                    @chrisprefect sagte in Javascript Adapter rot:

                                    Das stresst mich dann zu oft.

                                    Und mich stressen Systeme, die von Leuten, die selbst ernannt 'keine Ahnung haben' mit dem root kaputt gefummelt werden.

                                    Ich bin dann raus.

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

                                      @thomas-braun Ich musste erst rumfummeln nachdem das System nicht mehr ging.

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

                                        @homoran Also das Cache-Löschen geht beim zweiten Mal sehr schnell, das heisst beim ersten Mal wurde viel gelöscht.

                                        Habe nochmals rebootet, den Fixer laufen lassen und nochmals update gemacht.

                                        Der Javascript-Adapter ist aber noch immer auf der Version .18 und rot.

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

                                          @chrisprefect
                                          NEIN. mit dem root muss man nie rumfummenln. Gerade nicht ohne Ahnung was man da überhaupt fummelt.

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

                                            @thomas-braun Kann sein. Das ist aber nicht das Problem.

                                            Thomas Braun Homoran 3 Replies Last reply Reply Quote -1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            777
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            91
                                            3745
                                            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