Skip to content

[turborepo] failed to contact turbod/timed out waiting for initial fsevents cookie: filewatching failed to start #4608

@ambroselittle

Description

@ambroselittle

What version of Turborepo are you using?

1.9.1

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Mac

Describe the Bug

Per @nathanhammond's request here, opening a new issue. See environmental details in "To Reproduce."

When running a command, I get:

 WARNING  failed to contact turbod. Continuing in standalone mode: connection to turbo daemon process failed. Please ensure the following:
        - the process identified by the pid in the file at /var/folders/7t/8fc_x2f96k3fq2w07f_y19xh0000gp/T/turbod/9ad75a386d6cc29e/turbod.pid is not running, and remove /var/folders/7t/8fc_x2f96k3fq2w07f_y19xh0000gp/T/turbod/9ad75a386d6cc29e/turbod.pid
        - check the logs at /Users/myuser/Library/Application Support/turborepo/logs/9ad75a386d6cc29e-mfe-utilities.log
        - the unix domain socket at /var/folders/7t/8fc_x2f96k3fq2w07f_y19xh0000gp/T/turbod/9ad75a386d6cc29e/turbod.sock has been removed
        You can also run without the daemon process by passing --no-daemon

Daemon process/socket folder doesn't exist (right after running the turbo command). But if I run turbo daemon start it creates a folder there, but it is empty.

Status:

> turbo daemon status
ERROR daemon is not running

Then:

> turbo daemon start
ERROR timeout while watchin directory: deadline has elapsed

> turbo daemon 
2023-04-17T12:29:24.780-0400 [ERROR] turbod: error watching /Volumes/Code/Repos/Org/my-repo: timed out waiting for initial fsevents cookie: filewatching failed to start
Turbo error: watching /Volumes/Code/Repos/Org/my-repo: timed out waiting for initial fsevents cookie: filewatching failed to start

Note: This is on a secondary APFS (Case-sensitive) volume called Code. (I do this to avoid issues I've seen in past where code only breaks on server that is case sensitive.) Someone on the other issue mentioned this as well (and others after mentioned similar).

As suggested, tried npx create-turbo@latest with same results.

Log:

2023-04-17T12:34:33.127-0400 [ERROR] turbod: error watching /Volumes/Code/Repos/Org/my-turborepo: timed out waiting for initial fsevents cookie: filewatching failed to start
2023-04-17T12:34:34.124-0400 [ERROR] turbod: error watching /Volumes/Code/Repos/Org/my-turborepo: timed out waiting for initial fsevents cookie: filewatching failed to start
2023-04-17T12:34:35.122-0400 [ERROR] turbod: error watching /Volumes/Code/Repos/Org/my-turborepo: timed out waiting for initial fsevents cookie: filewatching failed to start
2023-04-17T12:34:51.350-0400 [ERROR] turbod: error watching /Volumes/Code/Repos/Org/my-turborepo: timed out waiting for initial fsevents cookie: filewatching failed to start

If I run the same on my primary partition, all is hunky dory. It creates the folder and the .pid and .sock are there.

Unsurprisingly (perhaps), both locations resolve to same:

> which turbo
/Users/ambrose.little/Library/pnpm/turbo

> turbo --version
1.9.1

Tried pnpm remove -g turbo and re-install. Same result. Running sudo turbo daemon start also fails the same way.

Expected Behavior

Should work/run the daemon without error. :)

To Reproduce

OS + Version: 13.3.1 (22E261)
turbo version: 1.9.1 (also saw on 1.8.3/8)
pnpm: 8.1.1 (also with 7.31.0)
Shell: see same results in VS Code and Warp, using oh my zsh
Repository contents: can repro with npx create-turbo@latest
Repo filesystem permissions (on both the primary partition that works and secondary that doesn't):

drwxrwxr-x ambrose.little staff

The only distinction I can see is that it's on the external partition.

Reproduction Repo

No response

Metadata

Metadata

Assignees

Labels

area: daemonIssues related to Turborepo's daemonkind: bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions