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

Were not able to verify/fix schema integrity (Error #26) #147

Closed
rajil opened this issue Mar 3, 2017 · 6 comments
Closed

Were not able to verify/fix schema integrity (Error #26) #147

rajil opened this issue Mar 3, 2017 · 6 comments

Comments

@rajil
Copy link

rajil commented Mar 3, 2017

I am trying to setup nextant/solr on a FreeBSD box. The solr service is running and i can access its webpage on port 8983. Nextant admin page give me the following error

Apache Solr is up, running and responding to ping query
Were not able to verify/fix schema integrity (Error #26)

The solr log file /var/log/solr/solr.log shows the following:

2017-03-03 13:10:39.486 ERROR (qtp1348949648-25) [   x:solr] o.a.s.s.ManagedIndexSchema Error persisting managed schema /var/db/solr/solr/conf/managed-schema
java.io.FileNotFoundException: /var/db/solr/solr/conf/managed-schema (Permission denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
        at org.apache.solr.schema.ManagedIndexSchema.persistManagedSchema(ManagedIndexSchema.java:129)
        at org.apache.solr.schema.SchemaManager.doOperations(SchemaManager.java:147)
        at org.apache.solr.schema.SchemaManager.performOperations(SchemaManager.java:91)
        at org.apache.solr.handler.SchemaHandler.handleRequestBody(SchemaHandler.java:91)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:166)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:2306)
        at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:658)
        at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:464)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:296)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1691)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
        at org.eclipse.jetty.server.Server.handle(Server.java:534)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
        at java.lang.Thread.run(Thread.java:745)

I can see the schema file is present

# ls -la /var/db/solr/solr/conf/managed-schema
-r--r--r--  1 solr  solr  59018 Mar  2 20:43 /var/db/solr/solr/conf/managed-schema

Solr on the FreeBSD server is running as a user 'solr' and nginx/owncloud is running as a user 'www'. Any idea how to fix this?

@ArtificialOwl
Copy link
Member

are you using the solr from the ports ?

@rajil
Copy link
Author

rajil commented Mar 3, 2017 via email

@ArtificialOwl
Copy link
Member

Which version of Solr is it ?

@rajil
Copy link
Author

rajil commented Mar 3, 2017 via email

@ArtificialOwl
Copy link
Member

trying creating/using another Core using the second part of the wiki page: https://github.com/nextcloud/nextant/wiki/Setup-your-local-Solr-as-a-Service

@rajil
Copy link
Author

rajil commented Mar 4, 2017

Ok, i created another core called nextant and owncloud is working fine with it.

@rajil rajil closed this as completed Mar 4, 2017
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

2 participants