-
Notifications
You must be signed in to change notification settings - Fork 233
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
CLI project link SASL authentication failed #1760
Comments
Could you send a bug report with the following command
After that, share the crash ID here so we can retrieve the diagnostics information. |
Thank you for looking into this!
as crash ID |
Any news on this? Not being able to use the CLI is somewhat limiting.... |
Same steps as above and below is the crash ID |
I'm having similar issue - 0d53919556f041ea831728258b4be8e0 This is the error i get:
|
Same issue: 9a5bea6ec9a842b8ace7d5e0620265fb |
Update on this - turns out updating my DB password that was generated by supabase (a shorter one) seems to have fixed it. Perhaps the one I generated previously didn't work due to password length? Hope this helps others running into this issue. |
The way I'm getting around it now is to link and deploy via github actions. The password I am using to link locally is correct (but failing) |
@BahaMagi Please check your Supabase CLI version. I was on Maybe this is related with IPv4 deprecation: https://github.com/orgs/supabase/discussions/17817 |
Same issue: fd6fce781a134bc7ab3fa6da0c414401 |
same issue here :( |
Could you try the latest version?
It's probably due to an implementation difference between transaction mode of pgbouncer and supavisor which we recently rolled out on port 6543. |
Hey! I was having the same issue even on latest. @chanmathew's tip to use the password generated by supabase worked for me as well. I wonder if it was related to special characters in my password, |
I tested on macOS with passwords containing special char |
getting same issue |
same issue. tried the linking and upgraded to latest supabase (1.154.1): |
Just went to UI and changed the pw (recommended by supabase). works now |
Closing as it seems resolvable by pw reset. @mdotmoment11 Do you remember if your previous password had any special characters in it? |
Just to add, i do notice that in the CLI, it doesn't seem to automatically pickup your password even if logged in, and I had to explicitly export my password to my shell and then run supabase link. |
I went back and checked. Nope. It was, at the time:
aQwFyLIRdWA5Z0Ug
…On Wed, Apr 17, 2024 at 11:26 PM Han Qiao ***@***.***> wrote:
Closing as it seems resolvable by pw reset.
@mdotmoment11 <https://github.com/mdotmoment11> Do you remember if your
previous password had any special characters in it?
—
Reply to this email directly, view it on GitHub
<#1760 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABT5HGOOJCDFKWNLVNV3ATY544NFAVCNFSM6AAAAABAZIL5SGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRSHEZDGOBQGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
==============================
BRAD CHICK
==============================
***@***.***
734.662.1701 (h)
734.646.9372 (m)
"Make Some Time for Wasting!"
_
| |
___| |__ ___ ___ _ __ ___
/ __| '_ \ / _ \/ _ \ '__/ __|
(__| | | | __/ __/ | \__ \
\___|_| |_|\___|\___|_| |___/
================================
|
Hey every one i also have the same issue dii you got any solution [error] failed to initialize database, got error failed to connect to |
I got resolved this by reset the db password of supabase |
|
Might be the project password is the db password |
facing same issue |
Same here... Password are correctly spelled and inside env var. |
Same issue here |
🤷♂️ |
Same issue |
facing same issue |
I can reproduce this exact behaviour on windows powershell. Ctrl+v works but not typing into the prompt. |
same error. Password change using supabase generate button does not help. |
I've tried this on both Windows and Linux, but I'm having trouble. Is there a temporary solution to this? |
The temporary workaround is to set
|
None of the above workarounds worked for me, but, if you are on OSX, check your default shell and parameters. For me, while I was using bash, by default I had different properties set in the default shell. When I spawned a new shell without the default properties and THEN ran supabase link in that new shell, it worked. |
None of the above worked for me. |
Turn my terminal off and turned it on again and it works 🤷 |
none of the workarounds worked for me. Crash id: |
I had the same issue, it started working after changing a password so that it doesn't contain dollar sign characters |
I am receving the same issue. I have the strong feeling htat this has to do with special characters in the password. This happened to me before and I built a db psuh script that URL-encodes the password before issuing the command: const urlEncodedPassword = encodeURIComponent(process.env.SUPABASE_DB_PASSWORD);
const connectionString = `postgres://${process.env.SUPABASE_DB_USER}:${urlEncodedPassword}@${process.env.SUPABASE_DB_HOST}:${process.env.SUPABASE_DB_PORT}/${process.env.SUPABASE_DB_NAME}`;
const command = `supabase db push --db-url ${connectionString}`; |
Hello i tried typing the password manually instead of copy paste and it worked |
Hi, For me @sweatybridge got it:
In case somebody missed this. So does not work in Docker terminal, or Visual code terminal etc. BUT on command prompt I could run without errors. Running supabase commands with NPX |
Same issue here. Crash ID: a1c94bf14bc84c83bd08215cf5e836b2
|
Set the password manually in supabase Reset Password window. Don't use any special characters, except '!'. |
Yes, I think that having a Also, for windows user, I recommend using the CLI through scoop (https://scoop.sh/#/apps?q=supabase) rather than the npm package. Somehow, after installing it in my project, I couldn't make it work nor did I find a way to reset it all. |
yeah special characters in the pwd is messing this up. Super annoying that it has been a year and this is still not fixed. |
none of these is working for me. whats going on Supabase 😭😭😭. i've never seen this much superstition in a github issue thread |
I use windows. Nothing worked in powershell. Opened GIt Bash terminal and pasted it in. worked instantly 🤷♂️ |
After all, I made it work: I uninstalled the npm package and created a # To use the aliases below, make sure to run `source .bashrc`
#
# Then use these aliases:
alias sp-init='supabase init'
alias sp-login='supabase login'
alias sp-link-env='source .env && echo "linking to $SUPABASE_PROJECT_ID ... using password=$SUPABASE_PROJECT_PASSWORD" && supabase link --project-ref $SUPABASE_PROJECT_ID'
alias sp-gen-types='source .env && supabase gen types --lang=typescript --project-id "$SUPABASE_PROJECT_ID" --schema public > src/types/database.types.ts'
alias sp-db-mnew='supabase migration new $1'
alias sp-db-mup='supabase migration up --linked'
alias sp-db-reset='supabase db reset --linked'
alias sp-db-seed='node --env-file=.env database/sedding.js'
alias sp-db-rs='sp-db-reset && node --env-file=.env database/sedding.js' I run it in Git bash. |
In my case, what made it work was to past it using CTRL+SHIFT+V.
|
I was having the same issue as everyone and I'm guessing some of you are doing the same thing I did. I didn't actually click the reset password button after generating a new password because I thought it was to reset the password again. For some reason the UI just made me feel like it was updated without clicking the button. Make sure you click reset password. Hope this helps someone. |
This seems to be a bug inside the CLI tool. I had the exact same issue when I was casually pasting "cmd+v" to the terminal AND HITTING ENTER. Once I tried to paste with "cmd + SHIFT + v" cli automatically triggered the login and all worked well. I see the intention to to space user hitting the enter, but in this case seem to back fire in a terrible/hard to debug issue we all are facing. |
Same error here. No problem with one of ny supabase project but get the error for my second project |
Describe the bug
Similar issue as described here: supabase/supabase#15184
Created a new issue here since I suspect this to be a CLI issue.
Created a new project and tried to link the CLI to the project with
selecting the project manually to make sure the ref is correct. Tried both: providing the password in an env variable and providing it manually when trying to link. From another PC in the same office it works, from this one I get
And my IP is listed as blocked in the Supabase Database settings.
Resetting password did not help.
Connecting to the DB directly via for example PGAdmin works as well, so connection link and PW are definitely correct.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: