MathWebSearch / mws

MathWebSearch Implementation
https://search.mathweb.org/
GNU General Public License v3.0
47 stars 12 forks source link

encountered problem after sending MWSQuery #66

Closed tobuhl closed 10 years ago

tobuhl commented 10 years ago

after starting mws service and sending a MWSQuery, I encountered the following error:

mwsd: /mnt/mws/src/mws/index/IndexAccessor.hpp:79: static mws::index::IndexAccessor::Node* mws::index::IndexAccessor::getChild(mws::index::IndexAccessor::Index, mws::index::IndexAccessor::Node, encoded_token_t): Assertion `node->type == INTERNAL_NODE' failed.

im new to MWS and not really sure about how i can solve this problem

cprodescu commented 10 years ago

Thank you for the report. What command did you use to start it and on what harvests / index? Also, what is you operating system?

tobuhl commented 10 years ago

i executed /scripts/sysv/deploy.sh with a modified config file with the following options: MWS_DEPLOY_NAME="inst1" MWS_PORT=9090 MWS_DATA_PATH="../../bin" MWS_HARVEST_PATH="../../mathIndex/mi" MWS_BIN_PATH="../../bin" MWS_DAEMON_EXTRA_ARGS="-e \"xml\""

the harvests are some xml files in the /mathIndex/mi directory (19 files; ca. 1.6 gb total).

uname -a: Linux mws 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

cprodescu commented 10 years ago

I am not able to replicate the issue on an Ubuntu 12.04 :( The deploy.sh SysV integration is a bit outdated. Coult you try the mws-config alternative and see if you have any issues there?

cd /path/to/mws
make test
sudo make install
sudo mws-config create -p 9090 -i /path/to/mathIndex/mi inst1 -- -e "xml"
sudo mws-config enable inst1

This should start the system and you should be able to monitor the process by

tail /var/log/mwsd_inst1.log
sudo service mwsd_inst1 status

If there is an error, let me know what's in the log and if the error also persists when running:

 mws-config test inst1
tobuhl commented 10 years ago

great, it works! i used your command for creation without the two hyphens: sudo mws-config create -p 9090 -i /path/to/mathIndex/mi inst1 -e "xml"

thanks for the quick response :)