Note that there are some explanatory texts on larger screens.

plurals
  1. POSphinx: "error at / (10054, '')"
    primarykey
    data
    text
    <p>I use Django, posgresql, Sphinx 2.0.5</p> <p>search function:</p> <pre><code>def search(S): from sphinxapi import SphinxClient, SPH_MATCH_ANY, SPH_SORT_RELEVANCE client = SphinxClient() client.SetServer('127.0.0.1', 5432) client.SetMatchMode(SPH_MATCH_ANY) client.SetSortMode(SPH_SORT_RELEVANCE) client.SetFieldWeights({'header': 20, 'text': 10}) result = client.Query(S, '*') </code></pre> <p>sphinx.conf:</p> <pre><code>source src1 { type = pgsql sql_host = localhost sql_user = blizzard_moz455_1_3 sql_pass = &lt;pwd&gt; sql_db = blizzard_moz455_1_3 sql_port = 5432 sql_query = \ SELECT id, header, text \ FROM app_main sql_query_info = SELECT * FROM app_main WHERE id=$id } index test1 { source = src1 path = D:/blizzard/Projects/Python/Web/moz455/app/sphinx/data/test1 docinfo = extern charset_type = sbcs } index testrt { type = rt rt_mem_limit = 32M path = D:/blizzard/Projects/Python/Web/moz455/app/sphinx/data/testrt charset_type = utf-8 rt_field = title rt_field = content rt_attr_uint = gid } indexer { mem_limit = 32M } searchd { listen = 9312 listen = 9306:mysql41 log = D:/blizzard/Projects/Python/Web/moz455/app/sphinx/log/searchd.log query_log = D:/blizzard/Projects/Python/Web/moz455/app/sphinx/log/query.log read_timeout = 5 max_children = 30 pid_file = D:/blizzard/Projects/Python/Web/moz455/app/sphinx/log/searchd.pid max_matches = 1000 seamless_rotate = 1 preopen_indexes = 1 unlink_old = 1 workers = threads # for RT to work binlog_path = D:/blizzard/Projects/Python/Web/moz455/app/sphinx/data } </code></pre> <p>I start searchd with command</p> <pre><code>D:/Old/Sphinx/bin/searchd --config D:/Old/Sphinx/bin/sphinx.conf </code></pre> <p>When I start Django and go to localhost:8000 page is loading about half a minute then following error appear:</p> <pre><code>error at / (10054, '') </code></pre> <p>Traceback:</p> <pre><code>D:\blizzard\Projects\Python\Web\venv\Lib\site-packages\django\core\handlers\base.py in get_response response = callback(request, *callback_args, **callback_kwargs) D:\blizzard\Projects\Python\Web\moz455\app\views.py in index search("style") D:\blizzard\Projects\Python\Web\moz455\app\views.py in search result = client.Query(S, '*') D:\blizzard\Projects\Python\Web\moz455\app\sphinxapi.py in Query results = self.RunQueries() D:\blizzard\Projects\Python\Web\moz455\app\sphinxapi.py in RunQueries sock = self._Connect() D:\blizzard\Projects\Python\Web\moz455\app\sphinxapi.py in _Connect v = unpack('&gt;L', sock.recv(4)) </code></pre> <p>What this error means and what I need to do?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload