ioBroker / ioBroker.admin

user interface for configuration and administration
https://iobroker.net
MIT License
270 stars 79 forks source link

Multihost setup not working properly #1367

Closed xadox-1st closed 2 years ago

xadox-1st commented 2 years ago

Describe the bug
Setting up a Proxmox LXC Ubuntu or Debian master iobroker with "iob multihost enable". Setting up a Pi slave iobroker. Manuel with rapsbian or using the rpi image with "iob multihost connect"

To Reproduce
Steps to reproduce the behavior:

  1. Got to Adapters view
  2. Switch to slave
  3. "does not start any instances on this host" is logged
  4. Force Refresh website
  5. try installing Backitup Adapter. Adapter will be installed forever.

Expected behavior
On my older setup with jscontroller below v4 this is working fine.

image

Apollon77 commented 2 years ago

Ok, sorry I do not get the problem ... what exactly is your issue??

Is the issue that backit up can not be installed? So whats exactly the UI doing?

Also : The output you write as #3 should have nothing to do with the step #2 before because the log you mention appear when you start the js.controller on an "empty" slave with no instances defined there and is completely ok

xadox-1st commented 2 years ago

I will try to describe better. If I use the two iobroker without the multihost functionality separately, both work without problems.

But as soon as I use the PI as slave I have problems installing any adapter on the slave PI. The installation dialog is not finished and is not closed after hours. Even if I hide this task in the background. The close button on that installation task is greyed out than.

In previous version switching to a still empty slave did not lead to this error log entry. Since the Admin Adapter and the Discovery Adaper were also present on the slave. But that should not be the core problem. The problem is that I can't get the adapters installed on the slave without problems.

Apollon77 commented 2 years ago

Please show more detaisl like a screenshot of full admin page, logfiles and and and

xadox-1st commented 2 years ago

I will try to deliver: image

Adapters on Master image

Switching between master and slave does not change view: https://vimeo.com/686802669

This stays forever: image

Log: ioborker-pi.log iobroker-master.log

Apollon77 commented 2 years ago

For Admin: It seems that there is a "data refreshj issue" on host switch. Klick the reload button (the circle) after switching the host. I think there already is an issue fopr this

For the adapter install: Can you please execute the command in a shell 0n the slave?

iobroker add lupusec

for me it works

xadox-1st commented 2 years ago

For Admin: It seems that there is a "data refreshj issue" on host switch. Klick the reload button (the circle) after switching the host. I think there already is an issue fopr this

you are right this works. So I seem to be affected by the bug as well. Thank you for identifying the problem.

For the adapter install: Can you please execute the command in a shell 0n the slave? iobroker add lupusec

For me I have the same problem from console, too. The task is running without an end: image

But it seems if I cancle the task the adapter and the instance are working. So there seems to but a problem with getting the finished result to the installer.

There are several error messages in the log, too: image The IP-Adress in this case is the one from the slave.

xadox-1st commented 2 years ago

There seems to be a refresh problem in general. The adapters are installed but the dialog does not close. If one then Force Refreshed the adapters or also Instancen appear in the overview.

Apollon77 commented 2 years ago

The EXEC without MULTI issue will be fixed in contrioller 4.0.20 soon (Beta today). maybe retry after that? It could easiely be connected

Apollon77 commented 2 years ago

js.controller 4.0.21 is released in Beta ... Please try if now the install goes through

xadox-1st commented 2 years ago

I updated js.controller to 4.0.21: The problem with the adapter installation has been solved. Thx for that fast fix. The problem with missing autorefresh when switching between master and slave is still present. The log entry "EXEC without MULTI" did not appear anymore.

Apollon77 commented 2 years ago

Sure, the Admin iss ue is an admin issue :-)

formally the issue here is solved (hanging install) ... so maybe create a new issue for the refresh issue?