Questions tagged [flask]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
107 views

Powershell: start and stop flask server

I wrote a powershell script to start my flask server, run my tests then stop my server. It starts the server and runs my tests. However, when it kills the $server process, it leaves the actual server ...
0
votes
0answers
20 views

/myproject.sock failed (111: Connection refused) while connecting to upstream,

Iam serving flask by nginx and uwsgi but i am getting a permission error Iam newbie with nginx /var/log/nginx/error.log *1 connect() to unix:///usr/share/nginx/html/myproject/myproject.sock ...
0
votes
0answers
10 views

I am not able to use port 80 in my ubuntu openlitespeed server

Some file is running on port 80 how to find what is running on that port and how can I stop it and run my python(flask) app on that port
0
votes
0answers
14 views

flask-ldapconn not working with start_tls

I'm trying to configute flask-ldapconn but is not working. Using python3-ldap3 is working ok. I almost centainly believe that is a misconfigurations. my python3-ldap3 is working with openldap + ...
0
votes
0answers
41 views

Apache2 on Ubuntu domain only shows for the landing page then is replaced with IP address

I have a website on Amazon Lightsail built with Flask on Apache2 using mod_wsgi. I have domain which I have an A record for, pointing to the static ip address of my Lightsail instance. The issue that ...
0
votes
1answer
60 views

Apache2 only serving “Index of /”

I am setting up an Apache2 server on Ubuntu to host a Flask website. The issue that I am having is that Apache is only serving my files on an "Index of /" page, rather than serving my site. I am new ...
1
vote
0answers
43 views

CORS error despite CORS being enabled in app server and Nginx

I have a web application and server which is fully functional in a debugging environment, however when it's hosted for production, I get the following error in the browser console: Cross-Origin ...
0
votes
0answers
161 views

LDAPStartTLSError: ('wrap socket error: [SSL] internal error (_ssl.c:1108)',)

Hy I'm starting learning flask but when I follow this documentation I receive this error... Strange that using ldapsearch everything is fine.... Using: Ubuntu Focal python3.8 python3-flask ...
0
votes
0answers
101 views

flask, gunicorn (gevent), sqlalchemy (postgresql): too many connections

I created Flask WSGI-application which uses gunicorn as WSGI-server, for DB it uses PostgreSQL through Flask SQLAlchemy extension. That's all hosted on Heroku. gunicorn configuration number of ...
0
votes
0answers
8 views

python cgi + openldap x framework

Hy all I have been using python( cgi) + html5 + jquery + css3 and a lot of forms than insert/show/change a openldap base. Now I intent to change this using bootstrap to make my life easirer...80) I ...
0
votes
0answers
12 views

App on VM google Cloud

My English is not very good, I hope you can understand me. I made an application in the Google VM with ROS and FLASK, I run the app from the terminal by SSH and then I access the external IP and ...
0
votes
1answer
170 views

Cannot `pip install flask` in Python3.6 virtual environment

I'm trying to follow a MS DevOps tutorial here: https://microsoft.github.io/PartsUnlimitedMRP/pandp/200.1x-PandP-LocustTest.html I've tried Ubuntu and CentOS, both produce the exact same failure: (...
0
votes
0answers
38 views

Can Nginx Run both Flask and Webpack Dev Server?

I'm having trouble understanding how to run both a Flask Backend and a Webpack Dev Server Frontend in my development environment. I am currently running Flask on port 10003 and Webpack Dev Server on ...
0
votes
0answers
30 views

How to make backend (Flask) to be only accessible from frontend (Angular) on Apache?

I host Angular app (port 443) and Flask app with mod_wsgi (port 5000) using Apache 2.4. For now the backend app is visible globally over the Internet. I want it to be only accessible through the ...
0
votes
0answers
11 views

How to implement redirection to subpath

I have a Flask website hosted on AWS Elastic Beanstalk. I want to use third-party service for hosting documentation app. It can provide custom subdomain. So, for example mydocs.service.com could be ...
1
vote
0answers
319 views

Cannot connect to Flask server via public IP, only private IP

I have a simple Flask server that echos requests it gets to the terminal. Requests I send it via the device's public IP address do not register. The flask server is started correctly on all ...
0
votes
0answers
28 views

Nginx uniq session and clear cookie

Im using nginx to redirect my API code and apache guacamole. i have an issue that i need to use multiuser connection but if im logged in to Auser and i try to connect to Buser ( same browser) it try ...
0
votes
0answers
87 views

Request randomly hangs when making an API call

I have a stack of Flask, Nginx, Gunicorn deployed on AWS. There are a set of API routes present on it, and when I try to make requests to the /api/login path, the Postman request hangs randomly. At ...
0
votes
1answer
116 views

Receive 404 Not Found for a Flask app when I use Nginx as reverse proxy with Gunicorn socket

I have been following the tutorial here to deploy my own flask app to my Ubuntu 16 server. I used Nginx as a reverse proxy to pass requests to a gunicorn socket. Just in case anyone wants to know ufw ...
1
vote
0answers
116 views

Subdomain setup for Flask + apache

I have installed and deployed Flask on a CentOS server but the subdomain for some reason, is not working properly. I really need some help on this one. I am actually a newbie in this field so please ...
0
votes
0answers
59 views

How to reverse proxy Python Flask Application to machine with IIS?

I have two servers one has Python and dependencies installed where I can run my Flask application locally. I want to expose this application through another machine's endpoint via IIS. How can I ...
0
votes
0answers
25 views

How to allow only single concurrent user in mod_wsgi and apache?

I'm running a Python Flask based server on Apache/2.4.29 (Ubuntu) using mod_wsgi on free tier Amazon EC2 Ubuntu t2.micro machine which has very limited CPU and memory. Using flask, I'm serving my API ...
0
votes
0answers
62 views

Cant determine correct config file for NGINX VUE.js and FLASK(gunicorn)

i'm going to have my API run from flask/gunicorn and my frontend with VUE.JS but for some reason my setup is not working. I'm able to get to the VUE ppages but when I go to /api it says not found and ...
0
votes
0answers
17 views

High Rest-API Return Latencies on Unity

1-It sometimes takes too much for a request to complete. For example a simle API request (POST) usually takes 300-400 ms. But sometimes it takes up to 10 seconds and it actually sometimes time outs. ...
0
votes
0answers
42 views

Slow python based web servers in digitalocean

I was using cherrypy initially under apache2. It was downloading compressed file of size ~5-6 mb in around 16 seconds Also psycopg2 (postgresql library for python) was retrieving 19 mb json field from ...
0
votes
0answers
85 views

Should I avoid CORS when building an SPA with backend API hosted on the same server?

I've stumbled upon this question and had the thought that my application should not require CORS, since it is hosted on the same server (a raspberry pi). However, since CORS is a security "feature" I'...
0
votes
0answers
75 views

Flask app to upload an image file via Apache 2 not working

Running Apache/2.4.41 on Fedora 30 and python3-mod_wsgi-4.6.4-3.fc30.x86_64. And doing a test with: mod_wsgi-express start-server /var/www/flask/upload_pictures.wsgi --user myuser works mostly fine ...
0
votes
0answers
38 views

Restrict NGINX + Waitress to only be available on LAN

I am attempting to host a server on a machine in the office for our local use only. I have a Flask app that I would like to deploy on a Windows 10 machine (I am restricted to Windows 10) and ...
0
votes
0answers
29 views

Apache error log in Ubuntu server Flask framework AH00485: scoreboard is full, not at MaxRequestWorkers [duplicate]

My Environment Ubuntu Server 16.04 Apache Apache/2.4.18 Flask Web-frame work Apache Error Log [Sun Sep 22 15:21:36.882048 2019] [mpm_event:error] [pid 3243:tid 140302542669696] AH00485: ...
0
votes
0answers
69 views

Redis server shutdown on EC2: can no longer connect rq workers, and Elastic Beanstalk won't connect

Yesterday I successfully set up a Redis server on AWS EC2, and was able to connect rq workers to it and run a Flask application sending processes to it from my local machine. Today I successfully ...
0
votes
0answers
85 views

How to avoid or understand CORS-errors with Vuejs and Flask

I'm developing a full stack application using both Vuejs (Frontend) and Flask (Backend). Since I'm quite a newb I've looked into guides on how to make this work in general. Here's a few of the ...
0
votes
1answer
1k views

VueJS sending POST to Flask fails (CORS Request blocked)

I've been following this vuejs guide and this flask guide to host my frontend and backend on a raspberry pi. On my frontend I have this method, which sends an axios POST to the backend. // path = ...
0
votes
0answers
44 views

Server fail to send data over 2992 port. Webpack, Flask, Apache

I am newbie to webpack, but desperately want to master this tech. I develop my web application with running flask app via python script __init__.py and by running webpack in cmd npm run start. ...
0
votes
0answers
140 views

mod_wsgi LoadModule for Python3 is ignored

Trying to configure apache with mod_wsgi and Python3 mod_wsgi config LoadModule wsgi_module /etc/httpd/mod_wsgi/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so Flask App config WSGIScriptAlias /...
1
vote
1answer
351 views

How to protect against session hijacking in Flask [closed]

So, i'm developing a Flask web-app and i wanted to test its security since i've implemented the following: SSL Cert with cookies being securely transmitted CSRF token to avoid CSRF attacks Cookie ...
0
votes
0answers
287 views

Intermittent 502 with nginx + docker + gunicorn + flask

I have a Flask app that is running inside Docker. Inside the container, I start a Gunicorn server with 2 eventlet workers. As a reverse proxy I am using nginx that connects to the gunicorn server ...
0
votes
0answers
98 views

Nginx Gunicorn flask not serving cookies from flask

Using Nginx as webserver and Gunicoirn + Flask as reverse proxy for server side requests, this is the Nginx configuration server { listen 80; root /var/www/html; index index.php index....
0
votes
0answers
21 views

Urls not working VirtualHost and ProxyPass

I am using apache httpd server on windows. I am using this to run 2 flask applications in different ports using virtual hosts in httpd-vhosts.conf. <VirtualHost *:80> ServerName ncapp01 ...
0
votes
0answers
103 views

Make `lighttpd` 1.4 reverse proxy serve an application from different path

I am trying to configure an application (Python Flask) to run behind a lighttpd reverse proxy. I am using lighttpd v1.4.53. The part that fails has its root cause in the fact that the application is ...
0
votes
1answer
415 views

Localhost reverse proxy fails nginx AWS Ubuntu

I am attempting to to host a Flask app with Gunicoron on a server that hosts multiple web services on Nginx. I am using AWS ubuntu as a test bed for evetually hosting it on said Nginx mutilple web ...
1
vote
1answer
980 views

Flask to uwsgi threading get stuck

im Using Python 3.7.3, uwsgi 2.0.18, (docker container image python:3-stretch) We have development environment where we are running our code on flask and we change it to uwsgi when we test it on ...
1
vote
1answer
1k views

Import Error on deploying a flask app on apache

I am trying to deploy a flask app on a VPS using WSGI. I am not using a virtualenv, and pandas is installed on the system: Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] on linux2 ...
0
votes
0answers
838 views

Uploading a Python Flask App to an existing Apache2 Server and making it listen on a different port

Quick context: I have a Ubuntu 14.04 LAMP Server that's been hosting my ExtJS Website for a pretty long time. Recently, I've had the opportunity of tinkering with DialogFlow, and I've also made a ...
1
vote
1answer
3k views

How to deploy a WSGI/Python app behind Nginx on Windows?

Coming from the Linux environment, I'll try to be as accurate as possible with Windows concepts I clearly don't master. Here's my current situation: I have a functional Windows (10 pro x64) Nginx ...
1
vote
0answers
24 views

mail form api security

I am working on a static site generated with hugo and want to embed an email form without using external (commercial or possibly untrustworthy) services like formspree.io (too much of a headache in ...
0
votes
0answers
343 views

Why do I get a 110: Connection timed out error, white serving a flask app through nginx and uwsgi?

I am trying to serve a flask application using nginx and uwsgi, through an ubuntu docker container, while the host is also an ubuntu 18.04 OS. This is the conf file for the nginx server, for which I ...
0
votes
1answer
769 views

How can I solve 0x80070585 Error code on my Python Flask wfastcgi app?

I'm trying to deploy a Flask app on IIS (usually doing it on an Nginx/Gunicorn stack). My stack I'm working with Python 3.7 installed globaly, IIS 10 on Windows 10 pro. What I tried Activating CGI ...
0
votes
0answers
83 views

Supervisor requires reload for flask application to work properly

When my server (centOS 7 hosted on a vagrant VM) reboots, my Python Flask application (served up by Gunicorn using nginx as a reverse proxy) throws internal server errors (according to the stack ...
0
votes
0answers
454 views

Gunicorn with flask app returning 502 error

I've got an odd issue with a gunicorn server(serving a flask app) we run behind an amazon ELB. The amazon ELB was throwing 502's intermittently when accessing different URLs on the gunicorn server. ...
0
votes
1answer
275 views

Flask WSGI vs Nginx/Gunicorn: mailing list works in dev but not production

I have deployed a Flask web app to a Digital Ocean droplet running Ubuntu 18.04. The web app is simply a landing page that has a single form that adds a visitor's email address to a Mailchimp mailing ...