[Mailman-Users] HTdig intergration pb

Odhiambo Washington wash at wananchi.com
Mon Jul 29 13:31:53 CEST 2002


* Richard Barrett <R.Barrett at ftel.co.uk> [20020729 13:50]: wrote:
> At 12:13 29/07/2002 +0300, Odhiambo Washington wrote:
> >Maybe someone who has successfully intergrated HTDig and Mailman can help 
> >me.
> >
> >I've been trying to get this to work but problems keep creeping in.
> >I've followed the INSTALL.htdig-mm (almost to the letter) but I do feel
> >I am not quite correct in the setting that I have and so I get errors
> >like this:
> >
> >
> >htdig: Unable to find configuration file 
> >'/usr/local/mailman/archives/private/elections-2002/htdig/elections-2002.conf'
> >htmerge: Unable to find configuration file 
> >'/usr/local/mailman/archives/private/elections-2002/htdig/elections-2002.conf'
> >
> 
> You do not say but I assume this output is generated when 
> $prefix/cron/nightly_htdig is run and in turns runs the htdig rundig script?
> 
> Does this file exist?


The file doesn't exist. I don't remember the INSTALL howto saying I should create
it though.


> The path looks plausible from what you say below. These per list htdig 
> config files are created when the _first_ message is posted after/when the 
> list has archiving enabled and the mailman-htdig patches are installed.

That is what I remember reading, so I am right afterall ;-)
People have posted to the list. I even did that manually the day I applied the
patch (after doing the configuration).

> Is there any evidence in the Mailman logs of problems for Mailman writing 
> these htdig config files?

The latest I have in the error log is:

Jul 26 16:35:05 2002 (28897) CORRUPT ARCHIVE FOR LIST: elections-2002
Jul 27 10:04:31 2002 qrunner(44187): Traceback (most recent call last):
Jul 27 10:04:31 2002 qrunner(44187):   File "/usr/local/mailman/Mailman/Archiver/Archiver.py", line 220, in ArchiveMail
Jul 27 10:04:31 2002 qrunner(44187):     h = HyperArch.HyperArchive(self)
Jul 27 10:04:31 2002 qrunner(44187):   File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 691, in __init__
Jul 27 10:04:31 2002 qrunner(44187):     self.setup_htdig()
Jul 27 10:04:31 2002 qrunner(44187):   File "/usr/local/mailman/Mailman/Archiver/HyperArch.py", line 849, in setup_htdig
Jul 27 10:04:31 2002 qrunner(44187):     d = {'databases': list_htdig_dir,
Jul 27 10:04:31 2002 qrunner(44187): AttributeError: 'module' object has no attribute 'HTDIG_EXTRAS'
Jul 27 10:04:31 2002 (44187) CORRUPT ARCHIVE FOR LIST: elections-2002


> Just one thought about the location of the Mailman archives directory under 
> /usr/local/mailman. Does the mailman user and group have write permission 
> for /usr/local/mailman/archives and all its subdirectories.

Yes, user mailman can write there.

[root at ns2]#su - mailman
$ pwd
/usr/local/mailman
$ cd archives
$ printf "Test test" > wash
$ cat wash
Test test$ 

The directories are owned by root:mailman and are SETGID 


> When the per list htdig config is created, it is created in 
> .../archives/private/<listname>/htdig/<listname>.conf and a symbolic link 
> to that file is created as .../archives/htdig/<listname>.conf.
> htsearch programs reach the config file via that symbolic link and the link 
> named per the HTDIG_MAILMAN_LINK value.
> 
> In your case it looks like you will have created a symbolic link 
> /usr/local/etc/htdig/htdig-mailman pointing to 
> /usr/local/mailman/archives/htdig

Your observation is correct. Did I have to create the symlink manually?? because
that is what I did. Should I rm the symlink I created, as your observation
seems to suggest that the symlink is auto created, somehow????



> In your case, htsearch programs will be trying to access 
> /usr/local/mailman/archives/private/<listname>/htdig/<listname>.conf via 
> the path /usr/local/etc/htdig/htdig-mailman/<listname>.conf

Which is weird, yes???


> Let me know if this info helps you find a solution.


One more feedback from you and I hope to be in the right track. Just if you can
find time to answer my questions above.



mtia for your help.


        cheers
       - wash 
----------------------------------+-----------------------------------------
 Odhiambo Washington, wash at wananchi.com	. WANANCHI ONLINE LTD (Nairobi, KE)
 http://ns2.wananchi.com/~wash/		. 1ere Etage, Loita Hse, Loita St.,
 GSM: (254) 722 743 223			. # 10286, 00100 NAIROBI
----------------------------------+-----------------------------------------
"Oh My God! They killed init! You Bastards!"  
						 --from a /. post




More information about the Mailman-Users mailing list