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.
    • E
      eXectiX @ice987 last edited by

      @ice987 @ste_glei
      ich habe den selben fehler nun beim starten des Containers.
      Die Eingabe von iobroker fix bewirkt in der Konsole allerdings nichts und der Fehler bleibt beim erneuten versuch zu starten.
      Könnt ihr mir weiter helfen?

      ste_glei 1 Reply Last reply Reply Quote 0
      • S
        seelmkrl last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S
          seelmkrl @apollon77 last edited by

          @apollon77 - Wie kann ich mit dem js-controller 4.0 von redis auf JSONL umstellen ?

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

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

            @oliverio Zu "Fehler 1" tippe ich das Du zu schnell warst. In Deinem Log sieht man Das Du die Systemkonfig 18:43 gespeichert hast und damit Admin und Backiutup und Discovery neu gestartet sind. 18:43:11 war wieder alles da. und ich denke das Du irgendwie geschafft hast das Repo in dieser kurzen Zeit zu ändern als Admin sich gerade verabschliedet hat oder sowas ... aber das sehe ich nicht so genau. müsste man mal nachstellen. Passiert es auch wenn du "langsamer" bist?

            Und der Rest ist, wie foxriver76 schon gesagt auf GitHub schon gefixt. 4.0.5 mit den Fixes kommt später noch.

            ok dann mach ich retest mit 4.0.5

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

              Hallo Alle miteinander,

              wir haben die letzten Tage Euer Feeback und die kleineren Issues gesammelt und die Version 4.0.5 wird im laufe der Nacht im Latest Repo auftauchen:

              4.0.5 (2022-02-08)

              • (foxriver76) stop the database before executing upgrade self; WIll be effective for all upgrades >4.0.5
              • (foxriver76) Optimize Set activation handling to prevent some error logged on upgrade
              • (Apollon77) Fix Linux Capability updating for Docker and check Admin Flag
              • (Apollon77) Detect another Rebuild case and allo wautomatic rebuilding
              • (foxriver76) Fix adapter installation with dependencies
              • (Apollon77) Fix seq edge case
              • (foxriver76/Apollon77) Prevent several crash cases seen in Sentry
              F 1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @seelmkrl last edited by

                @seelmkrl WIe auch schon bei den früheren versionen ... iob setup custom und dann dort als typ "jsonl" eingeben ... Dann alle Fragen zur Mkgration rentsprechend Deinen Gegebenheiten beantworten.

                1 Reply Last reply Reply Quote 0
                • crunchip
                  crunchip Forum Testing Most Active @apollon77 last edited by

                  @apollon77 so sieht es aus

                  root@IoBroker:/opt/iobroker# node --trace-warnings /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js upgrade cameras                                        (node:1321) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
                      at emitCircularRequireWarning (internal/modules/cjs/loader.js:675:11)
                      at Object.get (internal/modules/cjs/loader.js:689:5)
                      at Object.<anonymous> (/opt/iobroker/node_modules/mongodb/lib/operations/db_ops.js:15:42)
                      at Module._compile (internal/modules/cjs/loader.js:1085:14)
                      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
                      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 Object.<anonymous> (/opt/iobroker/node_modules/mongodb/lib/operations/collection_ops.js:7:23)
                  (node:1321) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
                      at emitCircularRequireWarning (internal/modules/cjs/loader.js:675:11)
                      at Object.get (internal/modules/cjs/loader.js:689:5)
                      at Object.<anonymous> (/opt/iobroker/node_modules/mongodb/lib/operations/db_ops.js:16:44)
                      at Module._compile (internal/modules/cjs/loader.js:1085:14)
                      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
                      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 Object.<anonymous> (/opt/iobroker/node_modules/mongodb/lib/operations/collection_ops.js:7:23)
                  (node:1321) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
                      at emitCircularRequireWarning (internal/modules/cjs/loader.js:675:11)
                      at Object.get (internal/modules/cjs/loader.js:689:5)
                      at Object.<anonymous> (/opt/iobroker/node_modules/mongodb/lib/operations/db_ops.js:17:43)
                      at Module._compile (internal/modules/cjs/loader.js:1085:14)
                      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
                      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 Object.<anonymous> (/opt/iobroker/node_modules/mongodb/lib/operations/collection_ops.js:7:23)
                  (node:1321) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
                      at emitCircularRequireWarning (internal/modules/cjs/loader.js:675:11)
                      at Object.get (internal/modules/cjs/loader.js:689:5)
                      at Object.<anonymous> (/opt/iobroker/node_modules/mongodb/lib/operations/db_ops.js:18:46)
                      at Module._compile (internal/modules/cjs/loader.js:1085:14)
                      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
                      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 Object.<anonymous> (/opt/iobroker/node_modules/mongodb/lib/operations/collection_ops.js:7:23)
                  
                  This upgrade of "cameras" will introduce the following changes:
                  ==========================================================================
                  -> 0.1.4:
                  Add role for states
                  ==========================================================================
                  
                  Would you like to upgrade cameras from @0.1.3 to @0.1.4 now? [(y)es, (n)o]:
                  
                  
                  apollon77 1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 @crunchip last edited by

                    @crunchip Wie vermutet. Schau bitte mal wo das mongodb Paket bei Dir herkommt. Das ist die Ursache:

                    Im ioBroker Dir bitte npm list mongodb

                    crunchip 1 Reply Last reply Reply Quote 1
                    • crunchip
                      crunchip Forum Testing Most Active @apollon77 last edited by

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

                      npm list mongodb

                      root@IoBroker:/opt/iobroker# npm list mongodb
                      iobroker.inst@2.0.3 /opt/iobroker
                      └── mongodb@3.2.7  extraneous
                      
                      npm ERR! extraneous: mongodb@3.2.7 /opt/iobroker/node_modules/mongodb
                      
                      
                      apollon77 1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @crunchip last edited by

                        @crunchip Also das kommt optional über node-red ... welchen Node-Red hast Du denn? Ggff mal auf die 2.4.2 von gestern aktualisieren. Ists danach weg?

                        crunchip 1 Reply Last reply Reply Quote 0
                        • crunchip
                          crunchip Forum Testing Most Active @apollon77 last edited by crunchip

                          @apollon77 ich habe kein node-red und hatte ich auch noch nie
                          kann das von einem anderen Adapter kommen?
                          das sind alle meine installierten instanzen

                          root@IoBroker:/opt/iobroker# iob list instances
                          (node:11720) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
                          (Use `node --trace-warnings ...` to show where the warning was created)
                          (node:11720) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
                          (node:11720) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
                          (node:11720) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
                           system.adapter.adguard.0                : adguard               : IoBroker                                 - disabled
                          + system.adapter.admin.0                  : admin                 : IoBroker                                 -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                          + system.adapter.alexa2.0                 : alexa2                : IoBroker                                 -  enabled
                           system.adapter.alias-manager.0          : alias-manager         : IoBroker                                 -  enabled
                          + system.adapter.backitup.0               : backitup              : IoBroker                                 -  enabled
                          + system.adapter.ble.0                    : ble                   : IoBroker                                 -  enabled
                          + system.adapter.broadlink2.0             : broadlink2            : IoBroker                                 -  enabled
                           system.adapter.cameras.0                : cameras               : IoBroker                                 - disabled, port: 8200, bind: 10.1.1.10
                          + system.adapter.chromecast.0             : chromecast            : IoBroker                                 -  enabled
                          + system.adapter.coronavirus-statistics.0 : coronavirus-statistics: IoBroker                                 -  enabled
                           system.adapter.daswetter.0              : daswetter             : IoBroker                                 - disabled
                           system.adapter.device-reminder.0        : device-reminder       : IoBroker                                 - disabled
                           system.adapter.devices.0                : devices               : IoBroker                                 -  enabled
                           system.adapter.discovery.0              : discovery             : IoBroker                                 - disabled
                           system.adapter.dwd.0                    : dwd                   : IoBroker                                 -  enabled
                           system.adapter.ebus.0                   : ebus                  : IoBroker                                 - disabled
                          + system.adapter.echarts.0                : echarts               : IoBroker                                 -  enabled
                          + system.adapter.email.0                  : email                 : IoBroker                                 -  enabled
                           system.adapter.esphome.0                : esphome               : IoBroker                                 - disabled
                           system.adapter.eventlist.0              : eventlist             : IoBroker                                 - disabled
                           system.adapter.feiertage.0              : feiertage             : IoBroker                                 -  enabled
                           system.adapter.firetv.0                 : firetv                : IoBroker                                 - disabled
                           system.adapter.flot.0                   : flot                  : IoBroker                                 -  enabled
                           system.adapter.fullcalendar.0           : fullcalendar          : IoBroker                                 - disabled
                          + system.adapter.fully-tablet-control.0   : fully-tablet-control  : IoBroker                                 -  enabled
                           system.adapter.fullybrowser.0           : fullybrowser          : IoBroker                                 - disabled
                          + system.adapter.history.0                : history               : IoBroker                                 -  enabled
                           system.adapter.hyperion.0               : hyperion              : IoBroker                                 - disabled
                           system.adapter.hyperion_ng.0            : hyperion_ng           : IoBroker                                 - disabled
                           system.adapter.ical.0                   : ical                  : IoBroker                                 -  enabled
                           system.adapter.ical.1                   : ical                  : IoBroker                                 -  enabled
                           system.adapter.icons-addictive-flavour-png.0: icons-addictive-flavour-png: IoBroker                                 -  enabled
                           system.adapter.icons-fatcow-hosting.0   : icons-fatcow-hosting  : IoBroker                                 -  enabled
                           system.adapter.icons-icons8.0           : icons-icons8          : IoBroker                                 -  enabled
                           system.adapter.icons-material-png.0     : icons-material-png    : IoBroker                                 -  enabled
                           system.adapter.icons-material-svg.0     : icons-material-svg    : IoBroker                                 -  enabled
                           system.adapter.icons-mfd-png.0          : icons-mfd-png         : IoBroker                                 -  enabled
                           system.adapter.icons-mfd-svg.0          : icons-mfd-svg         : IoBroker                                 -  enabled
                           system.adapter.icons-open-icon-library-png.0: icons-open-icon-library-png: IoBroker                                 -  enabled
                           system.adapter.icons-ultimate-png.0     : icons-ultimate-png    : IoBroker                                 -  enabled
                          + system.adapter.influxdb.0               : influxdb              : IoBroker                                 -  enabled, port: 8086
                          + system.adapter.influxdb.1               : influxdb              : IoBroker                                 -  enabled, port: 8086
                          + system.adapter.influxdb.2               : influxdb              : IoBroker                                 -  enabled, port: 8086
                          + system.adapter.influxdb.3               : influxdb              : IoBroker                                 -  enabled, port: 8086
                          + system.adapter.info.0                   : info                  : IoBroker                                 -  enabled
                           system.adapter.iogo.0                   : iogo                  : IoBroker                                 - disabled
                          + system.adapter.iot.0                    : iot                   : IoBroker                                 -  enabled
                           system.adapter.iqontrol.0               : iqontrol              : IoBroker                                 - disabled
                          + system.adapter.jarvis.0                 : jarvis                : IoBroker                                 -  enabled
                          + system.adapter.javascript.0             : javascript            : IoBroker                                 -  enabled
                           system.adapter.javascript.1             : javascript            : IoBroker                                 - disabled
                          + system.adapter.linux-control.0          : linux-control         : IoBroker                                 -  enabled
                          + system.adapter.logparser.0              : logparser             : IoBroker                                 -  enabled
                           system.adapter.material.0               : material              : IoBroker                                 -  enabled
                           system.adapter.meteoalarm.0             : meteoalarm            : IoBroker                                 - disabled
                          + system.adapter.mihome.0                 : mihome                : IoBroker                                 -  enabled, port: 9898, bind: 0.0.0.0
                           system.adapter.miio.0                   : miio                  : IoBroker                                 - disabled
                          + system.adapter.milight-smart-light.0    : milight-smart-light   : IoBroker                                 -  enabled
                           system.adapter.minuvis.0                : minuvis               : IoBroker                                 -  enabled
                           system.adapter.mobile.0                 : mobile                : IoBroker                                 - disabled
                           system.adapter.mqtt.0                   : mqtt                  : IoBroker                                 - disabled, port: 1883, bind: 0.0.0.0
                           system.adapter.mytime.0                 : mytime                : IoBroker                                 - disabled
                           system.adapter.net-tools.0              : net-tools             : IoBroker                                 - disabled
                           system.adapter.nina.0                   : nina                  : IoBroker                                 - disabled
                          + system.adapter.nut.0                    : nut                   : IoBroker                                 -  enabled
                           system.adapter.onkyo.0                  : onkyo                 : IoBroker                                 - disabled
                           system.adapter.onvif.0                  : onvif                 : IoBroker                                 - disabled
                           system.adapter.parser.0                 : parser                : IoBroker                                 - disabled
                           system.adapter.phantomjs.0              : phantomjs             : IoBroker                                 - disabled
                           system.adapter.pi-hole.0                : pi-hole               : IoBroker                                 - disabled
                           system.adapter.ping.0                   : ping                  : IoBroker                                 - disabled
                           system.adapter.pollenflug.0             : pollenflug            : IoBroker                                 - disabled
                           system.adapter.proxmox.0                : proxmox               : IoBroker                                 - disabled, port: 8006
                          + system.adapter.radar2.0                 : radar2                : IoBroker                                 -  enabled
                           system.adapter.rickshaw.0               : rickshaw              : IoBroker                                 -  enabled
                           system.adapter.roadtraffic.0            : roadtraffic           : IoBroker                                 - disabled
                           system.adapter.rssfeed.0                : rssfeed               : IoBroker                                 - disabled
                          + system.adapter.sayit.0                  : sayit                 : IoBroker                                 -  enabled, port: 0
                           system.adapter.scenes.0                 : scenes                : IoBroker                                 - disabled
                           system.adapter.scheduler.0              : scheduler             : IoBroker                                 - disabled
                           system.adapter.schoolfree.0             : schoolfree            : IoBroker                                 -  enabled
                          + system.adapter.seq.0                    : seq                   : IoBroker                                 -  enabled, port: 5341
                          + system.adapter.shelly.0                 : shelly                : IoBroker                                 -  enabled, port: 1882, bind: 0.0.0.0
                          + system.adapter.shuttercontrol.0         : shuttercontrol        : IoBroker                                 -  enabled
                          + system.adapter.simple-api.0             : simple-api            : IoBroker                                 -  enabled, port: 8087, bind: 0.0.0.0, run as: admin
                           system.adapter.slideshow.0              : slideshow             : IoBroker                                 - disabled
                          + system.adapter.smartcontrol.0           : smartcontrol          : IoBroker                                 -  enabled
                           system.adapter.snmp.0                   : snmp                  : IoBroker                                 - disabled
                          + system.adapter.socketio.0               : socketio              : IoBroker                                 -  enabled, port: 8084, bind: 0.0.0.0, run as: admin
                          + system.adapter.sonoff.0                 : sonoff                : IoBroker                                 -  enabled, port: 1885, bind: 0.0.0.0
                          + system.adapter.sourceanalytix.0         : sourceanalytix        : IoBroker                                 -  enabled
                           system.adapter.spotify-premium.0        : spotify-premium       : IoBroker                                 - disabled
                           system.adapter.statistics.0             : statistics            : IoBroker                                 - disabled
                          + system.adapter.tankerkoenig.0           : tankerkoenig          : IoBroker                                 -  enabled
                          + system.adapter.telegram.0               : telegram              : IoBroker                                 -  enabled, port: 8443, bind: 0.0.0.0
                          + system.adapter.telegram.1               : telegram              : IoBroker                                 -  enabled, port: 8443, bind: 0.0.0.0
                           system.adapter.terminal.0               : terminal              : IoBroker                                 - disabled, port: 8088, bind: 0.0.0.0, run as: admin
                          + system.adapter.text2command.0           : text2command          : IoBroker                                 -  enabled
                          + system.adapter.tr-064.0                 : tr-064                : IoBroker                                 -  enabled
                           system.adapter.traccar.0                : traccar               : IoBroker                                 - disabled
                          + system.adapter.trashschedule.0          : trashschedule         : IoBroker                                 -  enabled
                           system.adapter.tuya.0                   : tuya                  : IoBroker                                 - disabled
                           system.adapter.tvspielfilm.0            : tvspielfilm           : IoBroker                                 - disabled
                          + system.adapter.unifi.0                  : unifi                 : IoBroker                                 -  enabled
                           system.adapter.upnp.0                   : upnp                  : IoBroker                                 - disabled
                          + system.adapter.virtualpowermeter.0      : virtualpowermeter     : IoBroker                                 -  enabled
                           system.adapter.vis-bars.0               : vis-bars              : IoBroker                                 -  enabled
                           system.adapter.vis-canvas-gauges.0      : vis-canvas-gauges     : IoBroker                                 -  enabled
                           system.adapter.vis-colorpicker.0        : vis-colorpicker       : IoBroker                                 -  enabled
                           system.adapter.vis-fancyswitch.0        : vis-fancyswitch       : IoBroker                                 -  enabled
                           system.adapter.vis-google-fonts.0       : vis-google-fonts      : IoBroker                                 -  enabled
                           system.adapter.vis-history.0            : vis-history           : IoBroker                                 -  enabled
                           system.adapter.vis-hqwidgets.0          : vis-hqwidgets         : IoBroker                                 -  enabled
                           system.adapter.vis-icontwo.0            : vis-icontwo           : IoBroker                                 -  enabled
                          + system.adapter.vis-inventwo.0           : vis-inventwo          : IoBroker                                 -  enabled
                           system.adapter.vis-jqui-mfd.0           : vis-jqui-mfd          : IoBroker                                 -  enabled
                           system.adapter.vis-justgage.0           : vis-justgage          : IoBroker                                 -  enabled
                           system.adapter.vis-keyboard.0           : vis-keyboard          : IoBroker                                 -  enabled
                           system.adapter.vis-lcars.0              : vis-lcars             : IoBroker                                 -  enabled
                           system.adapter.vis-map.0                : vis-map               : IoBroker                                 -  enabled
                           system.adapter.vis-material-webfont.0   : vis-material-webfont  : IoBroker                                 -  enabled
                           system.adapter.vis-material.0           : vis-material          : IoBroker                                 -  enabled
                           system.adapter.vis-materialdesign.0     : vis-materialdesign    : IoBroker                                 -  enabled
                           system.adapter.vis-metro.0              : vis-metro             : IoBroker                                 -  enabled
                           system.adapter.vis-players.0            : vis-players           : IoBroker                                 -  enabled
                           system.adapter.vis-plumb.0              : vis-plumb             : IoBroker                                 -  enabled
                           system.adapter.vis-rgraph.0             : vis-rgraph            : IoBroker                                 -  enabled
                           system.adapter.vis-timeandweather.0     : vis-timeandweather    : IoBroker                                 -  enabled
                           system.adapter.vis-weather.0            : vis-weather           : IoBroker                                 -  enabled
                           system.adapter.vis.0                    : vis                   : IoBroker                                 -  enabled
                           system.adapter.weatherunderground.0     : weatherunderground    : IoBroker                                 -  enabled
                          + system.adapter.web.0                    : web                   : IoBroker                                 -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                           system.adapter.whatsapp-cmb.0           : whatsapp-cmb          : IoBroker                                 - disabled
                          + system.adapter.wiffi-wz.0               : wiffi-wz              : IoBroker                                 -  enabled
                          + system.adapter.wled.0                   : wled                  : IoBroker                                 -  enabled
                          + system.adapter.yeelight-2.0             : yeelight-2            : IoBroker                                 -  enabled
                          + system.adapter.zigbee.0                 : zigbee                : IoBroker                                 -  enabled, port: tcp://10.1.20.7:20108
                          
                          

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

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

                            Zu "Fehler 1" tippe ich das Du zu schnell warst. In Deinem Log sieht man Das Du die Systemkonfig 18:43 gespeichert hast und damit Admin und Backiutup und Discovery neu gestartet sind. 18:43:11 war wieder alles da. und ich denke das Du irgendwie geschafft hast das Repo in dieser kurzen Zeit zu ändern als Admin sich gerade verabschliedet hat oder sowas ... aber das sehe ich nicht so genau. müsste man mal nachstellen. Passiert es auch wenn du "langsamer" bist?

                            im ersten durchgang habe ich sofort nach abschluss des assistenten
                            die config nochmal aufgerufen um das repo zu ändern.
                            Diesmal mit 4.0.5 habe ich darauf geachtet, das alle instanzen grün sind.
                            dann hat es funktioniert.

                            auch die anderen fehler sind nun behoben.
                            nur den ersten mit dem fixer befehl, habe ich vergessen zu überprüfen.

                            1 Reply Last reply Reply Quote 1
                            • apollon77
                              apollon77 @crunchip last edited by

                              @crunchip naja npm zeigt es als extra Paket an. Ich würde behaupten kannst es im iobroker dir mit „npm uninstall mongodb“ löschen.

                              Ps: gattest du vllt mal den Blutzucker Adapter drauf? Glaube der hatte das auch.

                              crunchip 1 Reply Last reply Reply Quote 1
                              • crunchip
                                crunchip Forum Testing Most Active @apollon77 last edited by

                                @apollon77 ne hatte ich auch nicht, ok dann lösch ich es mal

                                apollon77 1 Reply Last reply Reply Quote 1
                                • apollon77
                                  apollon77 @crunchip last edited by

                                  @crunchip ich adde es mal morgen oben in die faq auch wenn es eher mit nodejs Upgrade auf 14 zu tun hat. Naja mal schauen.

                                  1 Reply Last reply Reply Quote 0
                                  • crunchip
                                    crunchip Forum Testing Most Active last edited by

                                    @apollon77 ich hab es jetzt mal gelöscht, iob gestoppt, nodejs minor update und iob gestartet( ohne fixer) mal schaun ob der js controller das richtig macht (setcap)

                                    crunchip 1 Reply Last reply Reply Quote 0
                                    • F
                                      fastfoot @apollon77 last edited by

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

                                      (foxriver76) stop the database before executing upgrade self; WIll be effective for all upgrades >4.0.5

                                      bedeutet dies dass der iobroker dann vorher nicht mehr gestoppt werden muss?

                                      Das Update auf 4.0.5 lief auf 2 Systemen ohne Probleme und ohne den Fixer zu benötigen

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

                                        @fastfoot neee. Muss immer noch gestoppt werden. Es ist nur so das das „Upgrade Self“ Kommando eine Datenbank öffnet - und zwar die „alte“ Version. Dann erfolgt die Installation und in dem Zuge wird „setup First“ ausgeführt die dann mit dem „neuen Code“ gegen diese „alte“ Datenbank Version verbindet. Das ist aktuell der Grund für diese Fehler die angezeigt werden und gegen die wir nichts tun können.

                                        Daher wird vor dem npm Befehl bei Upgrade Self jetzt die alte Datenbank beendet - damit öffnet setup First dann seine eigene „neue“ Version. Damit sollte sowas nicht mehr passieren

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

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

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

                                          EADDRNOTAVAIL: address not available 192.168.2.200:2001

                                          Da scheint irgendetwas anderes auf Port 2001 zu Hören, und daher kann der Adapter nicht starten ... Stelle sicher das da nicht noch Zombie Prozesse laufen

                                          Das ist was von Homematic. Laut Adapter ist dort meine neue IP 192.168.4.100 Hinterlegt die 192.168.2.200 ist ALT .. wo auch immer das her ist. Nach iob stop scheint alles aber aus zu sein,

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

                                          @chrisxy Ääähmm ... was Hast Du genau hier getan? Das ist ist ein Migration-Prozess ... so mir scheint es als ob du aktiv über "iob setup custom" eine Migration zu "file" gemacht hast und dabei gab es einen Permission Fehler.

                                          Um es jetzt zu fixen:
                                          1.) iob fix um die Rechtefehler zu fixen
                                          2.) Wenn DU zurück zum letzten Redis Stand willst editiere die /opt/iobroker/iobroker-data/iobroker.json und ändere bei objects und states jeweils den Typ in "redis" da wo jetzt scheinbar "file" steht.

                                          Danach sollte erstmal alles wieder laufen

                                          Also mein iob läuft mit Redis. Nach dem iob upgrade self und Neustart hat iob Status "file" vorher "redis"
                                          Ich werde es nochmal versuchen und die Datei mal anpassen. Schauen was Passiert.

                                          EDIT: Nach iob upgrade self sagt iob status : file .. wenn ich aber die iobroker,json öffne steht bei beiden Typ: redis ...

                                          Folgende Meldung bekomme ich bei iob upgrade self:

                                          root@iobroker:/# cd /opt/iobroker/
                                          root@iobroker:/opt/iobroker# iob upgrade self
                                          Update js-controller from @3.3.22 to @4.0.5
                                          NPM version: 6.14.10
                                          npm install iobroker.js-controller@4.0.5 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                                          In file included from ../src/unix_dgram.cc:5:
                                          ../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':
                                          ../../nan/nan.h:2298:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type]
                                               , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                                        ^
                                          In file included from ../../nan/nan.h:54,
                                                           from ../src/unix_dgram.cc:5:
                                          ../src/unix_dgram.cc: At global scope:
                                          /home/iobroker/.cache/node-gyp/14.15.4/include/node/node.h:758:43: warning: cast between incompatible function types from 'void (*)(v8::Local<v8::Object>)' to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
                                                 (node::addon_register_func) (regfunc),                          \
                                                                                     ^
                                          /home/iobroker/.cache/node-gyp/14.15.4/include/node/node.h:792:3: note: in expansion of macro 'NODE_MODULE_X'
                                             NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                             ^~~~~~~~~~~~~
                                          ../src/unix_dgram.cc:404:1: note: in expansion of macro 'NODE_MODULE'
                                           NODE_MODULE(unix_dgram, Initialize)
                                           ^~~~~~~~~~~
                                          
                                          apollon77 1 Reply Last reply Reply Quote 0
                                          • Diginix
                                            Diginix last edited by

                                            @apollon77 Update von 3.3.22 auf 4.0.5 lief durch mit folgender Ausgabe:

                                            Update js-controller from @3.3.22 to @4.0.5
                                            NPM version: 6.14.16
                                            npm install iobroker.js-controller@4.0.5 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call)
                                            In file included from ../../nan/nan.h:56,
                                                             from ../src/unix_dgram.cc:5:
                                            /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:793:43: warning: cast between incompatible function types from âvoid (*)(v8::Local<v8::Object>)â to ânode::addon_register_funcâ {aka âvoid (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)â} [-Wcast-function-type]
                                              793 |       (node::addon_register_func) (regfunc),                          \
                                                  |                                           ^
                                            /home/iobroker/.cache/node-gyp/14.19.0/include/node/node.h:827:3: note: in expansion of macro âNODE_MODULE_Xâ
                                              827 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                                                  |   ^~~~~~~~~~~~~
                                            ../src/unix_dgram.cc:404:1: note: in expansion of macro âNODE_MODULEâ
                                              404 | NODE_MODULE(unix_dgram, Initialize)
                                                  | ^~~~~~~~~~~
                                            Server Objects 127.0.0.1:51724 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets"]
                                            Server States 127.0.0.1:42094 Error from InMemDB: Error: GET-UNSUPPORTED for namespace meta.: Data=["meta.states.protocolVersion"]
                                            Server Objects 127.0.0.1:51724 Error from InMemDB: Error: GET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.protocolVersion"]
                                            Server States 127.0.0.1:42096 Error from InMemDB: Error: PSUBSCRIBE-UNSUPPORTED for namespace meta.: Data=["meta.*"]
                                            Server Objects 127.0.0.1:51724 Error from InMemDB: Error: Unknown LUA script load
                                            Server Objects 127.0.0.1:51724 Error from InMemDB: Error: Unknown LUA script load
                                            Server Objects 127.0.0.1:51724 Error from InMemDB: Error: Unknown LUA script load
                                            Server Objects 127.0.0.1:51724 Error from InMemDB: Error: SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buffer","data":[49]}]
                                            Could not migrate objects to corresponding sets: Error SET-UNSUPPORTED for namespace cfg.: Data=["meta.objects.features.useSets",{"type":"Buffer","data":[49]}]
                                            

                                            Hoffentlich ok so.

                                            iobroker@iobroker:/opt/iobroker$ iobroker start
                                            iobroker@iobroker:/opt/iobroker$ iobroker status
                                            iobroker is running on this host.
                                            
                                            
                                            Objects type: jsonl
                                            States  type: jsonl
                                            /usr/bin/iobroker: line 8: 37859 Killed                  node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js "$@"
                                            

                                            Die letzte Zeile kam nur beim ersten mal status. Danach nicht mehr.

                                            Meine /opt/iobroker/iobroker-data/iobroker.json enthält aber deutlich weniger Blöcke als hier gezeigt:
                                            https://github.com/ioBroker/ioBroker.js-controller/blob/master/packages/controller/conf/iobroker-dist.json#L53-L71

                                            {
                                              "system": {
                                                "memoryLimitMB": 0,
                                                "hostname": ""
                                              },
                                              "multihostService": {
                                                "enabled": false,
                                                "secure": true
                                              },
                                              "network": {
                                                "IPv4": true,
                                                "IPv6": true,
                                                "bindAddress": null,
                                                "useSystemNpm": true
                                              },
                                              "objects": {
                                                "type": "jsonl",
                                                "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
                                                "host": "127.0.0.1",
                                                "port": 9001,
                                                "user": "",
                                                "pass": "",
                                                "noFileCache": false,
                                                "connectTimeout": 2000,
                                                "writeFileInterval": 3600000,
                                                "options": {
                                                  "auth_pass": null,
                                                  "retry_max_delay": 5000
                                                }
                                              },
                                              "states": {
                                                "type": "jsonl",
                                                "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
                                                "host": "127.0.0.1",
                                                "port": 9000,
                                                "maxQueue": 1000,
                                                "writeFileInterval": 60000,
                                                "options": {
                                                  "auth_pass": null,
                                                  "retry_max_delay": 5000
                                                }
                                              },
                                              "log": {
                                                "level": "warn",
                                                "maxDays": 14,
                                                "noStdout": true,
                                                "transport": {
                                                  "file1": {
                                                    "zippedArchive": false,
                                                    "type": "file",
                                                    "enabled": true,
                                                    "filename": "log/iobroker",
                                                    "fileext": ".log",
                                                    "maxsize": null,
                                                    "maxFiles": null
                                                  },
                                                  "syslog1": {
                                                    "type": "syslog",
                                                    "enabled": false,
                                                    "host": "localhost",
                                                    "host_comment": "The host running syslogd, defaults to localhost.",
                                                    "port_comment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                                                    "protocol": "udp4",
                                                    "protocol_comment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                                                    "path_comment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                                                    "facility_comment": "Syslog facility to use (Default: local0).",
                                                    "localhost": "iobroker",
                                                    "localhost_comment": "Host to indicate that log messages are coming from (Default: localhost).",
                                                    "sysLogType_comment": "The type of the syslog protocol to use (Default: BSD).",
                                                    "app_name_comment": "The name of the application (Default: process.title).",
                                                    "eol_comment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
                                                  }
                                                }
                                              },
                                              "dataDirComment": "Always relative to iobroker.js-controller/",
                                              "dataDir": "../../iobroker-data/"
                                            }
                                            


                                            Wie bekommt man die mal auf den neusten Standard?
                                            Wird bei jsonl objects.writeFileInterval: 3600000 und states.writeFileInterval: 60000 ignoriert?

                                            apollon77 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

                                            910
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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