--
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.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
ldd /usr/lib64/httpd/modules/mod_wsgi.solinux-vdso.so.1 => (0x00007fffb07ff000)libpython2.7.so.1.0 => /home/xliu/Ureka1_4_1/Ureka/python/lib/libpython2.7.so.1.0 (0x00007f3bc420e000)libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3bc3f8d000)libdl.so.2 => /lib64/libdl.so.2 (0x00007f3bc3d89000)libutil.so.1 => /lib64/libutil.so.1 (0x00007f3bc3b86000)libm.so.6 => /lib64/libm.so.6 (0x00007f3bc3901000)libc.so.6 => /lib64/libc.so.6 (0x00007f3bc356e000)libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f3bc3231000)libXft.so.2 => /usr/lib64/libXft.so.2 (0x00007f3bc301b000)/lib64/ld-linux-x86-64.so.2 (0x0000003bc1600000)libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f3bc2dfd000)libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007f3bc2bc6000)libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007f3bc2929000)libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f3bc271f000)libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f3bc251c000)libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f3bc22f3000)
--
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.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
<screencapture.txt>
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install httpd-2.2.15-29.el6_4.x86_64
(gdb) run -D FOREGOUND -D ONE_PROCESS
Starting program: /usr/sbin/httpd -D FOREGOUND -D ONE_PROCESS
[Thread debugging using libthread_db enabled]
httpd: Syntax error on line 152 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib64/httpd/modules/mod_python.so into server: /usr/lib64/httpd/modules/mod_python.so: cannot open shared object file: No such file or directory
Program exited with code 01.
(gdb) where
No stack.
Why didn't it read my own config file??
nhsctest5:/home/xliu/bmg_devel/bgmodel/web$python
Python 2.7.5 (default, Jun 19 2014, 11:22:38)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.sysconfig import get_config_var
>>> print 'CONFIG_ARGS:', get_config_var('CONFIG_ARGS')
CONFIG_ARGS: '-prefix=/home/xliu/Ureka1_4_1/Ureka/python' 'CFLAGS=-I/home/xliu/Ureka1_4_1/Ureka/python/include -I/home/xliu/Ureka1_4_1/Ureka/python/include ' 'OPT=-I/home/xliu/Ureka1_4_1/Ureka/python/include -I/home/xliu/Ureka1_4_1/Ureka/python/include ' 'LDFLAGS= -L/home/xliu/Ureka1_4_1/Ureka/python/lib ' '--enable-shared' 'CC=cc -I/home/xliu/Ureka1_4_1/Ureka/python/include -L/home/xliu/Ureka1_4_1/Ureka/python/lib'
>>> print 'LIBS:', get_config_var('LIBS')
LIBS: -lpthread -ldl -lutil
>>> print 'SYSLIBS:', get_config_var('SYSLIBS')
SYSLIBS: -lm
>>> print 'SHLIBS:', get_config_var('SHLIBS')
SHLIBS: -lpthread -ldl -lutil
sudo gdb /usr/sbin/httpd
[sudo] password for xliu:
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install httpd-2.2.15-29.el6_4.x86_64
(gdb) run -D FOREGOUND -D ONE_PROCESS
Starting program: /usr/sbin/httpd -D FOREGOUND -D ONE_PROCESS
[Thread debugging using libthread_db enabled]
httpd: Syntax error on line 11 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib64/httpd/modules/mod_wsgi.so into server: libpython2.7.so.1.0: cannot open shared object file: Permission denied
Program exited with code 01.
(gdb) where
No stack.
Ha! Is it because the python can't open my mod_wsgi.so? I do have permission for that file though.
No worry about mod_python (it's loaded from the previous system config file). But there may be problem at the production end. What is they also use mod_python?
...
...
...
SELINUX=disabled
SELINUXTYPE=targeted
Does it mean it's disabled?
...
...
...
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.
...
sudo ldd /usr/lib64/httpd/modules/mod_wsgi.so
[sudo] password for xliu:
linux-vdso.so.1 => (0x00007fffe25ff000)
libpython2.7.so.1.0 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1dcfe44000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f1dcfc40000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f1dcfa3d000)
libm.so.6 => /lib64/libm.so.6 (0x00007f1dcf7b8000)
libc.so.6 => /lib64/libc.so.6 (0x00007f1dcf425000)
/lib64/ld-linux-x86-64.so.2 (0x0000003bc1600000)
Yes, /home/xliu is NFS mounted.
...
mod_wsgi-express start-server
Server URL : http://localhost:8000/
Server Root : /tmp/mod_wsgi-localhost:8000:5099
Server Conf : /tmp/mod_wsgi-localhost:8000:5099/httpd.conf
Error Log File : /tmp/mod_wsgi-localhost:8000:5099/error_log
Locale Setting : en_US.ISO8859-1
Daemon Processes : 1
Daemon Threads : 5
But the web page is not available. This may not be your problem. I'm running on a machine behind a firewall remotely from home. Should I see the page anyway?
...
...
m /tmp/mod_wsgi-localhost:8000:5099/error_log
[Sun Jan 11 00:11:29 2015] [info] mod_wsgi (pid=9363): Starting process 'localhost:800
0' with threads=5.
[Sun Jan 11 00:11:29 2015] [notice] Apache/2.2.15 (Unix) mod_wsgi/4.4.5 Python/2.7.5 c
onfigured -- resuming normal operations
[Sun Jan 11 00:11:29 2015] [info] Server built: Aug 2 2013 08:02:15
[Sun Jan 11 00:11:30 2015] [notice] child pid 9363 exit signal Segmentation fault (11)
, possible coredump in /tmp/mod_wsgi-localhost:8000:5099
[Sun Jan 11 00:11:30 2015] [info] mod_wsgi (pid=9363): Process 'localhost:8000' has di
ed, deregister and restart it.
[Sun Jan 11 00:11:30 2015] [info] mod_wsgi (pid=9363): Process 'localhost:8000' termin
ated by signal 11
[Sun Jan 11 00:11:30 2015] [info] mod_wsgi (pid=9363): Process 'localhost:8000' has be
en deregistered and will no longer be monitored.
[Sun Jan 11 00:11:30 2015] [info] mod_wsgi (pid=9377): Starting process 'localhost:800
0' with threads=5.
[Sun Jan 11 00:11:31 2015] [notice] child pid 9377 exit signal Segmentation fault (11)
, possible coredump in /tmp/mod_wsgi-localhost:8000:5099
[Sun Jan 11 00:11:31 2015] [info] mod_wsgi (pid=9377): Process 'localhost:8000' has di
ed, deregister and restart it.
[Sun Jan 11 00:11:31 2015] [info] mod_wsgi (pid=9377): Process 'localhost:8000' termin
ated by signal 11
...
Server URL : http://localhost:8000/
Server Root : /tmp/mod_wsgi-localhost:8000:5099
Server Conf : /tmp/mod_wsgi-localhost:8000:5099/httpd.conf
Error Log File : /tmp/mod_wsgi-localhost:8000:5099/error_log
Locale Setting : en_US.ISO8859-1
Daemon Processes : 1
Daemon Threads : 5
mod_wsgi-express start-server --debug-mode --setup-only
Server URL : http://localhost:8000/
Server Root : /tmp/mod_wsgi-localhost:8000:5099
Server Conf : /tmp/mod_wsgi-localhost:8000:5099/httpd.conf
Error Log File : /tmp/mod_wsgi-localhost:8000:5099/error_log
Environ Variables : /tmp/mod_wsgi-localhost:8000:5099/envvars
Control Script : /tmp/mod_wsgi-localhost:8000:5099/apachectl
Locale Setting : en_US.ISO8859-1
Daemon Processes : 1
Daemon Threads : 5
nhsctest5:/home/xliu$
nhsctest5:/home/xliu$gdb /usr/sbin/httpd
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install httpd-2.2.15-29.el6_4.x86_64
(gdb) run -f /tmp/mod_wsgi-localhost:8000:5099/httpd.conf -DONE_PROCESS
Starting program: /usr/sbin/httpd -f /tmp/mod_wsgi-localhost:8000:5099/httpd.conf -DONE_PROCESS
------------------
/home/xliu/Ureka1_4_1/Ureka/variants/common/bin /home/xliu/Ureka1_4_1/Ureka/bin /home/xliu/Ureka1_4_1/Ureka/python/bin /apps/java/jdk1.7.0_17/bin /home/xliu/pkg/eclipse /home/xliu/pkg/xxe-perso-3_8_0/bin /home/xliu/hcss_installer /home/xliu/pacssoft/hcss.dp/bin /home/xliu/pkg/openmpi-1.4.3/installation/bin /home/xliu/bin /usr/lib64/qt-3.3/bin /usr/kerberos/sbin /usr/kerberos/bin /usr/local/bin /bin /usr/bin /usr/lib64/alliance/bin /usr/sbin /apps/usr/local/bin /usr/lib64/alliance/bin
------------------
path=
/apps/java/jdk1.7.0_17/bin
/home/xliu/pkg/eclipse
/home/xliu/pkg/xxe-perso-3_8_0/bin
/home/xliu/hcss_installer
/home/xliu/pacssoft/hcss.dp/bin
/home/xliu/pkg/openmpi-1.4.3/installation/bin
/home/xliu/bin
/home/xliu/Ureka1_4_1/Ureka/variants/common/bin
/home/xliu/Ureka1_4_1/Ureka/bin
/home/xliu/Ureka1_4_1/Ureka/python/bin
/apps/java/jdk1.7.0_17/bin
/home/xliu/pkg/eclipse
/home/xliu/pkg/xxe-perso-3_8_0/bin
/home/xliu/hcss_installer
/home/xliu/pacssoft/hcss.dp/bin
/home/xliu/pkg/openmpi-1.4.3/installation/bin
/home/xliu/bin
/usr/lib64/qt-3.3/bin
/usr/kerberos/sbin
/usr/kerberos/bin
/usr/local/bin
/bin
/usr/bin
/usr/lib64/alliance/bin
/usr/sbin
/apps/usr/local/bin
/usr/lib64/alliance/bin
/usr/sbin
/apps/usr/local/bin
LD_LIBRARY_PATH=
[Thread debugging using libthread_db enabled]
httpd: bad user name ${WSGI_RUN_USER}
Program exited with code 01.
(gdb) where
No stack.
(gdb)
The /tmp/mod_wsgi-localhost:8000:5099/apachectl looks like this:
#!/usr/bin/env bash
# ['/home/xliu/Ureka1_4_1/Ureka/variants/common/bin/mod_wsgi-express', 'start-server',
'--debug-mode', '--setup-only']
HTTPD="/usr/sbin/httpd -f /tmp/mod_wsgi-localhost:8000:5099/httpd.conf -DONE_PROCESS"
SHLIBPATH=""
if [ "x$SHLIBPATH" != "x" ]; then
LD_LIBRARY_PATH="$SHLIBPATH:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
fi
WSGI_RUN_USER="${WSGI_RUN_USER:-xliu}"
WSGI_RUN_GROUP="${WSGI_RUN_GROUP:-nhsc}"
export WSGI_RUN_USER
export WSGI_RUN_GROUP
if [ `id -u` = "0" -a ${WSGI_RUN_USER} = "root" ]; then
cat << EOF
WARNING: When running as the 'root' user, it is required that the options
'--user' and '--group' be specified to mod_wsgi-express. These should
define a non 'root' user and group under which the Apache child worker
processes and mod_wsgi daemon processes should be run. Failure to specify
these options will result in Apache and/or the mod_wsgi daemon processes
failing to start. See the mod_wsgi-express documentation for further
information on this restriction.
EOF
fi
LANG='en_US.ISO8859-1'
LC_ALL='en_US.ISO8859-1'
export LANG
export LC_ALL
ACMD="$1"
ARGV="$@"
if test -f /tmp/mod_wsgi-localhost:8000:5099/envvars; then
. /tmp/mod_wsgi-localhost:8000:5099/envvars
fi
STATUSURL="http://localhost:8000/server-status"
if [ "x$ARGV" = "x" ]; then
ARGV="-h"
fi
PROCESS_NAME="httpd (mod_wsgi-express) "
case $ACMD in
start|stop|restart|graceful|graceful-stop)
exec -a "$PROCESS_NAME" $HTTPD -k $ARGV
;;
configtest)
exec $HTTPD -t
;;
status)
exec /home/xliu/Ureka1_4_1/Ureka/variants/common/bin/python -m webbrowser -t $STAT
USURL
;;
*)
exec $HTTPD $ARGV
esac
...back 1 page
#!/usr/bin/env bash
# ['/home/xliu/Ureka1_4_1/Ureka/variants/common/bin/mod_wsgi-express', 'start-server',
'--debug-mode', '--setup-only']
HTTPD="/usr/sbin/httpd -f /tmp/mod_wsgi-localhost:8000:5099/httpd.conf -DONE_PROCESS"
SHLIBPATH=""
if [ "x$SHLIBPATH" != "x" ]; then
LD_LIBRARY_PATH="$SHLIBPATH:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
fi
WSGI_RUN_USER="${WSGI_RUN_USER:-xliu}"
WSGI_RUN_GROUP="${WSGI_RUN_GROUP:-nhsc}"
export WSGI_RUN_USER
export WSGI_RUN_GROUP
if [ `id -u` = "0" -a ${WSGI_RUN_USER} = "root" ]; then
cat << EOF
WARNING: When running as the 'root' user, it is required that the options
'--user' and '--group' be specified to mod_wsgi-express. These should
define a non 'root' user and group under which the Apache child worker
processes and mod_wsgi daemon processes should be run. Failure to specify
these options will result in Apache and/or the mod_wsgi daemon processes
failing to start. See the mod_wsgi-express documentation for further
information on this restriction.
EOF
fi
LANG='en_US.ISO8859-1'
LC_ALL='en_US.ISO8859-1'
export LANG
export LC_ALL
ACMD="$1"
ARGV="$@"
if test -f /tmp/mod_wsgi-localhost:8000:5099/envvars; then
. /tmp/mod_wsgi-localhost:8000:5099/envvars
fi
STATUSURL="http://localhost:8000/server-status"
if [ "x$ARGV" = "x" ]; then
ARGV="-h"
fi
PROCESS_NAME="httpd (mod_wsgi-express) "
case $ACMD in
start|stop|restart|graceful|graceful-stop)
exec -a "$PROCESS_NAME" $HTTPD -k $ARGV
;;
configtest)
exec $HTTPD -t
;;
status)
exec /home/xliu/Ureka1_4_1/Ureka/variants/common/bin/python -m webbrowser -t $STAT
USURL
;;
*)
exec $HTTPD $ARGV
esac
...
mod_wsgi-express start-server --debug-mode --enable-gdb
Server URL : http://localhost:8000/
Server Root : /tmp/mod_wsgi-localhost:8000:5099
Server Conf : /tmp/mod_wsgi-localhost:8000:5099/httpd.conf
Error Log File : /tmp/mod_wsgi-localhost:8000:5099/error_log
Request Capacity : 5 (1 process * 5 threads)
Request Timeout : 60 (seconds)
Queue Backlog : 100 (connections)
Queue Timeout : 45 (seconds)
Server Capacity : 20 (event/worker), 20 (prefork)
Server Backlog : 500 (connections)
Locale Setting : en_US.ISO8859-1
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...(no debugging symbols found)...done.
------------------
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4c25c27 in wsgi_python_init (p=0x7ffff82ed5b8) at src/server/wsgi_interp.c:1963
1963 src/server/wsgi_interp.c: No such file or directory.
in src/server/wsgi_interp.c
Missing separate debuginfos, use: debuginfo-install httpd-2.2.15-29.el6_4.x86_64
(gdb)
...
mod_wsgi-express module-location
/home/xliu/Ureka1_4_1/Ureka/variants/common/lib/python2.7/site-packages/mod_wsgi/server/mod_wsgi-py27.so
file /home/xliu/Ureka1_4_1/Ureka/python/lib/libpython2.7.so
/home/xliu/Ureka1_4_1/Ureka/python/lib/libpython2.7.so: symbolic link to `libpython2.7.so.1.0'
file /home/xliu/Ureka1_4_1/Ureka/python/lib/libpython2.7.so.1.0
/home/xliu/Ureka1_4_1/Ureka/python/lib/libpython2.7.so.1.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
...
file `mod_wsgi-express module-location`
/home/xliu/Ureka1_4_1/Ureka/variants/common/lib/python2.7/site-packages/mod_wsgi/server/mod_wsgi-py27.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
...
(gdb) print &Py_OptimizeFlag
$1 = (int *) 0x655c20
(gdb) print (int)Py_OptimizeFlag
Cannot access memory at address 0x655c20
(gdb)
...
...
ldd anaconda2_1_0linux/lib/libpython2.7.so
linux-vdso.so.1 => (0x00007fff625ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f14d18fb000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f14d16f6000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f14d14f3000)
libm.so.6 => /home/xliu/anaconda2_1_0linux/lib/./libm.so.6 (0x00007f14d1270000)
libc.so.6 => /lib64/libc.so.6 (0x00007f14d0edc000)
/lib64/ld-linux-x86-64.so.2 (0x0000003bc1600000)
ldd Ureka1_4_1/Ureka/python/lib/libpython2.7.so
linux-vdso.so.1 => (0x00007fff717ff000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc0b52c3000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fc0b50bf000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fc0b4ebb000)
libm.so.6 => /lib64/libm.so.6 (0x00007fc0b4c37000)
libc.so.6 => /lib64/libc.so.6 (0x00007fc0b48a4000)
/lib64/ld-linux-x86-64.so.2 (0x0000003bc1600000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007fc0b5759000)
libXft.so.2 => /usr/lib64/libXft.so.2 (0x00007fc0b5543000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007fc0b4685000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00007fc0b444f000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fc0b41b2000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007fc0b3fa7000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007fc0b3da4000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fc0b3b7c000)
...