thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.74k stars 844 forks source link

not generating log files [HELP] #785

Closed akashagre closed 2 years ago

akashagre commented 2 years ago

Screenshot (34)

Thingsboard gateway not generating log file

samson0v commented 2 years ago

Hi @akashagre, it will be unable to save and see the logs because of the STREAM ONLY mode of your virtual machine. Please, use the docker image if you are using Windows.

imbeacon commented 2 years ago

Hi @akashagre ,

The possible reasons for this issue are:

  1. logs folder didn't created, if you installed the gatesway as a service please check folder /var/log/thingsboard-gateway - is it exists? If you installed the gateway from the sources - please create logs folder in the thingsboard-gateway folder.
  2. Some issue with permissions - the gateway in case of working like a service uses user thingsboard_gateway to write logs - please check are permissions for writing logs allowed to user thingsboard_user for logs folder.