Frontend not built after installing Superset with Docker
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 [[email protected]]: 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-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.73. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Hi @klazaj,
Please, delete your current superset image (if exists) and post the logs
@dpgaspar I get a warning and a request every 30 seconds for /health.
superset_1 | WARNING in ./node_modules/@superset-ui/connection/esm/index.js 1:42-122
superset_1 | "export 'SupersetClientInterface' was not found in './SupersetClient'
superset_1 | @ ./src/setup/setupClient.js
superset_1 | @ ./src/preamble.js
superset_1 | @ multi babel-polyfill ./src/preamble.js
superset_1 | 127.0.0.1 - - [28/Aug/2019 13:19:31] "GET /health HTTP/1.1" 200 -
superset_1 | 2019-08-28 13:19:31,967:INFO:werkzeug:127.0.0.1 - - [28/Aug/2019 13:19:31] "GET /health HTTP/1.1" 200 -
superset_1 | 127.0.0.1 - - [28/Aug/2019 13:20:02] "GET /health HTTP/1.1" 200 -
superset_1 | 2019-08-28 13:20:02,184:INFO:werkzeug:127.0.0.1 - - [28/Aug/2019 13:20:02] "GET /health HTTP/1.1" 200 -
superset_1 | 127.0.0.1 - - [28/Aug/2019 13:20:32] "GET /health HTTP/1.1" 200 -
superset_1 | 2019-08-28 13:20:32,361:INFO:werkzeug:127.0.0.1 - - [28/Aug/2019 13:20:32] "GET /health HTTP/1.1" 200 -
superset_1 | 127.0.0.1 - - [28/Aug/2019 13:21:02] "GET /health HTTP/1.1" 200 -
superset_1 | 2019-08-28 13:21:02,519:INFO:werkzeug:127.0.0.1 - - [28/Aug/2019 13:21:02] "GET /health HTTP/1.1" 200 -
superset_1 | 192.168.10.145 - - [28/Aug/2019 13:21:19] "GET / HTTP/1.1" 302 -
@dpgaspar updated the post with the logs after deleting the image and reinstalling
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?
@dpgaspar It works with the last version. Thanks!