[mod_python] Observing issue in mod_python.publisher on ARM 64 bit machine
Amit Mehra (Gur)
amit2.mehra at aricent.com
Tue Mar 3 09:04:12 UTC 2015
Hi Grisha,
Did you get a chance to check my configuration file?
Regards
Amit Mehra
From: Amit Mehra (Gur)
Sent: Monday, March 02, 2015 4:03 PM
To: 'trubetskoy at gmail.com'
Cc: 'mod_python at modpython.org'
Subject: RE: [mod_python] Observing issue in mod_python.publisher on ARM 64 bit machine
Hi Grisha,
I am new to Apache and mod_python. I have cross checked my httpd.conf and python.conf files on ARM with x86 server and couldn’t find any difference. I am attaching both the files, Can you please have a look at it and suggest what I am missing?
Thanks & Regards
Amit Mehra
From: trubetskoy at gmail.com<mailto:trubetskoy at gmail.com> [mailto:trubetskoy at gmail.com] On Behalf Of Grisha Trubetskoy
Sent: Friday, February 27, 2015 8:20 PM
To: Amit Mehra (Gur)
Cc: mod_python at modpython.org<mailto:mod_python at modpython.org>
Subject: Re: [mod_python] Observing issue in mod_python.publisher on ARM 64 bit machine
Amit
Somehow your req.filename is None. This is probably something with your Apache configuration, I can't see it being ARM-specific.
Grisha
On Thu, Feb 26, 2015 at 11:32 PM, Amit Mehra (Gur) <amit2.mehra at aricent.com<mailto:amit2.mehra at aricent.com>> wrote:
Hi,
We are using the following configurations on ARM 64 bit machine
Apache Version:- 2.4.10
Python Version:- 2.7.4
Mod_Python:- 3.5.0
And we are observing the following error in mod_python.publisher while running our application
Mod_python error: "PythonHandler mod_python.publisher"
Traceback (most recent call last):
File "/usr/bin/lib/python2.7/site-packages/mod_python/apache.py", line 421, in HandlerDispatch
result = obj(req)
File "/usr/bin/lib/python2.7/site-packages/mod_python/publisher.py", line 128, in handler
path,module_name = os.path.split(req.filename)
File "/usr/bin/lib/python2.7/posixpath.py", line 92, in split
i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
However, mod_python.testhandler is working fine and its output is showing mod_python.publisher as available.
Apache version
Apache/2.4.10 (Unix)
Apache threaded MPM
Yes, maximum 25 threads / process
Apache forked MPM
Yes, maximum 16 processes
Apache server root
/etc/apache2
Apache document root
/opt/ems/gui
Apache error log
/var/apache2/logs/error_log (view last 100 lines<https://10.3.10.228/python/framework/ems_session_mgmt.py/ems_recv_n_verify_user_name?view_log=1>)
Python sys.version
2.7.4 (default, Feb 11 2015, 10:04:28) [GCC 4.9.3 20141031 (prerelease)]
Python sys.path
/opt/ems/gui/python
/opt/ems/gui/python/common
/opt/ems/gui/python/framework/
/usr/bin/lib/python27.zip
/usr/bin/lib/python2.7
/usr/bin/lib/python2.7/plat-linux2
/usr/bin/lib/python2.7/lib-tk
/usr/bin/lib/python2.7/lib-old
/usr/bin/lib/python2.7/lib-dynload
/usr/bin/lib/python2.7/site-packages
Python interpreter name
www.example.com<http://www.example.com>
mod_python.publisher available
Yes
mod_python.psp available
Yes
I came across the following link wherein it has suggested to make "_server" and "_interpreter" as public. I tried but it didn’t work.
http://osdir.com/ml/apache.mod-python.devel/2006-03/msg00250.html/
Do we have to use any particular version of Apache or Python on ARM 64 bit server or are we missing on any step in our current set-up? Please suggest
Note:- We also tried with another version of mod_python(i.e. 3.4.1)
Regards
Amit Mehra
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
_______________________________________________
mod_python mailing list
mod_python at modpython.org<mailto:mod_python at modpython.org>
http://mailman.modpython.org/mailman/listinfo/mod_python
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.modpython.org/pipermail/mod_python/attachments/20150303/c75eb07a/attachment-0001.html>
More information about the mod_python
mailing list