-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem]: How can I start iobroker-slave-container with existing ioBroker instance? #335
Comments
Full log please! |
The container restart, so the log repeated |
See header "Environment Variables". Your Multihost variable is not set. Please check your configuration. How do you start your container? |
as I wrote ... If I set IOB_MULTIHOST=slave, I get this ... Docker logs--------------------------------------------------------------------------------
------------------------- 2023-04-17 18:29:04 -------------------------
--------------------------------------------------------------------------------
----- -----
----- ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ ██████╗ -----
----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
----- ██║ ██║ ██║ ██████╔╝ ██████╔╝ ██║ ██║ █████╔╝ █████╗ ██████╔╝ -----
----- ██║ ██║ ██║ ██╔══██╗ ██╔══██╗ ██║ ██║ ██╔═██╗ ██╔══╝ ██╔══██╗ -----
----- ██║ ╚██████╔╝ ██████╔╝ ██║ ██║ ╚██████╔╝ ██║ ██╗ ███████╗ ██║ ██║ -----
----- ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ -----
----- -----
----- Welcome to your ioBroker Docker container! -----
----- Startupscript is now running! -----
----- Please be patient! -----
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
----- System Information -----
----- arch: x86_64 -----
----- hostname: iob_slave -----
----- -----
----- Version Information -----
----- image: v8.0.0 -----
----- build: 2023-04-07T23:45:19+00:00 -----
----- node: v18.16.0 -----
----- npm: 9.5.1 -----
----- -----
----- Environment Variables -----
----- IOB_MULTIHOST: slave -----
----- SETGID: 1000 -----
----- SETUID: 1000 -----
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
----- 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.
IOB_MULTIHOST is available and set to "slave".
Done.
Something went wrong. Looks like at least one parameter defining the custom db connection was not set properly or is missing.
Please check your configuration and try again.
For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/).
This Script will exit now. if I set IOB_OBJECTSDB_TYPE, ..._HOST, ..._PORT, ... the script overwrite my object db
I have stack with three container ...
redis and host works fine. slave restart again and again. |
I've tested this and found an issue which may cause the described behaviour. So since v8 setting up a new slave (empty directory) causes an "iobroker setup first" call as the script is thinking it is a fresh iobroker instance. Regards, |
I just released the v8.0.1 hotfix. My tests were successful.
Slave log should look like this:
Please test and give feedback. Regards, |
Hi André, I just tested the fix and everything works great. Thank you for the quick support. Best Regards |
Description
Hi,
I restored a Docker ioBroker container from backupfile of my RaspPi - works perfect.
After that I switched db to redis and created an additional ioBroker-slave-container.
After restart of the slave container the iob-docker-script tried to rename the ioBroker-slave and crashed.
If I set the env IOB_MULTIHOST=slave, the srcipt try to renew the db-connection and delete all my states.
How can I start the slave-container with my existing instance? ...without any changes from the script.
Image version
buanet/iobroker:latest-v8
Docker logs
The text was updated successfully, but these errors were encountered: