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

turbo watch: "discovery failed: bad grpc status code: The operation was cancelled" on macOS case-sensitive volumes #9536

Open
1 task done
hrstkatomas opened this issue Nov 28, 2024 · 4 comments
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage

Comments

@hrstkatomas
Copy link

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/hrstkatomas/test-monorepo-tooling

Which canary version will you have in your reproduction?

turbo 2.3.3

Enviroment information

turbo 2.3.3

CLI:
   Version: 2.3.3
   Path to executable: /Volumes/.../test-monorepo-tooling/node_modules/.pnpm/[email protected]/node_modules/turbo-darwin-arm64/bin/turbo
   Daemon status: Running
   Package manager: pnpm

Platform:
   Architecture: aarch64
   Operating system: macos
   WSL: false
   Available memory (MB): 14738
   Available CPU cores: 10

Environment:
   CI: None
   Terminal (TERM): xterm-256color
   Terminal program (TERM_PROGRAM): Apple_Terminal
   Terminal program version (TERM_PROGRAM_VERSION): 455
   Shell (SHELL): /opt/homebrew/bin/bash
   stdin: false

Expected behavior

Should run the project in watch mode without any issues on MacOS on both case-sensitive and case-insensitive file systems.

Actual behavior

When running turbo watch [command] on MacOS on case-sensitive volume, I get this error:

turbo 2.3.3

• Packages in scope: @repo/typescript-config, @repo/ui, tribalfootball
• Running build in 3 packages
• Remote caching disabled
  × failed to connect to daemon
  ╰─▶ server is unavailable: channel closed

After running turbo daemon clean I receive a slightly different error for the following run:

turbo 2.3.3

• Packages in scope: @repo/typescript-config, @repo/ui, tribalfootball
• Running build in 3 packages
• Remote caching disabled
  × discovery failed: bad grpc status code: The operation was cancelled

To Reproduce

  1. Mac required
  2. In Disk Utility add a new Volume and select Case-sensitive format
  3. Clone the repository onto newly created volume
  4. Run turbo watch build

Additional context

The same repository works as expected when I clone it onto case-insensitive volume

@hrstkatomas hrstkatomas added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Nov 28, 2024
@anthonyshew anthonyshew changed the title 🐛 Bug: [MacOS][Case-sensitive volume] turbo watch: discovery failed: bad grpc status code: The operation was cancelled "turbo watch: discovery failed: bad grpc status code: The operation was cancelled" on macOS case-sensitive volumes Dec 2, 2024
@anthonyshew anthonyshew changed the title "turbo watch: discovery failed: bad grpc status code: The operation was cancelled" on macOS case-sensitive volumes turbo watch: "discovery failed: bad grpc status code: The operation was cancelled" on macOS case-sensitive volumes Dec 2, 2024
@jiahuijiang
Copy link

+1 seeing the same issue

@maour
Copy link

maour commented Dec 9, 2024

I had the same issue on linux (ubuntu 24.04).

Tried to run with TURBO_DAEMON=false turbo ... and started to work, then tried without it and still working, so not sure what was wrong. :/

@shotanue
Copy link

shotanue commented Dec 12, 2024

Try running turbo daemon start before executing turbo watch xxxxx, which is a workaround.
You can verify the daemon status with turbo daemon status.

While turbo watch works on macOS without explicitly starting the daemon, Linux environments seem to require this step to avoid gRPC errors.

This issue appears to occur when the daemon is not running.

I'm facing the same issue on devcontainer(mcr.microsoft.com/vscode/devcontainers/base:bullseye).

@CodingLukas
Copy link

CodingLukas commented Dec 28, 2024

The suggestions above didn't work for me. I even tried to start an application powered by turbo in APFS case-insensitive volume which didn't work either.

macOS version: 15.2
Repository: https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite

Temporary solution that worked:

  • I moved the project to the Downloads and ran the same command from there and the project started successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

No branches or pull requests

5 participants