Now trying to get my laptop working, also getting problems. After doing what your last post said, now the local server is not serving any text files, while the rest is okay. No search either.
I’m getting the following errors:
Traceback (most recent call last):
File "/home/sujato/.pyenv/versions/suttacentral/lib/python3.4/site-packages/cherrypy/_cprequest.py", line 670, in respond
response.body = self.handler()
File "/home/sujato/.pyenv/versions/suttacentral/lib/python3.4/site-packages/cherrypy/lib/encoding.py", line 212, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/home/sujato/.pyenv/versions/suttacentral/lib/python3.4/site-packages/cherrypy/_cpdispatch.py", line 61, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/sujato/suttacentral/sc/root.py", line 61, in default
return show.default(*args, **kwargs)
File "/home/sujato/suttacentral/sc/show.py", line 149, in default
return SuttaView(sutta, lang, canonical).render()
File "/home/sujato/suttacentral/sc/views.py", line 208, in render
self.setup_context(context)
File "/home/sujato/suttacentral/sc/views.py", line 558, in setup_context
super().setup_context(context)
File "/home/sujato/suttacentral/sc/views.py", line 373, in setup_context
context.discourse_results = sc.search.discourse.search(self.uid)
File "/home/sujato/suttacentral/sc/search/discourse.py", line 321, in search
result = es.search(discourse_index, doc_type='topic', body=body)
File "/home/sujato/.pyenv/versions/suttacentral/lib/python3.4/site-packages/elasticsearch/client/utils.py", line 68, in _wrapped
return func(*args, params=params, **kwargs)
File "/home/sujato/.pyenv/versions/suttacentral/lib/python3.4/site-packages/elasticsearch/client/__init__.py", line 497, in search
params=params, body=body)
File "/home/sujato/.pyenv/versions/suttacentral/lib/python3.4/site-packages/elasticsearch/transport.py", line 307, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/home/sujato/.pyenv/versions/suttacentral/lib/python3.4/site-packages/elasticsearch/connection/http_urllib3.py", line 86, in perform_request
self._raise_error(response.status, raw_data)
File "/home/sujato/.pyenv/versions/suttacentral/lib/python3.4/site-packages/elasticsearch/connection/base.py", line 102, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.NotFoundError: TransportError(404, 'IndexMissingException[[discourse] missing]')
And under “Nitty Gritty Details”:
{'Accept-Language': 'en-US,en;q=0.8,ko;q=0.6,ms;q=0.4,zh-TW;q=0.2,zh;q=0.2,id;q=0.2,pt;q=0.2,ru;q=0.2', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate, sdch', 'Host': 'localhost:8800', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Referer': 'http://localhost:8800/mn', 'Dnt': '1', 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/41.0.2272.76 Chrome/41.0.2272.76 Safari/537.36', 'Remote-Addr': '127.0.0.1'}
Response Headers
{'Server': 'CherryPy/3.3.0', 'Date': 'Tue, 19 May 2015 05:51:45 GMT', 'Content-Type': 'text/html'}
Cherrypy Config
{'server.socket_port': 8800, 'log.error_file': '', 'tools.staticdir.root': '/home/sujato/suttacentral/static', 'tools.log_tracebacks.on': True, 'tools.remove_trailing_slash.on': True, 'tools.set_offline.on': True, 'error_page.default': , 'log.screen': False, 'tools.trailing_slash.on': False, 'server.socket_host': '127.0.0.1', 'log.access_file': '', 'engine.autoreload.on': True, 'tools.encode.on': True, 'tools.log_headers.on': True}
And for good measure:
grep -F elasticsearch /var/log/syslog | grep Exception | tail -n 20
May 19 15:42:12 sujato-UX31A elasticsearch[7640]: org.elasticsearch.ElasticsearchException: Failed to load logging configuration
May 19 15:42:12 sujato-UX31A elasticsearch[7640]: Caused by: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config
May 19 15:42:12 sujato-UX31A elasticsearch[7640]: at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
May 19 15:42:12 sujato-UX31A elasticsearch[7640]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
May 19 15:42:12 sujato-UX31A elasticsearch[7640]: at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)