Questions tagged [flask]

144 questions
0
votes
1 answer

Python Import Error - No module

I'm sorry this is basic. I've followed a fairly simple tutorial and get this error when trying to run flask locally: Traceback (most recent call last): File "/Users/james/opt/anaconda3/lib/python3.8/site-packages/flask/cli.py", line 240, in…
Jimmy
  • 269
  • 4
  • 7
  • 23
0
votes
0 answers

How do I configure uwsgi as a production WSGI server?

I have a flask app that I want to run using uwsgi. I am also managing the uwsgi with supervisor. here is the my supervisor.conf file [program:myapp] command=/opt/python_envs/apps/bin/uwsgi --ini…
Hussain Nagri
  • 181
  • 1
  • 9
0
votes
1 answer

Cant start wsgi through Nginx

At first: When i started nginx i see errors in log: unix:/root/project/flask_paramiko.sock failed (13: Permission denied) while connecting to upstream uwsgi.ini: [uwsgi] #chdir = /root/project module = wsgi:app master = true processes = 5 socket…
0
votes
1 answer

Flask on cheroot/gunicorn scalability

I have developed a HTTP API endpoint using flask which accepts json data on POST requests and sends back json response. I have tried using multiple WSGI servers: gunicorn, cheroot, Bjoern behind Nginx as a reverse proxy. I noticed that no matter…
Nithish
  • 119
  • 3
0
votes
1 answer

Serving multiple socket using gunicorn and Nginx cause a NotFound error

I am trying to serve two Flask apps using Nginx as a reverse proxy. In my default.conf which I have reloaded using sudo service nginx restart I have got: location /app2loc/ { include proxy_params; proxy_pass…
G M
  • 103
  • 5
0
votes
1 answer

502 error from nginx. It doesn't seem to be listening to any port, but will connect to default

Facts: Nginx default can be accessed. Gunicorn is running, the website can be accessed via LAN. Nginx runs, does not give me any errors. When I check sudo lsof -i -P -n | grep LISTEN , it tells me Nginx is not listening to anything, and that port 80…
0
votes
0 answers

Nginx Gunicorn not serving requests to external ip

I have develop a python flask project which is run on linux server. I'm trying to develop it on my linux server. After much effort on this. I have configured nginx, gunicorn and my application. My nginx sites-available file like that: server { …
fordev
  • 1
0
votes
0 answers

How to serve a Flask app, static files and other services on the same port using NGINX?

I am trying to serve my Flask app using Nginx. I am able to serve the app using the following server block in my conf.d/test.conf. However when I try to use the application that I have at the following path /uv/ or try to access other images that…
G M
  • 103
  • 5
0
votes
0 answers

uWSGI cannot find “application” using Flask and Virtualenv

This is the error im getting using uwsgi on my webserver *** Operational MODE: single process *** ModuleNotFoundError: No module named 'app' unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full…
Yierith
  • 1
  • 2
0
votes
1 answer

pymongo + flask + gunicorn: "Authentication failed" before first operation when "connect=False"

I'm using MongoDB Atlas. I'm have this URL for connecting: mongodb+srv://:@/?retryWrites=true&w=majority&authSource=admin. I'm using this stack: flask, gunicorn, pymongo, mongoengine (i don't think that it is related,…
Amaimersion
  • 111
  • 8
0
votes
0 answers

Configure Apache to associate subdirectory/subdomain to Flask port

I am running Flask on a server that has Apache installed. Users are accustomed to accessing websites on the server using subdirectories such as www.domain.com/mysite. My question is, can I make Apache show www.domain.com:5000 when…
mtanti
  • 101
0
votes
1 answer

Gunicorn (with Flask) parameters for Google Cloud Run - production setup?

This question was taken down on SO with a suggestion to ask here, so here goes: Looking for some guidance from people with experience in this area. I run a Docker container (approx. 670mb in size) in Google Cloud Run, inside is my Python server…
Amy Wong
  • 101
  • 2
0
votes
0 answers

Error 403 on deploying flask website with nginx

I have a flask website running fine in a flask development server at http://0.0.0.0:8080. I need to deploy it to my university server. I have the public IP of the server, and I mapped it to my domain I bought from freenom.com. I am new to nginx. I…
Ritwik
  • 101
  • 1
  • 2
0
votes
1 answer

Unable to connect flask app by public ip and domain using ubuntu, nginx, uwsgi

I am a beginner in web developement, trying to deploy my flask app in oracle cloud with ubuntu 18.04, nginx, uwsgi and flask. nginx config is default. myapp.config for server is: server { listen 80; listen [::]:80; server_name…
Biswajit
  • 101
  • 3
0
votes
1 answer

flask app served by nginx uwsgi returns 502

I cannot connect to a flask app (searx search engine) served by nginx and uwsgi. My web server shows "502 Bad Gateway nginx" Here is my nginx error: error log: /var/log/nginx/error.log [crit] 2688#2688: *4 connect() to…
posop
  • 247
  • 2
  • 10
1 2 3
9
10