Questions tagged [uwsgi]

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

The uWSGI project

The uWSGI project aims at developing a full stack for building hosting services.

Application servers (for various programming languages and protocols), proxies, process managers and monitors are all implemented using a common api and a common configuration style.

Thanks to its pluggable architecture it can be extended to support more platforms and languages.

Currently, you can write plugins in C, C++ and Objective-C.

The “WSGI” part in the name is a tribute to the namesake Python standard, as it has been the first developed plugin for the project.

Versatility, performance, low-resource usage and reliability are the strengths of the project (and the only rules followed).

Github Docs

346 questions
1
vote
0 answers

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 jMeter and testing for 1000 concurrent requests.…
1
vote
0 answers

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 using (entware) does not have it. My…
Lukas
  • 111
  • 1
0
votes
0 answers

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 connect() failed (111: Connection refused) while…
0
votes
1 answer

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 = http://127.0.0.1:5000/shift // pin, port = 1-8 /…
HackXIt
  • 21
  • 1
  • 8
0
votes
0 answers

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 have created a symbolic link in…
0
votes
1 answer

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 my page on localhost:8000 and display Hello,…
roblee
  • 1
  • 2
0
votes
0 answers

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 uWSGI instance using a .sock file. This uWSGI…
Cyril N.
  • 624
  • 1
  • 10
  • 36
0
votes
0 answers

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 instance which now I have a second instance which is the…
Dora
  • 341
  • 1
  • 5
  • 15
0
votes
0 answers

How to serve via uWSGI from Tomcat

I have a simple python function that I need to run as a web service from a tomcat server. This is the setup I got as an external requirement from my client and I cannot change it. I've managed to make this work with CGI, but I would like to optimise…
mapto
  • 121
  • 5
0
votes
1 answer

systemctl start works, but systemctl enable fails with realpath() error

I'm trying to set up a simple uwsgi service named project on Vagrant, Ubuntu 16.04. It should start a simple Flask app that Nginx can talk to. I can get the service to work when running systemctl start project, but can't get service to run after…
Puchatek
  • 101
  • 4
0
votes
2 answers

godaddy dns + aliyun host - django app, uwsgi, nginx - shows "502 Bad Gateway"

I have domain mydomain.me in godaddy i set it to point to my ip in aliyun ecs In my diango settings i have : ALLOWED_HOSTS = [".mydomain.me","x.x.x.x"] in /etc/nginx/sites-avaiable/Django i have upstream django { server…
yourstruly
  • 99
  • 6
0
votes
1 answer

uwsgi dying when nginx runs under different user

I'm using Django with nginx/uWSGI. I have to serve files off a mount that a particular service account, mybic, has read access to, so I've had to change the nginx user from: user nginx; to user mybic dbhi_bic; This has caused my Django web app to…
jermdemo
  • 350
  • 2
  • 9
0
votes
1 answer

How can I configure nginx with multiple uwsgi vassals (with websockets) in emperor mode?

I'm having issues running 2 vassals in emperor mode (for a main app + websocket) behind an nginx server. Everything seems to be running well, but all the websocket requests return error 502 bad gateway. The websocket app is running…
Kevin Lee
  • 101
  • 4
0
votes
2 answers

Using IP Address In Nginx server_name I Django

I'm using django, uwsgi and nginx. I have tried nginx and django documentation for serving static files. My conf file is: http { upstream django { server 127.0.0.1:8000; } server { listen 80; server_name 192.xx.xx.x; root…
Jasmine
  • 243
  • 1
  • 3
  • 9
0
votes
1 answer

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 / { uwsgi_pass 127.0.0.1:9000; include…
llater
  • 31
  • 3