question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Frontend not built after installing Superset with Docker

See original GitHub issue

After building superset from sources in order to modify some visualizations, I attempted to run superset with Docker.

After following the instructions here: https://superset.incubator.apache.org/installation.html#start-with-docker, superset runs but the frontend assets like CSS are not shown. I tried to build the frontend with npm run dev, but CSS is still not shown.

What can be the cause of this?

Here are the logs after trying to reinstall again:

sudo docker-compose run -e SUPERSET_LOAD_EXAMPLES=yes --rm superset ./docker-init.sh

Starting superset_redis_1    ... done
Starting superset_postgres_1 ... done
+ '[' 1 -ne 0 ']'
+ exec ./docker-init.sh
+ fabmanager create-admin --app superset
Username [admin]: adm
User first name [admin]: admin
User last name [user]: admin
Email [admin@fab.org]: sdf
Password: 
Repeat for confirmation: 
Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py]
Recognized Database Authentications.
Admin User adm created.
+ superset db upgrade
Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py]
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
+ '[' yes = yes ']'
+ superset load_examples
Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py]
Loading examples into <SQLA engine=postgresql://superset:***@postgres:5432/superset>
Creating default CSS templates
Loading energy related dataset
Creating table [wb_health_population] reference
2019-08-29 14:03:51,382:INFO:root:Creating database reference
2019-08-29 14:03:51,672:INFO:root:Database.get_sqla_engine(). Masked URL: postgresql://superset:XXXXXXXXXX@postgres:5432/superset
Loading [World Bank's Health Nutrition and Population Stats]
Creating table [wb_health_population] reference
2019-08-29 14:04:55,835:INFO:root:Creating database reference
Creating slices
Creating a World's Health Bank dashboard
Loading [Birth names]
Done loading table!
--------------------------------------------------------------------------------
Creating table [birth_names] reference
2019-08-29 14:05:23,031:INFO:root:Creating database reference
Creating some slices
Creating a dashboard
Loading [Unicode test data]
Done loading table!
--------------------------------------------------------------------------------
Creating table [unicode_test] reference
2019-08-29 14:05:23,788:INFO:root:Creating database reference
Creating a slice
Creating a dashboard
Loading [Random time series data]
Done loading table!
--------------------------------------------------------------------------------
Creating table [random_time_series] reference
2019-08-29 14:05:36,813:INFO:root:Creating database reference
Creating a slice
Loading [Random long/lat data]
Done loading table!
--------------------------------------------------------------------------------
Creating table reference
2019-08-29 14:07:39,979:INFO:root:Creating database reference
Creating a slice
Loading [Country Map data]
Done loading table!
--------------------------------------------------------------------------------
Creating table reference
2019-08-29 14:07:40,280:INFO:root:Creating database reference
Creating a slice
Loading [Multiformat time series]
Done loading table!
--------------------------------------------------------------------------------
Creating table [multiformat_time_series] reference
2019-08-29 14:07:40,852:INFO:root:Creating database reference
Creating Heatmap charts
Loading [Paris GeoJson]
Creating table paris_iris_mapping reference
2019-08-29 14:07:45,354:INFO:root:Creating database reference
Loading [San Francisco population polygons]
Creating table sf_population_polygons reference
2019-08-29 14:07:45,601:INFO:root:Creating database reference
Loading [Flights data]
2019-08-29 14:08:30,407:INFO:root:Creating database reference
Done loading table!
Loading [BART lines]
Creating table bart_lines reference
2019-08-29 14:08:30,620:INFO:root:Creating database reference
Loading [Multi Line]
Creating table [wb_health_population] reference
2019-08-29 14:09:34,077:INFO:root:Creating database reference
Creating slices
Creating a World's Health Bank dashboard
Done loading table!
--------------------------------------------------------------------------------
Creating table [birth_names] reference
2019-08-29 14:09:59,531:INFO:root:Creating database reference
Creating some slices
Creating a dashboard
Loading [Misc Charts] dashboard
Creating the dashboard
Loading DECK.gl demo
Loading deck.gl dashboard
Creating Scatterplot slice
Creating Screen Grid slice
Creating Hex slice
Creating Grid slice
Creating Polygon slice
Creating Arc slice
Creating Path slice
Creating a dashboard
+ superset init
Loaded your LOCAL configuration at [/home/superset/superset/superset_config.py]
2019-08-29 14:10:05,253:INFO:root:Creating database reference
2019-08-29 14:10:05,513:INFO:root:Syncing role definition
2019-08-29 14:10:05,526:INFO:root:Syncing Admin perms
2019-08-29 14:10:05,786:INFO:root:Syncing Alpha perms
2019-08-29 14:10:06,062:INFO:root:Syncing Gamma perms
2019-08-29 14:10:06,323:INFO:root:Syncing granter perms
2019-08-29 14:10:06,570:INFO:root:Syncing sql_lab perms
2019-08-29 14:10:06,819:INFO:root:Fetching a set of all perms to lookup which ones are missing
2019-08-29 14:10:07,083:INFO:root:Creating missing datasource permissions.
2019-08-29 14:10:07,105:INFO:root:Creating missing database permissions.
2019-08-29 14:10:07,109:INFO:root:Creating missing metrics permissions
2019-08-29 14:10:07,122:INFO:root:Cleaning faulty perms

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dpgasparcommented, Sep 4, 2019

On the logs I’m seeing:

+ exec ./docker-init.sh
+ fabmanager create-admin --app superset
Username [admin]: adm
....

This seems like an older version of docker-init, can you pull the latest master and retry?

0reactions
klazajcommented, Sep 23, 2019

@dpgaspar It works with the last version. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frontend not built after installing Superset with Docker #8127
After building superset from sources in order to modify some visualizations, I attempted to run superset with Docker.
Read more >
Installing Locally Using Docker Compose - Apache Superset
The fastest way to try Superset locally is using Docker and Docker Compose on a Linux or Mac OSX computer. Superset does not...
Read more >
Installing superset on docker: /bin/sh -c /frontend-mem-nag.sh ...
The problem appears in the .sh script because when you do git checkout/clone it automatically changes the line ending of the file to...
Read more >
Installation & Configuration - apache-superset - Read the Docs
Next, cd into the folder you created in Step 1: $ cd incubator-superset. Once you're in the directory, run the following command: $...
Read more >
Building Superset with Custom UI - LinkedIn
Recently I was working with Apache Superset and needed to add some custom functionality to it. No big deal, right?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found