Solr responded with an error (HTTP 404): [Reason: Error 404 ]
See original GitHub issueHey guys.
I’m trying to import my mongodb data to solr.
When execing mongo-connector -m localhost:27017 -t http://localhost:8983/ -d solr_doc_manager
I get the following:
Traceback (most recent call last):
File "/usr/local/bin/mongo-connector", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/mongo_connector/util.py", line 104, in wrapped
func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mongo_connector/connector.py", line 1275, in main
conf.parse_args()
File "/usr/local/lib/python2.7/site-packages/mongo_connector/config.py", line 120, in parse_args
option, dict((k, values.get(k)) for k in option.cli_names))
File "/usr/local/lib/python2.7/site-packages/mongo_connector/connector.py", line 1024, in apply_doc_managers
dm_instances.append(DocManager(target_url, **kwargs))
File "/usr/local/lib/python2.7/site-packages/mongo_connector/doc_managers/solr_doc_manager.py", line 80, in __init__
self._build_fields()
File "/usr/local/lib/python2.7/site-packages/mongo_connector/util.py", line 46, in wrapped
reraise(new_type, exc_value, exc_tb)
File "/usr/local/lib/python2.7/site-packages/mongo_connector/util.py", line 35, in wrapped
return f(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mongo_connector/doc_managers/solr_doc_manager.py", line 96, in _build_fields
declared_fields = self.solr._send_request('get', ADMIN_URL)
File "/usr/local/lib/python2.7/site-packages/pysolr.py", line 393, in _send_request
raise SolrError(error_message % (resp.status_code, solr_message))
mongo_connector.errors.OperationFailed: Solr responded with an error (HTTP 404): [Reason: Error 404 ]
Any idea? Not sure how to debug further. Seeing the solr logs didn’t help either.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Solr admin portal HTTP ERROR 404 Issue
This issue usually comes when the core is not configured properly, try to delete the core which is not configured rightly and create...
Read more >HTTP ERROR 404 while accessing solr admin - Stack Overflow
The problem is the # into your base url http://localhost:8983/solr/#/swcm . Try removing the misleading character:
Read more >Solr Admin page corrupt with error 404 - Siemens Communities
it was a misconfigured IE. In "Internet Options" -> "Security" the FQDN of the Host was missing.
Read more >Dealing with Solr's "404 Not Found" response - makandra dev
... check if Solr's log directory is actually writable for the user running it. Protect your Rails app from security breaches. Does your...
Read more >"Internal server error" when I click view profile. - Google Groups
raise SolrError(error_message % (resp.status_code, solr_message)). pysolr.SolrError: Solr responded with an error (HTTP 404): [Reason: Error 404 Not Found].
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
User came to solr IRC channel for help. Problem was incomplete URL for Solr. Needs to be http://host:/port/solr/corename to work properly.
@lucaswxp, check out the wiki section for including specific namespaces: https://github.com/mongodb-labs/mongo-connector/wiki/Configuration-Options#including-namespaces