VPS server: Ubuntu 18.04, LAMP, Nginx, firewall turned off. Installed Sphinx, with grief in half, set up the indexing of one database, everything is fine (indexed), then remade it for a new database (the old one was not needed, and its index, respectively, too).
Configured the sphinx config:
source table_sourse { # Π’ΠΈΠΏ Π΄Π°Π½Π½ΡΡ
(mysql, pgsql, mssql, xmlpipe, xmlpipe2, odbc) type = mysql # ΠΠ΅ΠΎΠ±Ρ
ΠΎΠ΄ΠΈΠΌΡΠ΅ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΡ Π΄Π»Ρ ΠΏΠΎΠ΄ΠΊΠ»ΡΡΠ΅Π½ΠΈΡ ΠΊ Π±Π°Π·Π΅ Π΄Π°Π½Π½ΡΡ
sql_host = localhost sql_user = User sql_pass = Pass sql_db = table sql_port = 3306 # ΠΏΡΠ΅Π΄-Π·Π°ΠΏΡΠΎΡ, Π²ΡΠΏΠΎΠ»Π½ΡΠ΅ΡΡΡ ΠΏΠ΅ΡΠ΅Π΄ Π²ΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ΠΌ ΠΎΡΠ½ΠΎΠ²Π½ΠΎΠ³ΠΎ Π·Π°ΠΏΡΠΎΡΠ° Π½Π° ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΠ΅ Π΄Π°Π½Π½ΡΡ
ΠΈΠ· Π±Π°Π·Ρ (ΠΊΠΎΠ΄ΠΈΡΠΎΠ²ΠΊΠ° UTF-8) sql_query_pre = SET NAMES utf8 # Π·Π°ΠΏΡΠΎΡ, ΠΊΠΎΡΠΎΡΡΠΉ ΠΏΠΎΠ»ΡΡΠ°Π΅Ρ Π΄Π°Π½Π½ΡΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠΎΠ² Π΄Π»Ρ ΠΏΠΎΠΈΡΠΊΠ° (ΠΏΠ΅ΡΠ²ΠΎΠ΅ ΠΏΠΎΠ»Π΅ ΠΎΠ±ΡΠ·Π°ΡΠ΅Π»ΡΠ½ΠΎ ΡΠ½ΠΈΠΊΠ°Π»ΡΠ½ΡΠΉ ΠΏΠΎΠ»ΠΎΠΆΠΈΡΠ΅Π»ΡΠ½ΡΠΉ ID Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°) sql_query = SELECT code, name, nds, posh FROM table sql_attr_bigint = code sql_attr_string = name } # ΠΈΠ½Π΄Π΅ΠΊΡ Π΄Π»Ρ ΠΏΠΎΠΈΡΠΊΠ° index table { # ΠΡΡΠΎΡΠ½ΠΈΠΊ Π΄Π°Π½Π½ΡΡ
(ΡΠ°Π±Π»ΠΈΡΠ° Π² ΠΠ) Π΄Π»Ρ ΠΈΠ½Π΄Π΅ΠΊΡΠΈΡΠΎΠ²Π°Π½ΠΈΡ source = table # ΠΠ΄ΡΠ΅Ρ, Π³Π΄Π΅ Π±ΡΠ΄ΡΡ Ρ
ΡΠ°Π½ΠΈΡΡΡ Π΄Π°Π½Π½ΡΠ΅ ΠΈΠ½Π΄Π΅ΠΊΡΠ° path = /home/user/data # ΠΠ½Π΄Π΅ΠΊΡ Ρ ΡΡΠ΅ΡΠΎΠΌ ΠΌΠΎΡΡΠΎΠ»ΠΎΠ³ΠΈΠΈ morphology = stem_ru # ΠΠΈΠ½ΠΈΠΌΠ°Π»ΡΠ½Π°Ρ Π΄Π»ΠΈΠ½Π° ΡΠ»ΠΎΠ²Π° Π΄Π»Ρ ΠΈΠ½Π΄Π΅ΠΊΡΠ°ΡΠΈΠΈ min_word_len = 1 # ΠΠΎΠ΄ΠΈΡΠΎΠ²ΠΊΠ° charset_type = utf-8 # Π’Π°ΠΊ ΠΈ Π½Π΅ ΠΏΠΎΠ½ΡΠ», ΡΡΠΎ ΡΡΠΎ, ΠΏΠΎΡΡΠΎΠΌΡ Π·Π°ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠΈΡΠΎΠ²Π°Π» # docinfo = extern } indexer { mem_limit = 1024M # Π»ΠΈΠΌΠΈΡ ΠΏΠ°ΠΌΡΡΠΈ Π΄Π»Ρ ΡΠ°Π±ΠΎΡΡ ΠΈΠ½Π΄Π΅ΠΊΡΠ°ΡΠΎΡΠ° } # ΠΠΎΠΈΡΠΊΠΎΠ²Π°Ρ ΡΠ»ΡΠΆΠ±Π° searchd { # ΠΊΠ°ΠΊΠΎΠΉ ΠΏΠΎΡΡ ΠΈ ΠΊΠ°ΠΊΠΎΠΉ ΠΏΡΠΎΡΠΎΠΊΠΎΠ» "ΡΠ»ΡΡΠ°Π΅Ρ" ΡΠ»ΡΠΆΠ±Π° listen = 9306:mysql41 # ΡΠ°ΠΉΠ» Ρ Π»ΠΎΠ³Π°ΠΌΠΈ log = /var/log/sphinxsearch/searchd.log # ΡΠ°ΠΉΠ» Ρ Π»ΠΎΠ³Π°ΠΌΠΈ ΠΏΠΎΠΈΡΠΊΠΎΠ²ΡΡ
Π·Π°ΠΏΡΠΎΡΠΎΠ² query_log = /var/log/sphinxsearch/query.log read_timeout = 60 max_children = 30 # PID file, searchd process ID file name pid_file = /var/run/sphinxsearch/searchd.pid seamless_rotate = 0 preopen_indexes = 1 unlink_old = 1 binlog_path = /var/lib/sphinxsearch/data } Reboot the server. Logged in as root, I launch the Sphinx with the command:
searchd I get an error (below screen). I check the running processes, there is no sphinx there. I try to start indexing:
sudo indexer --all The same mistake (screen with two teams). Swears on the config file 
Before that, they recommended that I delete the PID file (I did, but I can recover) the old index. He did everything, but little has changed.
After corrections, when indexing is: 
As if he was doing this indexing, but there are no index files in the / var / lib / sphinxsearch / folder (there are no files at all).
Yes, another clarification: in this database, the column with a unique number of terms is the name column. Sphinx swears at him too (see second screen)
What is the error and how to fix it?
sql_queryin line to write down without slashes? - nobody/var/lib/sphinxsearch/dataeven exist? - andreymal