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

Error on BusyBox - unrecognized: -ignore_readdir_race #16

Open
Tracked by #52
ianks opened this issue Dec 21, 2020 · 22 comments
Open
Tracked by #52

Error on BusyBox - unrecognized: -ignore_readdir_race #16

ianks opened this issue Dec 21, 2020 · 22 comments
Labels
bug Something isn't working

Comments

@ianks
Copy link

ianks commented Dec 21, 2020

Just thought I'd report this. Hoping it can be solved by installing findutils. Great plugin btw!

find: unrecognized: -ignore_readdir_race
--
  | BusyBox v1.28.4 (2018-12-31 18:05:13 UTC) multi-call binary.

@gencer
Copy link
Collaborator

gencer commented Dec 21, 2020

Hey @ianks . Thanks for the report. I'm a bit unfamiliar with busybox thing. It seems it's an executable that covers many UNIX tools according to about page. Also according to that page, BusyBox has fewer options than the original ones.

If I understand correctly, you managed to fix this case by installing findutils? Or should I install that via this plugin at some point?

Other option which I only want to do at last stage, is to drop that option for BusyBox if detected.

@ianks
Copy link
Author

ianks commented Dec 21, 2020

So it looks like installing findutils did not work. The image I am use inherits from cimg/base:2020.09, which I believe comes from Ubuntu. So not sure why it is not working.

@ianks
Copy link
Author

ianks commented Dec 21, 2020

Instead, maybe we could use -exec with rm -f in the find command?

@gencer
Copy link
Collaborator

gencer commented Dec 21, 2020

Sad to hear that didn't work out as expected. I have an Ubuntu 20.04 LTS which is findutils installed and find -ignore_readdir_race works perfectly.

Instead, maybe we could use -exec with rm -f in the find command?

Yep. I think that will work too.

@gencer
Copy link
Collaborator

gencer commented Dec 21, 2020

I think:

find "${CACHE_PREFIX}" -type f -mtime +"${DAYS}" -exec rm -f {} \; 

will be sufficient.

Will push a new version now.

@gencer
Copy link
Collaborator

gencer commented Dec 21, 2020

@ianks could you please test against master branch? - gencer/cache#master:

@ianks
Copy link
Author

ianks commented Dec 21, 2020

@gencer the original issue was solved, but now i'm getting: tar: unrecognized option: ignore-failed-read

@ianks
Copy link
Author

ianks commented Dec 21, 2020

i'm reading the --warning=no-file-changed might be better

this does not work either :/

@ianks
Copy link
Author

ianks commented Dec 21, 2020

here's what works for me 😄

master...ianks:master

@gencer
Copy link
Collaborator

gencer commented Dec 22, 2020

@ianks generally removing --ignore-failed-read is a bad idea. However, we can make an exception for busybox. I've added busybox checking to the tar creation.

I have pushed changes to master branch. Could you please test against that branch? Please note that, if you already checkout that branch on your test machine, it might be good idea to delete plugins/*cache* folder before testing. Because buildkite will not checkout master branch twice.

@gencer
Copy link
Collaborator

gencer commented Dec 26, 2020

Released via v2.3.6.

@gencer gencer closed this as completed Dec 26, 2020
@rasouza
Copy link

rasouza commented Aug 29, 2021

I'm getting the same --ignore-failed-read



[node] - 🔍 Locating source: v1-cache-node-6e9bee060e2c317a3c65153c5b9ec16bb1c80c3b
--
  | [node] - 🔍 Locating cache: node_modules
  | tar: unrecognized option: ignore-failed-read
  | BusyBox v1.31.1 () multi-call binary.
  |  
  | Usage: tar c\|x\|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [--exclude PATTERN]... [FILE]...
  |  
  | Create, extract, or list files from a tar file
  |  
  | c	Create
  | x	Extract
  | t	List
  | -f FILE	Name of TARFILE ('-' for stdin/out)
  | -C DIR	Change to DIR before operation
  | -v	Verbose
  | -O	Extract to stdout
  | -m	Don't restore mtime
  | -o	Don't restore user:group
  | -k	Don't replace existing files
  | -Z	(De)compress using compress
  | -z	(De)compress using gzip
  | -J	(De)compress using xz
  | -j	(De)compress using bzip2
  | -a	(De)compress using lzma
  | -h	Follow symlinks
  | -T FILE	File with names to include
  | -X FILE	File with glob patterns to exclude
  | --exclude PATTERN	Glob pattern to exclude
  | 🚨 Error: The plugin cache post-command hook exited with status 1

Here is my plugin config:

- gencer/cache#v2.4.8:
      id: node
      backend: tarball
      compress: true
      key: "v1-cache-{{ id }}-{{ checksum 'yarn.lock' }}" # Calculate whole 'app/javascript' recursively
      restore-keys:
        - 'v1-cache-{{ id }}-'
      paths:
        - node_modules

@gencer
Copy link
Collaborator

gencer commented Aug 29, 2021

@rasouza Somehow, BusyBox check fails on your system. It thinks, it is standard GNU Bash therefore uses that argument. Let me see what I can do.

@gencer gencer reopened this Aug 29, 2021
@stale
Copy link

stale bot commented Sep 19, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 19, 2021
@gencer gencer added bug Something isn't working and removed wontfix This will not be worked on labels Sep 19, 2021
@stale
Copy link

stale bot commented Oct 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 9, 2021
@gencer
Copy link
Collaborator

gencer commented Oct 9, 2021

Good bot but bad decision. Not stale. ❤️

@stale stale bot removed the wontfix This will not be worked on label Oct 9, 2021
@stale
Copy link

stale bot commented Oct 29, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 29, 2021
@gencer
Copy link
Collaborator

gencer commented Oct 29, 2021

Not stale. I am warning you if you stale this one more time i'll kill you and make it look like an accident.

@stale stale bot removed the wontfix This will not be worked on label Oct 29, 2021
@stale
Copy link

stale bot commented Nov 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 18, 2021
@gencer
Copy link
Collaborator

gencer commented Nov 19, 2021

Bad bot. Not Stale

@stale stale bot removed the wontfix This will not be worked on label Nov 19, 2021
@stale
Copy link

stale bot commented Dec 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 9, 2021
@stale stale bot closed this as completed Dec 12, 2021
@gencer gencer reopened this Dec 12, 2021
@stale stale bot removed the wontfix This will not be worked on label Dec 12, 2021
@stale
Copy link

stale bot commented Jan 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jan 1, 2022
@stale stale bot closed this as completed Jan 7, 2022
@gencer gencer reopened this Aug 12, 2022
@stale stale bot removed the wontfix This will not be worked on label Aug 12, 2022
@gencer gencer mentioned this issue Aug 29, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants