Are you forcing the use of the main Python interpreter? https://modwsgi.readthedocs.io/en/master/user-guides/application-issues.html#python-simplified-gil-state-api <https://modwsgi.readthedocs.io/en/master/user-guides/application-issues.html#python-simplified-gil-state-api>
Likely their Python wrapper module isn't designed to work in Python sub interpreters. Also, are you using system Apache or mod_wsgi-express? Your configuration list is confusing since you mention multiple Apache versions as well as pip installed mod_wsgi and mod_wsgi-httpd packages. If you are using system Apache, you should not have mod_wsgi-httpd package installed and doing so could screw things up if trying to use mod_wsgi install against it with system Apache. Finally, are you using system Python packages, or Python from Python Software Foundation. You cannot use Anaconda Python if you want to be able to use SSL in Apache and Python. Graham > On 14 Oct 2020, at 10:23 pm, Manosh Padannayil <[email protected]> > wrote: > > Hello All, > I am getting the exact same issue reported in the below thread but for > Oracle Linux OS. > https://github.com/grpc/grpc/issues/13050 > > Issue: Python Grpc client service method does not return when called from > httpd on Oracle Linux. It works from eclipse in OSX. Works from python > terminal in Oracle Linux, fails only when it is called from within httpd in > Oracle Linux. > > Configuration > Oracle Linux 7.8 > httpd-2.4.41, 2.4.46 > Python 3.8.0, 3.9.0 > Django 2.2.6 > grpcio 1.32.0 > grpcio-tools 1.32.0 > mod-wsgi 4.7.1 > mod-wsgi-httpd 2.4.41.1 > > Pseudo code: > from my.service import my_service_pb2_grpc > with open('/path/to/pem/file', 'rb') as f: > trusted_certs = f.read() > with open('path/to/key/file', 'rb') as f: > cert_key = f.read() > cred = grpc.ssl_channel_credentials(root_certificate=trusted_certs, > private_key=cert_key, certificate_chain=trusted_certs) > channel = grpc.secure_channel('{}:{}'.format('server_url',443), cred) > stub = my_service_pb2_grpc.MyServiceStub(channel) > response = stub.MyMethod(MyRequest) > > I tried with options grpc.keepalive_timeout_ms and grpc.keepalive_time as > 10000, but no luck. > > Could anyone please help me on this? > > Thanks and Regards, > Manosh Padannayil > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/modwsgi/d50c82c4-0f9a-4d22-9c30-affac1877e3en%40googlegroups.com > > <https://groups.google.com/d/msgid/modwsgi/d50c82c4-0f9a-4d22-9c30-affac1877e3en%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/A143EED3-206F-4DB9-A727-B634375D2B14%40gmail.com.
