question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Solr responded with an error (HTTP 404): [Reason: Error 404 ]

See original GitHub issue

Hey 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:open
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
elyogragcommented, Jul 31, 2017

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.

0reactions
ShaneHarveycommented, Jul 31, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found