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.72k stars 829 forks source link

Failed to start gateway. (same as #366) #686

Closed mrSilkie closed 2 years ago

mrSilkie commented 2 years ago

Describe the bug Following gateway install instructions to find that service crashes. - https://thingsboard.io/docs/iot-gateway/install/deb-installation/

Your Server Environment Running on a virtual machine run by a paid host, ubuntu 18.04, TB 3.3.1, Python 3.7

To Reproduce Steps to reproduce the behavior:

-- Check Status
systemctl status thingsboard-gateway

-- Remove Gateway
sudo apt remove python3-thingsboard-gateway

-- Delete old contents
rm etc/thingsboard-gateway -r

-- Delete old .deb
cd ..
rm python3-thingsboard-gateway.deb

-- Download new package
wget https://github.com/thingsboard/thingsboard-gateway/releases/download/3.0/python3-thingsboard-gateway.deb

-- Install downloaded package
sudo apt install ./python3-thingsboard-gateway.deb -y

repeat with same issue

Expected behavior I'm expecting to see

... python3[7563]: ''2019-12-26 09:31:15' - ERROR - mqtt_connector - 181 - Default Broker connection FAIL with error 5 not authorised!' 

Screenshots Capture

Additional context Kind of lost here, there are 2-3 posts on the internet with people having a similar problem but the solution was to "download the .deb package and install that way" which is what I've done. It looks like most people install their setups just fine and it seems that I'm the odd one out. I'm not an expert and linux to be honest and at this point would be happy to pay somebody to setup the MQTT gateway for me. However, that goes against the point of the project and I'd like to get some help / troubleshooting steps / insight as to logging that I can use to debug this issue. Hopefully this post makes it easier for people in the future to trouble shoot this issue too.

The only solution I can conjure up is to download older gateway packages and see if they too have the same issue but i'm just throwing muck on the wall to see what sticks at this point. Any help with anybody experienced will be great.

I really, really don't want to reinstall ubuntu as this would mean I'd be spending hours reinstalling TB and getting nginx working as it is at the moment. I work with embedded and setting up the TB installation has been a bit of a curve ball.

mrSilkie commented 2 years ago

Solved.

Installed with pip instead of the package manager.