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

Django - Handling several file upload requests at a time?

I am developing a django application which handles lots of file uploads from multiple clients periodically. Each file is around 1 to 10 megabytes. Since uploads are thread blocking I can only serve a number of requests equivalent to the number of…
Ryu_hayabusa
  • 3,666
  • 2
  • 29
  • 32
1
vote
0 answers

Uwsgi Nginx long urls are failed with out any error message

Configured the UWSGI configuration in supervisor and Nginx. The length of the URL is 5076 characters. It is working fine on sample port. The request is passed Nginx and then came to the supervisor. It returns the following message generated 0 bytes…
srikanth nagineni
  • 431
  • 1
  • 6
  • 16
1
vote
1 answer

Not able to view my simple flask app using uwsgi and Docker

I am new to Docker and trying to run a simple Flask application using uwsgi and Docker on my Mac. However, I am not able to view it at my provided IP and port. I have following code structure and it's contents: app - app.py - Dockerfile -…
mrsan22
  • 727
  • 2
  • 11
  • 28
1
vote
1 answer

How to know it is an ajax request in a WSGI script?

I write this little WSGI script : def application(environ, start_response): data = '\n'.join(sorted(['%s = %s' % i for i in environ.items()])) print data start_response("200 OK", [ ("Content-Type", "text/plain"), …
Eric
  • 4,821
  • 6
  • 33
  • 60
1
vote
2 answers

Django inconsistency of uwsgi and dev servers

I faced strange problem. With the same Django project, site behaviour is different on development server and uwsgi server. Uwsgi and devsrv point to the same settings.py file. The issue here is that one particular app (commented out in settings…
amonowy
  • 188
  • 12
1
vote
2 answers

Let's Encrypt with uWSGI

I'm attempting to follow these instructions here to install an SSL cert for my domain. However, these instructions seem to assume that nginx is the only server. I'm using nginx with uwsgi. I'm new to both. I don't believe uwsgi has a 'webroot'(?).…
smilebomb
  • 5,123
  • 8
  • 49
  • 81
1
vote
1 answer

Docker: uwsgi not starting

When I start my uwsgi from inside the docker container everything works fine. I call: docker run -it -p 9098:9098 --rm --entrypoint=/bin/bash pyramid:latest Inside the container I call: jenkins@9c36ddb99971:~/my_project$ uwsgi --ini-paste dev.ini…
saromba
  • 472
  • 2
  • 7
  • 23
1
vote
1 answer

Django + uWSGI/nginx inside docker container - ImportError: No module named .wsgi

This an ancient Django (v1.3.7) application that I'm migrating over to a Docker setup. The basic framework comes from this dockerfiles repo. I can get the app running fine using Django's built in dev server (./manage.py runserver), but I'd like to…
rumski20
  • 361
  • 4
  • 13
1
vote
2 answers

Flask + uWSGI + Celery - How to start Celery as Daemon

I need help with start Celery daemon as smart-attach-daemon in uWSGI.ini file. When i start Celery server from command line with command: /home/xxxxx/xxxxx/venv/bin/celery worker -A celery_worker.celery --loglevel=info --purge all works great. But i…
lukassliacky
  • 364
  • 7
  • 25
1
vote
0 answers

uWSGI unable to load Flask app

I have been poking around on this for a couple days and I am still having issues. My uWSGI instance is apparently not loading my Flask app. I am running a CentOS 7 Vagrant and using Ansible for config mgmt. I will post the final templated files My…
Adam
  • 3,992
  • 2
  • 19
  • 39
1
vote
1 answer

nginx ini file throwing error (Permission denied [core/socket.c line 230])

When we run .ini file with sudo it's working fine. But without sudo it throwing following error, /home/ubuntu/.local/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! your processes number limit is 29858 your memory page size…
vikrant
  • 141
  • 1
  • 12
1
vote
0 answers

Frontend sending only OPTIONS request

I have a question about OPTIONS request. I have an application, with Angular2 on frontend and Nginx-uWSGI-Django backend. All parts of app are working fine, except for Angular Datatables. Frontend and backend are on the same domain but different…
wowbrowser search
  • 345
  • 1
  • 3
  • 11
1
vote
1 answer

Flask Callback when Application Context is Available

I have a function that I want to call that generates a set of urls. However, to fully generate the urls (using url_for()) I need to have an application context that's available with SERVER_NAME set. I'm looking for a solution that doesn't involve…
jab
  • 5,673
  • 9
  • 53
  • 84
1
vote
0 answers

uwsgi 1.0.4 logging File handle not release

i have an application for High requests count for django(1.3.1)+uwsgi(1.0.4), when i configure uwsgi with xml format: ”51200000“, log file will cut to small size automaticuwsgi.log.1485843562 uwsgi.log.1487389022 …
xuwulin
  • 11
  • 3
1
vote
1 answer

Screen not running @reboot for python project

I have a python project that I need running on a screen using uWSGI, if I run the script: screen -d -m uwsgi --emperor "/home/rrcms/wsgi.ini" --socket :8000 --chdir /home/rrcms/ --wsgi-file /home/rrcms/wsgi.py It will create a new screen and run…
Riquelmy Melara
  • 849
  • 2
  • 11
  • 28
1 2 3
99
100