Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nbgitpuller links give 500 internal server error #118

Open
sverhoeven opened this issue Jan 6, 2022 · 1 comment
Open

nbgitpuller links give 500 internal server error #118

sverhoeven opened this issue Jan 6, 2022 · 1 comment

Comments

@sverhoeven
Copy link
Member

In logs it says:

Jan 06 15:20:45 host-192-168-2-181 bash[41746]: SingleUserLabApp - ERROR - Uncaught exception GET /jupyter/user/sverhoeven/git-pull?repo=https%3A%2F%2Fgithub.com%2FeWaterCycle%2FtechnicalPaperExampleNotebooks>
Jan 06 15:20:45 host-192-168-2-181 bash[41746]: HTTPServerRequest(protocol='http', host='techpaperdemo.ewatercycle-nle.src.surf-hosted.nl', method='GET', uri='/jupyter/user/sverhoeven/git-pull?repo=https%3A%2>
Jan 06 15:20:45 host-192-168-2-181 bash[41746]: Traceback (most recent call last):
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/tornado/web.py", line 1704, in _execute
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     result = await result
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/tornado/gen.py", line 216, in wrapper
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     result = ctx_run(func, *args, **kwargs)
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/nbgitpuller/handlers.py", line 175, in get
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     self.render_template(
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/notebook/base/handlers.py", line 515, in render_template
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     template = self.get_template(name)
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/nbclassic/nbserver.py", line 140, in get_template
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     return self.settings['notebook_jinja2_env'].get_template(name)
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/jinja2/environment.py", line 997, in get_template
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     return self._load_template(name, globals)
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/jinja2/environment.py", line 958, in _load_template
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     template = self.loader.load(self, name, self.make_globals(globals))
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/jinja2/loaders.py", line 125, in load
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     source, filename, uptodate = self.get_source(environment, name)
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:   File "/opt/conda/envs/ewatercycle/lib/python3.9/site-packages/jinja2/loaders.py", line 214, in get_source
Jan 06 15:20:45 host-192-168-2-181 bash[41746]:     raise TemplateNotFound(template)
Jan 06 15:20:45 host-192-168-2-181 bash[41746]: jinja2.exceptions.TemplateNotFound: status.html
@sverhoeven
Copy link
Member Author

Did manual workaround listed at jupyterhub/nbgitpuller#235:

# as root
cp /opt/conda/envs/ewatercycle/lib/python3.9/site-packages/nbgitpuller/templates/status.html /opt/conda/envs/ewatercycle/lib/python3.9/site-packages/notebook/templates/status.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant