allofphysicsgraph / proofofconcept

Physics Derivation Graph: mathematical connections among equations
https://derivationmap.net/
Other
20 stars 6 forks source link

502 bad gateway for https://derivationmap.net/central_expessions #265

Closed researcherben closed 10 months ago

researcherben commented 10 months ago

pages that don't exist get redirected to main page. Not clear why central_expressions (a page that should exist) is getting this error.

researcherben commented 10 months ago

On the webserver in the file proofofconcept/v7_pickle_web_interface/flask/logs/nginx_error.log I see

2023/08/20 13:32:17 [error] 7#7: *43637 upstream prematurely closed connection while reading response header from upstream, client: 67.79.68.21, server: derivationmap.net, request: "GET /central_expessions HTTP/1.1", upstream: "http://172.29.0.2:5000/central_expessions", host: "derivationmap.net"
researcherben commented 10 months ago

On the webserver in the file proofofconcept/v7_pickle_web_interface/flask/logs/gunicorn_error.log I see

    return self._load_template(name, globals)
  File "/usr/local/lib/python3.6/dist-packages/jinja2/environment.py", line 958, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
  File "/usr/local/lib/python3.6/dist-packages/jinja2/loaders.py", line 125, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/local/lib/python3.6/dist-packages/flask/templating.py", line 59, in get_source
    return self._get_source_fast(environment, template)
  File "/usr/local/lib/python3.6/dist-packages/flask/templating.py", line 95, in _get_source_fast
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: central_expessions.html

The source code includes https://github.com/allofphysicsgraph/proofofconcept/blob/gh-pages/v7_pickle_web_interface/flask/templates/central_expressions.html

so the cause is a mis-spelled filename in controller.py