internetarchive / openlibrary

One webpage for every book ever published!
https://openlibrary.org
GNU Affero General Public License v3.0
5.25k stars 1.4k forks source link

Inside failed to render template #212

Closed ludoo0d0a closed 9 years ago

ludoo0d0a commented 10 years ago

I successfully setup a dev instance of OL. I'm particularly interesting in Inside part, but I cannot play with it since it failed to display results.

Access to form search through "/search/inside" is ok. But after running a search, the displays : /vagrant/openlibrary/templates/search/inside.html: error in processing template: NameError: global name 'solr_select_url' is not defined (falling back to default template)

May I failed something with the configuration ?

Stacktrace is : `error saved to /var/log/openlibrary/ol-errors/2014-04-10/074517633907.html Traceback (most recent call last): File "/vagrant/infogami/utils/template.py", line 146, in saferender result = t(*a, *kw) File "/vagrant/env/lib/python2.7/site-packages/web/template.py", line 868, in call return BaseTemplate.call(self, a, **kw) File "/vagrant/env/lib/python2.7/site-packages/web/template.py", line 781, in call return self._join_output(out) File "/vagrant/env/lib/python2.7/site-packages/web/template.py", line 787, in _join_output for name, value in out: File "/vagrant/openlibrary/templates/search/inside.html", line 22, in template $ results = get_results(q, offset=offset, limit=results_per_page, snippets=3, fragsize=150, hl_phrase=hl_phrase) File "/vagrant/openlibrary/plugins/inside/code.py", line 142, in get_results

If there is any error in gettig the response, return the error

File "/vagrant/openlibrary/plugins/inside/code.py", line 48, in inside_solr_select stats.begin("solr", url=solr_select) NameError: global name 'solr_select_url' is not defined`

ludoo0d0a commented 10 years ago

It seems that adding plugin_inside = dict(solr='localhost:8983') in vendor/infogami/infogami/config.py puts me a step forward.

But service /solr/inside/select is unavailable (404). The problem is to activate successfully multi core in Solr. /solr/admin/cores don't exist neither.

Any idea or extra info would be appreciable.

ludoo0d0a commented 10 years ago

My mistake. I understand now! plugin_inside should refer to the bookreader (php app) hosted on another lamp. and I had a ghost tomcat running in background preventing me to run successfully solr.

Thread can be closed.