Questions tagged [uwsgi]

Questions regarding uWSGI which is a full stack for building hosting services

Filter by
Sorted by
Tagged with
-1
votes
0answers
27 views

How to make a fault tolerant setup for Flask app with multiple SSL domains?

I have a Flask app that serves for multiple domains. App recognises which template to serve via request host part. So currently this Flask app is deployed on a single VPS running Ubuntu Server with ...
-1
votes
0answers
8 views

Serving separate SPA on a subpath in uwsgi

I have an app that currently has a frontend in angular and backend in Django. The index.html is served as a static file by Django, and all the JS and CSS are under /static served by the uWSGI. That ...
0
votes
0answers
101 views

Nginx + uWSGI + Flask Connection Reset

Problem I have a Flask app deployed using Elastic Beanstalk's "Single Container Docker" platform (latest revision 3.2.5 at the time of writing), with an "Application Load Balancer" ...
0
votes
0answers
26 views

Is it possible to define “excludes” for check-static in uwsgi settings?

I have an application which I don't want to modify. It has multiple directories with static files which are defined as static via check-static directive in uwsgi's .ini-file. My problem is that each ...
1
vote
0answers
98 views

Invalid Request Block Size with Nginx and USWGI

I am trying to load balance 2 Python apps using Docker and Nginx. App 1 is run using UWSGI and App 2 is run using default Python Server (I used default server for App 2 just for testing purposes. At ...
0
votes
0answers
66 views

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 ...
0
votes
0answers
28 views

UWSGI: uwsgi_response_write_body_do() TIMEOUT

I've HA UWSGI Django When I've a large file in a streaming response, if the client is slow the connection stops and i see that log in the messages uwsgi_response_write_body_do() TIMEOUT !!! OSError: ...
1
vote
0answers
81 views

How to use UNIX domain sockets behind Apache / mod_proxy_uwsgi?

On my development system I'm running a Flask WSGI application with uwsgi and nginx. However on the production server I need to use Apache instead of nginx, so I'm trying to do that. In nginx the site ...
0
votes
0answers
12 views

I not see changes on my Django project

I have the server Nginx+uwsgi. Uwsgi working as emperor. After I change py file in vassal Django project. In production nothing changed. I try to touch vassal ini file in turned on master, but aslo ...
1
vote
1answer
26 views

uWSGI on ubuntu 18 suddenly fails when --never-swap specified

I use uWSGI on ubuntu 18 (18.04.5 LTS). Very recently this stopped working - I'd get this error on startup: Fatal Python error: Cannot recover from MemoryErrors while normalizing exceptions. Nothing ...
0
votes
1answer
232 views

Why is my virtualenv not activated by uwsgi?

On a fresh install of Debian Bullseye I am unable to use the uwsgi command. It fails to load the requested virtualenv. This is the command that fails: uwsgi --plugins http,python3 --wsgi-file wsgi.py -...
1
vote
1answer
242 views

uwsgi vassal does not use virtualenv

I am running a python application started by an uwsgi emperor. The application is supposed to run in a specific venv, but I cannot get that to work. The ini file for the application specifies a venv ...
0
votes
0answers
24 views

uwsgi option to force verify plugin

Please, is there any option to force uWSGI die immediately, when loaded plugin is not OK, path is wrong, etc... ? I started to use plugin for custom json-safe variables (https://medium.com/velebit-ai-...
0
votes
1answer
383 views

HAProxy + uwsgi all connection “Connection reset by peer”

I've a problem with UWSGI + HAProxy. for all the connections that get closed, i see this log in uwsgi file [uwsgi-http key: client_addr: 192.168.173.250 client_port: 57002] hr_read(): Connection ...
0
votes
1answer
335 views

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 ...
1
vote
0answers
74 views

Multiple “Location” sections with different handlers aren't combined anymore in apache2 after upgrade

I have a website with the following configuration: <VirtualHost *:80> ServerName example.it <Location /> SetHandler uwsgi-handler uWSGISocket /var/sitedir/moin.sock </...
0
votes
1answer
208 views

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]...
1
vote
0answers
645 views

nginx error 500 when making api request to backend container

I am having trouble in setting up a system that consists of an nginx set up as a reverse proxy processing https requests on a Virtual Machine that is livin on my local computer. This reverse proxy ...
1
vote
0answers
66 views

uWSGI in emperor mode Nginx can't access socket

But when I do it in single mode then it runs just fine. emperor.ini uid = www-data gid = www-data #exec-asap = mkdir -p /var/run/uwsgi #exec-asap = chown -R www-data:www-data /var/run/uwsgi ...
0
votes
0answers
38 views

uWSGI can't run, enters a restart loop

When I try to start uWSGI, it goes on a loop showing this systematically: website_1 | *** Starting uWSGI 2.0.18-debian (64bit) on [Wed Jun 3 16:05:07 2020] *** website_1 | compiled with version: 8....
0
votes
0answers
261 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 ...
1
vote
0answers
66 views

nginx + uWsgi is not using it's maximum capability. 90% workers remain idle all the time

I have deployed my Django application using nginx + uwsgi. I have also implemented micro caching and made other changes by following this article (Nginx 10k concurrent connections). Now I am using ...
1
vote
0answers
241 views

pip3 install wsgi can't find openssl libraries on QNAP

When try to install uwsgi via pip3, it cannot find some openssl libraries, though I think they are installed. In similiar issues it was recommended to install libssl-dev but the package manager I am ...
1
vote
0answers
582 views

Nginx - UWSGI 504 gateway timeout

I saw lots of topics of nginx 504 error , but non if them solved this. Im using nginx , uwsgi on 1 machine to run Django application . i tried to add these config line at the end of /etc/nginx/...
2
votes
0answers
642 views

uWSGI can't load config in Docker

I have a weird problem, which is probably related to my Dockerfile, but I fail to see it - I've tried different settings, but nothing helps. Here is my uwsgi.ini file: [uwsgi] strict = true socket = ...
0
votes
0answers
35 views

Nginx error upon attempting to view my website 502 Http Error

When I go to view my website.com in the browser it fails to properly load with a HTTP 502 error. When I view the logs at: /var/log/nginx/error.log I get: 2019/11/22 18:32:34 [error] 1761#1761: *25 ...
1
vote
0answers
256 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
1answer
2k 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 = ...
3
votes
2answers
5k views

nginx works on LAN IP but not on public IP

I have setup a nginx web server with uwsgi to host my flask app. When I access it through the LAN ip (192.168.1.x) I get the website just fine but when I access it through my public IP i am greeted ...
3
votes
3answers
647 views

Selinux 'var_t' base type warning

I am currently 'lost' in the CentOS Selinux forest. My setup involves setting up a WSGI socket in /var/www/demo/out which nginx uses to communicate with the UWSGI process. Whenever I request the page ...
2
votes
1answer
2k 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 ...
0
votes
0answers
162 views

Uwsgi/nginx unix socket refusing connections

I have a python project that I am trying to serve with uWSGI and Nginx. I'm trying to connect the two with a Unix IPC socket (debian stretch), but the socket refuses connections whenever Nginx tries ...
1
vote
0answers
780 views

nginx + uwsgi + django 502 bad gateway on aws ec2

I have successfully installed nginx and uwsgi on aws ec2 instance. But on hitting the public IP its showing "502 bad gateway". Though both nginx and uwsgi server status is running and active. The ...
0
votes
0answers
617 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 ...
1
vote
0answers
368 views

how to set and test nginx uwsgi_buffer_size

I have a nginx+uwsgi setup to deploy a django app. I noticed that when using g+ authentication the response from the django app has a dimention that is growing month after month. I'm reading the uwsgi ...
2
votes
1answer
3k views

Nginx fails to start after boot, but works fine with a manual command

I've recently got an Ubuntu 18 server and I'm a little confused to say the least. First: If I run sudo service nginx start or sudo systemctl start nginx, everything appears to work. My site is ...
1
vote
1answer
255 views

uWSGI Emperor new apps are not started immediately

I run uWSGI in Emperor mode. Everything is fine and works but if i add a new myapplication.ini uWSGI needs minutes to hours bevor recognize the change and starts a new app. The Documentation says ...
0
votes
1answer
746 views

What does uwsgi_socket_keepalive affect when using the uwsgi protocol?

I was looking at some options to optimize for nginx with a uwsgi upstream and noticed that at the end of the entry for keepalive the docs say: SCGI and uwsgi protocols do not have a notion of ...
1
vote
1answer
3k views

uwsgi won't start on Ubuntu Ubuntu 18.04.1 LTS

I am following this Askbot installation tutorial, and it goes well till the very end, when I can't start uWsgi with: sudo systemctl restart uwsgi Errors which I get are: sudo systemctl restart ...
0
votes
1answer
805 views

Page not found when running nginx with wsgi

I wanted to run a flask application using nginx. I have gone through this tutorial and up to the point when I start service using wsgi from command line everything works fine (which means I can access ...
1
vote
0answers
80 views

How to run user installed app with uwsgi

How to run an app installed with pip install --user ? suppose I install this package as the Unix user py_user : pip install --user pkg and that I can import the app as following : from pkg.ws ...
1
vote
1answer
2k 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: ...
3
votes
2answers
7k views

uWSGI and NGINX 502: upstream prematurely closed connection

I have a Kubernetes cluster which is running Django application within docker container served by uWSGI. The ingress controller is ingress-nginx (this one: https://github.com/kubernetes/ingress-nginx)....
0
votes
0answers
2k views

Connection refused by Unix socket file

Having some trouble linking up Django + uWSGI + NGINX If I run the Django development server, the page works perfectly. If I run with: uwsgi --http 0.0.0.0:8134 --wsgi-file /test/test_project/wsgi....
0
votes
0answers
94 views

uWSGI fastrouter/subscription, Nginx and public facing servers

I'm having some security issues regarding my uWSGI configuration. Here's the current issue: I have a front server, called api.domain.tld, that have NGinx installed with proxy_pass that points to the ...
3
votes
1answer
2k views

Restart Django/uWSGI vassal in uWSGI emperor mode

I am running a django site using uWSGI in emperor mode. I have found that while touching the uwsgi.ini file for a specific application does indeed cause the emperor process to reload that vassal (...
3
votes
0answers
393 views

How to fix mysql has gone away, high writeiops, switch to postgres?

We have a Django site (Django 1.4) running under NGINX and uwsgi. The site uses MYSQL 5.6.39 which runs on a separate AWS RDS instance. It runs fine for about a week but then suddenly we get the ...
0
votes
0answers
580 views

aws cloned ec2 only show nginx default page why?

I have a running instances which shows the site properly on aws. what's included to run the site are django, nginx, uwsgi with elastic ip I have created an image of the instances. Launch the ...
2
votes
1answer
1k views

Nginx connection refused error 111, bad gateway

This is my working directory: /var/www/flaskapp myproject.ini myproject.py myproject.sock pycache venv wsgi.py myproject.py from flask import Flask app = Flask(__name__) @app.route("/") def ...
2
votes
4answers
8k views

nginx (13: Permission denied) on socket

I'm trying to set up a Django app using uwsgi and nginx, but I keep butting my head against a very irritating problem. I've used the uwsgi docs as a reference guide. When serving the app through ...

1
2 3 4 5
7