Hello to everyone,
I am facing a issue in deploying a TG2.4.3 application using mod_wsgi 4.9.0.
I made a lot of tests and I am starting to think that may be something wrong with TurboGears itself. As a first test I have been able to deploy a simple WSGI application (copy/past from the mod_wsgi documentation), apache is capale to successfully server the application.
Then I wrote a simple pastedeploy configuration:
use = egg:Paste#static
document_root = %(here)s/test
keys = root
app.wsgi content (from TG documentation):
APP_CONFIG = "/var/www/myapp/test.ini"
from paste.deploy import loadapp
application = loadapp('config:%s' % APP_CONFIG)
Again Apache starts with no error and is capable to server the statis content (Paste#static).
The problem arise when i start with mod_wsgi the Wiki20 quikstart project.
Using wsgiref (with gearbox) everything start perfectly fine, but it does not with Apache.
Some information of my setup:
Apache 2.4.52 (Debian)
Some line from my log:
[Mon Jan 31 09:44:03.730688 2022] [mpm_prefork:notice] [pid 39785] AH00163: Apache/2.4.52 (Debian) OpenSSL/1.1.1k mod_wsgi/4.9.0 Python/3.7 configured -- resuming normal operations
[Mon Jan 31 09:44:03.730770 2022] [core:notice] [pid 39785] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jan 31 09:44:03.916407 2022] [wsgi:info] [pid 39786] mod_wsgi (pid=39786): Attach interpreter ''.
[Mon Jan 31 09:44:03.990769 2022] [wsgi:info] [pid 39786] mod_wsgi (pid=39786): Adding '/var/www/myapp/venv/lib/python3.7/site-packages' to path.
[Mon Jan 31 09:44:04.013458 2022] [wsgi:info] [pid 39786] mod_wsgi (pid=39786): Imported 'mod_wsgi'.
[Mon Jan 31 09:44:04.013526 2022] [wsgi:info] [pid 39786] mod_wsgi (pid=39786, process='myapp', application=''): Loading Python script file '/var/www/myapp/wiki20/app.wsgi'.
mremap_chunk(): invalid pointer
On this configuration instead i am facing no issue:
Apache 2.4.25 (Debian)
Is someone facing the same issue?
Thanks all for reading.