Giter VIP home page Giter VIP logo

homeassistant-influxdb2's People

Contributors

dattel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

homeassistant-influxdb2's Issues

Failed to install add-on

Hi, I just tried to install the add-on on my HAS instance and got the following error:

The command '/bin/bash -o pipefail -c apt-get update && ARCH="${BUILD_ARCH}" && if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi && INFLUXDB="2.7.1" && curl -J -L -o /tmp/influxdb2.deb "https://dl.influxdata.com/influxdb/releases/influxdb2-${INFLUXDB}-${ARCH}.deb" && curl -J -L -o /tmp/influxdb-cli.deb "https://dl.influxdata.com/influxdb/releases/influxdb2-client-${INFLUXDB}-${ARCH}.deb" && dpkg --install /tmp/influxdb2.deb && dpkg --install /tmp/influxdb-cli.deb && rm -fr /tmp/* /var/{cache,log}/* /var/lib/apt/lists/* && mkdir -p /data/influxdb2/engine' returned a non-zero code: 6

I'm running:

Home Assistant 2023.5.2
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest

on an x86_64 VM under qemu.

The curious part is that I tested it on an RPi4 and a very similar VM on another machine, and it was installed successfully.

I can see that it is an error in the Docker build. I think that it might be a good idea, either way, to build the image in CI and use it in the addon config instead of building the image directly on the host. Here is a snippet from one of my private projects, which uses GH Actions to do just this:

name: Build Docker image
on:
  push:
    branches:
      - main
  pull_request:

jobs:
  build-docker:
    name: Build Docker image
    runs-on: ubuntu-latest
    needs: build
    steps:
      - uses: actions/checkout@v3
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
      - name: Login to Docker registry
        uses: docker/login-action@v2
        with:
          registry: ${{ secrets.REGISTRY_URL }}
          username: ${{ secrets.REGISTRY_USER }}
          password: ${{ secrets.REGISTRY_PASSWORD }}
      - name: Extract branch name
        shell: bash
        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
        id: extract_branch
      - name: Build and push
        id: docker_build
        uses: docker/build-push-action@v3
        with:
          push: true
          tags: ${{ secrets.REGISTRY_URL }}:${{ steps.extract_branch.outputs.branch }}
          context: .
          cache-from: type=registry,ref=${{ secrets.REGISTRY_URL }}:buildcache
          cache-to: type=registry,ref=${{ secrets.REGISTRY_URL }}:buildcache,mode=max
      - name: Image digest
        run: echo ${{ steps.docker_build.outputs.digest }}

You can set the secrets according to the GHCR guide: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

[supervisor.docker.addon] Invalid build environment, can't build this add-on!

Hi Dan,
I wanted to give a try to this addon from your repository. I already have influxdb 1.7 addon from Frank, running for a few years. But I would like to think that v2 is possible right now.

When I am trying to install the addon from your repository on my HA VM running in proxmox, I get this error.
23-05-11 13:15:18 INFO (MainThread) [supervisor.addons] Creating Home Assistant add-on data folder /data/addons/data/50fa1dca_influxdb2
23-05-11 13:15:18 ERROR (SyncWorker_1) [supervisor.docker.addon] Invalid build environment, can't build this add-on!

I thought it may be because of influxdb2/build.yaml.
My HA hardware says: Virtual Machine, ova.

Thanks for your contributions.

Implementation reverse Proxy

Hi Dattel,

first of all thanks for the addon. Hopefully this one stays active!

I just miss one thing: the reverse proxy that the UI is accessible throug the home assistant webinterface.

Would be cool if you could add this.

Thanks!

increase timeout (read and write) in /etc/influxdb/config/config.toml

in the /etc/influxdb/config/config.toml the tiemout are really short (10s).

reporting-disabled = false
engine-path = "/data/influxdb2/engine"
bolt-path = "/data/influxdb2/influxd.bolt"
sqlite-path = "/data/influxdb2/influxd.sqlite"
http-read-timeout = "10s"
http-write-timeout = "10s"

can you increase those values to 60 second for exemple, i need this for doing backups and eventually restores

thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.