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

Unable to set up TLS. builder error: Access is denied. (os error 5) #8493

Open
1 task done
taniyow opened this issue Jun 15, 2024 · 6 comments
Open
1 task done

Unable to set up TLS. builder error: Access is denied. (os error 5) #8493

taniyow opened this issue Jun 15, 2024 · 6 comments

Comments

@taniyow
Copy link

taniyow commented Jun 15, 2024

Verify canary release

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

Link to code that reproduces this issue

n/a

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

pnpm

What operating system are you using?

Windows

Which canary version will you have in your reproduction?

1.13.4

Describe the Bug

Unable to run any turbo commands. Error shows:

× Failed to create APIClient: Unable to set up TLS.
├─▶ Unable to set up TLS.
├─▶ builder error: Access is denied. (os error 5)
╰─▶ Access is denied. (os error 5)

Expected Behavior

turbo commands should run properly

To Reproduce

Other devs are not running into this issue. Previously the turbo command works well but it's not working now. Similar error with #8330 but different builder error saying access is denied in windows OS. Tried to do the steps provided by installing the rust toolchain but the same error still exists

Additional context

No response

@taniyow taniyow added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Jun 15, 2024
@chris-olszewski
Copy link
Member

Previously the turbo command works well but it's not working now.

Did this correspond with a turbo update or a Windows update? Can you provide your Windows build number?

@chris-olszewski chris-olszewski added needs: author input and removed needs: triage New issues get this label. Remove it after triage labels Jun 17, 2024
@taniyow
Copy link
Author

taniyow commented Jun 19, 2024

Hello @chris-olszewski. Sorry for the late reply. I think it happened when its updated to turbo v2.

Here's my Windows build number:
Windows 11 - 23H2 OS Build 22631.3737

Also, I've tried using the turbo commands in native windows terminal with elevated permissions (run as administrator) and it runned successfully. The problem persists when I'm using the Vscode Terminal

@chris-olszewski
Copy link
Member

Interesting, can you confirm that 1.13.4 worked without the elevated permissions?

@taniyow
Copy link
Author

taniyow commented Jun 23, 2024

Hello, @chris-olszewski. Checked with 1.13.4, and it didn't worked as well without elevated permissions.

$ pnpm dev

> ...@0.0.0 dev D:\Dev\...\...
> pnpm dev:web


> ...@0.0.0 dev:web D:\Dev\...\...
> turbo --filter web dev --parallel

╭──────────────────────────────────────────────────────────────────────╮
│                                                                      │
│                  Update available v1.13.4 ≫ v2.0.4                   │
│    Changelog: https://github.com/vercel/turbo/releases/tag/v2.0.4    │
│           Run "npx @turbo/codemod@latest update" to update           │
│                                                                      │
│        Follow @turborepo for updates: https://x.com/turborepo        │
╰──────────────────────────────────────────────────────────────────────╯
  × Failed to create APIClient: Unable to set up TLS.
  ├─▶ Unable to set up TLS.
  ├─▶ builder error: Access is denied. (os error 5)
  ╰─▶ Access is denied. (os error 5)

 ELIFECYCLE  Command failed with exit code 1.
 ELIFECYCLE  Command failed with exit code 1.
 ```

@chris-olszewski
Copy link
Member

Do you have an anti-virus installed? I did some searching into errors like this and people have speculated that anti-virus can prevent some programs from accessing the certs needed to setup TLS.

@taniyow
Copy link
Author

taniyow commented Jun 26, 2024

Hello again @chris-olszewski. Thank you for responding. I don't have any anti-virus installed. I'll check again the permissions of my project folders to see if that's where the issue comes from as well as the permissions for my git bash (as I've tried running the turbo in my powershell in vscode and it worked).

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

No branches or pull requests

2 participants