[
https://issues.apache.org/jira/browse/SOLR-16358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kevin Risden resolved SOLR-16358.
---------------------------------
Resolution: Invalid
Jira is not the correct replace for support requests. Those should go to the
mailing list, IRC channel, or slack channel.
https://solr.apache.org/community.html
> Can't create SOLR collection using V2 API
> -----------------------------------------
>
> Key: SOLR-16358
> URL: https://issues.apache.org/jira/browse/SOLR-16358
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: cli
> Affects Versions: 9.0
> Environment: - operating system: RHEL
> - java version: 11.0
> Reporter: sagnik ray choudhury
> Assignee: Eric Pugh
> Priority: Major
> Labels: solrconfig.xml
> Attachments: screenshot-1.png
>
>
> {code:bash}
> curl --netrc-file ~/.netrc -X POST http://localhost:8983/api/cores -H
> 'Content-Type: application/json' -d '
> {
> "create": {
> "name": "test_notes",
> "numShards": 1,
> "replicationFactor": 1 }
> }
> '
> {code}
> Produces this error:
> {code:bash}
> {
> "responseHeader":{
> "status":400,
> "QTime":3},
> "error":{
> "metadata":[
> "error-class","org.apache.solr.common.SolrException",
>
> "root-error-class","org.apache.solr.core.SolrResourceNotFoundException"],
> "msg":"Error CREATEing SolrCore 'test_notes': Unable to create core
> [test_notes] Caused by: Can't find resource 'solrconfig.xml' in classpath or
> '/app/solr/server/solr/test_notes'",
> "code":400}}
> {code}
> I see the same error when I use `config:solrconfig.xml` in the curl call.
> This is the content of my `solr_home/server/solr` folder.
> {code:bash}
> ❯ ls ~/solr/server/solr/configsets/
> _default sample_techproducts_configs
> {code}
> This is the java code that's running solr:
> {code:bash}
> /app/jdk-11.0.1/bin/java -server -Xms512m -Xmx512m -XX:+UseG1GC
> -XX:+PerfDisableSharedMem -XX:+ParallelRefProcEnabled
> -XX:MaxGCPauseMillis=250 -XX:+UseLargePages -XX:+AlwaysPreTouch
> -XX:+ExplicitGCInvokesConcurrent
> -Xlog:gc*:file=/home/linuxuser/solr/server/logs/solr_gc.log:time,uptime:filecount=9,filesize=20M
> -Dsolr.jetty.inetaccess.includes= -Dsolr.jetty.inetaccess.excludes=
> -Dsolr.log.dir=/home/linuxuser/solr/server/logs -Djetty.port=13745
> -DSTOP.PORT=12745 -DSTOP.KEY=solrrocks -Dhost=localhost -Duser.timezone=UTC
> -XX:-OmitStackTraceInFastThrow
> -XX:OnOutOfMemoryError=/home/linuxuser/solr/bin/oom_solr.sh 13745
> /home/linuxuser/solr/server/logs -Djetty.home=/home/linuxuser/solr/server
> -Dsolr.solr.home=/app/solr/server/solr/ -Dsolr.data.home=
> -Dsolr.install.dir=/home/linuxuser/solr
> -Dsolr.default.confdir=/home/linuxuser/solr/server/solr/configsets/_default/conf
> -Xss256k
> -Dsolr.httpclient.builder.factory=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory
> -Dbasicauth=linuxuser:SolrForCedarU54 -Djava.security.manager
> -Djava.security.policy=/home/linuxuser/solr/server/etc/security.policy
> -Djava.security.properties=/home/linuxuser/solr/server/etc/security.properties
> -Dsolr.internal.network.permission=* -DdisableAdminUI=false
> -Dsolr.log.muteconsole -jar start.jar --module=http --module=requestlog
> --module=gzip
> {code}
> My questions are:
> a. What am I doing wrong?
> b. Why is Solr trying to find a solrconfig.xml in a directory that it has not
> yet created (`test_notes`)?
> c. What is this `classpath` Solr is referring to?
> Also, I have symlinked `/app/solr` to `~/solr`. I presume that won't cause a
> problem?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]