On 2/5/2017 9:21 PM, Arun Kumar wrote: > We are facing an error "Cannot write to config directory > /var/solr/data/marketing_prod_career_all_index/conf; switching to use > InMemory storage instead." on our SOLR box. As it's occur, SOLR > service stopped to response and we have to restart it again. Now it's > happening very frequently.
The message tells you exactly what is wrong. When Solr started, it was started as a particular user. In situations where Solr is not running on Windows and the service installer was used, that user is typically "solr". This message says that the user being used to run Solr does not have write access to the configuration directory, so Solr was set up to use an in-memory copy of the configuration. Solr's managed resource capability is unable to alter the on-disk configuration. This error is unlikely to cause Solr to stop responding. The permission problem might cause other issues, though. The directory mentioned suggests a non-Windows system, and that the service installer script WAS used, and it was probably run with defaults, so that user is probably "solr". Because the service installer script was used, that directory would normally be created with the correct permissions, so I am guessing that somebody copied new data to that directory but was not careful about ownership and permissions. Problems like this his can also be caused by starting Solr as root and then trying to start it later as a service, which will run it as a regular user. If the install was was done with all defaults, the following commands *MIGHT* fix permission problems causing the error you have mentioned. You'll also need to restart Solr. I cannot be sure that this will fix anything. chown -R solr:solr /var/solr chmod u+w -R /var/solr Thanks, Shawn