Discussion:
4.2.1 Tutorial
Jon Strayer
2013-04-29 20:06:41 UTC
Permalink
I can't be the only person to run into this, but I can't find any mention
of it anywhere.

I have Solr 4.2.1 installed under OSX 10.8.3. I'm working my way through
the tutorial.

When I click on this link:
http://localhost:8983/solr/#/collection1/queryI get the error message
"There exists no core with the name "collection1"".

This link works:
http://localhost:8983/solr/collection1/select?q=solr&wt=xml

What am I doing wrong?

[image: Inline image 1]
--
To *know* is one thing, and to know for certain *that* we know is another.
--William James
Furkan KAMACI
2013-04-29 21:20:46 UTC
Permalink
Check your logs when you startup Solr if you get that error: "There exists
no core with the name "collection1"". Do you get any error as like
core:collection1 could not create or something like that?
Post by Jon Strayer
I can't be the only person to run into this, but I can't find any mention
of it anywhere.
I have Solr 4.2.1 installed under OSX 10.8.3. I'm working my way through
the tutorial.
When I click on this link: http://localhost:8983/solr/#/collection1/queryI get the error message "There exists no core with the name "collection1"".
http://localhost:8983/solr/collection1/select?q=solr&wt=xml
What am I doing wrong?
[image: Inline image 1]
--
To *know* is one thing, and to know for certain *that* we know is another.
--William James
Jon Strayer
2013-04-30 14:07:18 UTC
Permalink
I haven't found that, but I did find this:

Apr 30, 2013 9:38:10 AM org.apache.solr.core.CoreContainer create
INFO: Creating SolrCore 'collection1' using instanceDir: solr/collection1
Apr 30, 2013 9:38:10 AM org.apache.solr.core.SolrResourceLoader <init>
INFO: new SolrResourceLoader for directory: 'solr/collection1/'
Apr 30, 2013 9:38:10 AM org.apache.solr.core.SolrConfig initLibs

And then this:
Apr 30, 2013 9:38:11 AM org.apache.solr.core.SolrCore <init>
INFO: [collection1] Opening new SolrCore at solr/collection1/,
dataDir=/Users/jon.strayer/solr/solr-4.2.1/example/solr/collection1/data/

And a little later:
Apr 30, 2013 9:38:11 AM org.apache.solr.core.CachingDirectoryFactory get
INFO: return new directory for
/Users/jon.strayer/solr/solr-4.2.1/example/solr/collection1/data forceNew:
false
Apr 30, 2013 9:38:11 AM org.apache.solr.core.SolrCore getNewIndexDir
INFO: New index directory detected: old=null
new=/Users/jon.strayer/solr/solr-4.2.1/example/solr/collection1/data/index/
Apr 30, 2013 9:38:11 AM org.apache.solr.core.CachingDirectoryFactory get
INFO: return new directory for
/Users/jon.strayer/solr/solr-4.2.1/example/solr/collection1/data/index
forceNew: false

It looks to me as if the core does exist (and in fact I can add documents
to it). But for some reason parts of the system don't know about it.
Post by Furkan KAMACI
Check your logs when you startup Solr if you get that error: "There exists
no core with the name "collection1"". Do you get any error as like
core:collection1 could not create or something like that?
Post by Jon Strayer
I can't be the only person to run into this, but I can't find any mention
of it anywhere.
I have Solr 4.2.1 installed under OSX 10.8.3. I'm working my way through
the tutorial.
http://localhost:8983/solr/#/collection1/queryI get the error message
"There exists no core with the name "collection1"".
Post by Jon Strayer
http://localhost:8983/solr/collection1/select?q=solr&wt=xml
What am I doing wrong?
[image: Inline image 1]
--
To *know* is one thing, and to know for certain *that* we know is
another.
Post by Jon Strayer
--William James
--
To *know* is one thing, and to know for certain *that* we know is another.
--William James
Stefan Matheis
2013-04-30 15:29:07 UTC
Permalink
Jon

Did you upgrade from an earlier Solr-Installation? If so, clearing your browser cache might help. There is fix for 4.3 in place.

If it does not, what is the output of http://localhost:8983/solr/admin/cores?wt=json ? Does it contain the "collection1" core?
To try a basic thing, what do you see / what does your browser throw in your direction if you open http://localhost:8983/solr/ (without any further params) ?

Stefan
Post by Jon Strayer
Apr 30, 2013 9:38:10 AM org.apache.solr.core.CoreContainer create
INFO: Creating SolrCore 'collection1' using instanceDir: solr/collection1
Apr 30, 2013 9:38:10 AM org.apache.solr.core.SolrResourceLoader <init>
INFO: new SolrResourceLoader for directory: 'solr/collection1/'
Apr 30, 2013 9:38:10 AM org.apache.solr.core.SolrConfig initLibs
Apr 30, 2013 9:38:11 AM org.apache.solr.core.SolrCore <init>
INFO: [collection1] Opening new SolrCore at solr/collection1/,
dataDir=/Users/jon.strayer/solr/solr-4.2.1/example/solr/collection1/data/
Apr 30, 2013 9:38:11 AM org.apache.solr.core.CachingDirectoryFactory get
INFO: return new directory for
false
Apr 30, 2013 9:38:11 AM org.apache.solr.core.SolrCore getNewIndexDir
INFO: New index directory detected: old=null
new=/Users/jon.strayer/solr/solr-4.2.1/example/solr/collection1/data/index/
Apr 30, 2013 9:38:11 AM org.apache.solr.core.CachingDirectoryFactory get
INFO: return new directory for
/Users/jon.strayer/solr/solr-4.2.1/example/solr/collection1/data/index
forceNew: false
It looks to me as if the core does exist (and in fact I can add documents
to it). But for some reason parts of the system don't know about it.
Post by Furkan KAMACI
Check your logs when you startup Solr if you get that error: "There exists
no core with the name "collection1"". Do you get any error as like
core:collection1 could not create or something like that?
Post by Jon Strayer
I can't be the only person to run into this, but I can't find any mention
of it anywhere.
I have Solr 4.2.1 installed under OSX 10.8.3. I'm working my way through
the tutorial.
http://localhost:8983/solr/#/collection1/queryI get the error message
"There exists no core with the name "collection1"".
Post by Jon Strayer
http://localhost:8983/solr/collection1/select?q=solr&wt=xml
What am I doing wrong?
[image: Inline image 1]
--
To *know* is one thing, and to know for certain *that* we know is
another.
Post by Jon Strayer
--William James
--
To *know* is one thing, and to know for certain *that* we know is another.
--William James
Continue reading on narkive:
Loading...