Docker support? #183
Comments
Can you open the browser debug console and see if there's an error being thrown? |
I'll be sure to check that as soon as I can. I did briefly look at the console and I was seeing a bunch of information showing up but I don't recall anything that looked like errors(they might have been further up). I've had user/group permission issues with access to the host serial device earlier, presumably that isn't an issue with the .jar since the UI was present in the browser. Could be a port maybe. |
I guess you mean that the user/group permissions are preventing the ZWave port opening? This shouldn't have any bearing on the HABmin JAR. Once the UI is loaded, most of the services are using the standard REST services. So bindings, things, item config etc are all served straight out of the OH runtime. In most browsers, there should be an icon in the debugger if there is an error. |
That was the case but I had solved it prior to using HABmin. I'm able to use my ZWave controller to control some devices in Paper UI, although not having luck with the Yale door lock despite setting the network security key in the config to what I had paired it with in a nodejs project from earlier. Checking the console I see:
At a later point when navigating through the side menu I got this warning: No other issues, rest of console output is REST activity and status updates. I do have a thing(Hue) that's reporting itself offline and a configuration error, that's ok as I haven't set that up properly yet. Sonos is another thing being reported and that's going fine. Charts and Dashboard do not respond to clicks, no urls show when moused over and instead of the pointer icon used for some buttons I get the text select cursor instead. Moving onto third menu item, Automation, rules has the button pointer cursor and a url but no response to clicking, I right clicked and opened it in another tab and that tab fails to load, nothing being thrown in the webconsole, tab is just left with a spinning icon with Sitmaps is empty(I've not created any). Configuration, all buttons have url and proper cursor, however only clicking
In the webconsole:
Sidebar menu has icons but no text, obviously due to localization errors. The top menu bar no longer has the 8 inbox notifications it once showed, again likely due to the error for inbox rest call. the other configuration menu items I opened in other tabs still had spinning loading icon but seemed to have loaded their pages. I had done this prior to the refresh on Continuing down the side menu, Tools. The Log Reader displays no url on hover but does work whereas the Network Viewer does not appear to do anything. Both use the text select cursor instead of button pointer. No errors in console. Users and it's I'll try reproduce outside of Docker later today. I'll check if the same issues occur in Chrome in case it's due to Firefox. |
I suspect this must be a docker issue - or something to do with your config since at least most of what you list above works fine. Clearly from the errors in the log there's something fundimentally wrong given there are a LOT of files that are not being downloaded. I don't know if this is an issue with Docker, or your system for some other reason, but these files should be available. |
@cdjackson I just got around to checking HABmin via Chromium, I've only clicked to the
Doesn't really appear to be much errors there besides the unreachable code? No idea why it works fine with Chromium and not Firefox, would assume it's safe to say it's not due to my Docker setup though. The files were sometimes available, it seemed to alternate based on refreshing the tab, although like described some menu items would not navigate to their content on click. Are you able to verify if Firefox works fine on your end? I'm open to testing some more after the weekend. Have a Mac nearby, could also try VMs and openHAB locally instead of running in Docker. |
Don't worry about the unreachable code errors - it's not relevant. I've just stuck in a return statement to avoid some code. Why were you previously getting these errors "Failed to load: languages/en-GB/binding.lang.json". If you get this, then you won't get any strings. Also, "can't establish a connection to the server at http://localhost:8080/rest/events?topics=smarthome/links/*." is very strange - you won't get any updates if you have this sort of error. Again, SSE works find in the version of FF that I have so I don't think that this connection issue is a problem with FF. I've tested this with Chrome, Safari, Opera and Firefox, and it's wored fine on all browsers. I normally use Chrome, but occasionally switch to Firefox to make sure things are ok, and I know a lot of others are using Firefox. |
I primarily use Chrome myself, however not quite been an option for me this week. I will test Firefox from another machine to see if it's specific to my system install of it or something else. The errors you're referring to only appear on Firefox if I refreshed the tab. Refreshing it again seemed to not trigger the errors and get everything into the previous half working state I described initially, refreshing once more would put it in that state that threw all the errors and had issues displaying text. Paper UI worked fine(95% of the time at least) in Firefox so I'm not sure what HABmin does differently? Local storage, https call or caching perhaps? Will let you know how further testing goes on Monday :) |
Tested on Chrome and Firefox on OSX(separate machine on the network), worked fine until I opened a 2nd tab of HABmin. Noticed I had an additional tab on my machine(130+ tabs) from earlier. Closed it and HABmin seems to work fine now on my machine with Firefox. So the issue appears to be multiple HABmin tabs on any browser. Though it's fine to have HABmin tab on each browser at the same time. |
This issue might be that ESH REST server can't have more than 3 (or there-abouts) clients open since I don't see any reason that you shouldn't be able to have more than 1 HABmin instance open, but there is a limitation in ESH REST server. |
That wouldn't explain why it's fine to access HABmin via multiple browsers at once, but not via multiple tabs of a browser would it? Not a major issue now that I know it was because of a buried HABmin tab, I don't suppose many users would use multiple tabs for HABmin? Would be good if you can confirm this bug on your end btw :) |
I wouldn't have expected it to make any difference if you have multiple browsers, or multiple tabs - the result should be the same - multiple instances and multiple REST connections. I've definately seen other issues raised in OH2 where people try and open multiple UIs (not HABmin) and find there's a limit and some transfers are then aborted. |
If you can confirm it's the same issue on your end, I guess it might be due to a browser API or caching/storage that the browser handles that can be shared across tabs of the same site/ui but the browsers isolate that from one another? If you can verify the issue exists on your end too I could go open up an issue on an openHAB repo? |
So, I confirm (I think) what you see. I suspect it’s a browser issue… I’ve found that I can’t open 2 HABmins in the same browser. I also confirm that this is the same with PaperUI (i.e. you can only run a single PaperUI - opening a second in a tab of the same browser, or another window from the same browser, doesn’t work). I can open multiple versions in different browsers (i.e. one in Chrome, and another in Firefox works fine). |
I've been using the official OH2 docker image, I added the jar for habmin(0.1.6) to a mounted volume for the
openhab/addons
folder and was able to select the UI in the browser of my host OS. I'm not sure why but few menu options would respond to my clicks. I got the z-wave bindings and things to open and they were stuck on a spinning arrow symbol. I was also able to access scheduler which had some entries in the calendar.I'm not sure if this is the case out of Docker, if not any ideas on how to debug?
The text was updated successfully, but these errors were encountered: