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

Fix watch_all_parents: error trying to add kqueue for fd warnings #116

Open
wolfs opened this issue Feb 26, 2020 · 15 comments
Open

Fix watch_all_parents: error trying to add kqueue for fd warnings #116

wolfs opened this issue Feb 26, 2020 · 15 comments

Comments

@wolfs
Copy link
Member

wolfs commented Feb 26, 2020

When running the test task on master (ca15a65), the following output occurs:

2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 52 (/private/var/folders/y8/lns4s7jn3jldwky0nm3dmx9m0000gn/T; Bad file descriptor)
2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 47 (/private/var/folders/y8/lns4s7jn3jldwky0nm3dmx9m0000gn; Bad file descriptor)
2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 51 (/private/var/folders/y8; Bad file descriptor)
2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 53 (/private/var/folders; Bad file descriptor)
2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 54 (/private/var; Bad file descriptor)
2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 55 (/private; Bad file descriptor)
2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 54 (/private/var/folders; Bad file descriptor)
2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 47 (/private/var; Bad file descriptor)
2020-02-26 08:46 java[94718] (FSEvents.framework) process_dir_events: watch_all_parents: error trying to add kqueue for fd 52 (/private; Bad file descriptor)

We should understand what is going on there.

See https://e.grdev.net/s/6ma7wj7x5i2bu/console-log?anchor=72.

@lptr
Copy link
Member

lptr commented Feb 26, 2020

FTR, I can't reproduce this locally on macOS Catalina, and Google hasn't turned up anything relevant with a quick search.

@wolfs
Copy link
Member Author

wolfs commented Feb 27, 2020

This seems to happen only for this test: can detect #removedAncestry removed

It doesn't seem to happen if I only run one of the elements of the where clause - I seem to need to run at least two of them.

@wolfs
Copy link
Member Author

wolfs commented Feb 28, 2020

Note that the log does not appear as part of the test output, but on the console as build output.

@lptr
Copy link
Member

lptr commented Mar 4, 2020

Can you still reproduce this?

@wolfs
Copy link
Member Author

wolfs commented Mar 4, 2020

With latest master, the problem seems to be gone.

@wolfs
Copy link
Member Author

wolfs commented May 25, 2020

The issue seem to happen to me again. Re-opening.

@wolfs wolfs reopened this May 25, 2020
@wolfs
Copy link
Member Author

wolfs commented Jun 8, 2020

We should check if the error happens on our macOS agents. The message seems to end up in the build scan log for the fileWatching:integTest task.

@lptr
Copy link
Member

lptr commented Jul 15, 2020

Maybe this is worth looking at: https://lists.apple.com/archives/filesystem-dev/2010/May/msg00007.html

@lptr
Copy link
Member

lptr commented Jul 16, 2020

We don't have proof currently that this happens anywhere else but on @wolfs's machine. I see two ways to move forward:

  1. try harder to look for the same problem on other machines (like, search for the message in daemon logs on CI etc.),
  2. try to figure out what's special about Stefan's machine; one idea there is that there's some issue with the file system, so running fsck or first aid in Disk Utility could provide some interesting input.

FTR, we actually tried running first aid yesterday, but during or after the check the computer crashed. This might be an indication that there's indeed a problem with the file system, or it might be a red herring.

@lptr
Copy link
Member

lptr commented Jul 21, 2020

@wolfs ran the first aid again, this time it was successful. The error messages keep popping up, though.

He will try to upgrade to Catalina to see if it makes the problems go away.

@lptr
Copy link
Member

lptr commented Jul 22, 2020

Let's ask the community on Slack if they get the same message!

@lptr
Copy link
Member

lptr commented Aug 6, 2020

@wolfs just checking: you still see these, right?

@wolfs
Copy link
Member Author

wolfs commented Aug 6, 2020

Yeah, I didn't do the update to Catalina, yet.

@lptr
Copy link
Member

lptr commented Aug 6, 2020

Any plans for that?

@wolfs
Copy link
Member Author

wolfs commented Aug 6, 2020

Yep, still on my list of things to do.

@lptr lptr removed the @execution label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants