cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

Running cloudflared with no arguments gives a "bad file descriptor" error

Open jpeach opened this issue 3 years ago • 1 comments

Describe the bug

% cloudflared
bad file descriptor

To Reproduce

See above

Expected behavior

Probably with no arguments, I would expect cloudflared to emit a usage error. If the no-argument version does something different that requires a file descriptor somewhere, I'd expect that to be mentioned in the help output.

Environment and versions

  • OS: macos
  • Architecture: M1
  • Version: cloudflared version 2022.2.0 (built 2022-02-04-1103 UTC)

Logs and errors

N/A

Additional context

N/A

jpeach avatar Feb 20 '22 23:02 jpeach

+1

Came to add that ~/Library/Logs/com.cloudflare.cloudflared.err.log is flooded with bad file descriptor after doing cloudflared service install

n8felton avatar May 16 '22 19:05 n8felton

This is no longer the case on macOS arm64 builds, it should accurately report: unable to find config file if none is available in the current directory. Please feel free to reopen this PR if you are still running into the issue with the latest cloudflared

DevinCarr avatar Sep 22 '22 18:09 DevinCarr

Still happening version 2023.8.2 macOS Ventura 13.5.2 (M2 Pro)

$ cloudflared
bad file descriptor

$ cloudflared version
cloudflared version 2023.8.2 (built 2023-08-31-1503 UTC)

dcohenb avatar Sep 28 '23 08:09 dcohenb