All Questions

Tagged with
Filter by
Sorted by
Tagged with
18 votes
5 answers
27k views

WSGI : Truncated or oversized response headers received from daemon process

System Configuration : Apache2, Django 1.10, Python 3, Ubuntu 16.04 LTS Django debug=True. /var/log/apache2/error.log [52:53.057967] [wsgi:error] [pid 4303] [client 1.1.1.22:24409] Timeout when ...
Suraj's user avatar
  • 449
8 votes
1 answer
14k views

Reason for "Gateway Timeout" (mod_wsgi)

I get "Gateway Timeout" 504: The gateway did not receive a timely response from the upstream server or application. I use apache with mod_wsgi Version 4.4.8. In the apache error log I see: ...
guettli's user avatar
  • 3,583
6 votes
1 answer
6k views

How to make mod_wsgi use Python 3.9?

I originally had Python 3.6 installed and working well with WSGI and Apache2 on my Linux server. Then I created a Flask app that had a dependency needing Python 3.7. I've successfully (and I think) ...
ThatCoolCoder's user avatar
2 votes
2 answers
1k views

Why is Apache2 not finding my WSGI app?

In my previous question, I asked how to make mod_wsgi use a specific Python version. Following the answer from that question, I created a Python 3.9 virtual environment and made WSGI use it. However, ...
ThatCoolCoder's user avatar
2 votes
1 answer
11k views

Wsgi not finding python modules

Trying to get Django server running with Apache and WSGI This is my wsgi.py import os from django.core.wsgi import get_wsgi_application sys.path.append('/home/rohan/Desktop/narsil/narsil') # ...
Bayko's user avatar
  • 121
1 vote
1 answer
727 views

Running multiple flask applications with different domain names using mod_wsgi

We are trying to run 2 different flask applications with different domain names from same server using mod_wsgi + Apache2. This is the settings configured in httpd.conf # For www.yyy.com ...
Joel Divekar's user avatar
1 vote
1 answer
302 views

Which is Best way to serve multiple wsgi apps using apache2 with different python versions?

Right now I've got a python2 django app deployed in my sever using apache2 and mod-wsgi. Now I want to deploy another one, but this is written in python3. My problem is that mod-wsgi is compiled to ...
Liam's user avatar
  • 241
1 vote
0 answers
92 views

Unsuccessful flask app deployment on Amazon EC2 instance

I am trying to deploy a flask app on an Amazon EC2 instance. I have configured everything just fine but the website does not load. It remains stuck on the loading icon as follows: Website not loading ...
Pratheek Menon's user avatar
1 vote
0 answers
477 views

How to debug my config file for wsgi

I am trying to install a server for inginious (a program for automatic grading). One step in the installation is configuring Apache2 to use mod_wsgi. Here is the configuration file inginious.conf: <...
Erel Segal-Halevi's user avatar
1 vote
0 answers
356 views

Flask app to upload an image file via Apache 2 not working

Running Apache/2.4.41 on Fedora 30 and python3-mod_wsgi-4.6.4-3.fc30.x86_64. And doing a test with: mod_wsgi-express start-server /var/www/flask/upload_pictures.wsgi --user myuser works mostly fine ...
RobbieTheK's user avatar
1 vote
0 answers
151 views

Apachi httpd hangs on linux servers

In the last few months we're experiencing a major issue in our production php servers: The httpd running on our linux servers hangs and not responding to new requests (up to request timeout) until we ...
user2033370's user avatar
0 votes
1 answer
4k views

Apache mod_wsgi, Django and project file permissions

I am setting up a Django project in production. But I'm dealing with a weird permission issue. Before all, this is the structure of my project: project project settings.py urls.py wsgi.py ... apps ...
idris's user avatar
  • 13
0 votes
0 answers
252 views

apache mod_wsgi error, randomly: Unable to connect to WSGI daemon process

Recently, our server shut down out of nowhere, this what Apache logs show up: [wsgi:error] [pid 8837:tid 140646648096512] (2)No such file or directory: [client] mod_wsgi (pid=8837): Unable to connect ...
Jose Luis Arrioja's user avatar
0 votes
1 answer
390 views

Apaches virtual host config suddenly not working anymore; how to debug?

out of the blue my virtual host config doesn't work anymore. So my setup sould be quite easy: On Port 80, I want to deliver two WSGI apps, and that's the .conf file I'm using: <VirtualHost *:80> ...
Standard's user avatar
0 votes
1 answer
446 views

service apache2 start causes error in django

On running apache2 configtest I get Syntax error on line 2 of /etc/apache2/sites-enabled/firstweb.conf: Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in ...
Ved Nig's user avatar
0 votes
2 answers
428 views

How to implement multiple sites using same code on a single apache server?

I have a mod_cgi code "site.py" which is used to serve a website. I'm running several instances of this website on a single apache server, each instance has its own config file. Currently my apache ...
mgb's user avatar
  • 56
0 votes
1 answer
424 views

How to allow a Django application running on Apache to access a remote directory mounted with sshfs

I have a Django application that access a remote directory mounted with sshfs to upload files. The Django application has to read those files as well. The setup is running fine with the Django server (...
user2641103's user avatar
0 votes
0 answers
832 views

Django-cms mod_wsgi Compiled vs runtime python version

I am an apache novice... that being said. I'm trying to run through a tutorial for configuring django-cms. Everything works well enough when I'm using manage.py 's runserver, but now I want to run ...
hyleaus's user avatar
  • 101