-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: section 'course_core_0' (type='source') already exists in /home/user/project/config/test.sphinx.conf line 249 col 1. #1191
Comments
Hmm, this problem has been reported a couple of times in the past (#764 and #523), but I'm not sure I've found a reliable solution. Essentially, it seems that indices are being defined more than once. In terms of debugging - can you check how many times the your index definition files are being loaded by Ruby (perhaps just by adding a Also: which versions of Ruby/Rails/Sphinx are being used? Is there anything particularly custom with your index definitions? i.e. are they dynamically generated? Can you share the definitions? (at least for the Course index, given that seems to be where things aren't going to plan) |
Rails 6.0.3.5 Nothing custom. Here is the definition
Running when spring is loaded the indices definition files are loaded once. I've added 'puts "LOADING COURSE_INDEX"' at the top and it is printed.
Probably they are not cleared? Here is the spec
Where SphinxHelpers are
|
Just to confirm: if you stop Spring before the second run of tests, do they pass? (I'm expecting that's the case, but good to be sure.) Wondering why this hasn't cropped up elsewhere before… can you share the contents of your |
No. This does not seem to be the case. Stop spring, start spring, sometimes it passes like once every 10 times, most of the time it does not. I can't find a pattern. I have tried many times with spring. Many times without spring. With and without. bin/rspec is
|
Thanks for that binstub. I've run some Sphinx specs in a local project using Spring, and they're consistently green. I do hate to ask this - because I realise it's not an easy thing to do - but are you able to create an example Rails app that reproduces the problem on your machine, and then share it in a public repo? I definitely want to get to the bottom of this problem, but it's close to impossible without being able to see it happen locally. |
What If we schedule a meeting and we spend some time looking at it
together?
…On Sat, Mar 20, 2021, 06:58 Pat Allan ***@***.***> wrote:
Thanks for that binstub. I've run some Sphinx specs in a local project
using Spring, and they're consistently green.
I do hate to ask this - because I realise it's not an easy thing to do -
but are you able to create an example Rails app that reproduces the problem
on your machine, and then share it in a public repo? I definitely want to
get to the bottom of this problem, but it's close to impossible without
being able to see it happen locally.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKAGBNP7B2LEE2LFUSQ4EDTEQTOLANCNFSM4X7M2CIA>
.
|
The following error occurred with system specs.
I've tracked it down to:
At the same tame:
while at the same time indexing is successful
I am not sure how to even track it. Where could I start with?
The text was updated successfully, but these errors were encountered: