collectd: mkdir (/var/lib/collectd): No such file or directory
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- linux
- Domain
- backend
Research direction
Start by reading the collectd package configuration and startup files in this repository; the report points to a missing /var/lib/collectd directory after saving LuCI Statistics settings. Reproduce the setup on the reported OpenWrt realtek/rtl930x target and trace how collectd's data directory is configured or created. Done means collectd starts after Save & Apply without the reported directory error.
Written by the indexing model from the issue text.
Description
Package Name
collectd
Maintainer
Jo-Philipp Wich [email protected], Hannu Nyman [email protected]
OpenWrt Version
SNAPSHOT
OpenWrt Target/Subtarget
realtek/rtl930x
Steps to Reproduce
- Install luci-app-statistics and collectd
- Go to Statistics -> Setup change something and press Save&Apply
- Go to logs
Actual Behaviour
I see this error log and collectd no longer starts:
daemon.err: collectd[4855]: plugin_load: plugin "cpu" successfully loaded.
daemon.err: collectd[4855]: plugin_load: plugin "interface" successfully loaded.
daemon.err: collectd[4855]: plugin_load: plugin "iwinfo" successfully loaded.
daemon.err: collectd[4855]: plugin_load: plugin "load" successfully loaded.
daemon.err: collectd[4855]: plugin_load: plugin "memory" successfully loaded.
daemon.err: collectd[4855]: plugin_load: plugin "rrdtool" successfully loaded.
daemon.err: collectd[4855]: rrdtool plugin: RRASingle = true: creating only AVERAGE RRAs
daemon.err: collectd[4855]: change_basedir: mkdir (/var/lib/collectd): No such file or directory
daemon.err: collectd[4855]: Error: Unable to change to directory `/var/lib/collectd'.
daemon.info: procd: Instance collectd::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
There is no /var/lib on my device.
# uci show collectd
collectd.globals=globals
collectd.globals.alt_config_file='/etc/collectd.conf'
Also interesting:
# ls /var/run/collectd/
-s
This weird -s file seems to contain a bunch of binary data.
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
- Dominant language
- Makefile
- Stars
- 4.7k
- Forks
- 4k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 251
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwrt/packages
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
openwrt/packages#31307 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
openwrt/packages#31306 · 1 comment ·
Maintainers usually reply within 1 day
All issues in openwrt/packages
Similar issues
-
bug(core): JsonOutputKeyToolsParser ignores returnId: truePossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
langchain-ai/langchainjs#12239 ·
Maintainers usually reply within 1 day
-
Board view: the Monitoring column is always empty because compact issue rows drop displayStatusOpen
Difficulty 1/5 Under an hour Newbie friendliness 88/100
paperclipai/paperclip#21837 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
bug(python): read_transaction raises TypeError on a Rewrite with rewritten indicesPossibly taken @Borg93 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
lance-format/lance#11117 ·
Maintainers usually reply within 2 days
-
[Bug]: time_expr "between november and january" returns an inverted range and matches nothingPossibly taken @KshitijKasodkar claimed this today. Openbug claim-pending triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
doobidoo/mcp-memory-service#2030 · 1 comment ·
Maintainers usually reply within 1 day