Join the Webstudio community

Updated 4 months ago

Troubleshooting Self-hosting with the Builder Locally

At a glance

The community members are trying to self-host the builder locally, but are encountering issues with the domain wstd.dev not working after using the dev containers / VSCode installation method. They have tried various steps, including running docker compose up -d, but are still facing errors related to the getaddrinfo ENOTFOUND wstd.dev issue and the pnpm run dev command failing.

To resolve the issue, the community members have tried setting an AUTH_SECRET in the .env.development file, but this led to a "user not found" error. They have also tried running pnpm migrations migrate, which seemed to help, but they are still encountering issues.

The community members have also tried pulling the latest commits, running pnpm install, and generating the Prisma client, which also helped to some extent. However, one community member is still facing a different error related to their Git setup.

There is no explicitly marked answer in the comments, but the community members are working together to troubleshoot and resolve the issues they are facing with self-hosting the builder locally.

Useful resources
Hi my gf is trying to selfhost the builder locally but we are having an issue with the domain wstd.dev is apparently not working after using the dev containers / vscode installation method
3
B
M
ɐ
71 comments
I usually just run docker compose up -d in .devcontainer folder
We found out the problem
Apparently the process wont work on macos
Weird caz I use mac os
We all use mac os
Then it might be because the migrate command
Please write steps until you see the issue
Wait we get the following error
Plain Text
Error: getaddrinfo ENOTFOUND wstd.dev
    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'wstd.dev'
}
/Users/meliko/Development/webstudio/apps/builder:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @webstudio-is/[email protected] dev: `remix vite:dev`
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.
this is the error we get after running pnpm run dev
Hm, ok. Try cd apps/builder && pnpm dev
Is pnpm run from inside docker?
@TrySound got it working on a virtual server but we get the question regarding an auth secret which we didn’t need to set up and cant find any info about
Can you tell us how to set one upv
put AUTH_SECRET="5de6" in
apps/builder/.env.development
or any other secret you like
Login with secret
Did you run migrations?
when putting in secret it says user not found
When putting in the auth key it says this
No that receives an error
pnpm migrations migrate in the root
Try to pull latest commits pls
try this
Plain Text
pnpm --filter="@webstudio-is/prisma-client" generate
pnpm migrations migrate
I was try to do it but i got myself another error πŸ™‚
Error: fatal: fetch-pack: invalid index-pack output
at the time of cloning to local machine
Perhaps something wrong with your git setup
may be, i am looking into but not sure
I have done other things and worked but now the user not found error is coming.
But in my case the address "https://wstd.dev:5173/" is working.
DEV_LOGIN=true
AUTH_SECRET=12345
Did you put it in .env.development?
Did you restart pnpm dev after this?
yes i did it multiple time
Did you run migrations?
i don't understand migrations sorry
Run these two commands from the root
Plain Text
pnpm --filter="@webstudio-is/prisma-client" generate
pnpm migrations migrate
Currently this is happeing
Attachment
image.png
root of repository folder?
btw what is migration ?
When you initialize database it is empty. We write migrations to add or change tables or update data.
Its working now Thanks,
I will make a template for webstudio to use for free for people. You guys have done great work
Hey everyone! I'm new at webstudio.

I wanna set up the app locally, but when I write the Secret key (1234), I also get the error user not found.
I run
pnpm --filter="@webstudio-is/prisma-client" generate pnpm migrations migrate
but nothing doesn't changes in my life ))
Did both commands finished successfully?
Yes I'm not getting any error
I run the application with Docker, which should not make errors. I don't know what could be the reason (
сс @Ivan Starkov
It's hard to guess without exact steps you did
I wanna set up the app locally, but when I write the Secret key (1234), I also get the error user not found.
I run
pnpm --filter="@webstudio-is/prisma-client" generate
pnpm migrations migrate
but nothing doesn't changes in my life ))
I'm moved with https://docs.webstudio.is/contributing/contributing-for-developers#running-the-webstudio-project-using-vs-codeprovided a step-by-step guide


This is information we have. Now the information we don;t have.
  • At what step you are getting - User not found.
  • What you did to get that Error.
  • What is in the server console
Also having that this is opensource you can investigate yourself
All places where this error is happening. And try to find why.
Attachment
image.png
Also check everything in Incognito. This can be ruined session because of some env changes, browser extensions, some OS or node version we never touched
Aso I'm moved with https://docs.webstudio.is/contributing/contributing-for-developers#running-the-webstudio-project-using-vs-codeprovided a step-by-step
Based on my experience in 99% it was not. (Additional steps, misreading etc ;-)) So it's important to write your steps
Finally, it worked. I don't know the reason, I removed it entirely and installed it again from GitHub. But I didn't make any changes to the application!!!
anyway, thank you for the help ))
Add a reply
Sign up and join the conversation on Discord