Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Docker mit Redis für OBJECTS und STATESDB startet nicht

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Docker mit Redis für OBJECTS und STATESDB startet nicht

    This topic has been deleted. Only users with topic management privileges can see it.
    • 4
      4-sachs last edited by

      Hallo zusammen,

      ich komme hier leider nicht weiter. Habe jetzt schon die letzten 3 Tage das Netz durchsucht und finde einfach den Fehler nicht. Es wäre sehr freundlich wenn mir jemand helfen könnet.

      Ich versuche auf meiner QNAP (TS-870 Pro - x64) einen neuen iobroker mit redis mit docker-compose zu laufen zu bringen. (pihole, watchtower, ms-sql-server, etc laufen da ohne Probleme).
      Es wird auch noch 3 Raspberry's geben aber erst wenn dieser Master läuft.

      Das Netzwerk habe ich vorher angelegt : docker network create iobroker-net

      Hier meine Compose Datei:

      version: '3'

      services:

      iobroker:
      container_name: iobroker
      image: buanet/iobroker:latest
      hostname: iobroker
      restart: always
      ports:
      - "8083:8081" # Iobrocker Admin
      - "9000:9000" # Master Slave Ports
      - "9001:9001" # Master Slave Ports
      environment:
      IOB_OBJECTSDB_HOST: redis-server
      IOB_OBJECTSDB_PORT: 6379
      IOB_OBJECTSDB_TYPE: "redis"
      IOB_STATESDB_HOST: redis-server
      IOB_STATESDB_PORT: 6379
      IOB_STATESDB_TYPE: "redis"
      IOB_MULTIHOST: master
      PACKAGES: redis-tools
      volumes:
      - ./iobroker/data:/opt/iobroker
      depends_on:
      - redis-server

      redis-server:
      container_name: redis-server
      image: redis:latest
      hostname: redis-server
      restart: always
      environment:
      - ALLOW_EMPTY_PASSWORD=yes
      ports:
      - "6379:6379"
      volumes:
      - ./redis/:/data
      - ./redis/:/usr/local/etc/redis/redis.conf

      networks:
      default:
      external:
      name: iobroker-net

      Die Container starten auch, hier mal die Ausgabe beim ersten starten:
      redis-server | 1:C 24 Dec 2022 12:30:17.403 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
      redis-server | 1:C 24 Dec 2022 12:30:17.403 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=1, just started
      redis-server | 1:C 24 Dec 2022 12:30:17.403 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
      iobroker |
      redis-server | 1:M 24 Dec 2022 12:30:17.404 * monotonic clock: POSIX clock_gettime
      iobroker | --------------------------------------------------------------------------------
      redis-server | 1:M 24 Dec 2022 12:30:17.404 * Running mode=standalone, port=6379.
      redis-server | 1:M 24 Dec 2022 12:30:17.404 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
      redis-server | 1:M 24 Dec 2022 12:30:17.404 # Server initialized
      redis-server | 1:M 24 Dec 2022 12:30:17.404 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
      iobroker | ------------------------- 2022-12-24 13:30:17 -------------------------
      redis-server | 1:M 24 Dec 2022 12:30:17.404 * Ready to accept connections
      iobroker | --------------------------------------------------------------------------------
      iobroker | ----- -----
      iobroker | ----- ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ -----
      iobroker | ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
      iobroker | ----- ██║ ██║ ██║ ██████╔╝ ██████╔╝ ██║ ██║ █████╔╝ █████╗ ██████╔╝ -----
      iobroker | ----- ██║ ██║ ██║ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗ -----
      iobroker | ----- ██║ ╚██████╔╝ ██████╔╝ ██║ ██║ ╚██████╔╝ ██║ ██╗ ███████╗ ██║ ██║ -----
      iobroker | ----- ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ -----
      iobroker | ----- -----
      iobroker | ----- Welcome to your ioBroker Docker container! -----
      iobroker | ----- Startupscript is now running! -----
      iobroker | ----- Please be patient! -----
      iobroker | --------------------------------------------------------------------------------
      iobroker |
      iobroker | --------------------------------------------------------------------------------
      iobroker | ----- System Information -----
      iobroker | ----- arch: x86_64 -----
      iobroker | ----- hostname: iobroker -----
      iobroker | ----- -----
      iobroker | ----- Version Information -----
      iobroker | ----- image: v7.2.0 -----
      iobroker | ----- build: 2022-12-22T23:45:45+00:00 -----
      iobroker | ----- node: v16.19.0 -----
      iobroker | ----- npm: 8.19.3 -----
      iobroker | ----- -----
      iobroker | ----- Environment Variables -----
      iobroker | ----- IOB_MULTIHOST: master -----
      iobroker | ----- IOB_OBJECTSDB_HOST: redis-server -----
      iobroker | ----- IOB_OBJECTSDB_PORT: 6379 -----
      iobroker | ----- IOB_OBJECTSDB_TYPE: redis -----
      iobroker | ----- IOB_STATESDB_HOST: redis-server -----
      iobroker | ----- IOB_STATESDB_PORT: 6379 -----
      iobroker | ----- IOB_STATESDB_TYPE: redis -----
      iobroker | ----- PACKAGES: redis-tools -----
      iobroker | ----- SETGID: 1000 -----
      iobroker | ----- SETUID: 1000 -----
      iobroker | --------------------------------------------------------------------------------
      iobroker |
      iobroker | --------------------------------------------------------------------------------
      iobroker | ----- Step 1 of 5: Preparing container -----
      iobroker | --------------------------------------------------------------------------------
      iobroker |
      iobroker | Updating Linux packages on first run...
      iobroker | Done.
      iobroker |
      iobroker | PACKAGES is set. Installing additional Linux packages.
      iobroker | Checking the following packages: redis-tools...
      iobroker | redis-tools is already installed.
      iobroker | Done.
      iobroker |
      iobroker | Registering maintenance script as command... Done.
      iobroker |
      iobroker | --------------------------------------------------------------------------------
      iobroker | ----- Step 2 of 5: Detecting ioBroker installation -----
      iobroker | --------------------------------------------------------------------------------
      iobroker |
      iobroker | There is no data detected in /opt/iobroker.
      iobroker | Restoring initial ioBroker installation... Done.
      iobroker |
      iobroker | --------------------------------------------------------------------------------
      iobroker | ----- Step 3 of 5: Checking ioBroker installation -----
      iobroker | --------------------------------------------------------------------------------
      iobroker |
      iobroker | (Re)setting permissions (This might take a while! Please be patient!)... Done.
      iobroker |
      iobroker | Fixing "sudo-bug" by replacing sudo with gosu... Done.
      iobroker |
      iobroker | Hostname in ioBroker does not match the hostname of this container.
      iobroker | Updating hostname to iobroker... The host for instance "system.adapter.admin.0" was changed from "buildkitsandbox" to "iobroker".
      iobroker | The host for instance "system.adapter.discovery.0" was changed from "buildkitsandbox" to "iobroker".
      iobroker | The host for instance "system.adapter.backitup.0" was changed from "buildkitsandbox" to "iobroker".
      iobroker | Done.
      iobroker |
      iobroker | --------------------------------------------------------------------------------
      iobroker | ----- Step 4 of 5: Applying special settings -----
      iobroker | --------------------------------------------------------------------------------
      iobroker |
      iobroker | Some adapters have special requirements/ settings which can be activated by the use of environment variables.
      iobroker | For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/).
      iobroker |
      iobroker | Checking for multihost settings...
      iobroker | IOB_MULTIHOST is set to "master" and external objects db is set.
      iobroker | IOB_MULTIHOST is set to "master" and external states db is set.
      iobroker | Done.
      iobroker |
      iobroker | Checking for custom objects db settings ...
      iobroker | IOB_OBJECTSDB_TYPE is set and value is different from detected ioBroker installation.
      iobroker | Setting type of objects db to "redis"... Done.
      iobroker | IOB_OBJECTSDB_HOST is set and value is different from detected ioBroker installation.
      iobroker | Setting host of objects db to "redis-server"... Done.
      iobroker | IOB_OBJECTSDB_PORT is set and value is different from detected ioBroker installation.
      iobroker | Setting port of objects db to "6379"... Done.
      iobroker | Done.
      iobroker |
      iobroker | Checking for custom states db settings...
      iobroker | IOB_STATESDB_TYPE is set and value is different from detected ioBroker installation.
      iobroker | Setting type of states db to "redis"... Done.
      iobroker | IOB_STATESDB_HOST is set and value is different from detected ioBroker installation.
      iobroker | Setting host of states db to "redis-server"... Done.
      iobroker | IOB_STATESDB_PORT is set and value is different from detected ioBroker installation.
      iobroker | Setting port of states db to "6379"... Done.
      iobroker | Done.
      iobroker |
      iobroker | --------------------------------------------------------------------------------
      iobroker | ----- Step 5 of 5: ioBroker startup -----
      iobroker | --------------------------------------------------------------------------------
      iobroker |
      iobroker | Starting ioBroker...
      iobroker |
      iobroker | ##### #### ### ## # iobroker.js-controller log output # ## ### #### #####
      iobroker | object system.meta.uuid created: 9a67ae5e-6f03-4ede-b79c-0b1e538d5cc1
      iobroker | object system.user.admin created

      Vielleicht seht ihr den Fehler. - Danke

      jsteemann created this issue in jemalloc/jemalloc

      open vm.max_map_count growing steadily when vm.overcommit_memory is 2 #1328

      1 Reply Last reply Reply Quote 0
      • 4
        4-sachs last edited by

        Habe den Fehler selber gefunden.

        In der REDIS docker-compose.yml unten der Environment variablen noch die beiden Zeilen hinzugefügt... das wars.

        environment:
           - LANG=C
           - LC_ALL=C
        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

        511
        Online

        32.1k
        Users

        80.7k
        Topics

        1.3m
        Posts

        1
        2
        437
        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