-
Notifications
You must be signed in to change notification settings - Fork 468
Closed
Description
The following error occurred with system specs.
1) /search?search={...} search doesn't show content that has no image
Failure/Error: ThinkingSphinx::Test.start_with_autostop
Riddle::CommandFailedError:
Sphinx command failed to execute
# /home/user/.rvm/gems/ruby-2.6.5/gems/riddle-2.4.2/lib/riddle/execute_command.rb:25:in `call'
# /home/user/.rvm/gems/ruby-2.6.5/gems/riddle-2.4.2/lib/riddle/execute_command.rb:7:in `call'
# /home/user/.rvm/gems/ruby-2.6.5/gems/riddle-2.4.2/lib/riddle/controller.rb:33:in `index'
# /home/user/.rvm/gems/ruby-2.6.5/gems/thinking-sphinx-5.1.0/lib/thinking_sphinx/test.rb:11:in `start'
# /home/user/.rvm/gems/ruby-2.6.5/gems/thinking-sphinx-5.1.0/lib/thinking_sphinx/test.rb:17:in `start_with_autostop'
# ./spec/support/sphinx_helpers.rb:8:in `start'
# ./spec/system/search_spec.rb:18:in `block (2 levels) in <top (required)>'
# /home/user/.rvm/gems/ruby-2.6.5/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:318:in `load'
# /home/user/.rvm/gems/ruby-2.6.5/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:318:in `block in load'
# /home/user/.rvm/gems/ruby-2.6.5/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:291:in `load_dependency'
# /home/user/.rvm/gems/ruby-2.6.5/gems/activesupport-6.0.3.5/lib/active_support/dependencies.rb:318:in `load'
# /home/user/.rvm/gems/ruby-2.6.5/gems/spring-commands-rspec-1.0.4/lib/spring/commands/rspec.rb:18:in `call'
# -e:1:in `<main>'
I've tracked it down to:
$ indexer --config "/home/user/project/config/test.sphinx.conf" --all --verbose
Sphinx 2.2.11-id64-release (95ae9a6)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/home/user/project/config/test.sphinx.conf'...
ERROR: section 'course_core_0' (type='source') already exists in /home/user/project/config/test.sphinx.conf line 249 col 1.
FATAL: failed to parse config file '/home/user/project/config/test.sphinx.conf'
At the same tame:
$ RAILS_ENV=test bundle exec rake ts:restart
Sphinx 2.2.11-id64-release (95ae9a6)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/home/user/project/config/test.sphinx.conf'...
ERROR: section 'course_core_0' (type='source') already exists in /home/user/project/config/test.sphinx.conf line 249 col 1.
FATAL: failed to parse config file '/home/user/project/config/test.sphinx.conf'
The Sphinx stop command failed:
Command: searchd --pidfile --config "/home/user/project/config/test.sphinx.conf" --stopwait
Status: 1
Output: See above
while at the same time indexing is successful
$ RAILS_ENV=test bundle exec rake ts:index
Sphinx 2.2.11-id64-release (95ae9a6)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/home/user/project/config/test.sphinx.conf'...
indexing index 'course_core'...
collected 688 docs, 0.0 MB
collected 588 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.0 Mhits, 100.0% done
total 688 docs, 16585 bytes
total 0.045 sec, 361360 bytes/sec, 14990.41 docs/sec
indexing index 'course_section_core'...
collected 596 docs, 0.0 MB
collected 312 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.0 Mhits, 100.0% done
total 596 docs, 8288 bytes
total 0.028 sec, 285921 bytes/sec, 20560.94 docs/sec
indexing index 'episode_core'...
collected 822 docs, 0.0 MB
collected 794 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.0 Mhits, 100.0% done
total 822 docs, 21930 bytes
total 0.050 sec, 438468 bytes/sec, 16435.06 docs/sec
indexing index 'material_core'...
collected 806 docs, 0.0 MB
collected 2434 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.0 Mhits, 100.0% done
total 806 docs, 22803 bytes
total 0.067 sec, 335436 bytes/sec, 11856.42 docs/sec
indexing index 'nonreusable_content_core'...
collected 40 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 40 docs, 2491 bytes
total 0.016 sec, 150850 bytes/sec, 2422.33 docs/sec
indexing index 'program_core'...
collected 183 docs, 0.1 MB
collected 151 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.0 Mhits, 100.0% done
total 183 docs, 90471 bytes
total 0.039 sec, 2263246 bytes/sec, 4577.97 docs/sec
indexing index 'task_core'...
collected 180 docs, 0.0 MB
collected 180 attr values
sorted 0.0 Mvalues, 100.0% done
sorted 0.0 Mhits, 100.0% done
total 180 docs, 3643 bytes
total 0.017 sec, 211335 bytes/sec, 10442.04 docs/sec
skipping non-plain index 'course'...
skipping non-plain index 'course_section'...
skipping non-plain index 'episode'...
skipping non-plain index 'material'...
skipping non-plain index 'nonreusable_content'...
skipping non-plain index 'program'...
skipping non-plain index 'task'...
total 14186 reads, 0.019 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 96 writes, 0.006 sec, 14.1 kb/call avg, 0.0 msec/call avg
rotating indices: successfully sent SIGHUP to searchd (pid=246579).
I am not sure how to even track it. Where could I start with?
Metadata
Metadata
Assignees
Labels
No labels