NEWS
Docker mit Redis für OBJECTS und STATESDB startet nicht
-
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-serverredis-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.confnetworks:
default:
external:
name: iobroker-netDie 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 createdVielleicht seht ihr den Fehler. - Danke
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden