superset icon indicating copy to clipboard operation
superset copied to clipboard

css not loading at "http://0.0.0.0:8088/superset/welcome"

Open Sidhartha03 opened this issue 8 years ago • 19 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the superset logs for python stacktraces and included it here as text if any
  • [x] I have reproduced the issue with at least the latest released version of superset
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

Expected results

Actual results

Steps to reproduce

Sidhartha03 avatar Mar 26 '18 06:03 Sidhartha03

You haven't written how you installed superset, if you have installed it from a git checkout it looks like you haven't followed instructions on how to do your own build as written in the documentation.

xrmx avatar Mar 26 '18 07:03 xrmx

Not reporter, but similar experience, using the community docker image as a base, but shifting to version 0.24.0 (direct pull from github releases as it wasn't available on pypi this morning)

HTML Fails to pull a reference in the header: <link rel="stylesheet" type="text/css" href="/static/assets/dist/" />  

Which to source is <link rel="stylesheet" type="text/css" href="{{ js_manifest('theme.css') }}" /> in templates/superset/basic.html.

I started to try to trace js_manifest, but couldn't find a generated manifest that it was trying to read, or how to generate one, so I started checking in the issues list here on github, and here I am 😄

jdnurmi avatar Mar 26 '18 21:03 jdnurmi

Approximate patch, will likely need fuzzy to apply

diff --git a/docker/superset/Dockerfile b/docker/superset/Dockerfile
index d0d1e0a..b573aa4 100644
--- a/docker/superset/Dockerfile
+++ b/docker/superset/Dockerfile
@@ -3,3 +3,3 @@ FROM ...
 # Superset version
-ARG SUPERSET_VERSION=0.23.3
+ARG SUPERSET_VERSION=0.24.0
 
@@ -49,3 +49,3 @@ RUN useradd -U -m superset && \
         Werkzeug==0.12.1 \
-        superset==${SUPERSET_VERSION}
+        https://github.com/apache/incubator-superset/archive/${SUPERSET_VERSION}.tar.gz

jdnurmi avatar Mar 26 '18 21:03 jdnurmi

@jdnurmi That would mean that the package uploaded to pypi is broken.

xrmx avatar Mar 26 '18 21:03 xrmx

Sorry, to be clear, there isn't a 0.24.0 on pypi yet - this is using the version in the github releases directly via pip install that looks to have shipped late last week.

jdnurmi avatar Mar 26 '18 22:03 jdnurmi

https://github.com/apache/incubator-superset/blob/master/CONTRIBUTING.md#setting-up-the-node--npm-javascript-environment

mistercrunch avatar Mar 27 '18 07:03 mistercrunch

I just pushed 0.24.0 to pypi and a PR with the changelog

mistercrunch avatar Mar 27 '18 07:03 mistercrunch

Hi !

As I would like a version that includes the commit with flask_caching I tried to pip install superset from the last commit and I get the same issue (css not loading at "http://0.0.0.0:8088/superset/welcome").

If I understand well, this is normal so I would like to know if you plan on issuing a new version soon ?

JulieRossi avatar May 14 '18 16:05 JulieRossi

@JulieRossi follow the instructions in the CONTRIBUTING.md to make your own build

mistercrunch avatar May 14 '18 16:05 mistercrunch

Thank you for your answer @mistercrunch. I have seen the contributing but I was hoping you would issue a new version soon enough so we don't have to do it. It would required the production team to review their deployment scripts and they are quite busy currently. But of course, if you don't plan to have the next version soon (in the coming weeks), we'll do that.

JulieRossi avatar May 14 '18 16:05 JulieRossi

@JulieRossi check out 0.25.2

mistercrunch avatar May 14 '18 19:05 mistercrunch

I'm having this issue in 0.25.6. I am not using a development build. I followed all the installation steps and had it working just fine on 0.25.0.

ghost avatar Jun 19 '18 14:06 ghost

Did you restart the webserver? The js bundles hash change on upgrade and the web server needs to be restarted.

mistercrunch avatar Jun 19 '18 15:06 mistercrunch

I now understand this issue much better and I am using a git checkout. I understand that I would need to follow the "Making your own build" step to continue. But I am not able to get yarn on my instance. Is 0.25.2 a version that I wouldn't have to do this? Are there others? If not I'll just stick with pypi downloads and not contribute.

ghost avatar Jun 22 '18 17:06 ghost

I'm seeing exactly this problem with the latest docker version (28.1).

CraigChaffee avatar Feb 13 '19 02:02 CraigChaffee

Is there anyone find the root cause? This is quite an annoyance to me. Please help. Thanks in advance.

haokaibo avatar Feb 21 '19 06:02 haokaibo

CSS is missing is a bit of a catchall, it means you have failed at building the JS/CSS. Let's re-open more specific issues.

@CraigChaffee & @haokaibo it seems there are issues around the contrib/ Docker build. This was community contributed and is not really maintained by the core committers...

mistercrunch avatar Feb 21 '19 07:02 mistercrunch

Thanks. @mistercrunch . I got it. Currently I use the repo below for temp solution. The one who try to count on the docker version of superset please try it. : )

https://github.com/abhioncbr/docker-superset

BR.

haokaibo avatar Mar 04 '19 02:03 haokaibo

#11611 Duplicate of #

vehbisurem avatar Nov 07 '20 07:11 vehbisurem