nomad icon indicating copy to clipboard operation
nomad copied to clipboard

Error creating task api socket: bind: invalid argument

Open Himura2la opened this issue 1 year ago • 0 comments
trafficstars

Versions

  • Nomad: v1.8.2
  • CNI Plugins: v1.1.1

Operating system and Environment details

Debian 12, amd64

Issue

Clients logs are flooded with messages like that:

[WARN] client.alloc_runner.task_runner.task_hook.api: error creating task api socket: alloc_id=d2c89842-2332-9471-f996-a041e5e41e00 task=foo path=/opt/nomad/alloc/d2c89842-2332-9471-f996-a041e5e41e00/foo/secrets/api.sock error="listen unix /opt/nomad/alloc/d2c89842-2332-9471-f996-a041e5e41e00/foo/secrets/api.sock: bind: invalid argument"

[WARN] client.alloc_runner.task_runner.task_hook.api: error creating task api socket: alloc_id=e93c99d3-78c0-a3f7-5f06-03bd262e743d task=foo path=/opt/nomad/alloc/e93c99d3-78c0-a3f7-5f06-03bd262e743d/foo/secrets/api.sock error="listen unix /opt/nomad/alloc/e93c99d3-78c0-a3f7-5f06-03bd262e743d/foo/secrets/api.sock: bind: invalid argument"

Affected tasks seem random...

Reproduction steps

IDK, we did not catch the moment when these messages starts appearing. Looks like they appear only in those clusters where we have CSI volumes configured with RBD (Ceph).

Expected Result

no warnings

Actual Result

warnings

Himura2la avatar Oct 25 '24 09:10 Himura2la