BMC Middleware Management - Administration: Search functionality broken and error message "SolrCore 'bmmadmin' is not available due to init failure:" on the screen, when starting the product under a different user id

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    TrueSight Middleware Administrator


    APPLIES TO:

    BMC Middleware Management - Administration



    PROBLEM:

     

    Symptoms
      

    The global search functionality seems to be broken and a Java exception like the one below is seen on the screen:

    {msg=SolrCore 'bmmadmin' is not available due to init failure: Index locked for write for core bmmadmin,trace=org.apache.solr.common.SolrException: SolrCore 'bmmadmin' is not available due to init failure: Index locked for write for core bmmadmin
    at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1212)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:240)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:155)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1495)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:519)

    (...)

    Caused by: org.apache.lucene.store.LockObtainFailedException: Index locked for write for core bmmadmin
    at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:484)
    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:745)
    ... 11 more
    ,code=500}

      
    Applies to
      

    BMC Middleware Management - Administration
     

     


    SOLUTION:

     

    Legacy ID:KA424619

      
    Cause
      
    The product used to be run under one user id and was started under a different one

    Solution
      

    Make sure that the user id under which the product gets started has full access to all files. This can be achieved by making the user id the owner of all files.

      
    Additional Information
      

    Some of the product files get created and changed dynamically at run time and so are owned by the user id that started the product. This may lead to these files being inaccessible to other user ids. Running the product under different user ids should be avoided. If that's not possible, then it needs to be assured that all files can be read, written to, changed, and where required, executed by the new user id.

      
    Related Products:  
       
    1. BMC Middleware Management - Administration

     


    Article Number:

    000097652


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles