Signal 11 when indexing

andres.karner
Posts: 7
Joined: Wed May 16, 2001 6:10 am

Signal 11 when indexing

Post by andres.karner »

Hi.
I created scripts to index my site nightly and for some time all worked fine. But then I discovered that some pages are not indexed any more. Then I tried manually and found out that there was error when indexing new pages:

[andres@... search]$ /u2/search/bin/gw -d/u2/search/data/db -r -index
Indexing new pages
000 Got signal 11 - quitting now

What can be reason of that?

rgds-
Andres
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

Signal 11 when indexing

Post by bart »

A corrupt index or db is usually the cause, and usually because the machine either ran out of disk space or crashed amid an index update.

Try:

gw -unindex
gw - index

and see if this resolves the matter.
andres.karner
Posts: 7
Joined: Wed May 16, 2001 6:10 am

Signal 11 when indexing

Post by andres.karner »

Nope. Exactly same error.

I tried to remove all files from .../db/ directory to create totally new db but this doesn't succeeded as well.. Then I got messages like:

Database /u2/search/data/db exists, but can not be opened
bart
Posts: 251
Joined: Wed Apr 26, 2000 12:42 am

Signal 11 when indexing

Post by bart »

Ooops...
You shouldn't remove files from the DB directory manually, just the gw -wipe or -unindex commands. At this point you should start over. Remove the directory and then use "gw -d/u2/search/data/db -create"
andres.karner
Posts: 7
Joined: Wed May 16, 2001 6:10 am

Signal 11 when indexing

Post by andres.karner »

I didn't removed put moved ;)
But anyway. I just 1 minute ago found out this "-create" parameter and tried this but:

$ /u2/search/bin/gw -d/u2/search/data/db -create
200 Database created
000 Got signal 11 - quitting now

Hmh. After that I tried to index my site and seems that this started to work.... Let see will this end with success....
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Signal 11 when indexing

Post by mark »

rm -r /u2/search/data/db
then try -create with -v9 to get a better idea of where it's failing.

What's your OS type and version (uname -a)?
What's your gw version and release (gw -version)?
andres.karner
Posts: 7
Joined: Wed May 16, 2001 6:10 am

Signal 11 when indexing

Post by andres.karner »

$ /u2/search/bin/gw -v9 -d/u2/search/data/db -create
Option: "-d/u2/search/data/db"
Option: "-v9"
Option: "-d/u2/search/data/db"
Option: "-create"
100 User _SYSTEM has been added without a password.
100 User PUBLIC has been added without a password.
200 Database created
Create /u2/search/data/db/.htaccess
Copy /home/httpd/html/webinator/.master/SYSOBJECTS.tbl to /u2/search/data/db/SYSOBJECTS.tbl
create table html(id counter,New int,Visited date,Dlsecs int,Depth int,Url varchar(80),Title varchar(80),Body blob,Meta blob);
create table refs(id counter,Url varchar(80),Ref varchar(80));
create table todo(Dlsecs int,Depth int,Url varchar(80));
create table error(id counter,Url varchar(80),Reason varchar(80));
create table options(id counter,Profile varchar(8),Name varchar(8),Type varchar(8),Int int,Float double,String varchar(80),Strlist strlst);
create table querylog(id counter,Client varchar(40),Query varchar(80));
create unique index xhtmlurl on html(Url);
000 Got signal 11 - quitting now
getip() called 0 times. 0 hits
gethostbyname() called 0 times

$ uname -a Linux christopher 2.4.3 #1 Tue Apr 24 23:06:56 EET 2001 i686 unknown

$ /u2/search/bin/gw -version
Webinator WWW Site Indexer Version 2.56 (Free)
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Signal 11 when indexing

Post by mark »

It looks like you may have downloaded the wrong version (or upgraded your kernel). You should download the version for Linux 2.x, not 1.x.
andres.karner
Posts: 7
Joined: Wed May 16, 2001 6:10 am

Signal 11 when indexing

Post by andres.karner »

Yes. This was true. I found out that our sysadmin was updated kernel resently. So I took another version of gw. But... Still errors :(

$ /u2/search/bin/gw -v9 -d/u2/search/data/db -create
Option: "-d/u2/search/data/db"
Option: "-v9"
Option: "-d/u2/search/data/db"
Option: "-create"
002 can't open shared mem: Invalid argument
000 Could not open locking mechanism
002 can't open shared mem: Invalid argument
000 Could not open locking mechanism
003 Can't create database /u2/search/data/db
getip() called 0 times. 0 hits
gethostbyname() called 0 times
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Signal 11 when indexing

Post by mark »

We know Webinator works with Linux 2.4.2 and glibc 2.1.3. It should also work with 2.4.3. You need to have System V IPC enabled in the kernel. The ipcs command will give the status of shared mem. Also the /proc/sysvipc should be indicative of whether it's enabled or not.

If you have System V IPC enabled but still have a problem, run gw with strace and send us the output.
strace /u2/search/bin/gw -v9 -d/u2/search/data/db -create
Please also indicate your libc version.