Comments (6)
Hi @KarimSayedAmir,
Thank you for your interest in ThingsBoard IoT gateway.
Please try to make a backup of your configuration, remove the old gateway and install a version 3.4.3.1 it contains minor fixes for logging system and may help with this issue. Let us know about results.
from thingsboard-gateway.
Hi @imbeacon,
thanks a lot for the quick reply. I will check this today and give you feedback.
Have a nice day.
from thingsboard-gateway.
Hi @imbeacon,
actually I am getting this now:
owipex_adm@owipex:/boot/firmware$ systemctl status thingsboard-gateway
● thingsboard-gateway.service - ThingsBoard Gateway
Loaded: loaded (/etc/systemd/system/thingsboard-gateway.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-11-27 21:54:54 CET; 2min 1s ago
Main PID: 1764 (python3)
Tasks: 29 (limit: 4416)
Memory: 43.5M
CPU: 45.666s
CGroup: /system.slice/thingsboard-gateway.service
└─1764 /usr/bin/python3 -c "from thingsboard_gateway.tb_gateway import daemon; daemon()"
Nov 27 21:55:34 owipex python3[1764]: File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 575, in read
Nov 27 21:55:34 owipex python3[1764]: buf = os.read(self.fd, size - len(read))
Nov 27 21:55:34 owipex python3[1764]: TypeError: 'NoneType' object cannot be interpreted as an integer
Nov 27 21:55:34 owipex python3[1764]: 21:55:34 DEBUG modbus_connector:323 Device connector type: serial
Nov 27 21:55:34 owipex python3[1764]: 21:55:34 DEBUG modbus_connector:419 Modbus trying connect to Modbus Temperature Sensor
Nov 27 21:56:39 owipex python3[1764]: 21:56:39 INFO modbus_connector:312 RS485_serial has been stopped.
Nov 27 21:56:44 owipex python3[1764]: 21:56:44 DEBUG modbus_connector:536 With result Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 4 bytes (0 received)
Nov 27 21:56:44 owipex python3[1764]: 21:56:44 DEBUG modbus_connector:359 Checking timeseries for device Modbus Temperature Sensor
Nov 27 21:56:44 owipex python3[1764]: 21:56:44 DEBUG modbus_connector:360 Device response:
Nov 27 21:56:44 owipex python3[1764]: 21:56:44 ERROR modbus_connector:340 Socket is closed
owipex_adm@owipex:/boot/firmware$
1.)Can this be connected to the Ubuntu 22.04 right management?
2.)Strange thing is that if I am using my own Modbus Lib, i can read the sensor easily.
Have great evening
BR
Sayed
from thingsboard-gateway.
Hi could solve the first issue:
The installation was done over the deb package.
I created the missing folder:
sudo
mkdir -p /var/lib/thingsboard_gateway/logs`
Then i had to add permissions:
sudo chown -R thingsboard_gateway:thingsboard_gateway /var/lib/thingsboard_gateway/logs sudo chmod -R 755 /var/lib/thingsboard_gateway/logs
Now the log looks like this: owipex_adm@owipex:/boot/firmware$ systemctl status thingsboard-gateway
● thingsboard-gateway.service - ThingsBoard Gateway
Loaded: loaded (/etc/systemd/system/thingsboard-gateway.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-11-27 22:16:29 CET; 4min 37s ago
Main PID: 1906 (python3)
Tasks: 17 (limit: 4416)
Memory: 42.8M
CPU: 57.537s
CGroup: /system.slice/thingsboard-gateway.service
└─1906 /usr/bin/python3 -c "from thingsboard_gateway.tb_gateway import daemon; daemon()"
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_general_configuration_update - 327 - --- Checking other configuration >
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_general_configuration_update - 330 - --- Saving new general configurat>
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |ERROR| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_connector_configuration_update - 519 - 'bool' object is not subscript>
Nov 27 22:16:35 owipex python3[1906]: Traceback (most recent call last):
Nov 27 22:16:35 owipex python3[1906]: File "/usr/lib/python3/dist-packages/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py", line 449, in _handle_connector_configuration_update
Nov 27 22:16:35 owipex python3[1906]: config_file_name = config['configuration']
Nov 27 22:16:35 owipex python3[1906]: TypeError: 'bool' object is not subscriptable
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [modbus_connector.py] - modbus_connector - close - 312 - RS485_serial has been stopped.
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_grpc_configuration_update - 380 - Processed GRPC configuration update >
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_storage_configuration_update - 355 - Processed storage configuration u>
But the sensor is still not reading.
BR
Sayed
from thingsboard-gateway.
Issue is now solved.
Thanks a lot.
from thingsboard-gateway.
How? I have similar problem
from thingsboard-gateway.
Related Issues (20)
- [HELP] Ubuntu 24.04 LTS installation HOT 1
- [HELP] IoT Gateway as modbus slave to send TS data to PLC HOT 1
- thingsboard gateway installation problem HOT 1
- [HELP] Is there an easy way to read same timeseries from multiple devices Modbus TCP? HOT 1
- [BUG] SNMP Connectors only updates one parameter. HOT 1
- [BUG] Enabling or disabling the linker through platform gateway configuration causes devices under other linkers to be unable to communicate normally.
- [HELP] Getting error when I am trying to run the Thingsboard IoT gateway using Jetson Nano
- [Modbus RTU error] Port [ttyUSB0] Permission denied: '/dev/ttyUSB0' HOT 2
- Issue while installing Thingsboard IoT Gateway on Raspberry Pi OS [HELP] HOT 1
- Issue while getting data from multiple BLE beacons (working in advertisement mode) to Thingsboard platform using Thingsboard Gateway stack.
- [Feature] OPC-UA browse name & display name HOT 1
- [Modbus RTU error] when working through the serial port HOT 2
- Error will be reported when installing Thboard-Gatewat according to the documentation HOT 1
- [BUG] Abnormal rate limit with mqtt HOT 1
- [BUG] Running in the Windows environment leads to the accidental modification of the security field in in config HOT 4
- [BUG] Error delete storage file while the file is still opening and code blocking when put message into a full memory storage queue HOT 1
- [HELP] HOT 2
- TLS support and logging
- Gateway Related Issus- “tb-gateway | exec /bin/bash: exec format error” HOT 1
- I can't configure gateway using docker on windows and simulated Modbus server as getting started documentation[HELP] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thingsboard-gateway.