Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 4.0 jetzt im BETA/LATEST!

    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

    js-controller 4.0 jetzt im BETA/LATEST!

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

      @apollon77 sagte in js-controller 4.0 jetzt im BETA/LATEST!:

      @alligator Und was hast Du genau getan?

      Kann ich gar nicht genau sagen, hab's mehrfache versuche mit "iob fix" / "reboot" und "npm install iobroker.js-controller@3.3.22" in unterschiedlicher Reihenfolge. Und irgend wann hat es dann mit dem Downgrade geklappt. Sorry das ich es nicht genauer beschreiben kann.

      Ich habe jetzt nochmal auf JS-C 4.0.5 geupdatet und wieder mit dem gleichen Erfolg das beim Update oder Downgrade die Meldung kommt:

      Could not check npm version: This directory tree does not contain a package.json
       
      Assuming that correct version is installed.
      

      und ein Up oder Downgrade von Adaptern nicht möglich ist.

      Bei der Eingabe "whitch npm" kommt bei beiden JS-C Versionen (3.3.22 sowie 4.0.5) immer:

      "/usr/local/bin/npm"

      Ein nvm oder sowas nutze ich soweit ich weiß nicht. Wie kann ich das feststellen?

      Ein Downgrade von 4.0.5 auf 3.3.22 hat jetzt aber ohne Probleme Funktioniert.

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

        @alligator sagte in js-controller 4.0 jetzt im BETA/LATEST!:

        "/usr/local/bin/npm"

        Das ist der bekannte falsche Pfad. Schau in meiner Signatur wie man nodejs und npm sauber aufsetzt.

        1 Reply Last reply Reply Quote 0
        • M
          m0rph @apollon77 last edited by

          @apollon77 6.14.16

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

            Hi,

            die NPM package.json nicht gefunden Fehler werden in der kommenden 4.0.6 behoben sein

            Alligator J 2 Replies Last reply Reply Quote 0
            • apollon77
              apollon77 @e-s last edited by

              @e-s SInd halt die üblichen unix_dgram Compile Warnungen ...

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

                Hi All,

                vielen Dank für Euren Support, die 4.0.6 kommt über Nacht wieder ins Repo und hat:

                4.0.6 (2022-02-09)

                • (AlCalzone) Optimize some JSONL cases
                • (foxriver76) Optimize Backup restore process
                • (AlCalzone) Fix issues that prevented adapter installs/updates (npm can not be located error message)
                • (Apollon77) Fix seq Logging issue
                • (foxriver76/Apollon77) Prevent several crash cases seen in Sentry
                Thomas Braun O 2 Replies Last reply Reply Quote 2
                • Thomas Braun
                  Thomas Braun Most Active @apollon77 last edited by Thomas Braun

                  @apollon77 @AlCalzone

                  Fix issues that prevented adapter installs/updates (npm can not be located error message)

                  Das finde ich interessant. Was war da der Grund das npm nicht im $PATH gefunden wurde?

                  AlCalzone 1 Reply Last reply Reply Quote 0
                  • Neuschwansteini
                    Neuschwansteini last edited by

                    @apollon77 update von 4.0.5 auf 4.0.6 ohne besondere Vorkommnisse.

                    1 Reply Last reply Reply Quote 1
                    • O
                      oFbEQnpoLKKl6mbY5e13 @apollon77 last edited by

                      @apollon77
                      Ist da mein Fall auch mit abgedeckt?

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

                        @ofbeqnpolkkl6mby5e13 das logfile hatte nicht mehr Infos drin. Von daher puuhhh. Ich sag mal so; Versuchs nochmal.

                        O 1 Reply Last reply Reply Quote 0
                        • O
                          oFbEQnpoLKKl6mbY5e13 @apollon77 last edited by oFbEQnpoLKKl6mbY5e13

                          @apollon77

                          # iobroker upgrade self
                          Update js-controller from @3.3.22 to @4.0.6
                          NPM version: 6.14.16
                          npm install iobroker.js-controller@4.0.6 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                          Uncaught Rejection: TypeError: Cannot read property '_id' of null
                              at /opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3421:42
                              at Array.map (<anonymous>)
                              at ObjectsInRedisClient._applyViewFunc (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3413:39)
                              at processTicksAndRejections (internal/process/task_queues.js:95:5)
                          npm ERR! code ELIFECYCLE
                          npm ERR! errno 6
                          npm ERR! iobroker.js-controller@4.0.6 install: `node iobroker.js setup first`
                          npm ERR! Exit status 6
                          npm ERR! 
                          npm ERR! Failed at the iobroker.js-controller@4.0.6 install script.
                          npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                          
                          npm ERR! A complete log of this run can be found in:
                          npm ERR!     /opt/iobroker/.npm/_logs/2022-02-10T06_53_37_143Z-debug.log
                          host.iobroker Cannot install iobroker.js-controller@4.0.6: 6
                          

                          Hilft das?:

                          npm info lifecycle iobroker.js-controller@4.0.6~install: iobroker.js-controller@4.0.6
                          
                          > iobroker.js-controller@4.0.6 install /opt/iobroker/node_modules/iobroker.js-controller
                          > node iobroker.js setup first
                          
                          Uncaught Rejection: TypeError: Cannot read property '_id' of null
                              at /opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3421:42
                              at Array.map (<anonymous>)
                              at ObjectsInRedisClient._applyViewFunc (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3413:39)
                              at processTicksAndRejections (internal/process/task_queues.js:95:5)
                          npm info lifecycle iobroker.js-controller@4.0.6~install: Failed to exec install script
                          
                          foxriver76 2 Replies Last reply Reply Quote 0
                          • AlCalzone
                            AlCalzone Developer @Thomas Braun last edited by

                            @thomas-braun Wir verwenden seit 4.x (m)eine Library, die sich um die Aufrufe vom Paketmanager kümmert. Mein Hintergedanke ist, dass wir dann irgendwann ohne großen Ärger zu einem anderen wechseln können, der nicht jedes halbe Jahr alles anders macht und unsere Installation breakt.

                            Die Library sucht eigentlich vom aktuellen Pfad (bzw. da wo die .js-Datei liegt) aus nach einem lockfile (z.B. package-lock.json), um den aktiven Paketmanager zu bestimmen. Bei einigen Usern existiert das nicht.

                            1 Reply Last reply Reply Quote 1
                            • foxriver76
                              foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                              @ofbeqnpolkkl6mby5e13 welcher Datenbanktyp ist im Einsatz?

                              O 1 Reply Last reply Reply Quote 0
                              • O
                                oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

                                @foxriver76
                                Redis States und Objects.

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

                                  Update von 4.0.5 auf 4.0.6 ohne Probleme.
                                  CLI Ausgabe:

                                  Update js-controller from @4.0.5 to @4.0.6
                                  Stopped Objects DB
                                  Stopped States DB
                                  NPM version: 6.14.16
                                  Installing iobroker.js-controller@4.0.6... (System call)
                                  
                                  > iobroker.js-controller@4.0.6 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                  > node lib/preinstallCheck.js
                                  
                                  NPM version: 6.14.16
                                  
                                  > iobroker.js-controller@4.0.6 install /opt/iobroker/node_modules/iobroker.js-controller
                                  > node iobroker.js setup first
                                  
                                  Successfully migrated 18783 objects to Redis Sets
                                  object _design/system updated
                                  {
                                    "defaultPrivate": "-----BEGIN RSA PRIVATE KEY-----\r\n***\r\n-----END RSA PRIVATE KEY-----\r\n",
                                    "defaultPublic": "-----BEGIN CERTIFICATE-----\r\n***\r\n-----END CERTIFICATE-----\r\n"
                                  }
                                  Update certificate defaultPrivate
                                  The object "system.certificates" was updated successfully.
                                  Update certificate defaultPublic
                                  The object "system.certificates" was updated successfully.
                                  + iobroker.js-controller@4.0.6
                                  updated 13 packages in 47.713s
                                  
                                  73 packages are looking for funding
                                    run `npm fund` for details
                                  

                                  1 Reply Last reply Reply Quote 1
                                  • foxriver76
                                    foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                                    @ofbeqnpolkkl6mby5e13 sagte in js-controller 4.0 jetzt im BETA/LATEST!:

                                    npm info lifecycle iobroker.js-controller@4.0.6~install: iobroker.js-controller@4.0.6 > iobroker.js-controller@4.0.6 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first Uncaught Rejection: TypeError: Cannot read property '_id' of null at /opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3421:42 at Array.map (<anonymous>) at ObjectsInRedisClient._applyViewFunc (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3413:39) at processTicksAndRejections (internal/process/task_queues.js:95:5) npm info lifecycle iobroker.js-controller@4.0.6~install: Failed to exec install script

                                    Kannst du mal mittels npm i iobroker.js-controller@next im Verzeichnis /opt/iobroker das upgrade anstoßen, damit ich mehr Log sehe. Irgendein Object View liefert null zurück, das sollte nicht sein.

                                    O 1 Reply Last reply Reply Quote 0
                                    • O
                                      oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

                                      @foxriver76 sagte in js-controller 4.0 jetzt im BETA/LATEST!:

                                      npm i iobroker.js-controller@next

                                      # pwd
                                      /opt/iobroker
                                      # npm i iobroker.js-controller@next
                                      
                                      > iobroker.js-controller@4.0.5 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                      > node lib/preinstallCheck.js
                                      
                                      NPM version: 6.14.16
                                      
                                      > iobroker.js-controller@4.0.5 install /opt/iobroker/node_modules/iobroker.js-controller
                                      > node iobroker.js setup first
                                      
                                      Uncaught Rejection: TypeError: Cannot read property '_id' of null
                                          at /opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3421:42
                                          at Array.map (<anonymous>)
                                          at ObjectsInRedisClient._applyViewFunc (/opt/iobroker/node_modules/@iobroker/db-objects-redis/lib/objects/objectsInRedisClient.js:3413:39)
                                          at processTicksAndRejections (internal/process/task_queues.js:95:5)
                                      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: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/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: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/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: fsevents@2.3.2 (node_modules/zigbee-herdsman/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 ERR! code ELIFECYCLE
                                      npm ERR! errno 6
                                      npm ERR! iobroker.js-controller@4.0.5 install: `node iobroker.js setup first`
                                      npm ERR! Exit status 6
                                      npm ERR! 
                                      npm ERR! Failed at the iobroker.js-controller@4.0.5 install script.
                                      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                      
                                      npm ERR! A complete log of this run can be found in:
                                      npm ERR!     /root/.npm/_logs/2022-02-10T08_31_44_396Z-debug.log
                                      # 
                                      
                                      foxriver76 2 Replies Last reply Reply Quote 0
                                      • foxriver76
                                        foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                                        @ofbeqnpolkkl6mby5e13 ok da passiert kein logging davor, thanks.

                                        1 Reply Last reply Reply Quote 0
                                        • foxriver76
                                          foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                                          @ofbeqnpolkkl6mby5e13 single host oder multihost?

                                          O 1 Reply Last reply Reply Quote 0
                                          • O
                                            oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

                                            @foxriver76
                                            Single.

                                            foxriver76 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

                                            465
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            70
                                            747
                                            168665
                                            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