Estes são os erros do arquivo error_log:

[Qui Dez 13 10:53:30 PM] [suexec: notice] [pid 62622] AH01232: mecanismo
suEXEC ativado (wrapper: / usr / sbin / suexec)
[Qui Dez 13 10: 53: 31.021746 2018] [auth_digest: notice] [pid 62622]
AH01757: gerando segredo para autenticação digest ...
[Qui Dez 13 10: 53: 31.022255 2018] [lbmethod_heartbeat: notice] [pid
62622] AH02282: Nenhum slotmem de mod_heartmonitor
[Qui Dez 13 10: 53: 31.145334 2018] [mpm_prefork: notice] [pid 62622]
AH00163: Apache / 2.4.6 (CentOS) mod_wsgi / 4.6.5 Python / 3.7 PHP / 7.1.25
configurado - retomando as operações normais
[Qui Dez 13 10: 53: 31.145376 2018] [mpm_prefork: info] [pid 62622]
AH00164: Servidor criado: 5 de novembro de 2018 01:47:09
[Qui Dez 13 10: 53: 31: 45: 20 UTC 2018] [core: aviso] [pid 62622] AH00094:
Linha de comando: '/ usr / sbin / httpd -D FOREGROUND'
[Qui Dez 13 10: 53: 31.153790 2018] [wsgi: info] [pid 62627] mod_wsgi (pid
= 62627): Inicializando Python.
[Qui Dez 13 10: 53: 31.163843 2018] [wsgi: info] [pid 62628] mod_wsgi (pid
= 62628): Inicializando Python.
[Qui Dez 13 10: 53: 31.173742 2018] [wsgi: info] [pid 62623] mod_wsgi (pid
= 62623): Processo de partida 'face' com uid = 48, gid = 48 e roscas = 15.
[Qui 13 de dezembro 10: 53: 31.174960 2018] [wsgi: info] [pid 62623]
mod_wsgi (pid = 62623): Python home / var / www / html / face / venv.
[Qui Dez 13 10: 53: 31.175113 2018] [wsgi: info] [pid 62623] mod_wsgi (pid
= 62623): Inicializando Python.
[Qui Dez 13 10: 53: 31.186021 2018] [wsgi: info] [pid 62624] mod_wsgi (pid
= 62624): Inicializando Python.
[Qui Dez 13 10: 53: 31.196732 2018] [wsgi: info] [pid 62625] mod_wsgi (pid
= 62625): Inicializando Python.
[Qui Dez 13 10: 53: 31.207747 2018] [wsgi: info] [pid 62626] mod_wsgi (pid
= 62626): Inicializando Python.
[Qui Dez 13 10: 53: 31.222298 2018] [wsgi: info] [pid 62627] mod_wsgi (pid
= 62627): Anexa intérprete ''.
[Qui 13 Dez 10: 53: 31.233943 2018] [wsgi: info] [pid 62624] mod_wsgi (pid
= 62624): Anexa intérprete ''.
[Qui Dez 13 10: 53: 31.245252 2018] [wsgi: info] [pid 62628] mod_wsgi (pid
= 62628): Anexa intérprete ''.
[Qui 13 Dez 10: 53: 31.253816 2018] [wsgi: info] [pid 62626] mod_wsgi (pid
= 62626): Anexa intérprete ''.
[Qui 13 Dez 10: 53: 31.275821 2018] [wsgi: info] [pid 62625] mod_wsgi (pid
= 62625): Anexa intérprete ''.
[Qui Dez 13 10: 53: 35.163098 2018] [wsgi: info] [pid 62646] mod_wsgi (pid
= 62646): Inicializando Python.
[Qui Dez 13 10: 53: 35.176519 2018] [wsgi: info] [pid 62646] mod_wsgi (pid
= 62646): Anexa intérprete ''.
[Qui Dez 13 10: 53: 36.153085 2018] [core: notice] [pid 62622] AH00052: pid
filho 62623 sinal de saída Falha de segmentação (11)
[Qui Dez 13 10: 53: 36.153143 2018] [wsgi: info] [pid 62622] mod_wsgi (pid
= 62623): Processo 'face' morreu, cancele o registro e reinicie-o.
[Qui Dez 13 10: 53: 36.153151 2018] [wsgi: info] [pid 62622] mod_wsgi (pid
= 62623): Processo 'face' terminado por sinal 11
[Qui Dez 13 10: 53: 36.153157 2018] [wsgi: info] [pid 62622] mod_wsgi (pid
= 62623): O processo 'face' foi cancelado e não será mais monitorado.
[Qui Dez 13 10: 53: 36.154855 2018] [wsgi: info] [pid 62647] mod_wsgi (pid
= 62647): Processo de partida 'face' com uid = 48, gid = 48 e threads = 15.
[Thu Dec 13 10: 53: 36.155807 2018] [wsgi: info] [pid 62647] mod_wsgi (pid
= 62647): Python home / var / www / html / face / venv.
[Thu Dec 13 10: 53: 36.155854 2018] [wsgi: info] [pid 62647] mod_wsgi (pid
= 62647): Initializing Python.

Em qui, 13 de dez de 2018 às 09:41, Graham Dumpleton <
[email protected]> escreveu:

> Look in the main Apache error log file (not virtual host) and see if there
> is a message there about 'Segmentation fault' or something else that
> suggests the daemon process crashed. If yes, what are those messages from
> the main Apache error log file.
>
> On 13 Dec 2018, at 10:36 pm, Anderson Marques <[email protected]>
> wrote:
>
> Thanks for the answer Graham Dumpleton, the amount of memory was an act of
> desperation, hehehe ....
> I made the changes you said, now I'm having the following error exit:
>
> [Thu Dec 13 09:22: 01.073929 2018] [wsgi: info] [pid 58228] [remote
> 172.30.212.65:52348] mod_wsgi (pid = 58228, process = 'face', application
> = ''): Loading Python script file '/var/www/html/face/app/wsgi.py'.
> [Wsgi: error] [pid 58236] [client 172.30.212.65:52348] Truncated or
> oversized response headers received from daemon process 'face': / var / www
> / html / face / app / wsgi.py, referer: http://172.30.212.76/admin/
> [Thu Dec 13 09: 22: 02.630914 2018] [wsgi: info] [pid 58846] mod_wsgi (pid
> = 58846): Attach interpreter ''.
> [Thu Dec 13 09: 22: 02.640802 2018] [wsgi: info] [pid 58846] mod_wsgi (pid
> = 58846): Adding '/var/www/html/face/venv/lib/python3.7/site-packages' to
> path.
>
>
>
> I realized that the error occurs when I import the openvc library, "import
> cv2", if I take the application works and the error no longer appears.
>
> Thank you for the attention to my problem, thank you very much.
>
> Em qua, 12 de dez de 2018 às 19:19, Graham Dumpleton <
> [email protected]> escreveu:
>
>> See comments below.
>>
>> On 12 Dec 2018, at 11:06 pm, Anderson Marques <[email protected]>
>> wrote:
>>
>> Hi, I'm implementing a rest for face recognition using django rest full,
>> apache 2.4, python 3.7, wsgi 4.6.5, dlib and opencv running on a centos
>> 7.5, but I'm having the following error:
>>
>>  File "/var/www/html/facepy/facedetect/wsgi.py", line 40, in <module>
>> [Wed Dec 12 09: 51: 15.345039 2018] [wsgi: error] [pid 75969] application
>> = get_wsgi_application ()
>> [Wed Dec 12 09: 51: 15.345048 2018] [wsgi: error] [pid 75969] File
>> "/var/www/html/facepy/venv/lib/python3.7/site-packages/django/core/wsgi.py
>> ", line 12, in get_wsgi_application
>> [Wed Dec 12 09: 51: 15.345053 2018] [wsgi: error] [pid 75969]
>> django.setup (set_prefix = False)
>> [Wed Dec 12 09: 51: 15.345062 2018] [wsgi: error] [pid 75969] File
>> "/var/www/html/facepy/venv/lib/python3.7/site-packages/django/__init__.py",
>> line 19, in setup
>> [Wed Dec 12 09: 51: 15.345066 2018] [wsgi: error] [pid 75969]
>> configure_logging (settings.LOGGING_CONFIG, settings.LOGGING)
>> [Wed Dec 12 09: 51: 15.345074 2018] [wsgi: error] [pid 75969] File
>> "/var/www/html/facepy/venv/lib/python3.7/site-packages/django/conf/__init__.py
>> ", line 57, in __getattr__
>> [Wed Dec 12 09: 51: 15.345079 2018] [wsgi: error] [pid 75969] self._setup
>> (name)
>> [Wed Dec 12 09: 51: 15.345087 2018] [wsgi: error] [pid 75969] File
>> "/var/www/html/facepy/venv/lib/python3.7/site-packages/django/conf/__init__.py
>> ", line 44, in _setup
>> [Wed Dec 12 09: 51: 15.345100 2018] [wsgi: error] [pid 75969]
>> self._wrapped = Settings (settings_module)
>> [Wed Dec 12 09: 51: 15.345109 2018] [wsgi: error] [pid 75969] File
>> "/var/www/html/facepy/venv/lib/python3.7/site-packages/django/conf/__init__.py
>> ", line 107, in __init__
>> [Wed Dec 12 09: 51: 15.345113 2018] [wsgi: error] [pid 75969] mod =
>> importlib.import_module (self.SETTINGS_MODULE)
>> [Wed Dec 12 09: 51: 15.345122 2018] [wsgi: error] [pid 75969] File
>> "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
>> [Wed Dec 12 09: 51: 15.345126 2018] [wsgi: error] [pid 75969] return
>> _bootstrap._gcd_import (name [level:], package, level)
>> [Wed Dec 12 09: 51: 15.345134 2018] [wsgi: error] [pid 75969] File
>> "<frozen importlib._bootstrap>", line 1006, in _gcd_import
>> [Wed Dec 12 09: 51: 15.345143 2018] [wsgi: error] [pid 75969] File
>> "<frozen importlib._bootstrap>", line 983, in _find_and_load
>> [Wed Dec 12 09: 51: 15.345151 2018] [wsgi: error] [pid 75969] File
>> "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
>> [Wed Dec 12 09: 51: 15.345160 2018] [wsgi: error] [pid 75969] File
>> "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
>> [Wed Dec 12 09: 51: 15.345168 2018] [wsgi: error] [pid 75969] File
>> "<frozen importlib._bootstrap>", line 1006, in _gcd_import
>> [Wed Dec 12 09: 51: 15.345177 2018] [wsgi: error] [pid 75969] File
>> "<frozen importlib._bootstrap>", line 983, in _find_and_load
>> [Wed Dec 12 09: 51: 15.345185 2018] [wsgi: error] [pid 75969] File
>> "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
>> [Wed Dec 12 09: 51: 15.345205 2018] [wsgi: error] [pid 75969]
>> ModuleNotFoundError:
>> [Wsgi: error] [pid 75969] [remote 172.30.212.65:63731] mod_wsgi (pid =
>> 75969): Target WSGI script '/ var / www / html / facepy / facedetect /
>> wsgi.py 'does not contain WSGI application' application '.
>>
>> the facepy.conf file looks like this:
>> <VirtualHost *: 80>
>> ServerName facepy
>> ErrorLog /var/log/httpd/errorface.log
>>
>> DocumentRoot / var / www / html / facepy
>> WSGIScriptAlias ??/var/www/html/facepy/facedetect/wsgi.py
>> <Directory / var / www / html / facepy / facedetect>
>> <Files wsgi.py>
>> Require all granted
>> </ Files>
>> </ Directory>
>>
>> # adjust the following line to match your Python path
>> WSGIDaemonProcess face processes = 2 threads = 95 display-name =% {GROUP}
>> user = apache group = apache header-buffer-size = 99255932768 python-home =
>> / var / www / html / facepy / venv python-path = / var / www / html /
>> facepy / venv / lib / python3.7 / site-packages
>>
>>
>> Don't know why you are doing it, but you should not be adding
>> 'header-buffer-size=99255932768' option like that. That is a ridiculously
>> large size to use and could result in failures as tries to allocate that
>> amount of memory.
>>
>> As part of solution to you problem, although you might not even need it,
>> add the option:
>>
>>     startup-timeout=15
>>
>>
>> <directory / var / www / html / facepy>
>> WSGIProcessGroup face
>>         WSGIApplicationGroup% {GLOBAL}
>>         WSGIScriptReloading On
>>
>>
>> You don't need 'WSGIScriptReloading On' as that is the default.
>>
>> Require all granted
>> </ directory>
>>
>> Alias ??/ static / / var / www / html / facepy / static /
>>
>> <Directory / var / www / html / facepy / static>
>> Require all granted
>> </ Directory>
>> </ VirtualHost>
>>
>>
>> the wsgi.py file
>> import
>> import time
>> import traceback
>> import signal
>> import sys
>>
>> from django.core.wsgi import get_wsgi_application
>>
>> # sys.path.append ('/ var / www / html / facepy')
>> # adjust the Python version in the line below as needed
>> sys.path.append ('/ var / www / html / facepy / venv / lib / python3.7 /
>> site-packages')
>>
>> # os.environ.setdefault ("DJANGO_SETTINGS_MODULE", "facedetect.settings")
>> os.environ ['DJANGO_SETTINGS_MODULE'] = 'facedetect.settings'
>>
>> try:
>>     application = get_wsgi_application ()
>> except Exception:
>>     # Error loading applications
>>     if 'mod_wsgi' in sys.modules:
>>         traceback.print_exc ()
>>         os.kill (os.getpid (), signal.SIGINT)
>>         time.sleep (2.5)
>>
>>
>> Replace this whole try/except block with just:
>>
>>     application = get_wsgi_application()
>>
>> The startup-timeout option above is better solution for failures on
>> reentrant import failures which that code trick was likely for. It is that
>> code which is likely causing your problems because there is a path through
>> the code which can result in application not being defined, but no error
>> being generated.
>>
>>
>>
>> Someone could tell me what I'm doing wrong.
>>
>> Thank you very much in advance.
>>
>> ps I'm in Brazil, I'm sorry English
>>
>> --
>> 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 post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/modwsgi.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> 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 post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/modwsgi.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to