I hav tried during hours to solve this bug :
ERROR: index ‘idx_ca’: source ‘src_ca’: not all columns found (found=57, total=56, line=71062)
I hav checked my csv no problem with number of values per line.
I think is a bug in manticore.
Any solution or advices ?
I hav fixed the problem with csv import, in fact i just forgot to add the id field in my header and data.
But i have en other error, sphinxQl says (http or mysql client ) : Error SQL (1064) : unknown local index(es). Even if the indexer says averything is fine after indexing and rotating the index created from csvpipe.
when you should look at your daemon searchd.log to check for errors or restart daemon with —logdebug command line option to get more info on index loading process
I hav done that for every folder where manticore is installed. In fact every time i want to create a new plain index or rotate i hav a problem with folder or pid file already run by another process.
Is there a comman i can use to say to manticore that everything is fine with folders and pid file ?
It is : i connect to server in ssh with root acces
I use indexer command when errors with pid file or permission
I try search commands.
I dont understand the problem.
I suspect you do systemctl start manticore which by defaults run searchd not under root. Therefore when you then run indexer under root it has enough rights to write the new index files, but when you then try to use it with the Manticore Search instance it doesn’t have right as it’s not run under root. It’s just my assumption.
When i do “ps aux|grep searchd”
i have this
mantico+ 4820 0.0 0.0 38536 3896 ? S Aug30 0:00 /usr/bin/search d --config /etc/manticoresearch/manticore.conf
mantico+ 4821 0.0 0.0 827072 7936 ? Sl Aug30 0:14 /usr/bin/search d --config /etc/manticoresearch/manticore.conf
root 24384 0.0 0.0 12716 1020 pts/0 S+ 11:11 0:00 grep searchd
I have tried this 3 commands
systemctl start manticore
searchd -c /etc/manticoresearch/manticore.conf
/etc/init.d/manticore start
When i do systemctl or /etc/init my console seems tyo be in a dead loop with “[…] Starting manticore (via systemctl): manticore.service” i have to do CRTL+Z
My system is debian9 32GB of ram
Is there a proper way to index my tables without thes pid and folder permission ?
Last lines of my log file :
[Sun Aug 30 22:36:24.969 2020] [4822] WARNING: rotating index ‘idx_ca’: .new preload failed: failed to open file ‘/var/lib/manticore/data/idx_ca.spa’: ‘Permission denied’
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.sph’, error ‘No such file or directory’
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spa’, error ‘No such file or directory’
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spi’, error ‘No such file or directory’
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spd’, error ‘No such file or directory’
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spp’, error ‘No such file or directory’
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spe’, error ‘No such file or directory’
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spm’, error ‘No such file or directory’
[Sun Aug 30 22:36:24.983 2020] [4822] rotating index ‘idx_ca’: success
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: index ‘idx_ca’: rotating index ‘idx_ca’: .new preload failed; ROLLBACK FAILED; INDEX UNUSABLE
[Sun Aug 30 22:36:24.983 2020] [4822] WARNING: index ‘idx_ca’: prealloc: failed to open file ‘/var/lib/manticore/data/idx_ca.spa’: ‘Permission denied’ - NOT SERVING
[Sun Aug 30 22:36:24.991 2020] [4821] accepting connections
[Sun Aug 30 22:36:24.991 2020] [4826] prereading 0 indexes
[Sun Aug 30 22:36:24.991 2020] [4826] prereaded 0 indexes in 0.000 sec
[Sun Aug 30 22:37:31.851 2020] [4821] caught SIGHUP (seamless=1, in_rotate=0, need_rotate=0)
[Sun Aug 30 22:37:31.851 2020] [4823] WARNING: nothing to rotate after SIGHUP
[Sun Aug 30 22:39:18.342 2020] [4821] caught SIGHUP (seamless=1, in_rotate=0, need_rotate=0)
[Sun Aug 30 22:39:18.342 2020] [4823] Config changed (read 25693 chars)
[Sun Aug 30 22:39:18.342 2020] [4823] rotating index ‘idx_ca’: started
[Sun Aug 30 22:39:18.343 2020] [4823] WARNING: index ‘idx_ca’: prealloc: failed to open file ‘/var/lib/manticore/data/idx_ca.new.spa’: ‘Permission denied’
[Sun Aug 30 22:39:18.343 2020] [4823] rotating index: all indexes done
[Mon Aug 31 11:19:37.276 2020] [24559] watchdog: main process 24560 forked ok
[Mon Aug 31 11:19:37.277 2020] [24560] FATAL: failed to lock pid file ‘/var/run/manticore/searchd_v2.pid’: Resource temporarily unavailable (searchd already running?)
[Mon Aug 31 11:19:37.278 2020] [24559] watchdog: main process 24560 exited cleanly (exit code 1), shutting down
[Mon Aug 31 11:19:37.278 2020] [24559] watchdog: got error 10, No child processes
that error means that index files belong to another user - maybe root user? That is why daemon can not access these files and uses indexes. You have to figure that out and change index file permissions to manticore user
means that another daemon already running and uses the same config and pid file or you run daemon previously from root user and now pid file of daemon also belongs to root user - you have to figure that out and change log \ pid and other daemon related files permissions to manticore user
i have tried to change folder permission
i hav tried searchd -c /etc/manticoresearch/manticore.conf command
error : failed to open pid_file ‘/var/run/manticore/searchd_v2.pid’.
and indexer --rotate --all
error in log :
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: rotating index ‘idx_ca’: .new preload failed: failed to open file ‘/var/lib/manticore/data/idx_ca.spa’: ‘Permission denied’
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.sph’, error ‘No such file or directory’
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spa’, error ‘No such file or directory’
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spi’, error ‘No such file or directory’
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spd’, error ‘No such file or directory’
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spp’, error ‘No such file or directory’
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spe’, error ‘No such file or directory’
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: unlink failed (file ‘/var/lib/manticore/data/idx_ca.old.spm’, error ‘No such file or directory’
[Mon Aug 31 13:44:47.166 2020] [27159] rotating index ‘idx_ca’: success
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: index ‘idx_ca’: rotating index ‘idx_ca’: .new preload failed; ROLLBACK FAILED; INDEX UNUSABLE
[Mon Aug 31 13:44:47.166 2020] [27159] WARNING: index ‘idx_ca’: prealloc: failed to open file ‘/var/lib/manticore/data/idx_ca.spa’: ‘Permission denied’ - NOT SERVING
[Mon Aug 31 13:44:47.167 2020] [27162] prereading 0 indexes
[Mon Aug 31 13:44:47.167 2020] [27162] prereaded 0 indexes in 0.000 sec
[Mon Aug 31 13:44:47.167 2020] [27157] accepting connections
[Mon Aug 31 13:46:04.708 2020] [27157] caught SIGHUP (seamless=1, in_rotate=0, need_rotate=0)
[Mon Aug 31 13:46:04.708 2020] [27158] WARNING: nothing to rotate after SIGHUP
It seems an infinite problem, a solution send to another problem.
Is there a process to follow in order to allow manticore to access pid and folder ?
you need to stop your daemon then issue chown command to folder and to file then check with ls the permissions set and should then you can start your usual command and with ls find what command change permissions