Giter Site home page Giter Site logo

Comments (5)

buanet avatar buanet commented on August 15, 2024

Hallo,
im Container läuft kein iobroker Daemon. Daher ist auch kein "iobroker stop" möglich. Bitte verwende stattdessen "pkill io". Siehe dazu auch https://buanet.de/knowledge-base/steuerung-iob-ueber-kommandozeile/.

MfG,
André

from iobroker.docker.

AxelRHD avatar AxelRHD commented on August 15, 2024

Hallo buanet,

ich versuche gerade die Einrichtung von redis mit iobroker in einem docker-compose Netzwerk. Ich habe es folgendermaßen versucht:

docker-compose exec iobroker pkill io

docker-compose exec iobroker setup custom

Type of objects DB [(f)ile, (r)edis], default [file]:
Host / Unix Socket of objects DB(file), default[0.0.0.0]:
Port of objects DB(file), default[9001]:
Type of states DB [(f)file, (r)edis], default [file]: r

When States are stored in a Redis database please make sure to configure Redis
persistence to make sure a Redis problem will not cause data loss!

Host / Unix Socket of states DB (redis), default[0.0.0.0]: redis
Port of states DB (redis), default[6379]:
Host name of this machine [iobroker]:
This host appears to be a Master or a Single host system. Is this correct? [Y/n]:

Do you want to migrate objects and states from "file/file" to "file/redis" [y/N]: y
Connecting to previous DB "file"...

Cannot migrate DB while js-controller is still running!
Please stop ioBroker and try again. No settings have been changed.

Irgendwie komme ich da nicht weiter. Scheinbar startet sich io innerhalb des Containers gleich wieder selbst? Deine Internetseite ist derzeit leider nicht erreichbar.

Vielen Dank schon mal für die Hilfe.

EDIT: der redis Server ist unter dem Hostname "redis" aus dem iobroker-Container anpingbar. Daran sollte es also nicht liegen.

from iobroker.docker.

buanet avatar buanet commented on August 15, 2024

Hallo, falls es noch aktuell ist, die Website ist wieder online.

https://smarthome.buanet.de

MfG,
André

from iobroker.docker.

AxelRHD avatar AxelRHD commented on August 15, 2024

Vielen Dank für die Rückmeldung André.

Ich hatte gerade mit ioBroker begonnen und meine Installation dann sowieso noch mal auf einen Odroid-C4 umgezogen. Ich habe dort die Umgebungsvariablen für Redis (übrigens danke für die klasse Dokumentation auch auf Docker-Hub) in Docker-Compose verwendet. So waren zwar manuell angelegte States weg, aber damit konnte ich zu diesem Zeitpunkt noch leben.

Die Frage, wie man innerhalb des Docker Containers zwischen File-basierter States-DB und Redis wechseln kann (ohne Datenverlust selbstverständlich) bleibt damit aber weiterhin noch offen. Ist vielleicht auch für andere Anwender interessant.

from iobroker.docker.

buanet avatar buanet commented on August 15, 2024

Die Frage, wie man innerhalb des Docker Containers zwischen File-basierter States-DB und Redis wechseln kann (ohne Datenverlust selbstverständlich) bleibt damit aber weiterhin noch offen. Ist vielleicht auch für andere Anwender interessant.

Ich glaube das geht nicht so einfach. Ist aber kein Docker spezifisches Thema. Ist vielleicht mal eine Frage fürs ioBroker Forum.

MfG,
André

from iobroker.docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.