-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Bug]: Problem opening .ipynb files (Jupyter Notebook) #5475
Comments
Can you please complete the bug report template? |
same issue here |
I cannot reproduce locally. I'm testing using the the v4.6.0 release candidate @wolframalpha do you see any logs in the console? are you using a reverse proxy? |
#5334 ? |
Will test with 4.6.0 as soon the docker image is out. |
@Emporea should be out now! |
I am really sorry, but this issue indeed still persists for me on 4.6.0. I am using nginx reverse proxy. |
@Emporea thanks for being quick to test! That is sad indeed.
That would be helpful! @code-asher are you able to reproduce? |
So I've just tested without reverse proxy, thus no https for now and then jupyter files dont even open on 4.4.0. |
The output from the log(window) shows these errors, can you please tell which specific logs you need And, yes the machine is behind a reverse proxy but can you please tell how is that related to extentions like jupyter and python(intellisense) not working as expected ? |
I was not able to reproduce with the @wolframalpha "Can't compute sha-256" happens when @c-dasq and @Emporea could you confirm whether you see similar errors in the browser console or the https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle |
same issue code-server: v4.5.1 |
Hi all, I was doing some tests, running code-server on two virtual machines with Debian v11.4 (clean install) and Ubuntu Server 22.04.1 (clean install), connected from Vivaldi 5.4 2753.40 (clean install) and always without HTTPS. I found something curious, the bug only occurs when bind-addr is 0.0.0.0.0:8080 (whether or not to use password), When bind-addr is 127.0.0.1.1:8080 and I use port forwarding with ssh (whether I use password or not); everything works normally: Apparently I must have PIP installed on the virtual machines as well. |
I could not reproduce this issue at https://demo.jupyter.b-data.ch (OS: Debian bullseye, Arch: amd64, code-server: v4.6.0); with none of my custom docker images. I could not reproduce it running my custom docker images locally (OS: Debian bullseye, Arch: arm64, code-server: v4.6.0) either. ℹ️ Extension versions:
|
code-server is required to be served via HTTPS to run code using service workers: Using Service Workers - Web APIs | MDN
*Tested with |
@benz0li Sorry but I think your input is nonsense and makes me angry for some reason. We get that you can't reproduce any of those issues we are facing. This always feels like you don't believe me or think that I am stupid or something. I can reproduce with the instance you provided. With a fresh installed Fedora 36 and Firefox 104 without any modifications like add-ons etc. I told you already that I am not using mac. Maybe it has something to do with it. |
I do not think you are stupid. I do not know whether you are a n00b or not.
@Emporea Please post the output from the browser's web console when you reload the page and open the Jupyter Notebook* using my deployment. *Please open |
@code-asher I am using the latest version of chrome. |
@wolframalpha In your case: Another problem is, that you are not serving code-server via HTTPS. See #5475 (comment). |
Same issue here, under the same condition of OP. Can install every extension and every package, but the notebook seems loading forever. |
@c-dasq If #5475 (comment) seems reasonable to you and did resolve this [your] issue, please close. |
Interesting that you dont care about all the other people @benz0li |
I do care:
@Emporea Please post the output from the browser's web console when you reload the page and open the Jupyter Notebook* using my deployment. *Please open |
Oh yeah that makes sense, the browser crypto API is only available in secure contexts I believe. From https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle:
|
There is supposed to be a popup warning on startup when using insecure contexts saying that certain functionality will not work because the browser does not allow them but we should instead make that popup appear at the point of trying to perform an action so it is more obvious why a certain feature is not working. So instead we would make it show every time a web view fails to open, when paste fails, and other things that will fail due to insecure contexts. In the specific case of web views it might be best to show that message right in the web view instead of a popup. Also we should change the error message in the console to specifically say whether an insecure context is the problem instead of just "can't compute". |
@benz0li Have you changed anything with your deployment? I cant reproduce the error any more, its working with your deployment. This confuses me even more cause now it has to be my deployment. But my deployment works for you. Output of Console when refreshing my deployment:
When I then try to open a ipynb file this gets added to the console:
about:serviceworkers shows this:
Both Service Workers are running and the ipynb still doesn't load on my deployment. Your working deployment has about the same logs but its showing the file now constantly, while mine does not. I am using nginx-proxy with acme-companion as a reverse proxy and serve https. Then i give the codeserver docker-compose.yml the environmental parameters Code-Server docker container shows this on start-up though (last line, "Not serving HTTPS")
If i can provide more logs or more infos about my configuration let me know. |
I update my images regularly: https://gitlab.b-data.ch/jupyterlab/python/scipy/-/commits/main
Your deployment does not work flawlessly for me either: #5334 (comment)
Maybe #4976 (comment)?
That is OK because the reverse proxy (nginx) takes care of TLS termination. |
I do not know, but when I open https://emporea.net in Safari I get 👉 @Emporea Your TLS termination does not seem to work properly. |
Actually i just removed the container after my testing. Thats why you get that TLS error. I can open it up again if you want to test it. Edit: Its up and running again. |
Right now its working with my deployment too. I am even more confused. I can see |
And now its not working again. Without me changing anything but closing the files and opening it up again multiple times. Edit: (1hour later) its working again. I don't know why there is this inconsistency. |
That is odd and very frustrating 🤔 I wonder what it could be. Anyone have any ideas? |
Hi all, I was able to simulate almost all possible cases in an orderly manner, and I was unable to replicate the problem:
It didn't really work well in only two cases:
I suspect that when I generated the report for this bug, I had left the bind-addr setting at 0.0.0.0:8080, I didn't realize that port forwarding via SSH wasn't working (I use tmux); or I don't know if I made some other mistake. I want to thank you all for the support, and if no one has any more comments, I will close this case. Thank you very much, |
Well mine isnt resolved. But go ahead. 💁🏻 |
@Emporea, no problem, I'm not going to close it. I'll try it with Fedora and let you know. |
Try my installation under emporea.net with password "coder" |
I also have to install pip |
yeah that has nothing to do with it. Sometimes it works, sometimes not. Does it work all the time for you? This way i could atleast know if it is a problem with my local setup and not with my deployment. |
yes, I know, but ipykernel was necessary; everything works fine? |
Its working with my desktop firefox for now. Thanks. Android doesn't work ( code-server:4.4.0 did work even with android ). Would be nice to know every additional steps you took on my deployment so i can reproduce them. Did you install anything else than pip and ipykernel ( i obviously have them installed too on my production deployment ) Edit: havent changed anything and its not working anymore. Could you give it a try too? |
To install ipykernel you have to go to the path where Python is (or change the path), and that's it: /usr/bin/python3 -m ipykernel install |
Thank you all very much, I am going to close this issue. |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.5.2Steps to Reproduce
Expected
The file should open and be viewable
Actual
Code-server keeps trying to open the file, or creating the file, never finishes loading on screen.
Logs
No response
Screenshot/Video
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
No response
The text was updated successfully, but these errors were encountered: