metric sender ERROR: "could not remove batch"

Bug #1850649 reported by John A Meinel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

I see this across many units when running "juju debug-log --level INFO":
unit-containerd-1: 18:29:51 ERROR juju.worker.metrics.sender could not remove batch "d258d5da-e5c9-4797-88ed-ffb00d06ae48" from spool: remove /var/lib/juju/metricspool/d258d5da-e5c9-4797-88ed-ffb00d06ae48: no such file or directory

Watching the directory, I do see files end up in /var/lib/juju/metricspool. I don't know if we're trying to delete something 2 times. My guess is the ERROR should be suppressed, as we should be ok if the file is gone when we go to delete it. (and/or fix the code to not delete twice)

This was after deploying 'kubernetes-core' on LXD using juju 2.6.9 and upgrading to juju 2.7rc1, however I don't think this is specific to those versions or charms.

Revision history for this message
John A Meinel (jameinel) wrote :

Note that the same hash is often reported 2x, but not always. Also, this was with an HA controller, though the error messages are coming from the individual unit agents.

Maybe this is because of subordinates?

unit-flannel-1: 17:59:50 ERROR juju.worker.metrics.sender could not remove batch "2a1d8745-7fe7-47bf-8b8b-18c15ffa5913" from spool: remove /var/lib/juju/metricspool/2a1d8745-7fe7-47bf-8b8b-18c15ffa5913: no such file or directory
unit-containerd-1: 17:59:50 ERROR juju.worker.metrics.sender could not remove batch "2a1d8745-7fe7-47bf-8b8b-18c15ffa5913" from spool: remove /var/lib/juju/metricspool/2a1d8745-7fe7-47bf-8b8b-18c15ffa5913: no such file or directory

Note that those are 2 subordinates on the same machine. Maybe the primary is dealing with the file, and the two subordinate unit agents are then complaining that they aren't able to.

tags: added: sts
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.