-
Notifications
You must be signed in to change notification settings - Fork 218
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
Failed to retrieve project status #2956
Comments
Hi @CalvinWilkinson, to help me narrow down the issue, could you try setting the access token via env var instead?
You can also remove the login step before this. |
@sweatybridge Thanks for the quick response! I tried that this morning, and it did not work. Here is my updated job: run_db_migrations:
name: Run Database Migrations
needs: [get_version, run_prerelease_validation]
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Supabase CLI (${{ vars.SUPABASE_CLI_VERSION }})
uses: supabase/setup-cli@v1
with:
version: ${{ vars.SUPABASE_CLI_VERSION }}
- name: Link to Supabase Project
env:
SUPABASE_ACCESS_TOKEN: "${{ inputs.release-type == 'Preview' && secrets.EA_SUPA_PAT_STANDARD_PREV || secrets.EA_SUPA_PAT_STANDARD_PROD }}"
SUPABASE_DB_PASSWORD: "${{ inputs.release-type == 'Preview' && secrets.EA_SUPA_DB_PASS_PREV || secrets.EA_SUPA_DB_PASS_PROD }}"
run: |
$projRefId = "${{ inputs.release-type == 'Preview' && vars.EA_SUPA_PROJ_REF_ID_PREV || vars.EA_SUPA_PROJ_REF_ID_PROD }}";
supabase link --project-ref "$projRefId";
- name: Reset Database
run: echo "y" | supabase db reset --linked; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using the supabase cli in my release workflow, I get the following error:
At first, it was saying in the
--debug
output that the password was wrong. At this point I reset my db password, and my PAT. I then ran the command again and now I am at the point where I get the error above. The strange thing is that I had not changed anything and the and the last release I ran was `11/17/2024 and everything worked fine.The only difference is that with that release I was running the Supabase CLI version
v1.207.9
. The release today that I am running I have changed it to use Supabase CLI versionv2.0.0
.Another strange thing is that if I run the same commands locally, it works fine.
Entire Workflow Job
Note
I am running on ubuntu latest and using powershell for the shell.
The step that I am getting the errors are when I run the
- name: Link to Supabase Project
step when tryingto link to the correct project. In this scenario, it is my preview environment that I am releasing to.
For the repuction steps, all I can say is to create a test project and use the same job in a test workflow
as shown above. I would do this myself, but I am currently on the free account and I already have the max
of 2 projects. I will admit I have not tried an emptly blank project to see if I can repoduce the issue.
I have already triple checked and reset my PAT secrets and db passwords and this did not get me very far. Before
I reset the password, I was getting a 'wrong password' message in the verbose debug logs of the
supabase link
command,but once I reset all the PAT and password values, I then started getting the message above.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the entire workflow to work as normal just as before, even after I updated the Supabase CLI
version being used in the workflow.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Rerun the failing command with
--create-ticket
flag.supabase services
command]Additional context
N/A
The text was updated successfully, but these errors were encountered: