Title: RE: [htdig] htdig in chrooted environment

 It was a zlib issue. I am running 3.1.5 compiled from source..
 Thanks a lot for the answer.

According to Joe R. Jah:
> On Wed, 10 Oct 2001, Genchev, Sergei wrote:
> >  I am trying to run htsearch under chrooted Apache on Redhat7.1. That's what
> > I have done:
> > - built an index with htdig outside of jail, setting database directory to
> > /jail/apache/htdigdb/. /jail/apache is where I chroot my Apache server to.
> > - put database_dir: /htdigdb in htdig.conf file within a jail.
> > - copied a couple of libraries htsearch needed into the jail.
> >
> >  Now, when I do a search connecting to (jailed) apache server, search comes
> > up with correct results. The title of the pages looks good but first strings
> > from the document are all garbage. Here is how it looks like - the funny
> > characters there is exactly what I see.
...
> >  If I run Apache and htsearch unjailed using the same database, I am getting
> > correct display. Obviously, something is missing in jailed environment.
> >  I do have /usr/lib/locale directory with all subdirectories and
> > /usr/bin/locale in my jail. I am not sure if it even has anything to do with
> > the problem, I am not trying to index non-English documents anyway.
> >  Any thoughts?
> >  Thanks a lot!!
>
> It looks like you have a compression/decompression problem; do you have
> zlib in your jail environment?

This is my first guess as well.  Try running "ldd" on your htsearch binary,
and make sure all the libraries identified by this are the same in your
jailed and unjailed environments.

Failing that, it could be a database corruption problem in db.excerpts in
the jailed environment, if you're running a 3.2 beta release of htdig.
You didn't identify which version you're running.  Red Hat 7.1 includes
htdig 3.2.0b3 (as htdig-3.2.0-0.b3.4 and htdig-web-3.2.0-0.b3.4 RPMs)
for indexing KDE help files, but a lot of users build their own.

--
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

Reply via email to