Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Server Cannot start inMem-objects on port 9001

    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

    Server Cannot start inMem-objects on port 9001

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

      @apollon77 also ich suche hier eigentlich sämtliche Log Files auf meinem Raspi ab und werde einfach nicht schlau weshalb der iobroker plötzlich nicht mehr laufen will - der Raspi geht - also ich kann hier Netzteil / USV etc. ausschließen

      apollon77 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Rene 3 last edited by

        @rene-3 sagte in Server Cannot start inMem-objects on port 9001:

        node v14.20.0

        Könntest du schon mal auf die derzeitig empfohlene Version nodejs 16 bringen.

        R 1 Reply Last reply Reply Quote 0
        • R
          Rene 3 @Thomas Braun last edited by

          @thomas-braun es geht nicht nodejs zu aktualisieren

          cd /opt/iobroker
          iobroker list instances 
          
          gibt aus:
          
          Server cannot start inMem-Objects on Port 9001: Failed to lock DB " opt/iobroker/iobroker-data/objects.jsonl"!
          

          da sollte ja eine andere Ausgabe kommen

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

            @rene-3 Na dann beantworte doch mal die Fragen die ich oben gestellt habe und lass es uns strukturiert angehen.

            jetzt mal zuerst mal "iob stop" und prüfe das nichts mehr läuft.

            Wenn Du jetzt "iob status" ausführst was kommt? geht das oder kommt ein Fehler?
            EDIT: Ok das hast Du gerade gezeigt, also weiter mit dem nächsten
            EDIT2: Oder vllt doch nochmal alles von vorn und vorher iobroker stoppen!!

            Wenn Fehler dann bitte mal den Inhalt von /opt/iobroker/iobroker-data zeigen (Ausgabe von ssh mti einem "ls -la /opt/iobroker/iobroker-data". Und dazu ein "date".

            @Thomas-Braun Lass es uns bitte erstmal zum laufen bekommen und nicht mit node.js spass anfangen.

            R 1 Reply Last reply Reply Quote 0
            • R
              Rene 3 @apollon77 last edited by

              @apollon77 und @Thomas-Braun
              also nach iob stop
              und iobroker status
              erhalte ich als Ausgabe:

              No connection to database possible ...
              
              
              apollon77 1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @Rene 3 last edited by

                @rene-3 Jetzt arbeite bitte meinen letzten Post bis zum Ende durch

                R 1 Reply Last reply Reply Quote 0
                • R
                  Rene 3 @apollon77 last edited by

                  @apollon77 ```

                  pi@ReneRaspel:~ $ iob stop
                  pi@ReneRaspel:~ $ iobroker status
                  No connection to databases possible ...
                  pi@ReneRaspel:~ $ ls -la /opt/iobroker/iobroker-data
                  insgesamt 1105944
                  drwxrwxr-x+  8 iobroker iobroker       4096  2. Sep 22:49 .
                  drwxrwxr-x+  6 iobroker iobroker       4096  1. Sep 11:58 ..
                  drwxrwxr-x+  2 iobroker iobroker       4096 21. Aug 02:40 backitup
                  drwxrwxr-x+  2 iobroker iobroker      12288 29. Aug 06:40 backup-objects
                  drwxrwxr-x+ 26 iobroker iobroker       4096 27. Jun 19:27 files
                  drwxrwxr-x+ 14 iobroker iobroker       4096 29. Aug 08:24 history
                  drwxrwxr-x+  2 iobroker iobroker       4096 10. Mär 20:00 homekit-controller.0
                  -rw-rwxr--+  1 iobroker iobroker       5087  9. Feb 2022  iobroker.json
                  -rw-rwxr--+  1 iobroker iobroker          3 29. Aug 08:24 notifications.json
                  -rw-rwxr--+  1 iobroker iobroker    6008528  9. Feb 2022  objects.json.bak.migrated
                  -rw-rwxr--+  1 iobroker iobroker 1118225842 29. Aug 08:24 objects.jsonl
                  -rw-rwxr--+  1 iobroker iobroker    6008525  9. Feb 2022  objects.json.migrated
                  -rw-rwxr--+  1 iobroker iobroker      92518  9. Feb 2022  states.json.bak.migrated
                  -rw-rwxr--+  1 iobroker iobroker    1993265 29. Aug 08:24 states.jsonl
                  -rw-rwxr--+  1 iobroker iobroker      92661  9. Feb 2022  states.json.migrated
                  drwxrwxr-x+  2 iobroker iobroker       4096 11. Mär 17:06 yahka.0.hapdata
                  pi@ReneRaspel:~ $ 
                  
                  

                  Date ist 02.09.2022

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

                    @rene-3 Wow 1,1GB objects.json ... welcher js-controller ist das denn?

                    Ok, hier sind wir bei timeout seeehr hoch setzen das der erste start das aufräumen kann.

                    Bitte poste mal den Inhalt von /opt/iobroker/iobroker-data/iobroker.json

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      Rene 3 @apollon77 last edited by

                      @apollon77 Zugriff nicht möglich / Datei oder Verzeichnis nicht gefunden

                      mit

                      ls -la
                      

                      und

                      ls -lh
                      

                      probiert oder nur mit

                      ls
                      

                      komme ich einfach nicht zum Inhalt - und fliege da wieder raus

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        Rene 3 @Rene 3 last edited by

                        @apollon77 sorry - quatsch muss mit " cd " dahin - dauert noch !

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          Rene 3 @Rene 3 last edited by

                          @apollon77 also ich bin jetzt zwar im richtigen Pfad aber hab keinen Plan wie ich die iobroker.json öffne oder mir den Inhalt irgendwie sichtbar machen kann

                          R apollon77 2 Replies Last reply Reply Quote 0
                          • R
                            Rene 3 @Rene 3 last edited by

                            @apollon77 ich mache für heute Schluss. Guts Nächtle.

                            Habe noch mal die gleichen Dateien von @radicalreel herangezogen - es scheint was mit dem Datumsformat teilweise bei mir nicht mehr zu stimmen.
                            Mal werden diese mit TT MM JJJJ und mal mit TT MM Time angezeigt.
                            Ob es von diesem ewt. kommt ?

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

                              @rene-3 „cat iobroker.json“

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                Rene 3 @apollon77 last edited by

                                @apollon77

                                pi@ReneRaspel:/opt/iobroker/iobroker-data $ cat iobroker.json
                                {
                                  "system": {
                                    "memoryLimitMB": 0,
                                    "hostname": "",
                                    "statisticsInterval": 15000,
                                    "statisticsIntervalComment": "Interval how often the counters for input/output in adapters and controller will be updated",
                                    "checkDiskInterval": 300000,
                                    "checkDiskIntervalComment": "Interval how often the disk size will be checked",
                                    "instanceStartInterval": 2000,
                                    "noChmodComment": "Flag to test new feature with no chmod call. Must be deleted later and noChmod must be mainline (2018.06.04)",
                                    "compact": false,
                                    "compactComment": "Controller will try to start the instances as a part of the same process. No spawn will be done. Only by adapters that support it and have flag compact flag in io-package.json",
                                    "allowShellCommands": false,
                                    "allowShellCommandsComment": "Allow execution of \"shell\" sendToHost commands",
                                    "memLimitWarn": 100,
                                    "memLimitWarnComment": "If the available RAM is below this threshold on adapter start, a warning will be logged.",
                                    "memLimitError": 50,
                                    "memLimitErrorComment": "If the available RAM is below this threshold on adapter start, an error will be logged."
                                  },
                                  "multihostService": {
                                    "enabled": false,
                                    "secure": true,
                                    "password": ""
                                  },
                                  "objects": {
                                    "type": "jsonl",
                                    "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
                                    "host": "127.0.0.1",
                                    "port": 9001,
                                    "noFileCache": false,
                                    "maxQueue": 1000,
                                    "connectTimeout": 30000,
                                    "writeFileInterval": 5000,
                                    "dataDir": "",
                                    "options": {
                                      "auth_pass": null,
                                      "retry_max_delay": 5000,
                                      "retry_max_count": 19,
                                      "db": 0,
                                      "family": 0
                                    },
                                    "backup": {
                                      "disabled": false,
                                      "files": 24,
                                      "filesComment": "Minimal number of backup files, after the deletion will be executed according to backupTime settings",
                                      "hours": 48,
                                      "hoursComment": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber",
                                      "period": 120,
                                      "periodComment": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0",
                                      "path": "",
                                      "pathComment": "Absolute path to backup directory or empty to backup in data directory"
                                    }
                                  },
                                  "states": {
                                    "type": "jsonl",
                                    "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
                                    "host": "127.0.0.1",
                                    "port": 9000,
                                    "connectTimeout": 30000,
                                    "writeFileInterval": 30000,
                                    "dataDir": "",
                                    "options": {
                                      "auth_pass": null,
                                      "retry_max_delay": 5000,
                                      "retry_max_count": 19,
                                      "db": 0,
                                      "family": 0
                                    },
                                    "backup": {
                                      "disabled": false,
                                      "files": 24,
                                      "filesComment": "Minimal number of backup files, after the deletion will be executed according to backupTime settings",
                                      "hours": 48,
                                      "hoursComment": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber",
                                      "period": 120,
                                      "periodComment": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0",
                                      "path": "",
                                      "pathComment": "Absolute path to backup directory or empty to backup in data directory"
                                    }
                                  },
                                  "log": {
                                    "level": "info",
                                    "maxDays": 7,
                                    "noStdout": true,
                                    "transport": {
                                      "file1": {
                                        "type": "file",
                                        "enabled": true,
                                        "filename": "log/iobroker",
                                        "fileext": ".log",
                                        "maxsize": null,
                                        "maxFiles": null
                                      },
                                      "syslog1": {
                                        "type": "syslog",
                                        "enabled": false,
                                        "host": "localhost",
                                        "hostComment": "The host running syslogd, defaults to localhost.",
                                        "portComment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                                        "protocol": "udp4",
                                        "protocolComment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                                        "pathComment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                                        "facilityComment": "Syslog facility to use (Default: local0).",
                                        "localhost": "iobroker",
                                        "localhostComment": "Host to indicate that log messages are coming from (Default: localhost).",
                                        "sysLogTypeComment": "The type of the syslog protocol to use (Default: BSD).",
                                        "app_nameComment": "The name of the application (Default: process.title).",
                                        "eolComment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
                                      },
                                      "seq1": {
                                        "type": "seq",
                                        "enabled": false,
                                        "serverUrl": "http://IP:PORT",
                                        "serverUrlComment": "The http(s) URL including port of the seq server. If you use HTTPS a real certificate is needed; self signed certs are ot accepted.",
                                        "apiKey": "",
                                        "apiKeyComment": "The apiKey of the seq system"
                                      }
                                    }
                                  },
                                  "dataDirComment": "Always relative to iobroker.js-controller/",
                                  "plugins": {},
                                  "dataDir": "../../iobroker-data/"
                                }
                                pi@ReneRaspel:/opt/iobroker/iobroker-data $ 
                                
                                
                                
                                apollon77 1 Reply Last reply Reply Quote 0
                                • apollon77
                                  apollon77 @Rene 3 last edited by

                                  @rene-3 ok dann bitte noch sagen was „iob Version“ sagt

                                  Dann bitte im iobroker.json unter objects die Zeile mit „connectTimeout“ (Zeile 33 laut deinem post) die Zahl von 30000 auf 600000 ändern (6 hundert tausend).

                                  Dann bitte einmal „iob status“ ausführen und Geduld haben! Kannst ja mal Zeit stoppen wie lange es dauert.

                                  Danach bitte wieder mit „ls -la“ schauen wie groß die objects.jsonl jetzt ist. Müsste deutlich kleiner sein.

                                  R F 2 Replies Last reply Reply Quote 0
                                  • R
                                    Rene 3 @apollon77 last edited by

                                    @apollon77

                                    pi@ReneRaspel:/opt/iobroker/iobroker-data $ iob version
                                    4.0.23
                                    
                                    
                                    R 1 Reply Last reply Reply Quote 0
                                    • R
                                      Rene 3 @Rene 3 last edited by

                                      @apollon77

                                      Vielleicht war der Wert doch etwas zu hoch.
                                      Sitz hier ca. 25 Min.

                                      Dann kam leider nur

                                      pi@ReneRaspel:~ $ iob status
                                      iobroker is not running on this host.
                                      
                                      
                                      Objects type: jsonl
                                      States  type: jsonl
                                      
                                      
                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        Rene 3 @Rene 3 last edited by

                                        @apollon77

                                        pi@ReneRaspel:~ $ ls -la /opt/iobroker/iobroker-data
                                        insgesamt 1111480
                                        drwxrwxr-x+  9 iobroker iobroker       4096  3. Sep 16:59 .
                                        drwxrwxr-x+  6 iobroker iobroker       4096  1. Sep 11:58 ..
                                        drwxrwxr-x+  2 iobroker iobroker       4096 21. Aug 02:40 backitup
                                        drwxrwxr-x+  2 iobroker iobroker      12288  3. Sep 15:47 backup-objects
                                        drwxrwxr-x+ 26 iobroker iobroker       4096 27. Jun 19:27 files
                                        drwxrwxr-x+ 14 iobroker iobroker       4096 29. Aug 08:24 history
                                        drwxrwxr-x+  2 iobroker iobroker       4096 10. Mär 20:00 homekit-controller.0
                                        -rw-rwxr--+  1 iobroker iobroker       5092  3. Sep 16:31 iobroker.json
                                        -rw-rwxr--+  1 iobroker iobroker          3 29. Aug 08:24 notifications.json
                                        -rw-rwxr--+  1 iobroker iobroker    6008528  9. Feb 2022  objects.json.bak.migrated
                                        -rw-rwxr--+  1 iobroker iobroker 1123892076  3. Sep 16:53 objects.jsonl
                                        drwxrwxr-x+  2 iobroker iobroker       4096  3. Sep 16:59 objects.jsonl.lock
                                        -rw-rwxr--+  1 iobroker iobroker    6008525  9. Feb 2022  objects.json.migrated
                                        -rw-rwxr--+  1 iobroker iobroker      92518  9. Feb 2022  states.json.bak.migrated
                                        -rw-rwxr--+  1 iobroker iobroker    1994374  3. Sep 16:53 states.jsonl
                                        -rw-rwxr--+  1 iobroker iobroker      92661  9. Feb 2022  states.json.migrated
                                        drwxrwxr-x+  2 iobroker iobroker       4096 11. Mär 17:06 yahka.0.hapdata
                                        
                                        
                                        R 1 Reply Last reply Reply Quote 0
                                        • R
                                          Rene 3 @Rene 3 last edited by

                                          @apollon77

                                          Date ist:

                                          Samstag 3. Sep 17:36:00 CEST 2022

                                          hatte ich ewt. gestern nicht richtig beantwortet

                                          Also hier im letzten Bild sieht man es auch wieder, das in der vorletzten Spalte mal JJJJ und mal die Zeit TT:TT eingetragen wird ?
                                          Irgendwie komisch

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

                                            @rene-3

                                            rm /opt/iobroker/iobroker-data/*.migrated
                                            

                                            Dann ist es weg.

                                            R 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

                                            807
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            40
                                            429
                                            68798
                                            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