You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`root@Ubuntu-Jeedom:~# python /var/www/html/plugins/script/data/nad.py
2021-12-18 21:00:07,937 - INFO - Starting mqtt thread
2021-12-18 21:00:07,940 - INFO - Starting serial port thread
2021-12-18 21:00:07,940 - DEBUG - [MQTT] Connected to broker (result code 0)
Serving Flask app "nad" (lazy loading)
Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
Debug mode: off
Traceback (most recent call last):
File "/var/www/html/plugins/script/data/nad.py", line 228, in
main(sys.argv[1:])
File "/var/www/html/plugins/script/data/nad.py", line 225, in main
app.run(host=config["restBindIp"], port=config["restBindPort"])
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 1052, in run_simple
inner()
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 1005, in inner
fd=fd,
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 848, in make_server
host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 740, in init
HTTPServer.init(self, server_address, handler)
File "/usr/lib/python2.7/SocketServer.py", line 420, in init
self.server_bind()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.7/SocketServer.py", line 434, 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)
socket.error: [Errno 98] Address already in use
root@Ubuntu-Jeedom:~#
`
It seems that I missed an argument, but I don't know what. Also there is a file rest.service but I don't know how to use it ?
many thanks for helping me.
The text was updated successfully, but these errors were encountered:
Hello,
I have the same model of amplifier, the only problem is that I am a newbie.
I have the USB RS232 cable which is connected to my server ubuntu.
`root@Ubuntu-Jeedom:~# sudo service mosquitto status
● mosquitto.service - LSB: mosquitto MQTT v3.1 message broker
Loaded: loaded (/etc/init.d/mosquitto; generated)
Active: active (running) since Tue 2021-12-07 21:21:40 CET; 1 weeks 3 days ago
Docs: man:systemd-sysv-generator(8)
Process: 493 ExecStart=/etc/init.d/mosquitto start (code=exited, status=0/SUCCESS)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/mosquitto.service
└─505 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
déc. 07 21:21:40 Ubuntu-Jeedom systemd[1]: Starting LSB: mosquitto MQTT v3.1 message broker...
déc. 07 21:21:40 Ubuntu-Jeedom mosquitto[493]: * Starting network daemon: mosquitto
déc. 07 21:21:40 Ubuntu-Jeedom mosquitto[493]: ...done.
déc. 07 21:21:40 Ubuntu-Jeedom systemd[1]: Started LSB: mosquitto MQTT v3.1 message broker.
root@Ubuntu-Jeedom:~# `
I launch the script:
`root@Ubuntu-Jeedom:~# python /var/www/html/plugins/script/data/nad.py
2021-12-18 21:00:07,937 - INFO - Starting mqtt thread
2021-12-18 21:00:07,940 - INFO - Starting serial port thread
2021-12-18 21:00:07,940 - DEBUG - [MQTT] Connected to broker (result code 0)
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
Traceback (most recent call last):
File "/var/www/html/plugins/script/data/nad.py", line 228, in
main(sys.argv[1:])
File "/var/www/html/plugins/script/data/nad.py", line 225, in main
app.run(host=config["restBindIp"], port=config["restBindPort"])
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 1052, in run_simple
inner()
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 1005, in inner
fd=fd,
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 848, in make_server
host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 740, in init
HTTPServer.init(self, server_address, handler)
File "/usr/lib/python2.7/SocketServer.py", line 420, in init
self.server_bind()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.7/SocketServer.py", line 434, 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)
socket.error: [Errno 98] Address already in use
root@Ubuntu-Jeedom:~#
`
It seems that I missed an argument, but I don't know what. Also there is a file rest.service but I don't know how to use it ?
many thanks for helping me.
The text was updated successfully, but these errors were encountered: