-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Web app is running and waiting for content #230
Comments
Is this after running |
Hi Pamela, Thank you I tried to redeploy and get the following error Executing postprovision hook => .\scripts\prepdocs.ps1 ERROR: failed running post hooks: 'postprovision' hook failed with exit code: '1', Path: '.\scripts\prepdocs.ps1'. : exit status 1 Any suggestions on how to fix it? On the Azure side I got no error on the deployment. Thanks |
What operating system are you using? The pwsh command is triggered to run on Windows machines, per the postprovision hook section in https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/azure.yaml If you're on a Windows machine and pwsh does not work, then you'll need to fix up your Powershell installation. |
Thank you. I fixed the Powershell PATH as you suggested. I got a successful deployment: Deploying services (azd deploy) (✓) Done: Deploying service backend SUCCESS: Your application was provisioned and deployed to Azure in 38 minutes 40 seconds. However, when I click on the link I get a "404 Not Found" page Not Found when I look at the logs. I have the following 2023-06-07T23:53:50 No new trace in the past 1 min(s). Thank you |
Hm, that's interesting. What should have happened is that App Service auto-recognized the app as a Flask app (based off requirements.txt) and used gunicorn to run the app inside app.py. Then the / route should have been handled by this in app.py:
Considering that didn't happen, I wonder if the index.html file was not built. The building should have happened at the beginning of the Other things you could do:
|
I redeployed - success ! Thank you! |
Woot! Seems safe to close this issue now, in that case. |
I also had to run |
I am having the exact same issue! tried azd up- No luck. Is there a easier fix? |
If you do not yet see the website content, please go through the debugging steps in http://blog.pamelafox.org/2023/06/tips-for-debugging-flask-deployments-to.html
|
Is the routing needed changing for the codes hosted in the devops repository also ? |
I was able to deploy the app on my azure subscription. It deployed successfully a "App Service", "Form Recognizer", "Search Service", "App service plan" , and " Storage Account"
I can upload my data in the "Storage Account" and create an Indexers and Index.
When I ran the app from the "App Service" I get the following message
Your web app is running and waiting for your content
Your web app is live, but we don’t have your content yet. If you’ve already deployed, it could take up to 5 minutes for your content to show up, so come back soon.
But nothing happens. Any idea?
Thanks
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
azd version?
Versions
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: