View Full Version : Auto indexing??
Hi
It seems like my mwlucene is not indexing when an article/page has been made??
Dos anyone know how I can get it to do that?
When I write an article/page and go to search for it afterwards, it can't be found... I have to rebuild mwlucene and then the search will find the article..??
PeteE
05-08-2007, 02:56 PM
Hi
It seems like my mwlucene is not indexing when an article/page has been made??
Dos anyone know how I can get it to do that?
When I write an article/page and go to search for it afterwards, it can't be found... I have to rebuild mwlucene and then the search will find the article..??
mads - Can you verify that the MWUpdateDaemon.exe process is running:
ps auxw |grep MWUpdateDaemon
PHP sends RPC requests to MWUpdateDaemon on port 8124. You can also verify that is running by:
telnet localhost 8124
If it's not running try:
/etc/init.d/mwlucene start
Finally, take a look at the logfile:
/var/log/mwdaemon.log
mads - Can you verify that the MWUpdateDaemon.exe process is running:
ps auxw |grep MWUpdateDaemon
Yes it's seems to be running:
root 1989 0.0 1.3 34756 6768 ? Sl May01 0:57 mono /usr/local/lib/mwsearch/MWUpdateDaemon.exe
root 12976 0.0 0.1 3916 656 pts/0 R+ 19:04 0:00 grep MWUpdateDaemon
PHP sends RPC requests to MWUpdateDaemon on port 8124. You can also verify that is running by:
telnet localhost 8124
Thing something is worng here... nothing happens when connecting to port 8124. But it also looks like the Daemon is binding to port 8123, in the log.
If it's not running try:
/etc/init.d/mwlucene start
Tried to stop and start it, see the log.
Finally, take a look at the logfile:
/var/log/mwdaemon.log
MediaWiki Lucene search indexer - runtime search daemon.
Version 20050517, copyright 2004 Kate Turner.
Errors will be logged to console...
571 [1186112] INFO MediaWiki.Search.Daemon.Daemon (null) - Binding server to port 8123
Unhandled Exception: System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000]
at System.Net.Sockets.TcpListener.Start (Int32 backlog) [0x00000]
at System.Net.Sockets.TcpListener.Start () [0x00000]
at MediaWiki.Search.Daemon.Daemon.Main (System.String[] args) [0x00000]
log4net:ERROR [RollingFileAppender] Unable to acquire lock on file /var/log/mwsearch/daemon-trace.log. Sharing violation on path /var/log/mwsearch/daemon-trace.log
log4net:ERROR [RollingFileAppender] Unable to acquire lock on file /var/log/mwsearch/daemon-warning.log. Sharing violation on path /var/log/mwsearch/daemon-warning.log
MediaWiki Lucene search indexer - update daemon.
Errors will be logged to console...
Unhandled Exception: System.Runtime.Remoting.RemotingException: Configuration file '/usr/local/lib/mwsearch/MWUpdateDaemon.exe.config' could not be loaded: Address already in use ---> System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000]
at System.Net.Sockets.TcpListener.Start (Int32 backlog) [0x00000]
at System.Net.Sockets.TcpListener.Start () [0x00000]
at System.Runtime.Remoting.Channels.Http.HttpServerCh annel.StartListening (System.Object data) [0x00000]
at System.Runtime.Remoting.Channels.Http.HttpServerCh annel.SetupChannel (IServerChannelSinkProvider sinkProvider, IDictionary properties) [0x00000]
at System.Runtime.Remoting.Channels.Http.HttpServerCh annel..ctor (IDictionary properties, IServerChannelSinkProvider sinkProvider) [0x00000]
at System.Runtime.Remoting.Channels.Http.HttpChannel. SetupChannel (IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider) [0x00000]
at System.Runtime.Remoting.Channels.Http.HttpChannel. .ctor (IDictionary properties, IClientChannelSinkProvider clientSinkProvider, IServerChannelSinkProvider serverSinkProvider) [0x00000]
at <0x00000> <unknown method>
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[])
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] --- End of inner exception stack trace ---
at System.Runtime.Remoting.RemotingConfiguration.Read ConfigFile (System.String filename) [0x00000]
at System.Runtime.Remoting.RemotingConfiguration.Conf igure (System.String filename) [0x00000]
at MediaWiki.Search.UpdateDaemon.Daemon.Main (System.String[] args) [0x00000]
As I can see in the log, it looks like it may have something to do with the binding to port 8123 insted of 8124, and maybe something with /usr/local/lib/mwsearch/MWUpdateDaemon.exe.config ??
netstat -lp gives me this:
tcp 0 0 *:8123 *:* LISTEN 7062/mono
tcp 0 0 *:8124 *:* LISTEN 1989/mono
Can this be a problem??
PeteE
05-08-2007, 05:26 PM
Ok so the daemon is obviously running. Can you tail the log and then create a page to see if the daemon is getting the request?
tail -f /var/log/mwdaemon.log
then create a new page...
Ok so the daemon is obviously running. Can you tail the log and then create a page to see if the daemon is getting the request?
tail -f /var/log/mwdaemon.log
then create a new page...
Okay very strange... I just tried to tail the log, and now it works... I don't think it has something to do with me tailing the log..:) but maybe because I have stopped and started the mwlucene a couple of times now..??
But if I run /etc/init.d/mwlucene stop, It still works?? strange?? Mabye the mwlucene script can't stop the process.... As the log also shows it complains that some files already are in use, when I try to start it again.
Maybe it need a restart... :)
But thanks for your help... I will tried testing it some more.. and return if I get the problem again :)
Powered by vBulletin™ Version 4.1.3 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.