-
Notifications
You must be signed in to change notification settings - Fork 149
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
./contrib
docs, theia: Theia proxy hangs, where Thiea on own port works correctly
#332
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
This issue has been mentioned on Jupyter Community Forum. There might be relevant details there: https://discourse.jupyter.org/t/theia-on-the-littlestjupyterhub-how-to-debug/13287/9 |
Update - I had make a mistake in the Theia install - although I had installed nodejs 12 via Having fixed that - the minimal Theia does start, and appears to work. It does give the following error to the terminal. I have tried installing
|
Further - I can now get a Python version of Theia running using this package.json referring to the This works well via
I would be very grateful for any suggestions, no matter how vague or ill-informed. |
Further investigation. Adding:
See: https://github.com/nipraxis/nipraxis-images/tree/cc84312 for a working Dockerfile (as long as you access via HTTPs. Image via:
resolved these errors, at the expense of a config-suppressible security warning pop-up when starting up a new Theia sub-window. I believe there is relevant discussion there on the necessity of adapting proxies to the Webview interface. eclipse-theia/theia#6465 (comment) Is there any way that jupyter-server-proxy can be so adapted? |
Hi @matthew-brett , thanks for looking into this! Based on my understanding of the linked webview thread, one must either host the proxied service at an https endpoint, or set an environment variable as a fallback. We currently only support contacting proxied services over http. We do support setting environment variables [1] [2]however. |
This issue has been mentioned on Jupyter Community Forum. There might be relevant details there: https://discourse.jupyter.org/t/theia-on-the-littlestjupyterhub-how-to-debug/13287/12 |
I'm triaging issues in this repo and now look at this. I'm inclined now to dismiss it as it doesn't clearly clarify what is needed from this specific project. I have not read through everything here, but I can't sustainably triage issues if I need to dig in deep to conclude if there is an action point or bug related to this project. @matthew-brett could you update the PR description adding a leading paragraph with how this issue relates to this specific project which is unrelated to theia with an bug / enhancement someone can work actively to resolve? Without a clear action point tied to this project, I'd like to close it. UpdateAh this issue is tied to theia instructions in the ./contrib folder... Hmmm, well my take is that we can't maintain them sustainably as part of this repo sadly. I'm not sure what to do with this issue since its related to the documentation in this project, but documentation I think can't be maintained as part of it. Related |
./contrib
docs, theia: Theia proxy hangs, where Thiea on own port works correctly
I ran into an issue where I can start theia however clicking on the files in the explorer tab does not open the files. I see the following error in my logs every time I start theia via Jupyterhub:
Using My logs differ a bit from #332 (comment) . Is this also related to this issue and if yes, what is the current workaround to use Theia via Jupyterhub? |
@goekce Try the fix proposed in #448 (comment). |
I don't have capacity to test the next time. Thanks @benz0li |
Summary
I'm trying to install and run Theia via these instructions.
I have what I believe to be a minimal installation of JupyterHub / Theia working, via this Dockerfile. The image is at https://hub.docker.com/r/matthewbrett/minimal-theia-proxy.
I can get the Theia interface when running Theia from the terminal, but not when executed via
jupyter_theia_proxy
.Detail
I can show that Theia is working correctly outside the JupyterHub Theia proxy by doing the following:
This gives the JupyterLab interface available on localhost with the link advertised in the terminal. Using the JupyterLab terminal launcher, I run the following command (see below for the
theia
running script):At that point, I can get a functional Theia interface at http://localhost:3000 .
However, if instead, I click on the Theia launcher, I see that the browser is trying to load http://127.0.0.1:8888/theia/ - but this hangs at what appears to be the Theia loading stage, with a dark background and spinning gray semicircle - the same thing that very briefly preceeds the successful loading of Theia above. However, in this case, the browser hangs there, and never reaches the Theia interface.
Meanwhile, in the console from which I ran the Docker run command, I get repeated messages of form:
Can you point me to where I am going wrong in using the Theia proxy here? How can I further debug?
Theia loading command
I found that the instructions at https://jupyter-server-proxy.readthedocs.io/en/latest/convenience/packages/theia.html could not work for my installation, in that the command
<my-theia-build-path>/node_modules/.bin/theia
will not start Theia from an arbitrary directory. I had to wrap thetheia
command in a shell wrapper, in order to run the command from a location where it could find thepackage.json
file:https://github.com/nipraxis/nipraxis-images/blob/e2dcf0ad749c7bee80a99f1fd4cbbdaf548090de/nipraxis-hub/theia-bin
Theia hostname
The command being run by
jupyter_theia_proxy
appears to be:This differs from my command run from the terminal, in that the terminal command uses
--hostname 0.0.0.0
.I've tried replacing
--hostname 0.0.0.0
into thejupyter_theia_proxy
command, with no benefit.The text was updated successfully, but these errors were encountered: