The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#301
|
|||
|
|||
Still waiting for some help here. Thanks.
Quote:
|
#302
|
||||
|
||||
Did you find a solution? I did a line by line comparison to my conf and did not find anything obvious.
You XXed out your db name (sql_db=xx) does that match sphinx.sphinx_counter. What I mean is, does your sql_db=sphinx ? (they should match or you can remove the sphinx. part and it should work as well) Also, just as a suggestion, I would set up a mysql user other than root (i.e. sql_user = root). -RayJ |
#303
|
|||
|
|||
Quote:
I try the user change; but that shouldn?t make any trouble. |
#304
|
||||
|
||||
Quote:
I put my counter in the same DB as vBulletin (I am lazy!). My question is: Does your script have a "mysql_select_db()" command to access the "sphinx" counter DB? I am asking partially due to my own ignorance as I have not taken the time to really learn how vBulletin and Sphinx work together and I am not sure if the counter DB is automatically "selected" for you. (again with the lazy!) -RayJ |
#305
|
|||
|
|||
Why do you want to complicate things by keeping the counter in a separate db? What is the issue with keeping it in the same db?
Even if that does not solve the problem, at least we all will know the problem is elsewhere. |
#306
|
|||
|
|||
Here i go with sphinx counter in forum db:
Code:
debian:/usr/local/sphinx/bin# ./indexer --config /usr/local/sphinx/etc/sphinx.conf --rotate --all Sphinx 0.9.7-RC2 Copyright (c) 2001-2006, Andrew Aksyonoff using config file '/usr/local/sphinx/etc/sphinx.conf'... indexing index 'vbpost'... collected 6058520 docs, 1721.0 MB sorted 173.1 Mhits, 100.0% done total 6058520 docs, 1721024070 bytes total 1107.264 sec, 1554303.57 bytes/sec, 5471.61 docs/sec indexing index 'vbpostindex'... collected 268 docs, 0.1 MB sorted 0.0 Mhits, 100.0% done total 268 docs, 67017 bytes total 0.037 sec, 1802990.42 bytes/sec, 7210.13 docs/sec indexing index 'vbthreadindex'... WARNING: zero/NULL attribute 'lastpost' for document_id=159188, fixed up to 1 WARNING: zero/NULL attribute 'lastpost' for document_id=174376, fixed up to 1 WARNING: zero/NULL attribute 'lastpost' for document_id=188952, fixed up to 1 collected 144559 docs, 4.1 MB sorted 0.4 Mhits, 100.0% done total 144559 docs, 4113375 bytes total 2.832 sec, 1452684.27 bytes/sec, 51052.62 docs/sec indexing index 'vbthreadindexdelta'... collected 0 docs, 0.0 MB total 0 docs, 0 bytes total 0.010 sec, 0.00 bytes/sec, 0.00 docs/sec skipping index 'vbfulltext' (distributed indexes can not be directly indexed)... skipping index 'vbfulltextthread' (distributed indexes can not be directly indexed)... WARNING: failed to read pid_file '/var/run/searchd.pid'. WARNING: indices NOT rotated. debian:/usr/local/sphinx/bin# ./searchd --config /usr/local/sphinx/etc/sphinx.conf Sphinx 0.9.7-RC2 Copyright (c) 2001-2006, Andrew Aksyonoff using config file '/usr/local/sphinx/etc/sphinx.conf'... WARNING: index 'vbpost': failed to preload schema and docinfos - NOT SERVING WARNING: index 'vbpostindex': failed to preload schema and docinfos - NOT SERVING WARNING: index 'vbthreadindex': failed to preload schema and docinfos - NOT SERVING WARNING: index 'vbthreadindexdelta': failed to preload schema and docinfos - NOT SERVING WARNING: index 'vbfulltext': no such local index 'vbpost' - NOT SERVING WARNING: index 'vbfulltext': no such local index 'vbpostindex' - NOT SERVING WARNING: index 'vbfulltext': no valid local/remote indexes in distributed index - NOT SERVING WARNING: index 'vbfulltextthread': no such local index 'vbthreadindex' - NOT SERVING WARNING: index 'vbfulltextthread': no such local index 'vbthreadindexdelta' - NOT SERVING WARNING: index 'vbfulltextthread': no valid local/remote indexes in distributed index - NOT SERVING FATAL: no valid indexes to serve debian:/usr/local/sphinx/bin# |
#307
|
||||
|
||||
Quote:
Quote:
If searchd is already running ./indexer --config /usr/local/sphinx/etc/sphinx.conf --rotate --all If searchd is NOT already running ./indexer --config /usr/local/sphinx/etc/sphinx.conf --all I would delete all the indexes that were created under /var/sphinx/ first. -RayJ |
#308
|
|||
|
|||
Quote:
Another question; what are recommended update settings ? |
#309
|
||||
|
||||
Just curious for people's indexer updates, how often do you do them and how to you manage the delta vs full?
Right now I have a cron job running every 5 minutes to do the delta files since they only take a few seconds. I do a full rebuild maybe once a week or so (after disabling the delta cronjob so it doesn't try to run at the same time). I would like to automate the full rebuild, but changing the delta one would require a really ugly cron looking line. Alternatively I could have another script check the time and figure out which job to run and if a job is already running and all that. Second, how do you guys rotate your searchd & query log files? The only way I have gotten it to do that is to kill searchd completely and restart it. It would be nice if there was a more graceful method. Oh boy... found a little issue that might affect some people... *If* you are running MySQL 4.0.x you can't do the sub-selects in the conf file. Not a *huge* deal as the code can be re-written (which I'm doing now). Yes I know I should be running a much newer version of mysql, but I have an app that uses the old timestamp format and I haven't had a chance to re-write it all completely, thus I'm still using the old mysql. I'll post the modified conf up later once I fix it compeltely and edit out stuff specific to my forum. |
#310
|
||||
|
||||
No problem! Having just gone through all this myself, I am happy to help by passing on what I have learned.
I also like to give credit where it is due: so thank you Orban ( https://vborg.vbsupport.ru/showpost.php?p=1104866 ) Quote:
Quote:
Code:
#!/bin/sh LOCKFILE=/var/lock/sphinx.cron.lock INDEXER_CONF=/usr/local/etc/sphinx.conf # the lockfile is not meant to be perfect, it's just in case the # two sphinx cron scripts get run close to each other to keep # them from stepping on each other's toes. [ -f $LOCKFILE ] && exit 0 trap "{ rm -f $LOCKFILE ; exit 255; }" EXIT touch $LOCKFILE cd /usr/local/bin/ #(NOTE: this should be where indexer is located) DELTAS_ONLY_LINE: ./indexer --config $INDEXER_CONF --rotate YOUR_POST_INDEX_DELTA YOUR_THREAD_INDEX_DELTA >/dev/null 2>&1 OR FULL_INDEX_LINE ./indexer --all --rotate --config $INDEXER_CONF >/dev/null 2>&1 exit 0 I created a folder called: "/etc/cron.20minutes" and then added the line "*/20 * * * * root run-parts /etc/cron.20minutes" to "/etc/crontab" then put the cron with the DELTAS_ONLY_LINE in that folder and put the cron with FULL_INDEX_LINE in my "/etc/cron.daily" (you could also put it in "/etc/cron.weekly") As far as log rotation goes, I used the Power of Linux once more! I just created the file: "/etc/logrotate.d/sphinx" Code:
/var/log/searchd.log /var/log/query.log { notifempty missingok } log = /var/log/searchd.log query_log = /var/log/query.log Now they rotate all by themselves! -RayJ |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|