NEWS
Inst via Docker Compose mit network=Host & Portänderung
-
@blackburn sagte in Inst via Docker Compose mit network=Host & Portänderung:
den adminlosen Fehler...
fehlt da nicht noch was in den ENV !?
eigenlich so ...:
Vorlage zu deinem :
environment: - TZ=Europe/Berlin - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin - LANG=de_DE.UTF-8 - DEBIAN_FRONTEND=teletype - LANGUAGE=de_DE:de - LC_ALL=de_DE.UTF-8 - IOB_OBJECTSDB_HOST=0.0.0.0 - IOB_OBJECTSDB_PORT=9100 - IOB_OBJECTSDB_TYPE=jsonl - IOB_STATESDB_HOST=0.0.0.0 - IOB_STATESDB_PORT=9101 - IOB_STATESDB_TYPE=jsonl
-
@glasfaser leider nein bzw es löst das problem nicht. sollten dort nicht die default werte greifen, wenn diese nicht explizit überschrieben werden?
-
@blackburn
Lösche mal deine volume für diesen Container.
Da stehen ja Daten schon vom letzten Mal drin die evtl falsch sind.
Also lieber erst mal mit. CLean install beginnen. -
Welche Portainer Version hast du dafür es gibt mit einer Version Probleme ..
siehe hier :
https://forum.iobroker.net/post/919177
sollten dort nicht die default werte greifen,
ja ist richtig nur die IP Angabe hat mich gewundert ... und oben hast du nur ein teil gepostet
-
@oliverio docker/etc-iobrokerdata/ lösch ich schon immer, damit es clean ist
-
Dann verwundern diese Meldungen allerdings
Restoring initial ioBroker installation... Done.
Existing installation of ioBroker detected in "/opt/iobroker".
Und alle env Angaben die du nicht explizit ändern willst, weglassen.
Insbesondere die Angaben zur ip Adresse, das ist alles im selben Container, da müsste der d3fault eigentlich 127.0.0.1 sein.
Die Angabe 0.0.0.0 weiß ich nicht ob das funktioniert.
Alternativ kannst für die ip Adresse mal den service Namen von docker compose nehmen, also iobroker. Das ist dann auch der Hostname des Containers. -
@glasfaser die habe ich heute von 2.11 auf 2.16 hoch gepatched. ein downgrade kann ich morgen mal testen
-
@oliverio tatsache... das mal jetzt nicht, aber spätestens nach dem zweiten loop sieht es dann so aus. ich mach morgen noch mal einen cleanen test
-
@oliverio sagte in Inst via Docker Compose mit network=Host & Portänderung:
Die Angabe 0.0.0.0 weiß ich nicht ob das funktioniert.
war nur eine Vorlage ... habe es vergessen zu erwähnen .!
stand auch im link oben drin ( IP anpassen ) habe nur ein teil angepasst ..
-
Wenn es eine Angabe für einen Server wäre wo er listen soll, wäre das schon eine gültige Angabe, nämlich ohne Einschränkung
D gehts es ja um eine connect Angabe, das kann andere verwirren.
Wenn es noch jemand anderes irgendwann liest wird er das jetzt auch finden. Alles gut. -
@oliverio @Glasfaser Hi, ich hab jetzt folgendes alles getestet:
- Portainer downgrade auf 2.15.1
- ENVs ohne '
- Version latest-v6 (hier komme ich auf andere Fehler, er erkennt nicht den default Wert von den DBS und setzt einen leeren Wert als Typ an und akzeptiert kein jsonl) und latest-v7
Was funktiniert mit der latest-v7 ist der Start im bridge Networkmode, ohne irgendwelche ENV. Also würde ich vermuten, dass meine Toolchain nicht das Problem sein sollte (also Portainer, Docker, Docker-Compose, ...)
Irgendwas in den ENV muss falsch sein, aber ich komm nicht drauf...
Weiß einer ob die Reihenfolge wichtig ist? -
@blackburn sagte in Inst via Docker Compose mit network=Host & Portänderung:
Irgendwas in den ENV muss falsch sein, aber ich komm nicht drauf...
Wir auch nicht ...
poste mal den aktuelle gesamten Compose und das aktuelle Log
-
version: '2.4' services: iobroker: restart: always image: buanet/iobroker:latest-v7 container_name: iobroker hostname: iobroker network_mode: host volumes: - /docker/etc-iobrokerdata:/opt/iobroker environment: - IOB_ADMINPORT=9003 - IOB_OBJECTSDB_PORT=9100 - IOB_STATESDB_PORT=9101
Beim Log hat sich nicht viel getan:
-------------------------------------------------------------------------------- ------------------------- 2023-01-20 19:28:08 ------------------------- -------------------------------------------------------------------------------- ----- ----- ----- ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ ----- ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ ----- ----- ██║ ██║ ██║ ██████╔╝ ██████╔╝ ██║ ██║ █████╔╝ █████╗ ██████╔╝ ----- ----- ██║ ██║ ██║ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗ ----- ----- ██║ ╚██████╔╝ ██████╔╝ ██║ ██║ ╚██████╔╝ ██║ ██╗ ███████╗ ██║ ██║ ----- ----- ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ----- ----- ----- ----- Welcome to your ioBroker Docker container! ----- ----- Startupscript is now running! ----- ----- Please be patient! ----- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----- System Information ----- ----- arch: armv7l ----- ----- hostname: iobroker ----- ----- ----- ----- Version Information ----- ----- image: v7.2.0 ----- ----- build: 2023-01-12T23:45:21+00:00 ----- ----- node: v16.19.0 ----- ----- npm: 8.19.3 ----- ----- ----- ----- Environment Variables ----- ----- IOB_ADMINPORT: 9003 ----- ----- IOB_OBJECTSDB_PORT: 9100 ----- ----- IOB_STATESDB_PORT: 9101 ----- ----- SETGID: 1000 ----- ----- SETUID: 1000 ----- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----- Step 1 of 5: Preparing container ----- -------------------------------------------------------------------------------- Updating Linux packages on first run... dpkg-preconfigure: unable to re-open stdin: (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 29167 files and directories currently installed.) Preparing to unpack .../sudo_1.9.5p2-3+deb11u1_armhf.deb ... Unpacking sudo (1.9.5p2-3+deb11u1) over (1.9.5p2-3) ... Setting up sudo (1.9.5p2-3+deb11u1) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of restart. Done. Registering maintenance script as command... Done. -------------------------------------------------------------------------------- ----- Step 2 of 5: Detecting ioBroker installation ----- -------------------------------------------------------------------------------- There is no data detected in /opt/iobroker. Restoring initial ioBroker installation... Done. -------------------------------------------------------------------------------- ----- Step 3 of 5: Checking ioBroker installation ----- -------------------------------------------------------------------------------- (Re)setting permissions (This might take a while! Please be patient!)... Done. Fixing "sudo-bug" by replacing sudo with gosu... Done. There was a problem detecting the admin instance of your iobroker. Make sure the ioBroker installation you use has an admin instance or start over with a fresh installation and restore your configuration. For more details see https://docs.buanet.de/iobroker-docker-image/docs/#restore This Script will exit now. -------------------------------------------------------------------------------- ------------------------- 2023-01-20 19:29:50 ------------------------- -------------------------------------------------------------------------------- ----- ----- ----- ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ ----- ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ ----- ----- ██║ ██║ ██║ ██████╔╝ ██████╔╝ ██║ ██║ █████╔╝ █████╗ ██████╔╝ ----- ----- ██║ ██║ ██║ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗ ----- ----- ██║ ╚██████╔╝ ██████╔╝ ██║ ██║ ╚██████╔╝ ██║ ██╗ ███████╗ ██║ ██║ ----- ----- ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ----- ----- ----- ----- Welcome to your ioBroker Docker container! ----- ----- Startupscript is now running! ----- ----- Please be patient! ----- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----- System Information ----- ----- arch: armv7l ----- ----- hostname: iobroker ----- ----- ----- ----- Version Information ----- ----- image: v7.2.0 ----- ----- build: 2023-01-12T23:45:21+00:00 ----- ----- node: v16.19.0 ----- ----- npm: 8.19.3 ----- ----- ----- ----- Environment Variables ----- ----- IOB_ADMINPORT: 9003 ----- ----- IOB_OBJECTSDB_PORT: 9100 ----- ----- IOB_STATESDB_PORT: 9101 ----- ----- SETGID: 1000 ----- ----- SETUID: 1000 ----- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----- Step 1 of 5: Preparing container ----- -------------------------------------------------------------------------------- Updating Linux packages on first run...
Was ich jetzt gleich mach ist, alle Container umziehen und versuchen den IOB im Host Network ohne Änderungen der Ports zu starten
EDIT:
Ohne ENV läuft es im Hostmode:
Compose:
version: '2.4' services: iobroker: restart: always image: buanet/iobroker:latest-v7 container_name: iobroker hostname: iobroker network_mode: host volumes: - /docker/etc-iobrokerdata:/opt/iobroker
Log:
-------------------------------------------------------------------------------- ------------------------- 2023-01-20 19:39:10 ------------------------- -------------------------------------------------------------------------------- ----- ----- ----- ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ ----- ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ ----- ----- ██║ ██║ ██║ ██████╔╝ ██████╔╝ ██║ ██║ █████╔╝ █████╗ ██████╔╝ ----- ----- ██║ ██║ ██║ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗ ----- ----- ██║ ╚██████╔╝ ██████╔╝ ██║ ██║ ╚██████╔╝ ██║ ██╗ ███████╗ ██║ ██║ ----- ----- ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ----- ----- ----- ----- Welcome to your ioBroker Docker container! ----- ----- Startupscript is now running! ----- ----- Please be patient! ----- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----- System Information ----- ----- arch: armv7l ----- ----- hostname: iobroker ----- ----- ----- ----- Version Information ----- ----- image: v7.2.0 ----- ----- build: 2023-01-12T23:45:21+00:00 ----- ----- node: v16.19.0 ----- ----- npm: 8.19.3 ----- ----- ----- ----- Environment Variables ----- ----- SETGID: 1000 ----- ----- SETUID: 1000 ----- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----- Step 1 of 5: Preparing container ----- -------------------------------------------------------------------------------- Updating Linux packages on first run... dpkg-preconfigure: unable to re-open stdin: (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 29167 files and directories currently installed.) Preparing to unpack .../sudo_1.9.5p2-3+deb11u1_armhf.deb ... Unpacking sudo (1.9.5p2-3+deb11u1) over (1.9.5p2-3) ... Setting up sudo (1.9.5p2-3+deb11u1) ... invoke-rc.d: could not determine current runlevel invoke-rc.d: policy-rc.d denied execution of restart. Done. Registering maintenance script as command... Done. -------------------------------------------------------------------------------- ----- Step 2 of 5: Detecting ioBroker installation ----- -------------------------------------------------------------------------------- There is no data detected in /opt/iobroker. Restoring initial ioBroker installation... Done. -------------------------------------------------------------------------------- ----- Step 3 of 5: Checking ioBroker installation ----- -------------------------------------------------------------------------------- (Re)setting permissions (This might take a while! Please be patient!)... Done. Fixing "sudo-bug" by replacing sudo with gosu... Done. Hostname in ioBroker does not match the hostname of this container. Updating hostname to iobroker... The host for instance "system.adapter.admin.0" was changed from "buildkitsandbox" to "iobroker". The host for instance "system.adapter.discovery.0" was changed from "buildkitsandbox" to "iobroker". The host for instance "system.adapter.backitup.0" was changed from "buildkitsandbox" to "iobroker". Done. -------------------------------------------------------------------------------- ----- Step 4 of 5: Applying special settings ----- -------------------------------------------------------------------------------- Some adapters have special requirements/ settings which can be activated by the use of environment variables. For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/). -------------------------------------------------------------------------------- ----- Step 5 of 5: ioBroker startup ----- -------------------------------------------------------------------------------- Starting ioBroker... ##### #### ### ## # iobroker.js-controller log output # ## ### #### ##### host.iobroker check instance "system.adapter.admin.0" for host "iobroker" host.iobroker check instance "system.adapter.discovery.0" for host "iobroker" host.iobroker check instance "system.adapter.backitup.0" for host "iobroker" object system.meta.uuid created: debb4421-84e2-46bc-958c-0f39a050c98a ================================== > LOG REDIRECT system.adapter.admin.0 => true [system.adapter.admin.0.logging]
-
@blackburn sagte in Inst via Docker Compose mit network=Host & Portänderung:
Ohne ENV läuft es im Hostmode:
Puhh ..
ich weiß auch gerade nicht weiter ...
eigentlich sollte die Ports per ENV genommen werden .@andre kannst du vielleicht hier weiterhelfen !?
-
@glasfaser Die ENVs für Objects- und States-DB sind ausschließlich für Multihost und Redis-Anbindung gedacht und nicht um die DB Ports vom ioBroker zu verbiegen. Das ist derzeit weder unterstützt noch getestet. Tuts vielleicht auch ein MACVLAN anstelle des Hostmodes? Andernfalls schlage ich vor die Ports frei zu machen.
Änderung des Admin Ports sollte funktionieren.MfG,
André -
@andre Danke für die Info!
Ja ich werden dann wohl die Ports frei machen bzw mal gucken ob ich das VLAN einrichte.
@Glasfaser und @OliverIO danke für eure Hilfe und eure Geduld! -
@blackburn
Ich würde dann macvlan machen. Dann hast für iobroker eine eigene ip und alles ist ok wie Standard Installation.
Und du musst keine Porta frei Räumen
So hab ich das auch und will es nicht mehr anders