Skip to content
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

After restore in container with new hostname - ioBroker not running/ admin not accessible #188

Closed
buanet opened this issue Sep 5, 2021 · 6 comments
Labels
bug This issue is confirmed. workaround available There is still a workaround available.

Comments

@buanet
Copy link
Owner

buanet commented Sep 5, 2021

At the moment there seems to be an issue when restoring on a new Docker container with a different hostname.
After restart of the container the log says something like:

--------------------------------------------------------------------------------,
-----                    Step 5 of 5: ioBroker startup                     -----,
--------------------------------------------------------------------------------,
Starting ioBroker...,
================================== > LOG REDIRECT system.adapter.admin.0 => true [starting],
host.iobrokerold check instance "system.adapter.admin.0" for host "iobrokernew",
host.iobrokerold check instance "system.adapter.javascript.0" for host "iobrokernew",
host.iobrokerold check instance "system.adapter.backitup.0" for host "iobrokernew",
host.iobrokerold check instance "system.adapter.discovery.0" for host "iobrokernew",
host.iobrokerold check instance "system.adapter.dwd.0" for host "iobrokernew",
host.iobrokerold check instance "system.adapter.history.0" for host "iobrokernew"

This seems to be an issue in ioBroker restoring procedure. I already opened an issue in ioBroker js-controller repo:
ioBroker/ioBroker.js-controller#1450

This issue is for documentation only. For workaround see next post.

Regards,
André

@buanet buanet added the bug This issue is confirmed. label Sep 5, 2021
@buanet
Copy link
Owner Author

buanet commented Sep 5, 2021

Known workaround:

To get ioBroker working after a restore, you have to call iobroker host [oldhostname] at the containers command line. Make sure you stopped ioBroker before. Here is an example:

root@iobrokernew:/opt/iobroker# pkill -u iobroker
root@iobrokernew:/opt/iobroker# iobroker host iobrokerold
Host "iobrokerold" successfully renamed to "iobrokernew".
No instances found for host "iobrokerold"!
root@iobrokernew:/opt/iobroker# 

When using a singlehost you can use iobroker host this instead of iobroker host [oldhostname].
Don't use iobroker host this when using multhost (master/slave) system. For details see this link.

If you have any questions feel free to comment. Thank you.

Regards,
André

@buanet
Copy link
Owner Author

buanet commented Dec 20, 2021

Short update:
An official solution for this is confirmed for js-controller 4.0.x (for details see links above).
This issue remains open for documentation purpose until the fix will be available in a stable version.

Regards,
André

@Curtis777
Copy link

I tried the fix,
A host with the name "iobroker old" Allready exists.
Is the only answer I got....
I also tried to find a solution in the discord channel (German iobroker - docker)

@buanet
Copy link
Owner Author

buanet commented Apr 26, 2023

This seems still a problem in some way. Opened an issue at iobroker.js-controller.
ioBroker/ioBroker.js-controller#2241

@buanet
Copy link
Owner Author

buanet commented Apr 28, 2023

This should be fixed with js-controller v5. The issue will remain open until js-controller v5 release for documentation of the workaround.

@buanet
Copy link
Owner Author

buanet commented Oct 11, 2023

My last test showed that this is no longer a problem.

@buanet buanet closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is confirmed. workaround available There is still a workaround available.
Projects
None yet
Development

No branches or pull requests

2 participants