drizzle-team / drizzle-team/drizzle-orm

[BUG]: Studio - ENOENT: no such file or directory, open '/Users/user/Library/Application Support/drizzle-studio/localhost.pem']

Open
#3,223 4 comments 0 reactions 0 assignees View on GitHub
bug drizzle/studio
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

?

### What version of `drizzle-kit` are you using?

?

### Describe the Bug

From drizzle-kit-mirror repo: https://github.com/drizzle-team/drizzle-kit-mirror/issues/595.

> ```shell
> pnpm drizzle-kit studio
> No config path provided, using default 'drizzle.config.ts'
> Reading config file '/Users/user/project/drizzle.config.ts'
> Using 'postgres' driver for database querying
>
> Warning Drizzle Studio is currently in Beta. If you find anything that is not working as expected or should be improved, feel free to create an issue on GitHub: https://github.com/drizzle-team/drizzle-kit-mirror/issues/new or write to us on Discord: https://discord.gg/WcRKz2FFxN
> node:internal/process/promises:289
> triggerUncaughtException(err, true /* fromPromise */);
> ^
>
> [Error: ENOENT: no such file or directory, open '/Users/user/Library/Application Support/drizzle-studio/localhost.pem'] {
> errno: -2,
> code: 'ENOENT',
> syscall: 'open',
> path: '/Users/user/Library/Application Support/drizzle-studio/localhost.pem'
> }
>
> Node.js v20.11.1
> ```

### Expected behavior

_No response_

### Environment & setup

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with `pnpm drizzle-kit studio` using the mentioned `drizzle.config.ts` and PostgreSQL setup. Trace how Drizzle Studio handles `/Users/user/Library/Application Support/drizzle-studio/localhost.pem`; done means the command no longer raises ENOENT and Studio starts successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, postgresql, typescript
Domain
cli, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.