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

Stylesheet failed to load: /lab/api/themes/@jupyterlab/theme-light-extension/index.css #4662

Closed
maartenbreddels opened this issue May 30, 2018 · 22 comments
Labels
bug pkg:themes status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone

Comments

@maartenbreddels
Copy link
Contributor

Upgrading from 0.31.5 to 0.32.1 from conda-forge gives me a broken jupyter lab. Screenshot attached may help (it thinks I'm running from source?)
screen shot 2018-05-30 at 08 57 00

@maartenbreddels
Copy link
Contributor Author

Installing using pip seems to work, odd, since I have a different conda environment where this conda package does work.

@saulshanabrook
Copy link
Member

Can you try SHIFT reloading? i.e. reloading without cache. I think someone before had a problem where it was picking up the cached stylesheet which references non existent files now.

@rsandler00
Copy link

For me, running jupyter-lab --generate-config fixed the problem. No idea why...

@blink1073
Copy link
Member

I think this was a problem with our release process: that particular release didn't include the built themes.

@blink1073 blink1073 added this to the Reference milestone Sep 8, 2018
@carluri
Copy link

carluri commented Sep 12, 2018

I think this was a problem with our release process: that particular release didn't include the built themes.

I'm having the same problem upgrading from 0.33.12 to 0.34.9. Do you think this release has the same issue?

@blink1073
Copy link
Member

Hmm, the themes files are in both the released wheel and tarball, so this is something else. @carluri, are you seeing any errors in the Web Console?

@blink1073 blink1073 reopened this Sep 13, 2018
@blink1073 blink1073 removed this from the Reference milestone Sep 13, 2018
@carluri
Copy link

carluri commented Sep 13, 2018

Hmm, the themes files are in both the released wheel and tarball, so this is something else. @carluri, are you seeing any errors in the Web Console?

I have jupyterlab with conda. I found the themes under /opt/conda/share/jupyter/lab/themes/@jupyterlab

Looking closer at the error I'm getting after the upgrade, for the user thisuser the stylesheet that fails to load is
/user/thisuser/user/thisuser/lab/api/themes@jupyterlab/theme-light-extension/index.css

This path seems to be different than the one in the screeshot at the beginning of this thread.

I downgraded to jupyterlab 0.33.12 and is working fine again though.

Let me know if there's anything else I can look to help.

thanks @blink1073

@saulshanabrook
Copy link
Member

saulshanabrook commented Sep 13, 2018

@carluri My browser loads this URL for the theme: http://localhost:8888/lab/api/themes/@jupyterlab/theme-light-extension/index.css

And I see ./themes/@jupyterlab/theme-light-extension/index.css exists in my Jupyter Lab application directory:

$ jupyter lab path
Application directory:   /usr/local/share/jupyter/lab
User Settings directory: /Users/saul/Google Drive/Computer/Mackup/.jupyter/lab/user-settings
Workspaces directory: /Users/saul/Google Drive/Computer/Mackup/.jupyter/lab/workspaces
$ ls /usr/local/share/jupyter/lab/themes/@jupyterlab/theme-light-extension/
674f50d287a8c48dc19ba404d20fe713.eot   b06871f281fee6b241d60582ae9369b9.ttf   fee66e712a8a08eef5805a46892932ad.woff  package.json
af7ae505a9eed503f8b8e6982036873e.woff2 embed.css                              index.css

Maybe it would be helpful to look at what is in your jupyter lab application directory to see if there is the index.css in the proper subdirectory?

@carluri
Copy link

carluri commented Sep 13, 2018

@saulshanabrook yes I did check the files and the index.css exists under the themes directory in the Application directory. It seems as if when I upgrade to 0.34 is looking for that file somewhere else.

@saulshanabrook
Copy link
Member

I am on 0.34.3 and it seems to be finding it there. Hm... Your URL tha tyou posted in rather long? Do you know why there are two /user/thisuser in it? Also why there is no slash after themes?

@carluri
Copy link

carluri commented Sep 13, 2018

@saulshanabrook I don't know why the URL gets "duplicated". The following is the output from the console. (the missing slash after themes was my typo)

host/user/thisuser/user/thisuser/lab/api/themes/@jupyterlab/theme-light-extension/index.css net::ERR_ABORTED 404 (Not Found)

the index.css is indeed located under the Application directory.

@blink1073
Copy link
Member

@carluri, what is the output of "jupyter lab paths"?

@carluri
Copy link

carluri commented Sep 14, 2018

@blink1073

Application directory:   /opt/conda/share/jupyter/lab
User Settings directory: /home/thisuser/.jupyter/lab/user-settings
Workspaces directory /home/thisuser/.jupyter/lab/workspaces

@blink1073
Copy link
Member

Okay, so the problem is in the creation of the themes_url. That logic was recently fixed in jupyterlab/jupyterlab_server#59, and will be available in the next release.

@blink1073
Copy link
Member

I'm going to close this, but please comment back if you still see the behavior in the 1.0 release.

@blink1073 blink1073 added this to the 1.0 milestone Sep 15, 2018
@00krishna
Copy link

00krishna commented Oct 24, 2018

I am still seeing this. I have Jupyter labl version 0.34.9 installed and getting the same errors.

Not sure why, but this problem seems to occur only in my Chrome browser. In Firefox, there is no problem. Works perfectly.

@mmourafiq
Copy link

I am having a similar issue, only works with 0.33.12. Any update on this?

@mmourafiq
Copy link

I just tried the jupyterlab==v1.0.0a1 and I can still see the problem.

@toshikwa
Copy link

toshikwa commented Apr 9, 2019

I had a same issue using jupyterlab==0.35.4 and google chrome.

When I tried to open with safari, the problem didn't occur.
Then I deleted all cache of chrome and tried once more, which works.

I don't know the exact reason, but deleting cache of the browser may help you.

@YuryBolkonsky
Copy link

Same issue now jupyterlab==0.35.4 and google chrome

@krvkir
Copy link

krvkir commented Aug 1, 2019

Same issue with jupyterlab=1.0.4 both in chrome and firefox. Clearing cache didn't help.

Rebuilding with jupyter lab build fixed this issue for me.

In case it helps, here are jupyter logs before rebuilding:

[W 13:19:49.496 LabApp] 500 GET /lab/api/settings/?1564654789478 (::1): Failed validating schema (@jupyterlab/apputils-extension:package): '^1.5.0' is not valid under any of the given schemas
    
    Failed validating 'anyOf' in metaschema['properties']['dependencies']['additionalProperties']:
        {'anyOf': [{'$ref': '#'}, {'$ref': '#/definitions/stringArray'}]}
    
    On schema['dependencies']['@phosphor/commands']:
        '^1.5.0'
[W 13:19:49.496 LabApp] Failed validating schema (@jupyterlab/apputils-extension:package): '^1.5.0' is not valid under any of the given schemas
    
    Failed validating 'anyOf' in metaschema['properties']['dependencies']['additionalProperties']:
        {'anyOf': [{'$ref': '#'}, {'$ref': '#/definitions/stringArray'}]}
    
    On schema['dependencies']['@phosphor/commands']:
        '^1.5.0'
[E 13:19:49.497 LabApp] {
      "Host": "localhost:8888",
      "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0",
      "Accept": "*/*",
      "Accept-Language": "en-US,en;q=0.5",
      "Accept-Encoding": "gzip, deflate",
      "Referer": "http://localhost:8888/lab/workspaces/auto-K",
      "X-Xsrftoken": "2|50743ec5|66e75d66a7830a5f2e61ca45b2b96e52|1563528499",
      "Content-Type": "application/json",
      "Connection": "keep-alive",
      "Cookie": "username-localhost-8888=\"2|1:0|10:1564505143|23:username-localhost-8888|44:MWVmYzRlZjVkM2M2NGUwOWJjZjc1NWVhMTVhNzMzYzk=|6fa746abe2cc45f5a67397016902a0fa8ab7b810d47a11acaaf269ef48f00abb\"; CSRF-Token-JCHCE=XRFneej6e3gdbwJLAAM5muvPzrFvjX7y; _xsrf=2|50743ec5|66e75d66a7830a5f2e61ca45b2b96e52|1563528499; username-localhost-8889=\"2|1:0|10:1564654587|23:username-localhost-8889|44:NWY1YjNmMTc1ZGFlNGY5YWExMmI1NmEzM2VhYTkwNmI=|244d379213e0541ce2cd682d79aa55ea7fc32cae60c422ca845b51e4c8301141\"",
      "Pragma": "no-cache",
      "Cache-Control": "no-cache"
    }
[E 13:19:49.497 LabApp] 500 GET /lab/api/settings/?1564654789478 (::1) 4.93ms referer=http://localhost:8888/lab/workspaces/auto-K
[W 13:19:50.070 LabApp] The extension "jupyterlab_bokeh" is outdated.
    
[I 13:19:50.070 LabApp] Build is up to date

@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Aug 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 31, 2019
@blink1073
Copy link
Member

@ MatMaul offered this advice in #7815:

it is probably related to a bug in Chrome with self signed certs ?

More infos here:
https://stackoverflow.com/questions/58086327/google-chrome-neterr-too-many-retries
https://bugs.chromium.org/p/chromium/issues/detail?id=488043

@blink1073 blink1073 reopened this Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug pkg:themes status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

No branches or pull requests

10 participants