Questions tagged [uwsgi]

uWSGI is a fast, self-healing and developer/sysadmin-friendly application container server coded in pure C.

The uWSGI project

The uWSGI project aims at developing a full stack for building (and hosting) clustered/distributed network applications.

Mainly targeted at the web and its standards, it has been successfully used in a lot of different contexts.

Thanks to its pluggable architecture it can be extended without limits 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).

The uwsgi Protocol

The uwsgi (lowercase!) protocol is the native protocol used by the uWSGI server.

It is a binary protocol that can carry any type of data. The first 4 bytes of a uwsgi packet describe the type of the data contained by the packet.

Every uwsgi request generates an response in the uwsgi format.

Even the web server handlers obey this rule, as an HTTP response is a valid uwsgi packet (look at the modifier1 = 72).

The protocol works mainly via TCP but the master process can bind to a UDP Unicast/Multicast for The embedded SNMP server or cluster management/messaging requests.

2938 questions
1
vote
2 answers

Static files 404 not found error with ssl - Django + uWSGI + nginx

I have a nginx server with my site enabled which is listening on 443 and forwarding traffic to my django app server which is using uWSGI. I can get to the admin page and log in but not static files are served. I've ran python3 manage.py…
pitchdiesel
  • 319
  • 1
  • 12
1
vote
2 answers

Internal Server Error for Django with uwsgi / nginx on Debian8.7

I'm pretty beginner in server technologies and I'm struggling to deploy a Django app to Debian8 server. I've been following : this tutorial but I couldn't start uWSGI service so I followed this recommendation and switched to systemd. Then I've been…
1
vote
2 answers

Django - static/CACHE files not found

I'm using Django 1.10 + uWsgi + nginx. In Prod mode the static files do not show up, this is what my nginx error-log tells me: 404 ... static/CACHE/js/e3a6fa7588d1.js" failed (2: No such file or directory), The folder static/CACHE remains empty…
Alex
  • 5,759
  • 1
  • 32
  • 47
1
vote
3 answers

How to get Uwsgi working with wagtail (django)

I am trying to get up to speed with wagtail. I am running it on a remote server. I have installed a virtual environment, then I switched to the virtual environment and installed wagtail as per the steps here:…
Gary
  • 1,086
  • 2
  • 13
  • 39
1
vote
1 answer

404 error for static assets when browser caching is implemented with nginx/web2py

I have a web2py configuration, operating on top of nginx, which is producing a 404 error when browser caching is implemented for certain static files. The problem is described here, and I'm now asking this question within a web2py context, because…
Boa
  • 2,609
  • 1
  • 23
  • 38
1
vote
1 answer

Nginx and uwsgi connection refused when placed in separate docker containers

I am setting up a Django project and using combination of nginx and uwsgi to serve them. Plus, I am using Docker to put django+uwsgi in one container and nginx in other. For testing purpose, I want to set this up locally and I want to use a custom…
Rajesh Yogeshwar
  • 2,111
  • 2
  • 18
  • 37
1
vote
1 answer

Django + uWSGI + Nginx (13 Permission denied)

I try to deploy like in this Guide on Ubuntu 16.04. But after all I am receiving 502 bad Gateway an in nginx log i have: 2017/03/03 13:28:08 [crit] 8928#8928: *1 connect() to unix:/run/uwsgi/marigu.sock failed (13: Permission denied) while…
Hellbea
  • 289
  • 6
  • 14
1
vote
4 answers

Error in installing uwsgi on ubuntu with python 3.5 using pip

Getting an error installing uwsgi on a Vagrant box running Ubuntu 12.04 with python 3.5 through pyenv. Using pip to install. -- pip install uwsgi Already tried this through Cannot install uWSGI on Ubuntu 14.04 with Python 3.4 (paths?): sudo apt-get…
him229
  • 1,284
  • 1
  • 11
  • 21
1
vote
1 answer

Docker flask uwsgi 404 on a remote host

Update 2 I configure my routes in configure_blueprints called from create_app. I don`t want put all my views handlers in uwsgi.py. They are stored in separate modules. def configure_blueprints(app): from .root import root_bp ... …
fedorshishi
  • 1,467
  • 1
  • 18
  • 34
1
vote
1 answer

Multi threading requests.post using uWSGI, Pyramid

I'm trying to request API in multi threading by cron job. I look like to stop or to laze the thread requesting. It's no problem by pserve. I want to use uWSGI but I have some problem. Python 3.5.2 My code is like this: import threading import…
terapyon
  • 331
  • 2
  • 9
1
vote
1 answer

uWSGI and nginx configuration for multiple flask apps running on different ports on the same server

I have multiple small flask apps. I would want to run each of the flask apps on different ports on the same server(single domain). For example say i have 3 flask apps tasks.py --> has API endpoints with /task only users.py --> has API endpoints…
Rajkumar T
  • 19
  • 2
1
vote
3 answers

nginx django uwsgi page not found error

I am trying to setup uwsgi and Django on Nginx but showing page not found error and error logs are empty. I cannot identify the error because the error logs are empty. Error log /var/log/nginx/error.log: -rw-r--r-- 1 www-data root 0 Feb 26 12:31…
Joseph
  • 136
  • 1
  • 2
  • 8
1
vote
0 answers

nginx uwsgi bottle postgresql psycopg2

My requirement: About 300 (field sensor-like) clients report their status (json string) once every X (say 10) minutes. They can only use "curl" to do the reporting . The API/handler on the server needs to parse and dump all those values into the…
King Bob
  • 9
  • 3
1
vote
1 answer

Running a Flask app on nginx

I don't know exactly what I am doing but I am experimenting with running Flask on nginx. I am boiling it down to the simple bit of code below. First I have a test app in Flask like this: from flask import Flask, render_template app =…
user2399453
  • 2,930
  • 5
  • 33
  • 60
1
vote
1 answer

Cannot start uwsgi on Ubuntu

I'm running Ubuntu 16.04, trying to do a Nginx + uWsgi + Django setup. I've followed this tutorial to the letter: https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04. The uWsgi ini…
reedvoid
  • 1,203
  • 3
  • 18
  • 34
1 2 3
99
100