Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] , Keep getting errors OSError: [Errno 101] Network is unreachable Oct 15 13:29:05; ~ python3[10783]: 2024-10-15 13:29:05 - |DEBUG| - [tb_client.py] - tb_client - connect - 263 - connecting to ThingsBoard #1557

Closed
IhorYednak opened this issue Oct 15, 2024 · 0 comments
Assignees

Comments

@IhorYednak
Copy link

IhorYednak commented Oct 15, 2024

Hi guys, recently I faced with this issue, that every time when I'm trying to run the gateway it gives me this error - OSError: [Errno 101] Network is unreachable
Oct 15 13:29:05 prdmzgateway python3[10783]: 2024-10-15 13:29:05 - |DEBUG| - [tb_client.py] - tb_client - connect - 263 - connecting to ThingsBoard

I checked everything possible, port should be okay, host also, it was working just fine a while ago and then it just stopped
I tried different hosts and ports, but it always gives me this error
Gateway version - 3.4.6
this is how my tb_gateway.json looks like

{
  "thingsboard": {
    "host": "sandbox.produmize.com",
    "port": 1884,
    "remoteShell": false,
    "remoteConfiguration": true,
    "statistics": {
      "enable": true,
      "statsSendPeriodInSeconds": 3600
    },
    "deviceFiltering": {
      "enable": false,
      "filterFile": "list.json"
    },
    "maxPayloadSizeBytes": 1024,
    "minPackSendDelayMS": 200,
    "minPackSizeToSend": 500,
    "checkConnectorsConfigurationInSeconds": 60,
    "handleDeviceRenaming": true,
    "security": {
      "type": "accessToken",
      "accessToken": "ocz26qkcg53nam6r88z6"
    },
    "qos": 1,
    "checkingDeviceActivity": {
      "checkDeviceInactivity": false,
      "inactivityTimeoutSeconds": 200,
      "inactivityCheckPeriodSeconds": 500
    }
  },
  "storage": {
    "type": "memory",
    "read_records_count": 100,
    "max_records_count": 100000,
    "data_folder_path": "./data/",
    "max_file_count": 10,
    "max_read_records_count": 10,
    "max_records_per_file": 10000,
    "data_file_path": "./data/data.db",
    "messages_ttl_check_in_hours": 1,
    "messages_ttl_in_days": 7
  },
  "grpc": {
    "enabled": false,
    "serverPort": 9595,
    "keepaliveTimeMs": 10000,
    "keepaliveTimeoutMs": 5000,
    "keepalivePermitWithoutCalls": true,
    "maxPingsWithoutData": 0,
    "minTimeBetweenPingsMs": 10000,
    "minPingIntervalWithoutDataMs": 5000,
    "keepAliveTimeMs": 10000,
    "keepAliveTimeoutMs": 5000
  },
  "connectors": [
    {
      "type": "rest",
      "name": "REST Connector",
      "configuration": "rest.json"
    }
  ]
}

Will appreciate any help,
Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants