Questions tagged [uwsgi]

24 questions
9
votes
1 answer

Why process killed with nohup

I want to run a process in background without killing it on shell exit, according to Nohup concept the following command should work until I kill it manually: nohup uwsgi --http :8008 --module crawled_data_center.wsgi > /dev/null & I'm logged in…
Yuseferi
  • 370
  • 3
  • 6
  • 15
9
votes
2 answers

centos 7 systemd : Active: failed (Result: start-limit)

I want to use uwsgi with my django project I test usgi --ini uwsgi.ini works well And I want to write in systemd to control it And face error Here is my file /etc/systemd/system/mysite.service [Unit] Description=uWSGI for…
user2492364
  • 191
  • 1
  • 1
  • 2
6
votes
5 answers

What's the best way to have uwsgi create a '/run/uwsgi' folder on reboot?

I have set up a Django project to run with uwsgi and nginx and it's all running as expected, except that when I reboot uwsgi will not launch correctly until the /run/ folder is recreated on the fs. /run is mapped to 'tmpfs' so it needs to be…
Octopus
  • 2,489
  • 6
  • 21
  • 25
4
votes
0 answers

Help! Failed to start uWSGI Emperor service

I am creating a django application using nginx as my server with uwsgi. However when i entered my domain or ip address to access my site. I got an 502 BAD GATEWAY ERROR. So I decided to look at my logs to see if i made a mistake because I was…
Young Kuffey
  • 41
  • 1
  • 2
4
votes
1 answer

Large TCP backlog for uwsgi, but no visible connections

In a setup with three docker instances, one running haproxy and two others running a flask-based python application through uWsgi, we run into a situation after about a day where no new connections is accepted on one or both instances. uWsgi is set…
izak
  • 171
  • 8
4
votes
2 answers

FreeBSD: using python3 in uwsgi instead of python2

I have a server with FreeBSD 10.1 installed. I want to deploy a Django site on it using uwsgi+nginx+python3 and got some problems. The site was written for python3, I installed python3.4 then python3 and python from ports, configured nginx and wrote…
DiA
  • 43
  • 1
  • 3
3
votes
0 answers

Why systemd socket activation is not ready to work on first request

I have a Flask app running in a python virtual environment and working with uWSGI and Nginx. I want to use systemd socket activation to manage the startup of the app. here is the relevant configurations: uwsgi-flask.service [Unit] Description=a…
Runbing
  • 31
  • 4
2
votes
0 answers

systemd uwsgi service fails to run automatically but runs when started from interactive session

I enabled the uWSGI service in systemd but it fails to run at startup, the log shows the following: Wed Nov 22 12:36:10 2017 - your processes number limit is 47903 Wed Nov 22 12:36:10 2017 - your memory page size is 4096 bytes Wed Nov 22 12:36:10…
Luis E
  • 21
  • 2
2
votes
0 answers

Arch Nginx Uwsgi no app loaded

I am trying to get django working but uwsgi is having problems loading anything. Most likely do to my ignorance. I would love some help troulble shooting. I have been looking at similar posts on the stack exchange but none of them have helped, they…
Tsangares
  • 143
  • 5
1
vote
1 answer

Is it safe to use a disabled user to start a process in Linux?

I created the user uwsgi and the group uwsgi for using them as uid and gid in .ini-file for uwsgi properties. I didn't set password for this user (didn't run sudo passwd uwsgi, actually, I can't login as uwsgi). It is safe to use the user as a…
r1d1
  • 113
  • 3
1
vote
0 answers

Why the .sock file not getting generated for uwsgi?

I have already banged my head for last 6 hours, and nothing seems to be working for me. I am trying to host Django through nginx and uwsgi. As per the best of my understanding and study I have configured nginx.conf and uwsgi.ini files. nginx.conf #…
user3521180
  • 119
  • 1
  • 5
1
vote
1 answer

How to provide uWSGI multiple static-map options through environment variable?

uWSGI manual on static files serving states that: You can specify multiple --static-map options, even for the same mountpoint. --static-map /images=/var/www/img --static-map /images=/var/www/img2 --static-map /images=/var/www/img3 The file will be…
1
vote
2 answers

Is Running a uWSGI/Gunicorn Server on Boot Possible w/ a venv?

I have a small .py/Flask application that I can run from the command line as a uWSGI or Gunicorn Server. Flask's site shows an abbreviated way to simply run a Flask app w/ these types of servers, i.e. esp. if I am using my source in a venv. Do you…
Mala Dies
  • 13
  • 3
1
vote
1 answer

CentOS7 nginx permission denied for media and static

Hello I have tried to deploy django web server for a week and finally I did it, but now I have a permission denied problem with nginx /var/log/nginx/errors.log /2016-07-12_1.png HTTP/1.0", host: "ip" 2017/08/28 08:22:38 [error] 873#0: *122…
Ebrahim Karimi
  • 123
  • 1
  • 1
  • 6
1
vote
0 answers

uwsgi , application not found

Ok so I have been trying to find a solution to this for 2 days now but I cannot seem to make much progress. I am running this on a nginx server but that appears to be fine. I copied over a python application environment from an older server (python…
TheHidden
  • 788
  • 1
  • 6
  • 24
1
2