Skip to content

cf_pcap fails with "failed to open device lo" #1117

@metskem

Description

@metskem

Current behavior

We are trying to use the new cf-pcap feature, but issuing the command gives the following response:

`/tmp/lifecycle/cf-pcap -interface lo 'port 8080'

time=2026-03-11T15:15:43.589+01:00 level=ERROR msg="failed to set up capture" error="failed to open device lo: lo: You don't have permission to perform this capture on that device (Attempt to create packet socket failed - CAP_NET_RAW may be required)"`

We are running diego-release 2.130.0 on Ubuntu Noble.

We have set the enable_cf_pcap flag to true:

bosh int /tmp/cf-manifest.yml --path /instance_groups/name=diego-cell/jobs/name=rep/properties/rep enable_cf_pcap: true

Desired behavior

It should start the packet capture.

Affected Version

2.130.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions