Cannot access Google App Engine dashboard and upload Python app - python

This morning I made some changes to my Python web app, and then I uploaded my App using the tool provided by Google. But it stopped at "Compilation starting", and it showed error 500 after couple minutes. In the same time, I cannot access the dashboard of the app.
I have never faced this situation.
Did anyone experience the same situation? Or what might cause this situation?

Related

Streamlit azure deployment please wait screen error

Hi I have been trying to deploy a streamlit app in azure for the past couple of days. A simple app like
import streamlit as st
def main():
st.write('hello all')
if __name__=='__main__':
main()
even with requirements.txt, a docker file, trying to push the docker image to azure container registry, all process are done right. There are even no errors so that i can debug them. The app just opens up in azure and freezes in the please wait screen. Please can someone help. I have tried everything, github deployment local deployment. I have been following the below articles.
https://saitracychen.medium.com/deploy-a-streamlit-app-to-azure-126452e7df6d
https://towardsdatascience.com/deploying-a-streamlit-web-app-with-azure-app-service-1f09a2159743
What am not getting is if this is a recent issue specifically with streamlit and azure or am i doing something wrong. attaching my problem below. I have also managed to capture a HAR file from the frozen page if anyone can help with it. If anyone can document the recent process and changes we have to make to deploy in azure that will be great as the support on this topic is pretty thin online.
TLDR: you need to get at least a B1 appservice plan. The FREE one will not work with Streamlit (and apps using WebSockets).
After a couple of hours trying to find the answer to the same answer, I found out what it was. I wanted to deploy a streamlit app, but was stuck at the same place after following the guidance. A Ctrl+Maj+J showed in the "Please wait" page that WebSockets were an issue. It appears WebSockets will not work for FREE Linux appservice plans, and after recreating a B1 appservice plan (as in the guidance), it worked.

Flask Dance timing out when deployed to Azure

It's me again. I have had more problems getting Flask to work with Azure Active Directory. I am almost there but I just cannot figure out how to get over this hurdle. If anyone can help me, I'd be forever grateful.
Here is what works so far:
Running my app on the local host with Flask Dance user authentication
Deploying my app to Azure without any user authentication in it.
Deploying my app to Azure using the Adal library for user authentication (problem is I want to use Flask Dance instead of Adal because of other features).
So if I run it locally, it works perfectly. If I comment out the few lines of code about Flask Dance in my app, it works perfectly as an Azure website. If I include those lines of code referencing Flask Dance and upload it to Azure, it builds successfully, but when I go to the website, it just stalls and nothing happens until it finally times out with a 500 error. So far Microsoft has not been able to help me either.
I run it just like this:
blueprint = make_azure_blueprint(
client_id="{client_id}",
client_secret="{client_secret}",
tenant="{tenant_name}"
)
app.register_blueprint(blueprint, url_prefix="/getAToken")
Then I have a small decorator function checking if the user is logged in that checks if the user is azure authorized and if not, redirects them to the azure login page. All of this works perfectly fine at the local host, so where is it going wrong?

503 error is seen even after the app is fully deployed in Google App Engine

We start our Python App in GAE using Google Cloud Deploy tool (gcloud app versions start ..). 503 error is seen even after the app is started in Google App Engine (i.e. the tool returns but when you hit the browser the following error is seen for quite some time). This downtime is not acceptable, what could be done here?
https://mycompany-app.appspot.com/
That’s an error.
The service you requested is not available at this time.
Service error -27. That’s all we know.

Setting up a sever on Google Cloud with Postgresql database?

I've been trying for about two weeks now to set up a server for a completed Django app on the google cloud shell. All of the documentation for gcloud is confusing and sends me to several different pages for one task and it is very hard to keep track of what to do. Sites like digitalocean, which is useful for Django program setup, doesn't work on gcloud. I haven't figured out a way to connect a postgres VM to my program through the cloud shell despite having the server running. I am very lost in setting this up. Could someone please help me set up my Django app? It runs perfectly on localhost but when trying to implement it into the google cloud nothing works.
I've done the django-gcloud tutorial already and set up a simple site just by importing the code from google, which doesn't help because all it does is import a completed app and you just type in "gcloud app deploy" which doesn't explain how to set it up so that you can do that.
My program uses python 3, DjangoRestFramework, and Celery. The database is Postgresql.
My full module list is:
Django-1.11.2 amqp-2.1.4 astroid-1.5.3 billiard-3.5.0.2 celery-4.0.2 djangorestframework-3.6.3 isort-4.2.15 kombu-4.0.2 lazy-object-proxy-1.3.1 mccabe-0.6.1 pep8-1.7.0 psycopg2-2.7.1 pylint-1.7.2 pytz-2017.2 six-1.10.0 vine-1.1.3 wrapt-1.10.10

Can I connect to a GAE app from a Java ME application?

I just finished working on a GAE application in python to retrieve flight data and return the result to the calling URL.
I tested it in a browser at it works, but my Java ME application, which is able to retrieve data from other websites turns up nothing from the GAE app which is already hosted on GAE.
I know Google has some authentication issues, but does this apply to GAE apps as well, and what can I do?

Categories