Addon ingress development, unable to view internal service from ingress web ui

i’ve been playing around with add ons and the ingress. my issue really comes around as i try to create a new influxdb add on using the latest.

No errors that i can see in any logs. only hint is from the 400 response.

i’m pretty new to the forum, please let me know if i’m missing anything.

the new influx has all of the old parts rolled into one. so no more flux/chronograf needed.

do i need to add nginx and proxy the influx endpoint?

this is what i see after trying to open the web ui

here is my Dockerfile:

ARG BUILD_FROM
FROM $BUILD_FROM

ARG BUILD_ARCH
RUN \
    ARCH="" \
    && if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; \
          elif [ "${BUILD_ARCH}" = "amd64" ]; then ARCH="amd64"; \
          else exit 1; \
    fi \
    && wget -O influxdb.tar.gz https://dl.influxdata.com/influxdb/releases/influxdb2-2.3.0-linux-${ARCh}.tar.gz \
    && mkdir influxdb \
    && tar xzf influxdb.tar.gz -C influxdb --strip-components 1

WORKDIR /data
COPY run.sh /
RUN chmod a+x /run.sh

CMD ["/run.sh"] 

config.yaml:

name: "influx test"
description: "test influx"
version: "1.1.1"
slug: "influx_test"
init: false
map:
    - ssl
ingress: true
arch:
    - aarch64
    - amd64
options: 
    certfile: le-cert.pem
    keyfile: le-key.pem
schema:
    certfile: str
    keyfile: str

run.sh:

#!/usr/bin/with-contenv bashio

certfile=$(bashio::config 'certfile')
keyfile=$(bashio::config 'keyfile')

if [ ! -f /ssl/$certfile ]; then
    echo "Cannot find certificate file $certfile"
    exit 1
fi
if [ ! -f /ssl/$keyfile ]; then
    echo "Cannot find certificate key file $keyfile"
    exit 1
fi

echo "Starting Influxdb..."

exec /influxdb/influxd \
--reporting-disabled \
--tls-cert="/ssl/$certfile" \
--tls-key="ssl/$keyfile" \
--log-level=debug \
--http-bind-address=:8099
1 Like

as an update, i’ve tried updating the official influx addon to 2.3.0. making the least amount of changes possible and am getting a bad gateway (nginx is actually returning a webpage). getting this error from within the updated influxdb addon:

2022/08/03 15:09:14 [error] 281#281: *14 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: local-influxdb, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8889/api/hassio_ingress/sgWkogy9EUepskaFvfFgUMfFfZnpd4_e0N_BwxQy9x8/", host: "my.website.com", referrer: "https://my.website.com/hassio/ingress/local_influxdb"
1 Like