Join the Webstudio community

Updated 2 months ago

Troubleshooting GitHub and login issues

At a glance

The community members are having issues with their GitHub and secret login not working. They have tried various steps, such as adding an .env.development file with an AUTH_SECRET, running migrations, and using Docker. However, they are still encountering errors like "redirect_uri configuration is missing", "user not found", and "permission denied for schema public". The community members have tried to troubleshoot the issues, but they are still unable to resolve them. Some community members have suggested using the devcontainer approach instead of Docker, but the instructions for that are not clear. Overall, the community members are seeking help to resolve their login issues.

Useful resources
Why are my GitHub and secret not working i am unable to login
Attachment
IMG_1719.jpg
2
B
d
O
55 comments
Github and google does not work locally. For secret you need to add .env.development file with
Plain Text
AUTH_SECRET="0000"
or some other you like
it's anyway only for local setup
Why does GitHub not work locally I even added gh_id and client id.
Not sure, there was a problem with localhost I think
All works fine
Attachments
IMG_1720.jpg
IMG_1721.jpg
After add secret
Attachment
IMG_1722.jpg
The error says redirect_uri configuration is missing
Did you successfully run migrations?
What terminal says?
My guess is our setup just doesn't work without https
Migration fine
Attachment
IMG_1725.jpg
What I can do I need to run this πŸ₯Ή
If you don't change config this should work https://wstd.dev:5173/
After GitHub login and secret login this error occur
@Bogdan why user not found πŸ₯Ή
So I just recreated container. Checked login. Shows "user not found". Then I ran migrations from the root with
Plain Text
pnpm migrations migrate

Now all works
we don't use sso logins locally, only in the cloud
I do this step again and still same error
terminal say
code: '42501',
message: 'permission denied for schema public'
what i can do ? @Bogdan @Oleg Isonen @Hall
same this error 😦
Attachment
IMG_1726.png
Are you running inside devcontainer?
Did migrations finished or even executed
I using docker to run all this
What means using docker?
What was in the terminal of the devcontainer?
try to reexecute commands
clean and reinstall
can i delete all my docker images ? then reinstall
you mean this rigth
docker compose down -v then docker compose up -d ?
No, devcontainers and vscode doesnt use this
Just vscode and devcontainer exetension
Probably wsl on windows
I do this steps
Attachment
image.png
Use just vscode and devcontainers, have no idea why this docker compose etc is not deleted from docs
Ah, I'm having trouble with Docker again. It's not working as expected. @Bogdan mentioned that I might have an incorrect migration, but I've done all the migrations perfectly. Why isn't it working?
You mentioned not to follow this approach and instead use Step 1 from this guide for this approach.
docker section is removed
I am so confused now πŸ™‚
We removed the Docker insturctions from docs as Devcontainer/VScode is the only "suggested" way of doing things now and it should work on Mac
Can I deploy my own?
Deploying builder is rather complicated. Dev containers are intended for development and local testing.
Add a reply
Sign up and join the conversation on Discord