On 02/27/2015 06:43 AM, Kumar Pradeep (Ops) wrote:
I am getting this cgi-error in /var/log/httpd/error_log when calling " http://lists.pulsesecure.net/mailman/mmsearch/testlist/"
[Fri Feb 27 14:28:06.722345 2015] [cgi:error] [pid 1202] [client 64.60.254.166:53401] AH01215: /usr/local/mailman/Mailman/Cgi/mmsearch.py:45: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module., referer: http://lists.pulsesecure.net/mailman/private/testlist/
I checked in /usr/local/mailman/Mailman/Cgi/mmsearch.py 's 45th line it says "import popen2"
The good news is you appear finally to have gotten past your group mismatch error.
So you are using some version of the third party mmsearch module that uses the popen2 function which is deprecated since Python 2.6.
Richard Barrett's original patch at http://openinfo.co.uk/mm/patches/444884/htdig-2.1.12-0.1.patch.gz does import popen2 at line 45 of mmsearch.py, but my versions of these patches for Mailman 2.1.12 and subsequent versions at http://www.msapiro.net/mm/ use subprocess.Popen.
However, the deprecation warning is only a warning. It should cause no visible problems other than the DeprecationWarning message in the http error_log.
In Mailman Error Log
tail -f /usr/local/mailman/logs/error admin(2092): REQUEST_SCHEME: http admin(2092): CONTENT_TYPE: application/x-www-form-urlencoded admin(2092): HTTP_ACCEPT_ENCODING: gzip, deflate Feb 27 14:20:01 2015 (2095) htsearch for list: testlist, existatus: 2 Feb 27 14:20:55 2015 (2101) htsearch for list: testlist, existatus: 2 Feb 27 14:23:15 2015 (2108) htsearch for list: testlist, existatus: 2 Feb 27 14:23:54 2015 (2110) htsearch for list: testlist, existatus: 2 Feb 27 14:26:16 2015 (2114) htsearch for list: testlist, existatus: 2 Feb 27 14:26:32 2015 (2116) htsearch for list: testlist, existatus: 2 Feb 27 14:28:06 2015 (2121) htsearch for list: testlist, existatus: 2
This is a different problem. It is not directly related to the use of popen2. An exit status of 2 is ENOENT No such file or directory.
The code at that point has tried to pipe some data to the command defined in the Defaults.py/mm_cfg.py parameter HTDIG_HTSEARCH_PATH which is supposed to point to a working htsearch command and apparently doesn't.
Have you installed ht://Dig? Have you set HTDIG_HTSEARCH_PATH in mm_cfg.py to point to the location of the htsearch command?
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan