Skip to content

Very annoying lsof errors stack trace in pnpm run dev logs with the local dev world #454

@remiconnesson

Description

@remiconnesson

This makes it really annoying to debug as the logs are littered with 40 lines of irrelevant error for every 1 useful line of log

[getPort] Detection failed: ExecaError: Command failed with exit code 1: lsof -a -i -P -n -p 95661

lsof: WARNING: can't stat() overlay file system /var/lib/docker/overlay2/2dabfab5c2dcf41df850bbbcaaf90e6500ba1785911b968b103598f3d47f6b3f/merged
      Output information may be incomplete.
lsof: WARNING: can't stat() nsfs file system /run/docker/netns/e8e54e8fa5e0
      Output information may be incomplete.
lsof: WARNING: can't stat() tmpfs file system /var/lib/kubelet/pods/b40d78db-6f5d-4eec-996d-7095d7041918/volumes/kubernetes.io~projected/kube-api-access-t4gpt
      Output information may be incomplete.
lsof: WARNING: can't stat() tmpfs file system /var/lib/kubelet/pods/045af514-590e-467b-8650-c0aeb762d128/volumes/kubernetes.io~projected/kube-api-access-cs29c
      Output information may be incomplete.
lsof: WARNING: can't stat() tmpfs file system /var/lib/kubelet/pods/4d93c5c3-8c55-44e7-8fdd-805c0f3a1d2a/volumes/kubernetes.io~projected/kube-api-access-c8pt7
      Output information may be incomplete.
lsof: WARNING: can't stat() tmpfs file system /var/lib/kubelet/pods/9bfb6ae9-8d97-4d8d-ba61-acfc448ca208/volumes/kubernetes.io~projected/kube-api-access-489kn
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/ebdcd1c330de54ae10fd054f46abf58ec7e1726e77608afffbc46974c40ef638/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/08b6b2c2210ae5de0fb3d911291265026154a196a1e1d48e03990f2e96ac5b49/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/1e671b73d6330549f4df87f76d58832c94197fa810ee9b9afa44d64ed15f3ffe/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/e89e9a15a599500be535b114a09853033e5620bff134b9a25fc64cf7dff10cac/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/0139bde1aa5986e09541a65b30b940c37bf5e5a8e3cf080afb5bd8adfa1218b4/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/339cd75d52637dd70e9e818bf2ce1077a751bda6af1e82cf469b47815c8db1a8/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/43dc9e6a25d6ccdae2ad2dc5dbd3669db4607b56559750e7312274c21742970a/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/562f86ac5c829c6eca09b3b27d7d929311ec352c910149cd055393353f66e549/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/20065374df4385b86e3ed8a280013e8ed9246fe2741383131a611f818f9ff2a1/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/8f38876cb51a81e294ef70ca208b012d4d45423e36d9aad0c5f1a8852cf8156d/rootfs
      Output information may be incomplete.
lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/4e906c551afb26c91cb450d6c5a3fe4679d16eb9d5412f34cd8780b3cecddd37/rootfs
      Output information may be incomplete.
    at ignore-listed frames {
  shortMessage: 'Command failed with exit code 1: lsof -a -i -P -n -p 95661',
  command: 'lsof -a -i -P -n -p 95661',
  escapedCommand: 'lsof -a -i -P -n -p 95661',
  cwd: '/home/remi/work/vercel/demos/v0-video2md',
  durationMs: 594.527969,
  failed: true,
  timedOut: false,
  isCanceled: false,
  isGracefullyCanceled: false,
  isTerminated: false,
  isMaxBuffer: false,
  isForcefullyTerminated: false,
  exitCode: 1,
  stdout: '',
  stderr: "lsof: WARNING: can't stat() overlay file system /var/lib/docker/overlay2/2dabfab5c2dcf41df850bbbcaaf90e6500ba1785911b968b103598f3d47f6b3f/merged\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() nsfs file system /run/docker/netns/e8e54e8fa5e0\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() tmpfs file system /var/lib/kubelet/pods/b40d78db-6f5d-4eec-996d-7095d7041918/volumes/kubernetes.io~projected/kube-api-access-t4gpt\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() tmpfs file system /var/lib/kubelet/pods/045af514-590e-467b-8650-c0aeb762d128/volumes/kubernetes.io~projected/kube-api-access-cs29c\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() tmpfs file system /var/lib/kubelet/pods/4d93c5c3-8c55-44e7-8fdd-805c0f3a1d2a/volumes/kubernetes.io~projected/kube-api-access-c8pt7\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() tmpfs file system /var/lib/kubelet/pods/9bfb6ae9-8d97-4d8d-ba61-acfc448ca208/volumes/kubernetes.io~projected/kube-api-access-489kn\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/ebdcd1c330de54ae10fd054f46abf58ec7e1726e77608afffbc46974c40ef638/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/08b6b2c2210ae5de0fb3d911291265026154a196a1e1d48e03990f2e96ac5b49/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/1e671b73d6330549f4df87f76d58832c94197fa810ee9b9afa44d64ed15f3ffe/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/e89e9a15a599500be535b114a09853033e5620bff134b9a25fc64cf7dff10cac/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/0139bde1aa5986e09541a65b30b940c37bf5e5a8e3cf080afb5bd8adfa1218b4/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/339cd75d52637dd70e9e818bf2ce1077a751bda6af1e82cf469b47815c8db1a8/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/43dc9e6a25d6ccdae2ad2dc5dbd3669db4607b56559750e7312274c21742970a/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/562f86ac5c829c6eca09b3b27d7d929311ec352c910149cd055393353f66e549/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/20065374df4385b86e3ed8a280013e8ed9246fe2741383131a611f818f9ff2a1/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/8f38876cb51a81e294ef70ca208b012d4d45423e36d9aad0c5f1a8852cf8156d/rootfs\n" +
    '      Output information may be incomplete.\n' +
    "lsof: WARNING: can't stat() overlay file system /run/k3s/containerd/io.containerd.runtime.v2.task/k8s.io/4e906c551afb26c91cb450d6c5a3fe4679d16eb9d5412f34cd8780b3cecddd37/rootfs\n" +
    '      Output information may be incomplete.',
  stdio: [Array],
  ipcOutput: [],
  pipedFrom: []
}

I tried adding .env.local to skip port detection but it didn't workout

PORT=3000

Is there a way to disable this? Because everything still works despite the lsof failing

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions