Error while searching the archives
Hi everyone,
I have a strange problem here. When I try a search on my list archives, I see this on the browser:
Bug in Mailman version 2.1.22
We're sorry, we hit a bug! Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs.
And in the error log I see the details here ->: http://gw.kictanet.or.ke/~wash/error.txt
Kindly advise what the problem could be.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."
On 07/18/2016 03:17 AM, Odhiambo Washington wrote:
I have a strange problem here. When I try a search on my list archives, I see this on the browser:
Bug in Mailman version 2.1.22
...
And in the error log I see the details here ->: http://gw.kictanet.or.ke/~wash/error.txt
The traceback is
admin(46841): Traceback (most recent call last): admin(46841): File "/usr/local/mailman/scripts/driver", line 117, in run_main admin(46841): main() admin(46841): File "/usr/local/mailman/Mailman/Cgi/mmsearch.py", line 213, in main admin(46841): child = Popen(cmd, stdin=PIPE, stdout=PIPE) admin(46841): File "/usr/local/lib/python2.7/subprocess.py", line 710, in __init__ admin(46841): errread, errwrite) admin(46841): File "/usr/local/lib/python2.7/subprocess.py", line 1335, in _execute_child admin(46841): raise child_exception admin(46841): OSError: [Errno 2] No such file or directory
which says Popen can't execute cmd because of the Errno2, No such file or directory.
cmd is whatever you have configured for HTDIG_HTSEARCH_PATH in mm_cfg.py. The default in Defaults.py is
HTDIG_HTSEARCH_PATH = '/usr/local/bin/htsearch'
Does HTDIG_HTSEARCH_PATH contain a path to the htdig htsearch program in your installation?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 19 July 2016 at 03:36, Mark Sapiro <mark@msapiro.net> wrote:
On 07/18/2016 03:17 AM, Odhiambo Washington wrote:
I have a strange problem here. When I try a search on my list archives, I see this on the browser:
Bug in Mailman version 2.1.22
...
And in the error log I see the details here ->: http://gw.kictanet.or.ke/~wash/error.txt
The traceback is
admin(46841): Traceback (most recent call last):
admin(46841): File "/usr/local/mailman/scripts/driver", line 117, in run_main admin(46841): main() admin(46841): File "/usr/local/mailman/Mailman/Cgi/mmsearch.py", line 213, in main admin(46841): child = Popen(cmd, stdin=PIPE, stdout=PIPE) admin(46841): File "/usr/local/lib/python2.7/subprocess.py", line 710, in __init__ admin(46841): errread, errwrite) admin(46841): File "/usr/local/lib/python2.7/subprocess.py", line 1335, in _execute_child admin(46841): raise child_exception admin(46841): OSError: [Errno 2] No such file or directory
which says Popen can't execute cmd because of the Errno2, No such file or directory.
cmd is whatever you have configured for HTDIG_HTSEARCH_PATH in mm_cfg.py. The default in Defaults.py is
HTDIG_HTSEARCH_PATH = '/usr/local/bin/htsearch'
Does HTDIG_HTSEARCH_PATH contain a path to the htdig htsearch program in your installation?
In mm_cfg.py, I have:
HTDIG_HTSEARCH_PATH = '/usr/local/www/cgi-bin/htsearch'
I tried running it:
root@gw:/usr/home/wash # /usr/local/www/cgi-bin/htsearch Enter value for words: walu Content-type: text/html
<html><head><title>htsearch error</title></head> <body bgcolor="#ffffff"> <h1>ht://Dig error</h1> <p>htsearch detected an error. Please report this to the webmaster of this site by sending an e-mail to: <a href="mailto:unconfigured@htdig.searchengine.maintainer ">unconfigured@htdig.searchengine.maintainer</a> The error message is:</p> <pre> Unable to read word database file '/usr/local/share/htdig/database/db.words.db' Did you run htdig? </pre> </body></html>
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."
On 07/19/2016 01:56 AM, Odhiambo Washington wrote:
In mm_cfg.py, I have:
HTDIG_HTSEARCH_PATH = '/usr/local/www/cgi-bin/htsearch'
I tried running it:
root@gw:/usr/home/wash # /usr/local/www/cgi-bin/htsearch Enter value for words: walu Content-type: text/html
<html><head><title>htsearch error</title></head> <body bgcolor="#ffffff"> <h1>ht://Dig error</h1> <p>htsearch detected an error. Please report this to the webmaster of this site by sending an e-mail to: <a href="mailto:unconfigured@htdig.searchengine.maintainer <mailto:unconfigured@htdig.searchengine.maintainer>">unconfigured@htdig.searchengine.maintainer</a> The error message is:</p> <pre> Unable to read word database file '/usr/local/share/htdig/database/db.words.db' Did you run htdig? </pre> </body></html>
That's good as far as it goes. Making it actually work from the command line is more complicated than that. It expects environment variables and POST data from the search form.
Has this ever worked? If so, what did you do just prior to its stopping working? Have you made any changes and not restarted Mailman?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 19 July 2016 at 21:38, Mark Sapiro <mark@msapiro.net> wrote:
On 07/19/2016 01:56 AM, Odhiambo Washington wrote:
In mm_cfg.py, I have:
HTDIG_HTSEARCH_PATH = '/usr/local/www/cgi-bin/htsearch'
I tried running it:
root@gw:/usr/home/wash # /usr/local/www/cgi-bin/htsearch Enter value for words: walu Content-type: text/html
<html><head><title>htsearch error</title></head> <body bgcolor="#ffffff"> <h1>ht://Dig error</h1> <p>htsearch detected an error. Please report this to the webmaster of this site by sending an e-mail to: <a href="mailto:unconfigured@htdig.searchengine.maintainer <mailto:unconfigured@htdig.searchengine.maintainer ">unconfigured@htdig.searchengine.maintainer</a> The error message is:</p> <pre> Unable to read word database file '/usr/local/share/htdig/database/db.words.db' Did you run htdig? </pre> </body></html>
That's good as far as it goes. Making it actually work from the command line is more complicated than that. It expects environment variables and POST data from the search form.
Has this ever worked? If so, what did you do just prior to its stopping working? Have you made any changes and not restarted Mailman?
I think it worked before. Can't tell for sure. The only change I have made recently is to have my URLs use https.
I have just tried to run it again and I see this in the browser:
ht://Dig error
htsearch detected an error. Please report this to the webmaster of this site by sending an e-mail to: mailman@lists.kictanet.or.ke The error message is:
Unable to read word database file '/usr/local/mailman/archives/private/kictanet/htdig/db.words.db' Did you run htdig?
root@gw:/usr/home/wash # ls -al /usr/local/mailman/archives/private/kictanet/htdig/ total 770718 drwxrws--- 2 root mailman 512 Mar 1 02:19 . drwxrwsr-x 142 root mailman 7680 Jul 19 21:54 .. -rw-rw-r-- 1 mailman mailman 24576 Mar 1 02:19 db.docdb -rw-rw-r-- 1 mailman mailman 24576 Mar 1 02:19 db.docs.index -rw-rw-r-- 1 mailman mailman 24576 Mar 1 02:19 db.excerpts -rw-r--r-- 1 root mailman 3918 May 29 2013 kictanet.conf -rw-rw-r-- 1 root mailman 2228224 Mar 1 02:24 root2word.db -rw-rw-r-- 1 root mailman 0 Mar 2 02:19 rundig_last_run -rw-rw-r-- 1 root mailman 90112 Mar 1 02:24 synonyms.db -rw-rw-r-- 1 root mailman 786374656 Mar 1 02:24 word2root.db
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."
participants (2)
-
Mark Sapiro
-
Odhiambo Washington