-
Notifications
You must be signed in to change notification settings - Fork 10
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
Why am I getting this error message? #5
Comments
I guess either 192.168.0.250 is not a local address (try setting SERVER_HOST to 0.0.0.0), or something is already listening on port 10001. One thing you need to watch out for with TCP connections in general is that the port can remain busy for a while after it has been closed (while it remains in TIME_WAIT state). If this is the case then it will work if you try again after a minute or so. |
Thanks for the help! Theoretically, the server is running now, but something is still wrong: 2020-09-17 12:19:32,899 INFO Starting MQTT client for 192.168.0.185:1883 If i close the CLI: |
Doesn't look like the panel is calling in. The server port number (1010 here) needs to match what is set in the panel configuration either from a keypad or via WinTex. If you close the CLI you quit the server unless you daemonised it, which you can do by running it like "./alarmrx.py -d". If you get an error about DaemonContext you need to "pip install python-daemon". The -d switch will run the server in the background. To shut it down you will need to kill the process e.g. with kill $(pgrep -f alarmrx.py) |
2020-09-16 23:29:46,554 INFO Starting MQTT client for 192.168.0.185:1883
2020-09-16 23:29:46,557 INFO Starting alarm server on 192.168.0.250:10001
2020-09-16 23:29:46,559 ERROR Terminated due to exception
Traceback (most recent call last):
File "alarmrx.py", line 869, in
main()
File "alarmrx.py", line 852, in main
t = ThreadedTCPServer((SERVER_HOST, SERVER_PORT), TexecomService)
File "/usr/lib/python2.7/SocketServer.py", line 417, in init
self.server_bind()
File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind
self.socket.bind(self.server_address)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 99] Cannot assign requested address
The text was updated successfully, but these errors were encountered: