You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Søren Dyrsting (JIRA)" <ji...@apache.org> on 2015/10/12 16:37:05 UTC

[jira] [Commented] (SOLR-7323) Core Admin API looks for config sets in wrong directory

    [ https://issues.apache.org/jira/browse/SOLR-7323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14953180#comment-14953180 ] 

Søren Dyrsting commented on SOLR-7323:
--------------------------------------

HI, I get the same issues as Mr Haase.

After running install_solr_service.sh I run
ln -s /opt/solr/server/solr/configsets /var/solr/data/configsets

Then create core works successfully using 
curl 'http://localhost:8983/solr/admin/cores?action=CREATE&name=new_core&configSet=[myPreferredConfigSet];

I still have to customize my configset in /var/solr/data/configsets/. I really don't know what the intention is, whether the live config sets should be located in HOME or INSTALL directories, so it's just a workaround.


> Core Admin API looks for config sets in wrong directory
> -------------------------------------------------------
>
>                 Key: SOLR-7323
>                 URL: https://issues.apache.org/jira/browse/SOLR-7323
>             Project: Solr
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 5.0
>            Reporter: Mark Haase
>
> *To Reproduce*
> Try to create a core using Core Admin API and a config set:
> {code}
> curl 'http://localhost:8983/solr/admin/cores?action=CREATE&name=new_core&configSet=basic_configs'
> {code}
> *Expected Outcome*
> Core is created in `/var/solr/data/new_core` using one of the config sets installed by the installer script in `/opt/solr/server/solr/configsets/basic_configs`.
> *Actual Outcome*
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">400</int><int name="QTime">9</int></lst><lst name="error"><str name="msg">Error CREATEing SolrCore 'new_core': Unable to create core [new_core] Caused by: Could not load configuration from directory /var/solr/data/configsets/basic_configs</str><int name="code">400</int></lst>
> </response>
> {code}
> Why is it looking for config sets in /var/solr/data? I don't know. If that's where configsets are supposed to be placed, then why does the installer put them somewhere else?
> There's no documented API to tell it to look for config sets anywhere else, either. It will always search inside /var/solr/data.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org