influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.66k stars 3.54k forks source link

Cannot delete scraper #24322

Open nottledim opened 1 year ago

nottledim commented 1 year ago

Steps to reproduce: List the minimal actions needed to reproduce the behavior.

I don't know. I have a scraper - I can't delete it. It has no name, its organisation has been deleted. It is still running. I cannot get rid of it.

Expected behavior: I expect it not to exist. I expect it to be deletable from the gui. I expect it to be deleted when the org it belongs to is deleted.

Actual behavior:

Every 10s:

influxd[3691954]: ts=2023-07-12T11:42:08.493538Z lvl=error msg="Unable to write gathered points" log_id=0izT7teG000 service=scraper scraper-name= error="database not found: c0d74c7f8afa5780"

Environment info:

Linux 6.1.1-arch1-1 x86_64

InfluxDB 2.7.1 (git: 407fa62) build_date: 2023-07-12T11:43:36Z

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

storage-series-id-set-cache-size = 100 http-bind-address = ":8086"

log-level = "warn"

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.

# 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.
seb2010 commented 9 months ago

I also do have the same issue. According to the logs there seems to be a scraper active, but I cannot see it in the GUI. I do not have any scrapers. Remark: This started happening after I set up a new Influxdb instance and restored a backup after server-migration.

megamacy commented 4 months ago

Maybe it helps, came to this issue after a crash.

created a scraper named "scraper-name" and deleted it, log message didnt appear anymore