Hi Graham

Yes in general error.log I see this:
[Tue Feb 19 09:59:38.992337 2019] [core:notice] [pid 10382] AH00051: child 
pid 10951 exit signal Segmentation fault (11), possible coredump in /etc/
apache2

my LogLevel is set to debug.

No, I don't use Anaconda.

Il giorno mercoledì 20 febbraio 2019 03:23:37 UTC+1, Graham Dumpleton ha 
scritto:
>
> Does the main Apache error log show an error message at the time of 
> 'Segmentation Fault' or similar?
>
> Ensure setting 'info' for LogLevel directive instead of 'warn' or 'err'. 
> Then capture the mod_wsgi log messages from the same time.
>
> Since you are using a binary package, one possibility is that the binary 
> package for psycopg2 is compiled against SSL and crypto libraries which are 
> not compatible with the system libraries. I have seen this problem a lot 
> when Anaconda Python is used, but don't see anything that suggests you are 
> using Anaconda Python.
>
> On 20 Feb 2019, at 1:49 am, Antonio Porcelli <a.porc...@gmail.com 
> <javascript:>> wrote:
>
> Hi to all :)
>
> in the last two days I have googled more to resolving my problem, but 
> unfortunately, now I am already locked
> I have a Django project, with PostgreSQL (I use psycopg2-binary==2.7.6.1). 
> I have configurated a virtualenv with the command: 
>
> virtualenv -p python3 myvenv
>
> activated the virtualenv, installed the requirements, makemigrations and 
> migrate, and all fine.
> If I run the server with runserver command, it works great.
>
> I tried to run the project with uwsgi, and this is the ini file that I 
> have used to configure:
>
> [uwsgi]
> http = 0.0.0.0:9090
> chdir = /mnt/md0/app/PROJ/
> uid = www-data
> gid = www-data
> wsgi-file = /mnt/md0/app/PROJ/PROJ/wsgi.py
> pythonpath = /usr/lib/python3.6/site-packages/
> virtualenv = /mnt/md0/app/PROJ/myvenv
> static-map = /static=/mnt/md0/app/PROJ/static/
> env = DJANGO_SETTINGS_MODULE=PROJ.settings
> processes = 4
> threads = 2
>
> but if I try to configure this project under Apache I receive always 500 
> error, this is the error in error.log:
>
> [Tue Feb 19 12:00:05.576706 2019] [wsgi:error] [pid 22992] [client 
> 95.237.49.28:53902] Truncated or oversized response headers received from 
> daemon process 'PROJ': /mnt/md0/app/PROJ/PROJ/wsgi.py, referer: 
> https://mysite.it/accounts/login/
>
> this is the rules that I have used to configure the virtualhost:
>
> <VirtualHost *:80>
> ServerName mysite.it
>     ErrorLog /mnt/md0/app/PROJ/error.log
>     Redirect permanent / https:// <https://mysite.it/>mysite.it/ 
> <https://mysite.it/>
>     SSLEngine off
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName mysite.it
>     DocumentRoot /mnt/md0/app/PROJ
>     WSGIPassAuthorization On
>     WSGIScriptAlias / /mnt/md0/app/PROJ/PROJ/wsgi.py
>     
>     ErrorLog /mnt/md0/app/PROJ/error.log
>     
>     Alias /static /mnt/md0/app/PROJ/static 
>     <Directory /mnt/md0/app/PROJ/static> 
>         Require all granted 
>     </Directory> 
>     
>     WSGIApplicationGroup %{GLOBAL}
>     WSGIDaemonProcess PROJsite processes=1 threads=15 
> display-name=%{GROUP} python-home=/mnt/md0/app/PROJ/myvenv 
> python-path=/usr/local/lib/python3.6/dist-packages:/mnt/md0/app/PROJ
>     WSGIProcessGroup PROJsite
>     
>     <Directory /mnt/md0/app/PROJ> 
>         AllowOverride all 
>         Require all granted 
>         Options FollowSymlinks 
>     </Directory>
>     
>     Include /etc/letsencrypt/options-ssl-apache.conf
>     SSLCertificateFile /etc/letsencrypt/live/mysite.it 
> <http://mysite.it/fullchain.pem>/fullchain.pem 
> <http://mysite.it/fullchain.pem>
>    SSLCertificateKeyFile /etc/letsencrypt/live/mysite.it 
> <http://mysite.it/privkey.pem>/privkey.pem <http://mysite.it/privkey.pem>
> </VirtualHost>
>
> I have included this rules `WSGIApplicationGroup %{GLOBAL}` also in 
> apache2.config (I'm under ubuntu server 18.04)
>
> Someone can give me an hand to resolve this great problem? 
> Thanks a lot <3
>
> -- 
> 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 modwsgi+u...@googlegroups.com <javascript:>.
> To post to this group, send email to mod...@googlegroups.com <javascript:>
> .
> 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 modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to