influxdata / influxdata/influxdb

Unneccessary files like .bashrc are in influx deb package

Open
#25,688 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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 behaviour.

1. Install influxdb via sudo apt install influxdb with official repository as described here https://docs.influxdata.com/influxdb/v2/install/?t=Linux

__Expected behaviour:__
Influxdb will get installed

__Actual behaviour:__
Influxdb gets installed, but also some files to /var/lib/influxdb which don't belong there

```
9:/var/lib/influxdb/ .^C
[19:58:57] $ ll -la
insgesamt 32
drwxr-xr-x 5 influxdb influxdb 4096 19. Dez 19:46 .
drwxr-xr-x 31 root root 4096 19. Dez 19:46 ..
-rw-r--r-- 1 influxdb influxdb 220 29. Mär 2024 .bash_logout
-rw-r--r-- 1 influxdb influxdb 3523 19. Nov 14:32 .bashrc
drwxr-x--- 3 influxdb influxdb 4096 19. Dez 19:46 .cache
drwxr-x--- 2 influxdb influxdb 4096 19. Dez 19:46 data
drwxr-x--- 2 influxdb influxdb 4096 19. Dez 19:46 meta
-rw-r--r-- 1 influxdb influxdb 807 29. Mär 2024 .profile
```

```
/var/lib/influxdb/.cache/snowflake# ls -la
insgesamt 8
drwxr-x--- 2 influxdb influxdb 4096 19. Dez 19:46 .
drwxr-x--- 3 influxdb influxdb 4096 19. Dez 19:46 ..
-rwxr-x--- 1 influxdb influxdb 0 19. Dez 19:46 ocsp_response_cache.json
```

__Environment info:__

* Please provide the command you used to build the project, including any `RUSTFLAGS`.
* System info: Run `uname -srm` or similar and copy the output here (we want to know your OS, architecture etc).
* If you're running IOx in a containerised environment then details about that would be helpful.
* Other relevant environment details: disk info, hardware setup etc.

Platform armv8 raspberry PI 5 Linux 6.6.62+rpt-rpi-2712

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

__Logs:__
Include snippet of errors in logs or stack traces here.
Sometimes you can get useful information by running the program with the `RUST_BACKTRACE=full` environment variable.
Finally, the IOx server has a `-vv` for verbose logging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the installation with the official repository using `sudo apt install influxdb`, then inspect the resulting `/var/lib/influxdb` contents and the package contents. Trace the Debian package build or installation entry point to identify why `.bash_logout`, `.bashrc`, `.profile`, and `.cache` are included; done means the package installs only the intended InfluxDB files and the package checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, linux, rust
Domain
build-system, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.