influxdata / influxdata/ui

got unauthorize access after a while using influxdb

Open
#6,940 1 comment 0 reactions 0 assignees View on GitHub
kind/bug team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

## About the bug

**Steps to reproduce:**

1. start influxdb oss on docker
2. use api call to save and query data from another service on docker

**Expected behavior:**
api call works normally and i can get and set my data periodically

**Actual behavior:**
after 3 days i got `unauthorized access` from influxdb on my service.
when i try to login to influxdb on ui i got `An InfluxDB error has occurred`

**Visual Proof:**
i got this after login from ui
![image](https://github.com/user-attachments/assets/c21ff5d3-4978-41b6-967f-11fe659b811a)

## About your environment

**Environment info:**

- System info: Linux 5.15.0-113-generic x86_64
- InfluxDB version: InfluxDB v2.7.6 (git: 3c58c06206) build_date: 2024-04-12T21:51:21Z
- Docker: Docker version 26.0.0, build 2ae903e
- Docker Compose: Docker Compose version v2.25.0

**Config:**
i just use `DOCKER_INFLUXDB_INIT_MODE`, `DOCKER_INFLUXDB_INIT_USERNAME`, `DOCKER_INFLUXDB_INIT_PASSWORD`, `DOCKER_INFLUXDB_INIT_ORG`, `DOCKER_INFLUXDB_INIT_BUCKET` environment variable to launch influxdb on docker using docker compose

**Logs:**
influx db logs on docker:
```
influx-db-1 | ts=2024-09-03T07:59:45.567559Z lvl=info msg=Unauthorized log_id=0rMGMBwW000 error="session not found"
influx-db-1 | ts=2024-09-03T07:59:45.576214Z lvl=info msg=Unauthorized log_id=0rMGMBwW000 error="session not found"
influx-db-1 | ts=2024-09-03T07:59:45.583360Z lvl=info msg=Unauthorized log_id=0rMGMBwW000 error="session not found"
influx-db-1 | ts=2024-09-03T07:59:45.599761Z lvl=info msg=Unauthorized log_id=0rMGMBwW000 error="session not found"
influx-db-1 | ts=2024-09-03T07:59:45.613114Z lvl=info msg=Unauthorized log_id=0rMGMBwW000 error="session not found"
influx-db-1 | ts=2024-09-03T07:59:45.619762Z lvl=info msg=Unauthorized log_id=0rMGMBwW000 error="session not found"
```

api call logs from other service:
```
websocket-1 | HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.7.6', 'X-Platform-Error-Code': 'unauthorized', 'Date': 'Tue, 03 Sep 2024 08:04:21 GMT', 'Content-Length': '55'})
websocket-1 | HTTP response body: {"code":"unauthorized","message":"unauthorized access"}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is named. Start by reproducing the delayed unauthorized response with the listed Docker and InfluxDB v2.7.6 setup, then inspect the reported `session not found` logs. Done requires identifying the cause and adding a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, typescript
Domain
authentication, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.