NEWS
Umzug Ubuntu -> Docker Synology "no connection to database"
-
Hi Leute,
ich versuche gerade meine iobroker Umgebung von ubuntu 22.04 auf eine Synology mit Docker inkl. Portainer zu migrieren.
Da ich keinerlei Daten/Datenpunkte/States etc. verlieren möchte, hab ich den Weg gewählt den kompletten iobroker Ordner von Ubuntu auf die Synology zu kopieren.
Kein BackitUp Adapter und keine iobroker interne backup/restore Variante.
Just copy/paste...Hier ein iobroker status von iobroker auf Ubuntu:
iobroker is running on this host. Objects type: jsonl States type: jsonl mmbadm@iob01:~$ iobroker setup custom Current configuration: - Objects database: - Type: jsonl - Host/Unix Socket: 127.0.0.1 - Port: 9001 - States database: - Type: jsonl - Host/Unix Socket: 127.0.0.1 - Port: 9000 - Data Directory: ../../iobroker-data/
Wenn ich den iobroker Container auf der Synology starte erkennt er die vorhandene iobroker Instanz, bricht aber dann bei der Datenbank ab:
-------------------------------------------------------------------------------- ------------------------- 2023-08-19 12:10:14 ------------------------- -------------------------------------------------------------------------------- ----- ----- ----- ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ ----- ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ ----- ----- ██║ ██║ ██║ ██████╔╝ ██████╔╝ ██║ ██║ █████╔╝ █████╗ ██████╔╝ ----- ----- ██║ ██║ ██║ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗ ----- ----- ██║ ╚██████╔╝ ██████╔╝ ██║ ██║ ╚██████╔╝ ██║ ██╗ ███████╗ ██║ ██║ ----- ----- ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ----- ----- ----- ----- Welcome to your ioBroker Docker container! ----- ----- Startupscript is now running! ----- ----- Please be patient! ----- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----- System Information ----- ----- arch: x86_64 ----- ----- hostname: iobtest ----- ----- ----- ----- Version Information ----- ----- image: v8.1.0 ----- ----- build: 2023-08-15T20:58:03+00:00 ----- ----- node: v18.17.1 ----- ----- npm: 9.6.7 ----- ----- ----- ----- Environment Variables ----- ----- DEBUG: true ----- ----- SETGID: 1000 ----- ----- SETUID: 1000 ----- -------------------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! DEBUG LOG ACTIVE !!!! !!!! Environment variable DEBUG is set to true. !!!! !!!! This will extend the logging output and may slow down container start. !!!! !!!! Please make sure to deactivate if no longer needed. !!!! !!!! For more information see ioBroker Docker image documentation: !!!! !!!! https://docs.buanet.de/iobroker-docker-image/docs/ !!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -------------------------------------------------------------------------------- ----- Step 1 of 5: Preparing container ----- -------------------------------------------------------------------------------- Updating Linux packages on first run... Done. Registering maintenance script as command... Done. -------------------------------------------------------------------------------- ----- Step 2 of 5: Detecting ioBroker installation ----- -------------------------------------------------------------------------------- Existing installation of ioBroker detected in "/opt/iobroker". -------------------------------------------------------------------------------- ----- 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. [DEBUG] Checking multihost settings... [DEBUG] No multihost settings detected. [DEBUG] Done. [DEBUG] Checking custom objects db settings... [DEBUG] No custom objects db settings detected. [DEBUG] Done. [DEBUG] Checking custom states db settings... [DEBUG] No custom states db settings detected. [DEBUG] Done. Checking Database connection... Failed. [DEBUG] Error message: [DEBUG] /opt/scripts/iobroker_startup.sh: /usr/bin/iob: /usr/bin/bash: bad interpreter: No such file or directory Please check your configuration and try again. For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs). [DEBUG] Debug mode prevents the container from exiting on errors. [DEBUG] This enables you to investigate or fix your issue on the command line. [DEBUG] If you want to stop or restart your container you have to do it manually. [DEBUG] IoBroker is not running!
Kann mir jemand weiterhelfen ?
Danke.
Beste Grüße
-
@qlink sagte in Umzug Ubuntu -> Docker Synology "no connection to database":
Da ich keinerlei Daten/Datenpunkte/States etc. verlieren möchte, hab ich den Weg gewählt den kompletten iobroker Ordner von Ubuntu auf die Synology zu kopieren.
Warum bist du der Meinung, mit einem Backup/Restore Daten verlieren zu müssen?
Kann mir jemand weiterhelfen ?
Starte mit einem leeren Verzeichnis und spiele das Backup ein. Habe ich schon oft gemacht, funktioniert wunderbar. Alles andere wird zur Frickelei.
Es gibt einen Knackpunkt: falls sich der Hostname geändert hat, einmal "iob host this" ausführen. -
@qlink sagte in Umzug Ubuntu -> Docker Synology "no connection to database":
Kein BackitUp Adapter und keine iobroker interne backup/restore Variante.
Just copy/paste...Wenn das so einfach wäre bräuchte es den Backitup-Adapter nicht.
Ist es aber nicht. Spiel ein Backup 'ordentlich' ein. -
danke, habs hinbekommen...
bin zwar über sämtliche Fallstricke mit SQL, Vis, Systeminfo und Nodered Nodes drübergestolpert, aber mittlerweile läufts.
Vielleicht klappts ja irgendwann mal mit einem oneclick restore... träum