Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [flask]

The tag has no usage guidance.

0
votes
0answers
22 views

Back-end request to Gunicorn/Flask in Docker network: Should I use Nginx?

There are a lot of clear answers to the question on why one should use Nginx in a classic 3-tier architecture with a Gunicorn/Flask app where you also serve static content. The architecture I want to ...
1
vote
1answer
120 views

failed (111: Connection refused) while connecting to upstream python [duplicate]

I am experiencing 502 Bad Gateway errors after deploying a python flask application using dokku on digital ocean. I followed this tutorial to deploy my app on digital ocean using dokku. 2018/10/23 07:...
0
votes
0answers
44 views

Issue in systemd service activation for uwsgi, flask in raspbian

I am creating a systemd service for uwsgi using a non root user and virtualenv in raspbian. In this process I am facing some issues - labapp.service file - [Unit] Description=uWSGI ...
0
votes
1answer
90 views

uwsgi with flask and python3 conda environment is loading python2 instead

I'm trying to run a python3 flask web application with uwsgi. If I run /usr/bin/uwsgi --ini /var/www/QCQuan/uwsgi_config.ini --logto /tmp/log then uwsgi fails and the log file shows: Python version: ...
0
votes
1answer
58 views

Problems installing flask on Debian server

I am having problems installing flask on my server. $ sudo pip3 install flask Collecting flask From cffi callback <function _verify_callback at 0x7f2798df7840>: Traceback (most recent call last)...
0
votes
0answers
39 views

Gunicorn and Nginx Configuration Settings

I am doing some X-Ray image classification task. However, I am having trouble setting up the nginx and gunicorn configuration. I have a paperspace P4000 machine where I would like to have the webapp ...
0
votes
0answers
39 views

How to configure for many stateless requests?

I am a data scientist / machine learning developer. Sometimes, I have to expose my models by providing an endpoint. I usually do this via Flask and gunicorn: exampleproject.py: import random from ...
0
votes
0answers
187 views

APIs created by using Flask with HTTPs, will they work on IOS mobile Applications?

I am working on a project where I have to communicate with a mobile APP using a local web server. For web-server creation, I am using Flask framework. Till now I have experimented with HTTP based APIs,...
1
vote
0answers
185 views

Getting Mod_WSGI Error: Deploying Flask Application to ElasticBeanstlk

I am current trying to deploy a Flask Application (an API Application) onto Elastic Beanstalk. But I am getting mod_wsgi error. Here is the error message: [Fri Jun 01 06:10:49.314023 2018] [:...
1
vote
2answers
392 views

NETSH - how to bind SSL Certificate to port and pass traffic to application?

On Windows Server 2016 I have a simple python web server (in flask). It works great, and listens on port 80 (or whatever I configure it to listen on). I need to serve it over SSL. I have a good ...
0
votes
0answers
276 views

File upload with Flask app in Apache - Http 400 is returned

I am using cgi to deploy the Flask app in Apache 2.4. The app is deployed and works fine, I can render the pages and download reports and other stuff. But I can't upload any file. In my local, it ...
0
votes
1answer
998 views

How to set up Wordpress and Flask on the same server with Apache?

I installed WordPress on my server and it's working fine. Now I'm trying to set up another application made using Flask on the same server. This is what my .conf file looks now: <Directory /var/...
0
votes
0answers
67 views

Incomplete .js file is loaded in the browser

I have my .js file placed in the static folder. When I run my application in the local flask server, I don't get any js error in the console, And the application works fine. But now my application is ...
0
votes
0answers
171 views

Nginx Reverse Proxy Occasionally Slow

I have created a SPA powered by a back-end written in Python (flask). The html, css and js are served by NGINX, which also acts as a reverse proxy to the Flask REST service. Clicking a button on the ...
0
votes
1answer
631 views

Accessing device via global IP instead of port forwarding on router

I have a python script hosted on a remote server. Lets say the URL given by the hosting site is "myproject.host.com". The following is a part of the script: import json import socket from flask ...
0
votes
0answers
105 views

Emperor needs manual restart, after system restart, to allow vassals to interact with mongodb

I have an arch linux system controlled by systemd with a mongodb, an emperor with vassals running varuous python flask apps, and nginx. When I restart the system the web pages all come up, any field ...
0
votes
0answers
261 views

Lighttpd running FastCGI script hangs and give 500 internal error

I'm attempting to use lighttpd and fastcgi to run a small flask application. When I try to start lighttpd, it starts the server just fine, but when I try to connect in the browser, it hangs without ...
0
votes
0answers
19 views

Server configuration for Speech API [duplicate]

I am building a Speech recognition system. I would like to open it to the public. So, If I wanted to handle 500 voice to text requests per second or concurrently what should be my server configuration?...
0
votes
2answers
354 views

Django and Flask on same nginx server with gunicorn

I currently have a Djago app running on my main site when I visit mysite.com. However, I'd like mysite.com/flaskapp to run a separate Flask application. I'm able to set up two nginx site-enabled ...
1
vote
0answers
371 views

Issue deploying Flask Rest Api on Nginx

I'm trying to deploy my flask api rest on nginx (on a subdomain) without success. I've followed this example from Digital Ocean and everything was working properly but then I changed the tutorial ...
0
votes
0answers
82 views

server “listen”: nginx and uwsgi

I am having some difficulty with wrapping nginx and uwsgi around a Flask application on CentOS 7. The current error message when I run $ sudo nginx nginx: [emerg] "listen" directive is not allowed ...
0
votes
1answer
19 views

Unusual rise in disk reads without any significant activity

I have a Ubuntu VM instance on Azure. Without any anomaly in the code or activities carried out server freezes and when I try to run any command it pops up a -bash: fork: Cannot allocate memory. I ...
0
votes
0answers
8 views

Server specs for big ChatBot launch? [duplicate]

We're releasing a Messenger Platform ChatBot on a page with approx. 130k fans soon. At the moment we host on an EC2 instance with 2 Cores and 4GB RAM, which runs smoothly with our 30 users atm. Our ...
1
vote
0answers
181 views

Gunicorn behind Nginx - high number of TIME_WAIT during load test

nginx version: nginx/1.9.3 gunicorn (version 19.7.1) I have a small flask API running through gunicorn behind nginx. When I load test directly through gunicorn everything is working fine, however as ...
0
votes
1answer
355 views

Nginx change links to 127.0.0.1

I have a flask app running in a docker container, and I configured nginx to redirect all requests to this container. Here's my nginx config: server { listen 80; location / { proxy_pass http://...
0
votes
1answer
104 views

Nginx is caching error pages for Django

We are using Nginx 1.10 to serve files in a production environment for a Django 1.7 backend and a Flask 0.10.1 frontend. Currently we have have the no-cache header set to prevent caching on error ...
1
vote
0answers
1k views

Systemd Unit file for uWSGI Failure

Using Flask, NGINX, and uWSGI I have setup successfully setup an app that I send and receive text messages through Twilio. Everything is working perfect, except that it is running under my personal ...
0
votes
1answer
480 views

Self-Signed SSL Certificate for Nginx in Ubuntu 16.04 And authorization (HTTP ERROR 403)

I have followed this link for self-signed ssl certificate for nginx.My nginx conf is like below: server { listen 80; server_name myMachineIP; return 302 https://$server_name$request_uri; access_log /...
0
votes
1answer
533 views

Basic NGINX, uWSGI configuration running locally only delivers 404

My Flask app runs through uWSGI, and I am using a TCP socket to talk to NGINX. The configuration is very basic: application.conf server { listen 80 default_server; location / { ...
0
votes
0answers
207 views

Reverse proxy a virtual host while also hosting a directory listing?

The answers I've found re: setting up a virtualhost as a reverse proxy don't seem to be working for me. I'm trying to do something pretty simple. I want to use Apache to reverse proxy a flask ...
0
votes
1answer
193 views

How to verify incoming requests go to gunicorn-flask via nginx

I'm running nginx, gunincorn (to start flask). When i kill nginx, the nginx test page disappears, but gunicorn/flask app continue to serve. Is this expected? How can i ensure gunicorn/nginx are ...
0
votes
1answer
450 views

Nginx With Dokku and Flask

The Big Picture I have a Flask site which-- previously-- was running successfully on Ubuntu on Linode. I bootstrapped it with Yeoman, and as a result, I did not need to figure out the difference ...
3
votes
2answers
531 views

Nginx uWSGI responses truncated

I tried to write a web service as a joke today at http://dont-tread-on-memes.controversial.io. It's a flask app that serves fairly large images. The Flask app works well on its own, as does an ...
0
votes
1answer
143 views

Showing index of / without www, works normal with www

I'm working with Python, Flask and Apache, and i'm stuck. when i try to visit mywebsite using www, it works fine. however, when i remove the www, the website is showing "index of /" with an empty list ...
0
votes
1answer
594 views

python - How to deploy Flask+Gunicorn+Nginx+supervisor on a cloud server?

I've read a lot of instructions since yesterday about this issue but all of them have similar steps. However I followed step by step but still can't get everything Ok. Actually I can make Flask+...
0
votes
1answer
402 views

Nginx fails to pass the traffic to the Flask application and uwsgi

I am trying to deploy a Flask and uwsgi application with Nginx, everything is working and I can get my application to work on my domain: test.example.com:8080. The problem is I can't make it work ...
5
votes
2answers
2k views

Nginx cannot see unix socket

UPDATE: I saw questions related to the /tmp directory, and a comment mentioned moving the socket out of /home as well. It didn't fix the problem. (Additional updates at bottom of post) I have a ...
1
vote
1answer
592 views

Set up IIS to reverse proxy an internal server

I have a Linux server serving a Flask application with Gunicorn. I have a separate Windows server with IIS. Only the IIS server is accessible publicly. How can I set up IIS as a reverse proxy to my ...
0
votes
3answers
2k views

Nginx and uWSGI Flask app Connection Refused

Trying to set up a Flask application with uWSGI and Nginx. I keep getting a 502 Bad Gateway error (as far as I know this means uWSGI and Nginx can't communicate correctly) This is the line that ...
0
votes
2answers
172 views

Pages are not cached

I have a simple web app running behind nginx using flask+gunicorn and somewhere along the line a stale version of the page is being cached. My nginx config has add_header Cache-Control no-cache; and ...
1
vote
0answers
235 views

Serve Flask applications like PHP scripts

On most webserver configurations, .php files are automatically processed when a user accesses a php file, using php-fpm. I'd like to do a similar thing for Flask apps on my nginx server, so that when ...
1
vote
1answer
2k views

Can not start a Docker container

I Built an image using flask, nginx and uwsgi. FROM ubuntu:14.04 MAINTAINER Ali Mezgani <xxxxxxxxx@gmail.com> RUN apt-get update && apt-get -y install python python-dev python-pip RUN ...
1
vote
1answer
180 views

What kind of request is it?

I have installed Nginx in my server and i am getting a TCP request from a GPS + GPRS device. When i access the access.log i find this. 126.51.10.6 - - [06/Jun/2016:16:46:53 -0400] "GET / HTTP/1.1" ...
1
vote
1answer
379 views

Accessing large app files using Elastic Beanstalk and Flask?

I'm deploying a flask app through AWS Elastic Beanstalk, and when I try and push my app for deployment, i get an error that the contents are too big. Apparently, there is a hard maximum upload of 512 ...
1
vote
1answer
79 views

Serving Flask + Apache + WSGI Behind Sonicwall

Strange problem here. I've gone through this tutorial on setting up a deployment environment for a Flask app. When I navigate to the servers local IP address it is serving everything fine. However ...
0
votes
1answer
438 views

Flask with python 3.5

I'm trying to run a flask app on my aws ec2 instance. I've installed anaconda with python 3.5. In order to install mod-wsgi I run the following command: sudo yum install libapache2-mod-wsgi python-...
1
vote
1answer
1k views

Nginx serve static files for flask app 404

I've tried numerous solutions of other posts, but nothing seems to work for me, I always get a 404 error, when trying to let nginx serve static files of my flask application. Somewhere in between all ...
1
vote
2answers
781 views

Docker compose and nginx load balancer

Currently I have 2 Docker containers: Application (python flask) Load Balancer (nginx) I'm starting both containers separately with docker-composer up Nginx is listening in port 8080 and should ...
2
votes
1answer
907 views

Docker, docker-compose application settings

I'm starting to migrate my Application to Docker containers: I use Ngnix, supervisord, gunicorn, python flask, celery, flower, lighttpd, RabbitMQ and Postgresql. In my original virtual machine, I keep ...
0
votes
0answers
255 views

Setting up a sub-domain to point to a flask application on same digital ocean droplet (with uwsgi and nginx on Ubuntu 15.10)

I have a domain called abc.com which points to a static html page, in /var/www/abc.com/public_html. I want to host a Flask application on same droplet (different port maybe?), which is accessible ...