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.75k stars 845 forks source link

[HELP] #885

Closed dh-jy closed 2 years ago

dh-jy commented 2 years ago

hello , i used "sudo pip3 install thingsboard-gateway" to install the gateway, it can work. but i cannot find the log file. As shown below. image

could you give me help?

samson0v commented 2 years ago

Hi @dh-jy, follow this guide to install ThingsBoard IoT Gateway via the pip package.

Thanks for your interest in ThingsBoard IoT Gateway!

dh-jy commented 2 years ago

yes, i followed it. but in the /var/log/thingsboard-gateway directory i cannot found any log files

发自我的iPhone

------------------ Original ------------------ From: Vitalii Bidochka @.> Date: Wed,Jul 20,2022 6:46 PM To: thingsboard/thingsboard-gateway @.> Cc: dh-jy @.>, Mention @.> Subject: Re: [thingsboard/thingsboard-gateway] [HELP] (Issue #885)

Hi @dh-jy, follow this guide to install ThingsBoard IoT Gateway via the pip package.

Thanks for your interest in ThingsBoard IoT Gateway!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

dh-jy commented 2 years ago

thank you for your replay. i follow the guide to install the gateway. and the gateway can run successfully. but i cannot find the log files in /var/log/thingsboard-gateway 

发自我的iPhone

------------------ Original ------------------ From: Vitalii Bidochka @.> Date: Wed,Jul 20,2022 6:46 PM To: thingsboard/thingsboard-gateway @.> Cc: dh-jy @.>, Mention @.> Subject: Re: [thingsboard/thingsboard-gateway] [HELP] (Issue #885)

Hi @dh-jy, follow this guide to install ThingsBoard IoT Gateway via the pip package.

Thanks for your interest in ThingsBoard IoT Gateway!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

samson0v commented 2 years ago

@dh-jy, do you run the gateway on the virtual machine?

PaulHHolmes commented 2 years ago

I have had a similar issue on a gateway - try adding the path and then making sure that the permissions for that folder allow the gateway to write files there. (chmod will let you do this)

dh-jy commented 2 years ago

@dh-jy, do you run the gateway on the virtual machine? not , i run the gateway on the Raspberry Pi device

dh-jy commented 2 years ago

I have had a similar issue on a gateway - try adding the path and then making sure that the permissions for that folder allow the gateway to write files there. (chmod will let you do this)

hello thank you for your reply, What is this path you are referring to? And How did you install the gateway apt or pip) ?

samson0v commented 2 years ago

Hi @dh-jy, use the next command: sudo chown YOUR_USER:YOUR_USER -R /var/log/thingsboard-gateway YOUR_USER - is a user who will run the gateway.

We will update the official documentation in the nearest future.

dh-jy commented 2 years ago

Thank you for your reply, i will try again

samson0v commented 2 years ago

Hi @dh-jy, any updates?

samson0v commented 2 years ago

@dh-jy, can we close the issue?

dh-jy commented 2 years ago

Hi @dh-jy, any updates?

yes, i solve this problem