Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [fd error]: Problem while executing command: Argument list too long (os error 7) when using "-l" #1179

Closed
1 task done
sebma opened this issue Nov 18, 2022 · 2 comments
Labels

Comments

@sebma
Copy link

sebma commented Nov 18, 2022

Checks

  • I have read the troubleshooting section and still think this is a bug.

Describe the bug you encountered:

Hi, I get this error [fd error]: Problem while executing command: Argument list too long (os error 7) when using -l :

$ cd /mnt/Netapp/files/_plugins/fusioninventory/files/repository
$ fdfind -t f -S +1Mi -l
[fd error]: Problem while executing command: Argument list too long (os error 7)
$ fdfind -t f -S +1Mi | wc -l
16701
$

Describe what you expected to happen:

List the files without error.

What version of fd are you using?

fd 8.3.1

Which operating system / distribution are you on?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy
$
@sebma sebma added the bug label Nov 18, 2022
@sebma sebma changed the title [BUG] [fd error]: Problem while executing command: Argument list too long (os error 7) [BUG] [fd error]: Problem while executing command: Argument list too long (os error 7) when using "-ls" Nov 18, 2022
@sebma sebma changed the title [BUG] [fd error]: Problem while executing command: Argument list too long (os error 7) when using "-ls" [BUG] [fd error]: Problem while executing command: Argument list too long (os error 7) when using "-l" Nov 18, 2022
@sharkdp
Copy link
Owner

sharkdp commented Nov 18, 2022

Fixed since 8.4.0 (https://github.com/sharkdp/fd/releases/tag/v8.4.0)

"Argument list too long" errors can not appear anymore when using --exec-batch/-X, as the command invocations are automatically batched at the maximum possible size, even if --batch-size is not given. See #410 and #1020 (@tavianator)

@sebma
Copy link
Author

sebma commented Nov 18, 2022

@tmccombs Thanks a lot. I downloaded and installed fdfind v8.4.0 from https://packages.ubuntu.com/kinetic/fd-find and now it works fine :

$ fdfind -V
fd 8.4.0
$ fdfind -t f -S +1Mi -l | wc -l
16701
$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants