-
Notifications
You must be signed in to change notification settings - Fork 26
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
Controller loop exited #84
Comments
.docker/entrypoint.sh
|
docker-compose.yml
|
config.ini
|
This looks like maybe a latent bug, but I'd probably need to be able to reproduce it to tell. I imagine its because read returns a
Surely you're not running python2 in the docker container (or outside) right? That might explain something. The only other thing I can think of is you're using the NX584 binary protocol in one place and ascii one in the other and they're running different code in the communication routines. |
Well.. I am running python2 in the container (I think). I use your .docker file directly and its contents are:
Should I change this to |
I changed the FROM directive in the Docker file as above and I no longer get the error. However, after accepting the initial status of the zones from the NX590e, I don't see any updates triggered in the logs. Do you think it's configuration of the NX590e or source code related? |
Ah, that was contributed by a user, I've never run it myself. It definitely shouldn't be running on python2 anymore. And yep, you need to configure the panel to send events to the serial device, otherwise it just responds to queries. |
Hello,
When trying to start a docker container with docker compose, I get the following log:
I tried looking at the code and it appears the error is caused at line 218 NXBinary.read_frame() when it tries to read the variable length and a string is assigned to it instead of an integer.
After that the code recovers and reconnects but no data stream ever arrives, even if I wait a bit.
This is very strange because it only happens when I run the server inside the docker container. I tried running it on the command line and I never got the error: on the contrary the server receives data from the NX module and I get the proper status of the module.
I will attach my docker-compose.py for your reference. FYI I have made a few changes on the entrypoint.sh in order to be able to pass nx584_server arguments such as config file in the container.
I have the NX590e (might not be relevant but I mention it), hence I can only run the nx584_server in binary mode and thus I need the config file in the docker container before running it.
The text was updated successfully, but these errors were encountered: