Questions tagged [uwsgi]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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
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 ...
1
vote
0answers
18 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
25 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 ...
0
votes
0answers
10 views

Optimum uwsgi configuration

I have a Django project configured with uwsgi and Nginx. The issue is that I am getting lot of 502 Bad gateway. The nginx error log says (104: Connection reset by peer) while reading response header ...
0
votes
0answers
14 views

any way to know when nginx stalls a request, because uwsgi server ran out of workers

I'm having an nginx setup with a uwsgi server with n workers. if I perform n+1 requests in parallel, then the last request is stalled until one of the n uwsgi workers finished handling a request. I ...
0
votes
0answers
10 views

is there any reliable way to correlate nginx and uwsgi requests / logs?

I am having a setup with nginx + uwsgi. Both servers create logs. I wondered whether there would be any way to correlate nginx and uwsgi requests (und thus their logs) In most cases the requesting IP,...
1
vote
0answers
122 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/...
0
votes
0answers
92 views

Webpack Hot Module Reload not working through Proxy

I've been trying to figure out how to get Webpack dev server working with Flask, Docker and nginx. I'm not familiar in these technologies so i'm a bit stuck. I have a Makefile that contains: ...
2
votes
0answers
189 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
94 views

Nginx with UWSGI - Error 502 every minute

I deployed a Django app by following this tutorial. I ran uwsgi --emperor /etc/uwsgi/vassals --uid nginx --gid nginx --daemonize /var/log/uwsgi-emperor.log and the site worked fine. But 3-5 minutes ...
0
votes
0answers
23 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 ...
0
votes
0answers
15 views

Flask Microservice deployment strategy

I going to deploy my microservice on an AWS ECS cluster. My plan is AWS ALB -> AWS ECS -> [Flask uWSGI server container] My question is do I need to add nginx for every uWSGI? If yes then why?
0
votes
0answers
86 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
14 views

Batches of timeouts for Uwsgi behind NGINX for 1 second only

I have a high traffic website with 6 uwsgi/python servers behind an nginx load balancer. I do get timeouts in batches. For 1 or maybe 2 seconds it seems that one of the 6 servers doesn't respond and ...
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 = ...
2
votes
2answers
948 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 ...
0
votes
0answers
27 views

NGNIX configuration to allow one path on http, everything else redirected on https

I have an application running with DJANGO and we are currently facing an issue where, a system dependency needs to be able to call one of our API endpoint on HTTP. Currently, our NGNIX configuration ...
0
votes
0answers
50 views

Nginx with uwsgi taking n*loading time

I am using Moviepy to edit a video and insert text into it in my web application. The page takes 10 seconds to load, that is alright for my client. The issue is when i host my project to a server. Say ...
2
votes
3answers
316 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 ...
1
vote
1answer
987 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
80 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
457 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
344 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
165 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
1k 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
184 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
472 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 ...
0
votes
1answer
1k 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
558 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
69 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
1k 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
5k 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
81 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 ...
2
votes
1answer
1k 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 (...
2
votes
0answers
339 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
451 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
942 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
2answers
4k 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
vote
0answers
762 views

uwsgi errno 24 too many open files on CentOS / nginx [duplicate]

I have a python bottle app being served by nginx and uwsgi. After running for a very few hours, I start getting a 500 error from the web app, and in /var/log/messages I see: uwsgi: OSError: [Errno ...
4
votes
1answer
2k views

Plain uWSGI error: uwsgi_response_write_body_do() TIMEOUT

This looks like a well-known issue with Nginx+uWSGI timeouts, but my setup is different and I couldn't find information about it. I run a Flask app on uWSGI, on http protocol (not sockets). When I ...
-1
votes
1answer
323 views

How to permanently have /xxx sub domain

I have several applications running on the same cluster and want to set up a subdomain for each application. To give you a brief description of current set up, I have a Django app, Jira, and Gitlab ...
0
votes
0answers
605 views

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

What to set uwsgi uid and gid to?

I'm trying to have nginx connect to a uwsgi socket on FreeBSD. I've set the socket to 666 but whenever I issue a request in my browser I can see the following in my nginx logs: 2017/12/12 11:34:04 [...
1
vote
1answer
1k views

Nginx/uwsgi request buffer or queue

Our web servers run a Python app behind nginx + uwsgi. Sometimes we have short spikes (2-5x avg no requests) for a second resulting in some requests getting a 502 if there are no workers available to ...
1
vote
1answer
464 views

NGINX ignoring upstream in server block

This is how my /etc/nginx/nginx.conf file looks like (as per nginx -T): # configuration file /etc/nginx/nginx.conf: # For more information on configuration, see: # * Official English Documentation: ...
0
votes
1answer
729 views

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 ...
1
vote
1answer
2k views

uwsgi permission denied on chdir that does have permissions for that uid

I am using uWSGI (behind nginx) without Emperor, run as a systemd service. uwsgi.service: [Service] ExecStart=/usr/local/bin/uwsgi --ini /var/www/CONSTANd++/uwsgi_config.ini (...) uwsgi_config.ini: ...

1
2 3 4 5
7