Skip to content
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

redeployment does not work #45

Closed
thunderbug1 opened this issue Feb 7, 2024 · 1 comment
Closed

redeployment does not work #45

thunderbug1 opened this issue Feb 7, 2024 · 1 comment

Comments

@thunderbug1
Copy link

I cannot quit figure out how to redeploy the frontend after having deployed rag-gpt.

I deployed rag-gpt as the readme instructed.
Due to a bug where the ingestion function has no write permissions to the cognitive search instance, I have to change some lines in this repo and redeploy.
I cloned the repo and tried to executed

azd auth login  
azd env refresh  

but I get:

ERROR: getting deployment: error retrieving state: retrieving deployment: no deployments found for environment gptragtmp
WARNING: your version of azd is out of date, you have 1.5.0 and the latest version is 1.5.1

To update to the latest version, visit https://aka.ms/azd/upgrade/windows

So for some reason it does not detect the deployment I already made.
I went back to the directory of the rag-gpt clone and did a azd show which shows:

  Environments:
    gpt-rag [Current]

I tried to set that environment name in the config.json of the gpt-rag-ingestion directory:

{"version":1,"defaultEnvironment":"gpt-rag"} instead of {"version":1,"defaultEnvironment":"gptragtmp"}

but then it shows me this:

 azd env refresh
Environment 'gpt-rag' does not exist, would you like to create it? (Y/n)
@placerda
Copy link
Collaborator

Because you're getting "error retrieving state: retrieving deployment: no deployments found for environment gptragtmp" yo wont be able to do an azd env refresh, it needs a successful deployment (or provisioning) to retrieve env variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants