Navigation

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

    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 3.3 jetzt im STABLE!

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

      @sandro_gera Ok also nur normales backup. Ich nehme an Du hast die File DB.

      mach mal ein

      'du -Hs /opt/iobroker/iobroker-data/files`

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

        @apollon77 said in js-controller 3.3 jetzt im STABLE!:

        du -Hs /opt/iobroker/iobroker-data/files

        du -Hs /opt/iobroker/iobroker-data/files
        

        und jetzt?

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

          @sandro_gera Was ist die Ausgabe?

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

            @apollon77

            94828   /opt/iobroker/iobroker-data/files
            
            apollon77 1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 @sandro_gera last edited by apollon77

              @sandro_gera Ok, 94MB ... da wüsste ich nicht warum du ein memory issue bekommen solltest

              Welche Node.js version?

              S 3 Replies Last reply Reply Quote 0
              • S
                sandro_gera @apollon77 last edited by

                @apollon77

                Na wenn du das nicht verstehst. Versteh ich es erst recht nicht

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

                  @apollon77

                  12.22.7

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

                    @sandro_gera Mir fällt dann nur einmal auf Nodejs 14 zu gehen und schauen was passiert ...

                    S 2 Replies Last reply Reply Quote 0
                    • S
                      sandro_gera @Thomas Braun last edited by

                      @thomas-braun

                      Die Anweidung meine ich Thomas.

                      e937da8b-c585-4fb6-b041-b2837946f61d-grafik.png

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

                        @apollon77

                        Kannst du mir evtl. Sagen wie ich das mache? oder einen Link schicken?

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

                          @apollon77

                          hier ist nochmal die komplette Ausgabe nach dem anstoßen des backups.

                          pi@RaspBee-II-Phoscon:~ $ iob backup
                          host.RaspBee-II-Phoscon 6917 states saved
                          host.RaspBee-II-Phoscon 8384 objects saved
                          
                          <--- Last few GCs --->
                          
                          [9996:0x25fb348]    19872 ms: Mark-sweep 230.5 (232.2) -> 230.5 (232.2) MB, 90.9                                 / 0.0 ms  (average mu = 0.724, current mu = 0.001) last resort GC in old space                                 requested
                          [9996:0x25fb348]    20043 ms: Mark-sweep 230.5 (232.2) -> 230.4 (231.9) MB, 171.                                0 / 0.0 ms  (average mu = 0.487, current mu = 0.001) last resort GC in old space                                 requested
                          
                          
                          <--- JS stacktrace --->
                          
                          ==== JS stack trace =========================================
                          
                          Security context: 0x73d8d925 <JSObject>
                              0: builtin exit frame: parse(aka parse)(this=0x4b780279 <undefined>,0x183400                                8d <Very long string[66411106]>,0x4b780279 <undefined>)
                          
                              1: .json [0x57d93cb1] [internal/modules/cjs/loader.js:1041] [bytecode=0x39e7                                3931 offset=82](this=0x4a2bfe61 <Object map = 0x245c224d>,0x282c7d31 <Module map                                 = 0x245e4915>,0x39e733b5 <String[#72]: /opt/iobroker/node_modules/iobroker.js-c                                ontroller/tmp/backup/back...
                          
                          FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memo                                ry
                          /usr/bin/iob: Zeile 8:  9995 Abgebrochen             sudo -H -u iobroker node /o                                pt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
                          pi@RaspBee-II-Phoscon:~ $
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • JLeg
                            JLeg last edited by

                            @apollon77 könnte hier evtl. nicht der compact mode helfen? würde mich interessieren... 🙂

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

                              @apollon77

                              in dem Video wird empfohlen vorher den js controller zu aktualisieren.

                              https://www.youtube.com/watch?v=S4-MhZ1NfYY.

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

                                @jleg Hier geht es ja nicht um einen Adapter und RAM an sich ist auch genug frei.

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

                                  @sandro_gera Ja klar ... ehrlich: Mach ne Sicherung von /opt/iobroker/iobroker-data und dann js controller aktualisieren. Das ist quasi so gut wie ein backup 🙂

                                  Wobei ich ehrlich eher bei Node.js aktualisieren bin. Es gab einen anderen Fall der Auch ein memotry issue hatte was nach Nodejs 14 update weg war und nur mit Nodejs 12 auftrat. Grund: unbekannt.

                                  S 2 Replies Last reply Reply Quote 0
                                  • S
                                    sandro_gera @apollon77 last edited by sandro_gera

                                    @apollon77

                                    Sorry wenn ich doof frage aber wie mache ich eine Sicherung von /opt/iobroker/iobroker-data ?
                                    Einfach mit Filezilla den Ordner auf den PC kopieren?

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

                                      @sandro_gera Das sollte gehen. Da sind an sich keine Symbolischen Links drin.

                                      S 2 Replies Last reply Reply Quote 0
                                      • S
                                        sandro_gera @apollon77 last edited by

                                        @apollon77

                                        ok dann kopier ich zuerst den Ordner, dann mach ich das update vom cs controller und anschließens date auf node Js 14 up. mal sehen ob ich danach eine richtige Sicherung machen kann.
                                        Was mich nur wundert ist das der Fehler vorher nicht aufgetreten ist. Ich hab ja schon öfter Sicherungen gemacht und es ging immer.

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

                                          @apollon77

                                          Hallo, irgendwie scheint es da ein Problem zu geben.

                                          Ich bekomme folgende Fehlermeldung

                                          pi@RaspBee-II-Phoscon:~ $ iob update
                                          Used repository: Stable (default)
                                          hash changed or no sources cached => force download of new sources
                                          Cannot download json from http://download.iobroker.net/sources-dist.json. Error:                      Error: ESOCKETTIMEDOUT
                                          failed to download new sources, use cached sources
                                          update done
                                          Adapter    "deconz"        : 1.3.19   , installed 1.3.19
                                          Adapter    "hue-extended"  : 2.0.0    , installed 2.0.0
                                          Controller "js-controller" : 3.3.21   , installed 3.3.18 [Updateable]
                                          Adapter    "sonoff"        : 2.4.5    , installed 2.4.5
                                          pi@RaspBee-II-Phoscon:~ $ iob upgrade self
                                          Update js-controller from @3.3.18 to @3.3.21
                                          NPM version: 6.14.15
                                          npm install iobroker.js-controller@3.3.21 --loglevel error --unsafe-perm --prefi                     x "/opt/iobroker" (System call)
                                          pi@RaspBee-II-Phoscon:~ $
                                          
                                          

                                          Jetzt schint es funktioniert zu haben

                                          pi@RaspBee-II-Phoscon:~ $ iob update
                                          Used repository: Stable (default)
                                          hash changed or no sources cached => force download of new sources
                                          update done
                                          Adapter    "deconz"        : 1.3.19   , installed 1.3.19
                                          Adapter    "hue-extended"  : 2.0.0    , installed 2.0.0
                                          Controller "js-controller" : 3.3.21   , installed 3.3.21
                                          Adapter    "sonoff"        : 2.4.5    , installed 2.4.5
                                          pi@RaspBee-II-Phoscon:~ $ iob upgrade self
                                          Host    "RaspBee-II-Phoscon" is up to date.
                                          pi@RaspBee-II-Phoscon:~ $ sudo reboot
                                          
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            sandro_gera @apollon77 last edited by

                                            @apollon77

                                            Also die updates haben beide funktioniert. js controller und Node js sind jetzt aktuell.
                                            Leider hat das nichts an der Fehlermeldung geändert.

                                            pi@RaspBee-II-Phoscon:~ $ iob stop
                                            pi@RaspBee-II-Phoscon:~ $ iob backup
                                            host.RaspBee-II-Phoscon 6917 states saved
                                            host.RaspBee-II-Phoscon 8384 objects saved
                                            
                                            <--- Last few GCs --->
                                            
                                            [2241:0x4f8baf8]    19578 ms: Mark-sweep (reduce) 230.4 (235.4) -> 230.4 (235.4)                                 MB, 126.4 / 0.0 ms  (average mu = 0.594, current mu = 0.001) last resort GC in                                 old space requested
                                            [2241:0x4f8baf8]    19676 ms: Mark-sweep (reduce) 230.4 (233.4) -> 230.4 (233.4)                                 MB, 97.8 / 0.0 ms  (average mu = 0.443, current mu = 0.001) last resort GC in o                                ld space requested
                                            
                                            
                                            <--- JS stacktrace --->
                                            
                                            FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memo                                ry
                                            /usr/bin/iob: Zeile 8:  2240 Abgebrochen             sudo -H -u iobroker node /o                                pt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
                                            pi@RaspBee-II-Phoscon:~ $ sudo reboot
                                            
                                            
                                            
                                            Thomas Braun 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

                                            884
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            61
                                            344
                                            65514
                                            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