Re: [modwsgi] Apachectl Graceful issue

2024-08-07 Thread Graham Dumpleton
more or less like 10. The most of the configuration script is similar I just want to use some think like mod_env and use setenv variables to dynamically assign the values.RajKumarOn Thursday 8 August 2024 at 10:19:50 UTC+5:30 Graham Dumpleton wrote:Not like that.If your aim is to have a spare set of

Re: [modwsgi] Apachectl Graceful issue

2024-07-30 Thread Graham Dumpleton
>> does this effect my resources like memory and CPU. >> On Monday 29 July 2024 at 12:45:21 UTC+5:30 Graham Dumpleton wrote: >>> Comes down to how much memory and CPU your machine has, plus how much >>> traffic the sites get. So will depend and you will just have to s

Re: [modwsgi] Apachectl Graceful issue

2024-07-29 Thread Graham Dumpleton
> >> Thankyou, >> RajKumar >> >> On Thursday 25 July 2024 at 12:59:13 UTC+5:30 Graham Dumpleton wrote: >>> You have two different directories which may complicate it a little, but >>> what you can do is have something like: >

Re: [modwsgi] Apachectl Graceful issue

2024-07-25 Thread Graham Dumpleton
ou, > RajKumar > > On Thursday 25 July 2024 at 12:35:09 UTC+5:30 Graham Dumpleton wrote: >> Are you always using the same two virtual host server names and just >> updating the version number in the paths? >> >> >>> On 25 Jul 2024, at 4:21 PM, RajKumar Am

Re: [modwsgi] Apachectl Graceful issue

2024-07-25 Thread Graham Dumpleton
; recognized by apache server where as second one is not yet recognized by > apache server > > Thankyou, > RajKumar > > On Thursday 25 July 2024 at 11:40:31 UTC+5:30 Graham Dumpleton wrote: >> What is the reason for doing the graceful restart? Is it because you are >> add

Re: [modwsgi] Apachectl Graceful issue

2024-07-24 Thread Graham Dumpleton
rvices very light weight each listen to http request on > unique ports. > > ThankYou > RajKumar > > On Tuesday 23 July 2024 at 16:37:42 UTC+5:30 Graham Dumpleton wrote: >> One can optimise embedded mode for better performance, but I would put a big >> caveat on that

Re: [modwsgi] Apachectl Graceful issue

2024-07-23 Thread Graham Dumpleton
well in that you mentioned if we configure mpm > settings correctly then mod_wsgi in embedded mode is better than daemon mode > but not mentioned any configurations. > > Thanking you, > RajKumar > > On Tuesday 23 July 2024 at 13:04:50 UTC+5:30 Graham Dumpleton wrot

Re: [modwsgi] Apachectl Graceful issue

2024-07-23 Thread Graham Dumpleton
> On 23 Jul 2024, at 4:09 PM, RajKumar Ambadipelli wrote: > > I am using Apache Server with mod_wsgi for hosting my python django > applications. Versions: Python 3.9.18 Server version: Apache/2.4.57 > mod-wsgi==4.7.1 > > One of my application virtual host configuration with two different ve

Re: [modwsgi] Module Failed when Configure With WSGI

2024-06-06 Thread Graham Dumpleton
What does your mod_wsgi configuration in Apache look like? Is the mod_wsgi you are using definitely been compiled for Python 3.9? This issue may be caused by one of the following: * A permissions issue where the directory/files for the Python virtual environment are not all readable by the user

Re: [modwsgi] mod_wsgi fails on import, using system Python not venv

2024-05-13 Thread Graham Dumpleton
ote: >> >> On Sun, May 12, 2024 at 11:19 PM Graham Dumpleton >> wrote: >>> >>> The mod_wsgi.so specified by LoadFile is what dictates version (and in what >>> location) of Python is being used. >>> >>> Right now you are using one u

Re: [modwsgi] mod_wsgi fails on import, using system Python not venv

2024-05-12 Thread Graham Dumpleton
at 4:10 PM, A McBain wrote: > > On Sun, May 12, 2024 at 11:08 PM A McBain <mailto:mcbain@gmail.com>> wrote: >> >> >> >> On Sun, May 12, 2024 at 10:57 PM Graham Dumpleton >> wrote: >>> >>> Ensure you do a complete stop and st

Re: [modwsgi] mod_wsgi fails on import, using system Python not venv

2024-05-12 Thread Graham Dumpleton
t; > On Sun, May 12, 2024 at 10:22 PM A McBain <mailto:mcbain@gmail.com>> wrote: >> >> On Sun, May 12, 2024 at 10:05 PM A McBain wrote: >>> >>> On Sun, May 12, 2024 at 9:47 PM Graham Dumpleton >>> wrote: >>>> >>>

Re: [modwsgi] mod_wsgi fails on import, using system Python not venv

2024-05-12 Thread Graham Dumpleton
;/usr/lib/python311.zip', > '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', > '/home/asmcbain/enfilade/.env/lib/python3.11/site-packages'] > > Alastair > > On Sun, May 12, 2024 at 9:24 PM Graham Dumpleton <mailto:graham.dumple...@gm

Re: [modwsgi] mod_wsgi fails on import, using system Python not venv

2024-05-12 Thread Graham Dumpleton
On 13 May 2024, at 2:02 PM, A McBain wrote: > > Hi, I looked at previous messages and others on StackOverflow but none seem > to solve my issue. > > I have an app I wrote working perfectly fine under Python 3.11 with mod_wsgi > and Apache 2. > > I did a bunch of development on the app (upgra

Re: [modwsgi] Multiple flask projects not running using mod_wsgi

2024-05-11 Thread Graham Dumpleton
As per the message it seems you are using a Python module that is not designed to be used in multiple sub interpreters of the same process and even has an explicit check to stop you from trying. Not really much you can do about it as Apache on Windows doesn’t support multi process.Hat is the module

Re: [modwsgi] Correlation between mod_wsgi Daemon Processes and apache mpm_worker

2024-03-26 Thread Graham Dumpleton
;> >> >> >> >> Servername help.redacted.io >> ErrorLog "/var/log/apache2/help_error_log.log" >> CustomLog "/var/log/apache2/help_access_log.log" common >> >> SSLProxyEngine on >> SSLProxyVerifyDepth 10 >> SSLProxyCh

Re: [modwsgi] pip can not install mod_wsgi

2024-03-26 Thread Graham Dumpleton
sure, would this be a > problem? As far as I know I’ve done it through command lines on terminal. > > Thanks, > Bashaar > On Tuesday 26 March 2024 at 10:40:46 UTC Graham Dumpleton wrote: > >> Whose Python and Apache distributions are they? >> >> On macOS you shoul

Re: [modwsgi] pip can not install mod_wsgi

2024-03-26 Thread Graham Dumpleton
ython@3.9/Frameworks/Python.framework/Versions/3.9/lib > -L/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config > -lpython3.9 > ld: warning: directory not found for option > '-L/usr/local/opt/python@3.9 > /Frameworks/Python.framework/Versio

Re: [modwsgi] pip can not install mod_wsgi

2024-03-26 Thread Graham Dumpleton
You need to provide the complete output from pip, not just the last message otherwise I can't tell what the problem is. Most likely you are either missing the Python dev package, missing a compiler, or missing system Apache runtime and/or dev package. The requirements for what you need are mentio

Re: [modwsgi] mod_wsgi script encodings (and other issues with mod_wsgi script loading)

2024-03-21 Thread Graham Dumpleton
the Python code in the zipapp's > __main__.py. Should I file a bug against mod_wsgi regarding its lack of > support for what is normal Python functionality in every other context (not > just imported modules)? > > On Thursday, March 21, 2024 at 9:00:35 PM UTC-5 Graham Dumpleton

Re: [modwsgi] mod_wsgi script encodings (and other issues with mod_wsgi script loading)

2024-03-21 Thread Graham Dumpleton
Depends a little bit on whether you are using embedded mode or daemon mode of mod_wsgi, or whether using mod_wsgi-express. The Python embedded in Apache when not using mod_wsgi-express should by default inherit the system default locale. This is often the C or POSIX locale from memory and not any

Re: [modwsgi] Django site doesn't run after machine rebuild using 4.9.0

2024-03-02 Thread Graham Dumpleton
Keep in mind that if you have a WSGI file in at the location: /data/www/wikidataDiscovery/wikidataDiscovery/wsgi.py it is not sufficient that the file /data/www/wikidataDiscovery/wikidataDiscovery/wsgi.py be readable. It is also necessary that all the parent directories down to that location are

Re: [modwsgi] print() output not appearing in apache error.log with Python 3

2024-02-29 Thread Graham Dumpleton
Have you tried just a WSGI hello world with print() statements in it to make sure nothing about any framework used is interfering. import sys def application(environ, start_response): status = '200 OK' output = b'Hello World!' print("Hi there!") print("Send to stdout explicitly"

Re: [modwsgi] How to tell which version of mod_wsgi Apache is using?

2024-02-04 Thread Graham Dumpleton
i I'm using. What > am I missing? > > On Sun, Feb 4, 2024, 20:24 Graham Dumpleton <mailto:graham.dumple...@gmail.com>> wrote: >> See documentation at: >> >> Checking Your Installation — mod_wsgi 5.0.0 documentation >> modwsgi.readthedocs.io >>

Re: [modwsgi] How to tell which version of mod_wsgi Apache is using?

2024-02-04 Thread Graham Dumpleton
See documentation at: https://modwsgi.readthedocs.io/en/master/user-guides/checking-your-installation.html#python-installation-in-use > On 4 Feb 2024, at 10:59 pm, Olof S wrote: > > Thank you so much for mod_wsgi! > > How can I tell which version of mod_wsgi is in use? Someone else set up the

Re: [modwsgi] running 5.0.0 on Rocky Linux 9

2024-01-25 Thread Graham Dumpleton
Looks about normal for RH based Linux variants. The compiler development tool suite may well have got installed automatically when installed python3-devel as should have been a dependency on it. > On 26 Jan 2024, at 6:41 am, Steve Grubb wrote: > > Today I was able to stand up apache with mod_w

Re: [modwsgi] I am unable to install mod_wsgi in windows 11

2024-01-19 Thread Graham Dumpleton
; >> On Sat, 20 Jan 2024 at 11:07, Ananth Mandli > <mailto:mandliana...@gmail.com>> wrote: >>> I am using >>> ==> Python 3.11.1 >>> ==>Apache24 >>> ==>Microsoft visual c++ 2015-2022 redistributable >>> >>> On Sat, 20 J

Re: [modwsgi] I am unable to install mod_wsgi in windows 11

2024-01-19 Thread Graham Dumpleton
redistributable > > On Sat, 20 Jan 2024 at 01:29, Graham Dumpleton <mailto:graham.dumple...@gmail.com>> wrote: >> This error generally indicates you have the wrong version or a badly >> installed version of the Microsoft Visual Studio build tools. >> >>

Re: [modwsgi] I am unable to install mod_wsgi in windows 11

2024-01-19 Thread Graham Dumpleton
This error generally indicates you have the wrong version or a badly installed version of the Microsoft Visual Studio build tools. Try reinstalling Visual Studio Build Tools, making sure it is the correct version for the version of Python you are using. Since you are using an older version of P

Re: [modwsgi] Using write with large amounts of data causing disconnects

2024-01-11 Thread Graham Dumpleton
sendfile feature have to also have the directive enabled. Can't remember if also need to add: EnableSendfile On to enable it in Apache itself. I don't think so. Graham > On 12 Jan 2024, at 9:14 am, Graham Dumpleton > wrote: > > Also not sure whether it will help o

Re: [modwsgi] Using write with large amounts of data causing disconnects

2024-01-11 Thread Graham Dumpleton
> > Thank you for taking the time to answer my questions! I very much appreciate > the assistance! > > On Wednesday, January 10, 2024 at 3:38:51 PM UTC-6 Graham Dumpleton wrote: >> So what you are encountering is limitations in the socket buffer size >> enforced by the o

Re: [modwsgi] Using write with large amounts of data causing disconnects

2024-01-10 Thread Graham Dumpleton
p wrote: > > embedded > > On Wednesday, January 10, 2024 at 1:32:52 PM UTC-6 Graham Dumpleton wrote: >> Are you using mod_wsgi embedded mode or daemon mode? >> >> Graham >> >> >>> On 11 Jan 2024, at 2:44 am, Greg Popp > wrote: >>>

Re: [modwsgi] Using write with large amounts of data causing disconnects

2024-01-10 Thread Graham Dumpleton
Are you using mod_wsgi embedded mode or daemon mode? Graham > On 11 Jan 2024, at 2:44 am, Greg Popp wrote: > > Hello! > > My version of mod_wsgi is running on a Centos-7 system and is at version 3.4, > (I know - very old) with python 2.7 > > I have been using mod_wsgi for a python applicatio

Re: [modwsgi] mod_wsgi-express: command not found

2023-12-14 Thread Graham Dumpleton
ache/2.4.41 (Ubuntu) OpenSSL/1.1.1f > mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations > [Thu Dec 14 20:29:36.801010 2023] [core:notice] [pid 1313721:tid > 140180280511552] AH00094: Command line: '/usr/sbin/apache2' > ``` > > The mod_wsgi operatin

Re: [modwsgi] Correlation between mod_wsgi Daemon Processes and apache mpm_worker

2023-12-14 Thread Graham Dumpleton
error. So maybe you do have it correct. Note another video to watch which touches on performance is: https://www.youtube.com/watch?v=SGleKfigMsk Using benchmarks to understand how WSGI servers work. by Graham Dumpleton youtube.com BTW, make sure you have: WSGIRestrictEmbedded On set in

Re: [modwsgi] mod_wsgi-express: command not found

2023-12-14 Thread Graham Dumpleton
> On 14 Dec 2023, at 9:42 pm, Graham Dumpleton > wrote: > > If using pip install version of mod_wsgi, make sure that you haven't > installed operating system package for mod_wsgi and have configuration using > that still laying around. In other words, you should also

Re: [modwsgi] mod_wsgi-express: command not found

2023-12-14 Thread Graham Dumpleton
.so > <http://mod_wsgi-py311.cpython-311-x86_64-linux-gnu.so/>" > ``` > > I replaced LOAD_MODULE with... > However, the web server that was previously working does not work at all even > after restarting. > ``` > # vi /etc/apache2/sites-enabled/000-default

Re: [modwsgi] mod_wsgi-express: command not found

2023-12-14 Thread Graham Dumpleton
The mod_wsgi-express command is available when installing mod_wsgi using pip. See: https://pypi.org/project/mod-wsgi/ mod-wsgi pypi.org and watch: https://www.youtube.com/watch?v=CPz0s1CQsTE&t=5s Graham Dumpleton - Secrets of a WSGI master. - PyCon 2018 youtube.com If you want to

Re: [modwsgi] Correlation between mod_wsgi Daemon Processes and apache mpm_worker

2023-12-13 Thread Graham Dumpleton
BTW the location given in python-path, second argument to WSGIScriptAlias and argument to Directory directive are supposed to be absolute paths, not relative. Use of a relative path might cause incorrect results. For a virtual environment you should not use python-path like that anyway. Instead

Re: [modwsgi] Correlation between mod_wsgi Daemon Processes and apache mpm_worker

2023-12-13 Thread Graham Dumpleton
You are missing WSGIProcessGroup directive or process-group option to WSGIScriptAlias, so you aren't even delegating requests to be handled by the mod_wsgi daemon process group. That will be in part why things are not making sense. For more background go watch: https://www.youtube.com/watch?v=

Re: [modwsgi] Inquiry about Possible Cache Mechanism or Issue in mod_wsgi with ApacheServer and Django

2023-12-05 Thread Graham Dumpleton
;C:/Program Files/myproject/myapp/staticfiles" > > AllowOverride None > Options None > Require all granted > > > > > Header unset ETag > Header set Cache-Control "max-age=0, no-cache, no-store, > must-revalidate" > Hea

Re: [modwsgi] Inquiry about Possible Cache Mechanism or Issue in mod_wsgi with ApacheServer and Django

2023-12-04 Thread Graham Dumpleton
There may not be only a single object because of how you have configured Apache/mod_wsgi. Read: * https://modwsgi.readthedocs.io/en/master/user-guides/processes-and-threading.html Then post your configuration so can see whether you are using embedded mode or daemon mode of mod_wsgi, and if th

Re: [modwsgi] Trac

2023-11-30 Thread Graham Dumpleton
ri, Dec 1, 2023 at 5:42 Graham Dumpleton > wrote: > >> You should not use mod_wsgi-standalone package. You should use the >> standard mod_wsgi package and ensure that system Apache development package >> is installed so that mod_wsgi is compiled against and uses it in

Re: [modwsgi] Trac

2023-11-30 Thread Graham Dumpleton
You should not use mod_wsgi-standalone package. You should use the standard mod_wsgi package and ensure that system Apache development package is installed so that mod_wsgi is compiled against and uses it instead. Next is that Trac provides only instructions for integrating with system Apache a

Re: [modwsgi] Apache mod_wsgi python server is giving 503

2023-10-18 Thread Graham Dumpleton
Can you supply the full log messages below from Apache error log with any prefixes so I can identify what output them. The mod_wsgi code does emit a message "Python has shutdown", but doesn't emit a message "Connection closed to child with abortive shutdown". So is important that can see the fu

Re: [modwsgi] How to authenticate against Django’s user database from Apache

2023-09-06 Thread Graham Dumpleton
What errors are logged to the Apache error log? What does the Python code you have added look like? What does the Apache configuration you have added look like? Without more information it is hard to guess what the issue may be. Graham > On 7 Sep 2023, at 2:21 am, Marcel Müller wrote: > > Hi

Re: [modwsgi] modwsgi installation in python 2.7

2023-08-10 Thread Graham Dumpleton
The Apache distribution you are using is either not 64bit, or is not packaged up to include the bits that would allow compilation of Apache extensions modules. The latter is quite common with xampp distributions of Apache. It is strongly recommended you use the Apache Lounge distribution of Apac

Re: [modwsgi] Https for flask deployment

2023-05-15 Thread Graham Dumpleton
That port 5000 is mentioned makes it look like the HTML code of the page requesting the image is hardwiring port 5000. Apache/mod_wsgi shouldn't be generating that since it isn't set up to use that port. That or the Flask config mentions port 5000 somewhere and that is used in generating URLs.

Re: [modwsgi] Need help on mod_wsgi module installation in Oracle HTTP Server

2023-05-05 Thread Graham Dumpleton
General documentation for mod_wsgi can be found at: https://modwsgi.readthedocs.io/en/master/ Details of using pip to install mod_wsgi can be found at: https://pypi.org/project/mod-wsgi/ mod-wsgi pypi.org Django specific instructions can be found at: https://docs.djangoproject.com/en/4.2/how

Re: [modwsgi] Timeout error for flask app

2023-04-29 Thread Graham Dumpleton
like this is generally not a good idea. Graham > On 30 Apr 2023, at 2:27 pm, Aash wrote: > > I never changed it. It shows 300. Should I make it to 600? > > On Saturday, April 29, 2023 at 9:21:15 PM UTC-7 Graham Dumpleton wrote: >> What is the Timeout directive set t

Re: [modwsgi] Timeout error for flask app

2023-04-29 Thread Graham Dumpleton
ests that > are having longer lists. > > On Saturday, April 29, 2023 at 9:10:01 PM UTC-7 Graham Dumpleton wrote: >> How long does it usually take for the remote API to respond? Does it always >> respond quickly, or can it take a very long time? Does this error occur on >&

Re: [modwsgi] Timeout error for flask app

2023-04-29 Thread Graham Dumpleton
How long does it usually take for the remote API to respond? Does it always respond quickly, or can it take a very long time? Does this error occur on every request, or only after your web application has been running for a while? > On 30 Apr 2023, at 2:04 pm, Aash wrote: > > I am trying to ho

Re: [modwsgi] mod_wsgi permission error on activate file

2023-04-17 Thread Graham Dumpleton
For the database, just make sure not using a relative path to its location. Calculate an absolute path as otherwise it placement will be dictated what the current working directory Apache runs as, which may not be a desirable location. See: https://modwsgi.readthedocs.io/en/master/user-guides/a

Re: [modwsgi] mod_wsgi permission error on activate file

2023-04-16 Thread Graham Dumpleton
Home directories on Linux distributions are often not accessible to other users. So changing permissions of directories/files under the home directory doesn't help since can't see into the actual home directory. You preferably should not stick your project code under a user home directory. That

Re: [modwsgi] Install mod_wsgi error

2023-04-04 Thread Graham Dumpleton
Depends on how you want to use it. If you want to install a system package for Apache/mod_wsgi you will need to refer to your operating system packaging guides for how to install it. Once you have the system package installed, you can manually configure the system Apache by following mod_wsgi d

Re: [modwsgi] Failed to fetch jessie packages

2023-04-04 Thread Graham Dumpleton
Think you may have the wrong list for this. This seems to be a general Debian question and not specific to mod_wsgi. Suggest you ask on StackOverflow. Graham > On 29 Mar 2023, at 12:07 am, arun krishna > wrote: > > while making docker build apt-get update failed with below error > > Err http

Re: [modwsgi] Timeout when reading response header from daemon process.

2023-02-08 Thread Graham Dumpleton
? Graham > On 9 Feb 2023, at 7:22 am, Graham Dumpleton > wrote: > > More specifically, if you look at the stack trace you see: > > #6 0x7f68aefe6292 in PyEval_RestoreThread () from > target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 > #7 0x7f68af02f1dc in P

Re: [modwsgi] Timeout when reading response header from daemon process.

2023-02-08 Thread Graham Dumpleton
-state-api So need to find the code for that function in sqlite module and work out what it does. Graham > On 9 Feb 2023, at 7:09 am, Graham Dumpleton > wrote: > > The key bit of information in that is the call to > sqlite3LeaveMutexAndCloseZombie(). It looks like sqlite modul

Re: [modwsgi] Timeout when reading response header from daemon process.

2023-02-08 Thread Graham Dumpleton
7f68af739a00 in clone3 () at > ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 > > Thread 2 (Thread 0x7f68ae6fb640 (LWP 60532) "apache2"): > #0 0x7f68af72e7ed in __GI___select (nfds=0, readfds=0x0, writefds=0x0, > exceptfds=0x0, timeout=0x7f68ae6fad60) at > ../sysd

Re: [modwsgi] Error building on MacOS

2023-02-07 Thread Graham Dumpleton
build a custom Apache. > > Thanks. > > -- Gnarlie > On Tuesday, February 7, 2023 at 2:53:29 PM UTC-7 Graham Dumpleton wrote: >> It may have default prefork configured, but you should be able to >> dynamically override that through configuration to either worker or event >> M

Re: [modwsgi] Error building on MacOS

2023-02-07 Thread Graham Dumpleton
macports.org/port/mod_wsgi/details/ but it says unverified for >> ARM64 processor. Will give it a try and report back if it works >> >> -- Gnarlie >> >> On Tuesday, February 7, 2023 at 12:09:10 AM UTC-7 Graham Dumpleton wrote: >>> You can't use configu

Re: [modwsgi] Timeout when reading response header from daemon process.

2023-02-07 Thread Graham Dumpleton
/debugging-techniques.html#debugging-crashes-with-gdb That may give some clues. Graham > On 8 Feb 2023, at 8:42 am, Graham Dumpleton > wrote: > > Is any of your code using ctypes module for Apache, or any other module which > is used to call into C code by writing Python code on

Re: [modwsgi] Timeout when reading response header from daemon process.

2023-02-07 Thread Graham Dumpleton
itionally looked into the > directories also in many other ways to make sure that I didn't run a wrong > search. Hmmm. > > Best regards, > Carsten > > > Am 07.02.23 um 00:55 schrieb Graham Dumpleton: >> Go into the lib/python3.10/site-packages directory of y

Re: [modwsgi] Error building on MacOS

2023-02-06 Thread Graham Dumpleton
You can't use configure/make/make install (CMMI) method to install on macOS if is system Apache httpd as Apple supplied Apache httpd is broken. Installing from upstream Apache httpd source code also will not work. You need to install Apache httpd using Homebrew and use that instead if want to us

Re: [modwsgi] Timeout when reading response header from daemon process.

2023-02-06 Thread Graham Dumpleton
f-hallcam-site'. > [Mon Feb 06 21:05:29.082193 2023] [wsgi:info] [pid 25846:tid 140714434877312] > mod_wsgi (pid=25846): Shutdown requested 'cf-hallcam-site'. > [Mon Feb 06 21:05:34.082447 2023] [wsgi:info] [pid 25846:tid 140714177934912] > mod_wsgi (pid=25846): Aborting p

Re: [modwsgi] Timeout when reading response header from daemon process.

2023-02-05 Thread Graham Dumpleton
stall it. However, I experience the same problem. >> >> Adding `WSGIApplicationGroup %{GLOBAL}` solved the problem, but I am still >> concerned because the site worked well with the older Ubuntu 20.04 LTS and I >> would prefer to not mask a potential problem a

Re: [modwsgi] Timeout when reading response header from daemon process.

2023-01-23 Thread Graham Dumpleton
Your configuration means only a single request can be handled at a time by the daemon process, so if you have a very long running request, any other requests would block waiting. Even if not a long running request, a problem may be that you are using a Python package that isn't designed to work

Re: [modwsgi] wsgi: module not found 'django' error when deploying via apache

2022-12-29 Thread Graham Dumpleton
> On 30 Dec 2022, at 4:34 am, Sam Johnson wrote: > > I have been trying forever to get my django api to deploy correctly via > apache on my new ec2 instance running amazon linux 2. I have installed > python3-mod_wsgi.x86_64 and my venv is using python 3.7.15. Trying to go to > my django app

Re: [modwsgi] Trouble accessing static files via url in browser

2022-12-23 Thread Graham Dumpleton
;> 2022-12-23 17:56:40 >>> Error >>> 192.88.134.10 >>> 404 >>> GET /google6821620603f54cd0.html >>> <https://50.62.181.212/smb/file-manager/code-editor?currentDir=%2Fhttpdocs%2F&subscriptionId=1&file=google6821620603f54cd0.html&re

Re: [modwsgi] Trouble accessing static files via url in browser

2022-12-22 Thread Graham Dumpleton
0603f54cd0.html > /home/nuvroot/google6821620603f54cd0.html > # I also tried > #Alias /google6821620603f54cd0.html /home/google6821620603f54cd0.html > > ErrorLog ${APACHE_LOG_DIR}/error.log > CustomLog ${APACHE_LOG_DIR}/access.log combined > > > > Thanks,

Re: [modwsgi] Trouble accessing static files via url in browser

2022-12-22 Thread Graham Dumpleton
You use "/home/google6821620603f54cd0.html" as the target of the URL path where it should be: Alias /google6821620603f54cd0.html /home/nuvroot/WWWsiteServer/static/content/google6821620603f54cd0.html based on what directory you said it was in. If that still doesn't work then the issue may

[modwsgi] Re: configure: error: Apache tool 'apxs' or 'apxs2' is required to build mod_wsgi but httpd24-httpd-devel.x86_64 is installed

2022-12-12 Thread Graham Dumpleton
Red Hat SCL packages are not installed in standard locations. You have to add the bin directory for the specific Red Hat SCL package to your PATH, or when configuring/building mod_wsgi supply the --with-apxs option to tell it where the "apxs" or "apxs2" script is installed. I don't remember wher

Re: [modwsgi] Random segfaults of quiescent mod_wsgi processes

2022-10-30 Thread Graham Dumpleton
problem: with no incoming requests at all the mod_wsgi > process after sitting there for anywhere from a few minutes to a few hours, > dies with a segmentation fault. Any idea what else I could look at? > On Wednesday, October 26, 2022 at 12:10:38 AM UTC-6 Graham Dumpleton wrote: > T

Re: [modwsgi] Logging with multiple processes

2022-10-27 Thread Graham Dumpleton
it avoids interleaving. Do be aware that Apache caps individual log messages at about 8000 bytes. If you can't loose log message content beyond that, you shouldn't rely on Apache logging. Depending on your requirements, you may be better off using log event capture using servi

Re: [modwsgi] Logging with multiple processes

2022-10-26 Thread Graham Dumpleton
Most people would just log to stdout/stderr which means log output gets routed into the Apache error log files. Apache's mechanism for handling log files when multiple processes are present seems to work fine. If you have multiple sites on the Apache server then configure Apache to use different

Re: [modwsgi] Random segfaults of quiescent mod_wsgi processes

2022-10-25 Thread Graham Dumpleton
7;m not sure that will fly. > > I'll look into the possibility of errant app threads and post back if > anything turns up. Thanks very much for your help with this. >> On Tuesday, October 25, 2022 at 11:05:28 PM UTC-6 Graham Dumpleton wrote: >> The only way I can think

Re: [modwsgi] Random segfaults of quiescent mod_wsgi processes

2022-10-25 Thread Graham Dumpleton
d_wsgi > housekeeping threads runs? I would like if possible to rule this out or at > least put at the bottom of the list. > On Tuesday, October 25, 2022 at 8:35:07 PM UTC-6 Graham Dumpleton wrote: > I know you said you were using mod_wsgi/4.9.4, but are you absolutely sure? >

Re: [modwsgi] Random segfaults of quiescent mod_wsgi processes

2022-10-25 Thread Graham Dumpleton
rking on the python thread hypothesis (this is a production > server so changes aren't easy.) > On Sunday, October 23, 2022 at 2:12:02 PM UTC-6 Graham Dumpleton wrote: > How much memory do the processes use? Maybe the system OOM process killer is > killing the processes as they consu

Re: [modwsgi] HOWTO: configure apache with UserDir and WSGI

2022-10-23 Thread Graham Dumpleton
What happens if you use: os.environ["DASH_URL_BASE_PATHNAME"] = '/~mec/dash101/app.wsgi' > On 22 Oct 2022, at 7:44 pm, Malcolm Cook wrote: > > On Friday, October 21, 2022 at 3:23:00 AM UTC-5 Graham Dumpleton wrote: > >> On 21 Oct 2022, at 6:40 pm

Re: [modwsgi] Random segfaults of quiescent mod_wsgi processes

2022-10-23 Thread Graham Dumpleton
de > any useful info? Apache, mod_wsgi and the other web server components were > all built there (ie, they are not from distro-supplied packages.) Are the > symptoms consistent with a mismatched library or some other build > configuration issue? Or conversely, maybe they make tha

Re: [modwsgi] Random segfaults of quiescent mod_wsgi processes

2022-10-21 Thread Graham Dumpleton
with > uid=33, gid=33 and threads=10. > > and these are followed/interleaved with the "Initializing Python" and "Attach > interpreter" messages but after server startup the messages are limited to > the sets of three I showed: "Initializing Python"

Re: [modwsgi] HOWTO: configure apache with UserDir and WSGI

2022-10-21 Thread Graham Dumpleton
> On 21 Oct 2022, at 6:40 pm, Malcolm Cook wrote: > > Hello, > > I have configured apache2 for running any .wsgi apps out of ~/public_html > > It works for a simple ~/public_html/hello_world.wsgi > > Hooray! > > However, I am having trouble when my app uses > > /usr/bin/python3 -m ven

Re: [modwsgi] Random segfaults of quiescent mod_wsgi processes

2022-10-16 Thread Graham Dumpleton
What other mod_wsgi configuration is there besides the WSGIDaemonProcess directive? That alone only creates a mod_wsgi daemon process group, but does not tell mod_wsgi to use it. Thus cannot tell whether you are using embedded mode or daemon mode. The logs are also odd in that would expect to se

Re: [modwsgi] SSLError("Can't connect to HTTPS URL because the SSL module is not available.")

2022-10-13 Thread Graham Dumpleton
; handle requests so I think mod_ssl has to stay. > > Do you know a way to recompile apache ssl module to match python's? For > windows? I see lots of linux solutions for this. > > > > > > On Thursday, October 13, 2022 at 7:47:27 PM UTC-4 Graham Dumpleto

Re: [modwsgi] SSLError("Can't connect to HTTPS URL because the SSL module is not available.")

2022-10-13 Thread Graham Dumpleton
, Jan 17 2022, 15:01:48) [MSC v.1929 32 > bit (Intel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import ssl > >>> print(ssl) > > >>> > > Let me know if you have any ideas w

Re: [modwsgi] SSLError("Can't connect to HTTPS URL because the SSL module is not available.")

2022-10-13 Thread Graham Dumpleton
Am assuming this has been resolved since you closed the issue you created. https://github.com/GrahamDumpleton/mod_wsgi/issues/800 Yes/No? Be aware that using Anaconda Python with mod_wsgi causes all sorts of problems with SSL library usa

Re: [modwsgi] Forbidden You don't have permission to access / on this server.

2022-09-30 Thread Graham Dumpleton
Don't put your files under the root user home directory. The permissions on /root don't allow other users to look into the directory, meaning the Apache user that the Apache processes run as cannot look into that directory. Note that the permissions on /root should NOT be changed. Put your proje

Re: [modwsgi] ImportError caused by wrong library path in flask app using WSGI daemon

2022-09-13 Thread Graham Dumpleton
he reason > for using conda was to easily get a newer version of python than the RHEL > system comes packaged with. As long as I did not miss a step in any of your > suggestions, perhaps there is not a good way to get this to work. > > On Monday, September 5, 2022 at 4:47:29 PM UTC

Re: [modwsgi] Apache server goes down multiple times a week

2022-09-12 Thread Graham Dumpleton
les, then a different request could change it > before you got to use it." > > My goal is having environmental variables inside my virtual host and pass > them to the Django app. I tried this using the environment variables files > that Linux uses but I was never successfu

Re: [modwsgi] Apache server goes down multiple times a week

2022-09-11 Thread Graham Dumpleton
gt; > Thanks, > Juan Khawly > > > > > On Friday, September 9, 2022 at 9:57:06 PM UTC-4 Graham Dumpleton wrote: > Be aware that what you are doing is not technically safe because environment > variables are global and so if different URLs ended up in different

Re: [modwsgi] Apache server goes down multiple times a week

2022-09-09 Thread Graham Dumpleton
on a forum and it worked and never expected > that it would yield on such consequences. > > Do you have any suggestion on the right way to do this ? I remember testing > multiple options and this was the only one that worked. > > Thanks, > Juan Khawly > > > >

Re: [modwsgi] Apache server goes down multiple times a week

2022-09-09 Thread Graham Dumpleton
the DaemonProcess and LogLevel info to the virtual > host. I will be monitoring the the logs and report back in a couple days for > reference. > > Appreciate your help. > Juan Khawly > > On Wednesday, September 7, 2022 at 6:30:17 PM UTC-4 Graham Dumpleton wrote: > &g

Re: [modwsgi] Apache server goes down multiple times a week

2022-09-07 Thread Graham Dumpleton
re useful information out of mod_wsgi. > Thanks > Juan Khawly > > On Tuesday, September 6, 2022 at 6:04:39 PM UTC-4 Graham Dumpleton wrote: > Sorry, seems I didn't see your update. > > Add an option: > > request-timeout=60 > > to the WSGIDaemonProcess. >

Re: [modwsgi] Apache server goes down multiple times a week

2022-09-06 Thread Graham Dumpleton
SGI > daemon process ' my_project ' on '/var/run/apache2/wsgi.2385.1.1.sock' after > multiple attempts as listener backlog limit was exceeded or the socket does > not exist. > > > > Thanks, > Juan Khawly > > On Thursday, September

Re: [modwsgi] ImportError caused by wrong library path in flask app using WSGI daemon

2022-09-05 Thread Graham Dumpleton
Conda distributions of Python don't play nicely with embedded systems because they ship their own versions of common libraries which are also shipped with the operating system, but where the Conda version can be an incompatible version. This causes problems when Python is being embedded in an a

Re: [modwsgi] Apache server goes down multiple times a week

2022-09-01 Thread Graham Dumpleton
Would need to see the mod_wsgi configuration you are using to configure the WSGI application, including how WSGIDaemonProcess is configured and whether you are using WSGIApplicationGroup. Also, what errors are in the Apache error log when the 503 errors occur. > On 2 Sep 2022, at 4:57 am, Juan

Re: [modwsgi] WSGI error Truncated or oversized response headers received from daemon process

2022-08-24 Thread Graham Dumpleton
use I don't see anything like 'Out of > memory allocated' in the Apache logs recently: > > > > Thanks for the help, I don't know much about wsgi. > > El miércoles, 24 de agosto de 2022 a las 16:58:41 UTC-5, Graham Dumpleton > escribió: > Nope. The probl

Re: [modwsgi] WSGI error Truncated or oversized response headers received from daemon process

2022-08-24 Thread Graham Dumpleton
, the server updates packages daily > Server version: Apache/2.4.29 (Ubuntu) > > Server built: 2022-06-23T12:51:37 > > Do you think that could be the reason? > > > El miércoles, 24 de agosto de 2022 a las 15:18:46 UTC-5, Graham Dumpleton > escribió: > Did you by c

Re: [modwsgi] WSGI error Truncated or oversized response headers received from daemon process

2022-08-24 Thread Graham Dumpleton
Did you by chance just update to latest Apache version? Is it occurring when a POST request is done with content over 1Gi in size? What other updates to packages have you done recently? Graham > On 25 Aug 2022, at 6:16 am, Jose Luis Arrioja > wrote: > > Hi, > Recently, my project report a 'T

Re: [modwsgi] Q: Double-encoded environment variables?

2022-08-18 Thread Graham Dumpleton
te the same. raw_unicode_escape Latin-1 encoding with \u and \U for other code points. Existing backslashes are not escaped in any way. It is used in the Python pickle protocol. I would stick with plain Latin-1. > On 18 Aug 2022, at 7:25 pm, 'albrecht.dr...@arcor.de' via mod

  1   2   3   4   5   6   7   8   9   10   >