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

(Migrating from 1.x) 2.7.10 .deb packages installs in /var/lib/influxdb/.influxdbv2/, not /var/lib/influxdb/ #25305

Open
lafrech opened this issue Sep 11, 2024 · 0 comments

Comments

@lafrech
Copy link

lafrech commented Sep 11, 2024

The docs specify that installing from .deb package installs in /var/lib/influxdb/.... However, on my server, things are in /var/lib/influxdb/.influxdbv2.

I installed by upgrading from InfluxDB v1. This might be due to me screwing something up while upgrading.

Steps to reproduce:

Install InfluxDB v1 .deb.
Run InfluxDB v1.

Install InfluxDB v2 .deb.
Migrate.

Expected behaviour:

Stuff in /var/lib/influxdb/... as shown in the docs.

Actual behaviour:

Stuff in /var/lib/influxdb/.influxdbv2... as if running standalone, sort of.

/etc/systemd/system/influxd.service
EnvironmentFile=-/etc/default/influxdb2

/etc/default/influxdb2
INFLUXD_CONFIG_PATH=/etc/influxdb/config.toml

/etc/influxdb/config.toml does not exist
/etc/influxdb/influxdb.conf still there

/var/lib/influxdb/.influxdbv2
configs
config.toml
engine/
influxd.bolt
influxd.sqlite

/var/lib/influxdb/.influxdbv2/config.toml
bolt-path = "/var/lib/influxdb/.influxdbv2/influxd.bolt"
engine-path = "/var/lib/influxdb/.influxdbv2/engine"
http-bind-address = "localhost:8086"
storage-series-id-set-cache-size = 100

Environment info:

Linux 5.10.0-26-cloud-amd64 x86_64

AFAIU, the systemd file points to the default config file location in /etc/influxdb/ but since that file is missing influxd defaults to standalone location.

It is not that bad, I mean it works, but it is kind of surprising. I had to search for my data. And since it is non-standard and works due to a default behaviour on a missing config file, I'm worried this might catch me some day in a later upgrade.

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

No branches or pull requests

1 participant