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

Docker installation - Ip address find #526

Open
perhusaas opened this issue Mar 5, 2022 · 6 comments
Open

Docker installation - Ip address find #526

perhusaas opened this issue Mar 5, 2022 · 6 comments

Comments

@perhusaas
Copy link

installing 3.2.2 and patching for HASS integration (mentioned here: cc62fa2), I can't log in with any user but admin. the login screen just resets.

I get this in the log:
sh: 1: ip: not found

so i looked into the 'AutomationController.prototype.getIPAddress = function() {' in AutomationController.js , and see that none of the ways of obtaining what i asume is the host IP for the z-way server works in a docker (ubuntu based).
'Hostname -i" will return the container IP, don't know how to find host IP from within the docker..

I tried to hard code the correct IP in this function, and i see that the error message disapeared, but the login still resets for all but the admin user.

Any ideas?

@PoltoS
Copy link
Member

PoltoS commented Mar 8, 2022

Please show the tcpdump traffic (mangle your tokens not to show real data). tcpdump -i eth0 port 8083 -ntls 1000.

As for the IP, it is not a problem - it will just return empty string. It is not used by HASS

@perhusaas
Copy link
Author

couldn't get that going for some reason, but i looked into the HASS log, and this appears twice:
2022-03-13 13:47:09 ERROR (Thread-92) [websocket] error from callback <bound method ZWaveMe.on_close of <zwave_me_ws.ZWaveMe.ZWaveMe object at 0x7efe60d82730>>: on_close() missing 1 required positional argument: '_'

what is the "_" argument zwave_me_ws is missing?

@perhusaas
Copy link
Author

I see now that I mentioned that in another thread, and that this issue can be closed if the IP address thing is not an issue.

@PoltoS
Copy link
Member

PoltoS commented Mar 13, 2022

Which docker do you use? How do you install it?

@perhusaas
Copy link
Author

I made this docker, the docker compose and dockerfile is in the description.
HASS is running in homeassistant/home-assistant:latest
openLuup (which is connected to Z-Way using luasocket) is also in a separate docker, and all of them are in the same docker network at netmask 192.168.0.1-254/16.

@perhusaas
Copy link
Author

IP issue is stated as not the problem up above here, so this issue can be closed. (my issues with first logon was caused by something in my config files, I set up HASS all over again and problem disappeared).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants