Unable to SEND error

Good Evening,
After giving lot of time and effort still getting same error, please if you can help to understand on what is going wrong here.

Thanks!!
Regards,
Sandeep Mishra

Hi sandeep,
What exactly you want to implement ??
Kindly brief and give yml configuration

Hello Apurba,

I am trying to publish raspberry pi cpu temperature under picputemp attribute. I’m using paho mqtt client running on raspberry pi to get this data publish on OR from my pi board.

yml file as below,

OpenRemote v3

Profile that runs the stack by default on https://localhost using a self-signed SSL certificate,

but optionally on https://$OR_HOSTNAME with an auto generated SSL certificate from Letsencrypt.

It is configured to use the AWS logging driver.

version: ‘2.4’

volumes:
proxy-data:
temp-data:
postgresql-data:

btmesh-data:

services:

proxy:

image: openremote/proxy:${PROXY_VERSION:-latest}

image: openremote/proxy:develop
restart: always
depends_on:
  manager:
    condition: service_healthy
ports:
  - "8880:8880"
  - "${OR_SSL_PORT:-443}:443"
  - "8883:8883"
volumes:
  - proxy-data:/deployment
environment:
  LE_EMAIL: ${OR_EMAIL_ADMIN:-}
  DOMAINNAME: ${OR_HOSTNAME:-localhost}
  DOMAINNAMES: ${OR_ADDITIONAL_HOSTNAMES:-}
  # USE A CUSTOM PROXY CONFIG - COPY FROM https://raw.githubusercontent.com/openremote/proxy/main/haproxy.cfg
  #HAPROXY_CONFIG: '/data/proxy/haproxy.cfg'

postgresql:
restart: always
# image: openremote/postgresql:latest
image: openremote/postgresql:${POSTGRESQL_VERSION:-latest}
volumes:
- postgresql-data:/var/lib/postgresql/data
- temp-data:/tmp

keycloak:
restart: always
image: openremote/keycloak:${KEYCLOAK_VERSION:-latest}
# image: openremote/keycloak:develop
depends_on:
postgresql:
condition: service_healthy
volumes:
- ./deployment:/deployment
environment:
KEYCLOAK_ADMIN_PASSWORD: ${OR_ADMIN_PASSWORD:-secret}
KC_HOSTNAME: ${OR_HOSTNAME:-localhost}
KC_HOSTNAME_PORT: ${OR_SSL_PORT:–1}

manager:

privileged: true

restart: always
#    image: openremote/manager:${MANAGER_VERSION:-latest}
#    image: openremote/manager-custom:0.2
image: openremote/manager:memory
depends_on:
  keycloak:
    condition: service_healthy
environment:
  OR_SETUP_TYPE:
  OR_ADMIN_PASSWORD:
  OR_SETUP_RUN_ON_RESTART:
  OR_EMAIL_HOST:
  OR_EMAIL_USER:
  OR_EMAIL_PASSWORD:
  OR_EMAIL_X_HEADERS:
  OR_EMAIL_FROM:
  OR_EMAIL_ADMIN:
  OR_HOSTNAME: ${OR_HOSTNAME:-localhost}
  OR_ADDITIONAL_HOSTNAMES: ${OR_ADDITIONAL_HOSTNAMES:-}
  OR_SSL_PORT: ${OR_SSL_PORT:--1}
  OR_DEV_MODE: ${OR_DEV_MODE:-false}

  # The following variables will configure the demo
  OR_FORECAST_SOLAR_API_KEY:
  OR_OPEN_WEATHER_API_APP_ID:
  OR_SETUP_IMPORT_DEMO_AGENT_KNX:
  OR_SETUP_IMPORT_DEMO_AGENT_VELBUS:
volumes:
  - ./deployment:/deployment
  - temp-data:/tmp

- /var/run/dbus:/var/run/dbus

# Bluetooth mesh volume

- btmesh-data:/btmesh

devices:

- /dev/ttyACM0:/dev/ttyS0

Hi Sandeep,

Quick check: the username of your service user in OpenRemote is also gateway-6hxnauq2bzhhikwbsk9py1?

Don

Hi Don,

Yes correct, service user in OpenRemote is also gateway-6hxnauq2bzhhikwbsk9py1

moreover on checking logs, it seems sometime it authorizes and sometimes it doesn’t,

Thanks!!
Sandeep

there is a password in service user
with secret password configure mqtt client

and r u from india?

Hi Apurba,

Thanks!! for your response,
mqtt client is already configured with the secret password of the service user, you can see the topic is getting published and yes I’m from India.

Sandeep

Hello Apurba,

Please help to conclude, I’m still getting the same issue.

Thanks!!

Hello Apurba/Don,

Changed MQTT Client_ID to make it unique, but seems it has nothing to do with the issue I’am facing,


observations:
a) 25% data drop rate.
b) unreliable behavior

Either OR has some bug or I’m doing something wrong, was hoping to put it over production but with the above two observations, its seems OR to be not a good choice as if now until the issue gets resolved.

Thanks!!

Can we connect in anydesk tomorrow at 11

Hello Apurba,

Sure we will connect at 11 AM ( hope it’s AM ), I’m in IST please let me know your TZ I’ll catch you up.

Thanks!!

Hello Apurba,

can we connect now ?

Thanks!!
Sandeep

Hi,
Sorry for delay , i am lil-bit busy
kindly connect at https://meet.google.com/gaf-cwvy-yxs?pli=1 at 3 pm today

HI Apurba,

OK 3 PM today.

Hi Sandy,

could you provide your pi code? I guess there is your problem.

Hi Denis,

Please find attached script from Pi boad.

pubMQTTcpuTemp.txt (1.4 KB)

not helpful, please provide your actual code (you can mask the secret)

Hi Denis,

The enviornment file from where the script is loading secret and other details,

and there is the problem:

clientID = os.uname()[1]#'gateway-6hxnauq2bzhhiwbsk9pyl'#os.uname()[1]

it must be in your case:

clientID = os.uname()[1]#'raspberrypi_picutemp'#os.uname()[1]

the clientID is not your login, it must be a unique identifier and the topic must match it:

realm/CLIENTID/....