Skip to content
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

Works fine on Dev, but on Prod many index files are missing and all owned by root (same database) #288

Closed
muppsy007 opened this issue Jul 13, 2020 · 0 comments

Comments

@muppsy007
Copy link

This is an odd one, as the module and solr search setup has worked for over a year without issue. What I'm about to describe only occurred after I tried to reindex on Production yesterday.

Symptoms: After running Solr_Reindex, search from Silverstripe (Which has been working for a year and is unchanged) returns zero results. Meanwhile, the same search from the Solr admin direct returns results as expected. I have tried deleting .solr directory and running Solr_Configure again (followed by Solr_Reindex), with the same result.

I took a copy of the production database and attempted to replicate locally, but I could not. Search via Silverstripe behaves as expected.

Comparing the contents of .solr/MyIndex/data/index (between working Dev and non-working Production) provides a hint. On Dev, the contents of the index are all owned by the web user. While the contents of index on Production is owned by root. Additionally, Production is missing a large number of files that Dev has (remembering they are both using the same database). Local has around 56 files in the index directory, Production has around 12.

Any idea what might be causing the data directory to be written by root? I am running both Solr_Configure and Solr_Reindex from the browser. The permissions seem to be getting set by Solr_Configure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant