influxdata / influxdata/influxdb

Influxd crashes raspberry pi 2

Open
#21,389 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.

1. Start System wait until influx is opening the files
2. InfluxDB consumes all Memory until System hangs up

__Expected behavior:__
Influxdb should start normaly and with lot less of memory consume

__Actual behavior:__
Influxdb eats all memory until system hangs.

__Environment info:__

* System info: Run `uname -srm` and copy the output here
* InfluxDB version: Run `influxd version` and copy the output here
* Other relevant environment details: Container runtime, disk info, etc

```root@raspberrypi:/media/daten/influxdb# find . -type f | wc -l
25076
root@raspberrypi:/media/daten/influxdb# du -hs *
807M data
4,0K dumps
48K meta
68M wal

uname -srm
Linux 5.10.17-v7+ armv7l
```

__Config:__
Copy any non-default config values here or attach the full config as a gist or file.

```< dir = "/media/daten/influxdb/meta"
---
> dir = "/var/lib/influxdb/meta"
32c32
< logging-enabled = true
---
> # logging-enabled = true
45c45
< dir = "/media/daten/influxdb/data"
---
> dir = "/var/lib/influxdb/data"
48c48
< wal-dir = "/media/daten/influxdb/wal"
---
> wal-dir = "/var/lib/influxdb/wal"
54c54
< wal-fsync-delay = "5000ms"
---
> # wal-fsync-delay = "0s"
61d60
< index-version = "tsi1"

< max-concurrent-compactions = 1
---
> # max-concurrent-compactions = 0
```

__Logs:__
Include snippet of errors in log.

__Performance:__
Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.

```sh
# Commands should be run when the bug is actively happening.
# Note: This command will run for ~30 seconds.
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=30s"
iostat -xd 1 30 > iostat.txt
# Attach the `profiles.tar.gz` and `iostat.txt` output files.
```

unable to pull any data Raspi hangs up if i don't stop influxd after startup.

```dpkg -l influxdb
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name Version Architektur Beschreibung
+++-==============-============-============-=================================
ii influxdb 1.8.5-1 armhf Distributed time-series database.
```

Contributor guide

Open the contributing guide

Research direction

The report names no source files or tests. First reproduce startup on Raspberry Pi 2 with InfluxDB 1.8.5-1 and the shown configuration, then collect the requested /debug/pprof/all profile and iostat output while memory grows. Done means identifying the startup memory cause and verifying that influxd starts without exhausting system memory; the report currently provides no logs or profiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, raspberry-pi
Domain
databases, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.