Incubator-superset: Adding Custom Chart throws module resolution error.

Created on 27 Jul 2020  路  29Comments  路  Source: apache/incubator-superset

Following the preset.io blog, I tried to add my own custom chart hello world plugin and followed the instructions exactly as it said in the article and also in the youtube video. At the end, when I tried to deploy it, it throws this error:

npm ERR! 404 Not Found - GET https://registry.npmjs.org/@superset-ui%2fplugin-chart-hello-world - Not found
superset_node            | npm ERR! 404 
superset_node            | npm ERR! 404  '@superset-ui/plugin-chart-hello-world@^0.0.0' is not in the npm registry.
superset_node            | npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
superset_node            | npm ERR! 404 It was specified as a dependency of 'superset-frontend'
superset_node            | npm ERR! 404 
superset_node            | npm ERR! 404 Note that you can also install from a
superset_node            | npm ERR! 404 tarball, folder, http url, or git url.

Screenshots

while running npm run prod:
image

while running docker-compose up (after doing all thechanges):
image

dev server shows me the output that symlink is successful:
image

but stops @:
image

MainPreset.js File:
[Located @ /home/spidey/apache_superset/incubator-superset/superset-frontend/src/visualizations/presets/MainPreset.js]

/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
import { Preset } from '@superset-ui/core';
import {
  BigNumberChartPlugin,
  BigNumberTotalChartPlugin,
} from '@superset-ui/legacy-preset-chart-big-number';
import CalendarChartPlugin from '@superset-ui/legacy-plugin-chart-calendar';
import ChordChartPlugin from '@superset-ui/legacy-plugin-chart-chord';
import CountryMapChartPlugin from '@superset-ui/legacy-plugin-chart-country-map';
import EventFlowChartPlugin from '@superset-ui/legacy-plugin-chart-event-flow';
import ForceDirectedChartPlugin from '@superset-ui/legacy-plugin-chart-force-directed';
import HeatmapChartPlugin from '@superset-ui/legacy-plugin-chart-heatmap';
import HistogramChartPlugin from '@superset-ui/legacy-plugin-chart-histogram';
import HorizonChartPlugin from '@superset-ui/legacy-plugin-chart-horizon';
import IframeChartPlugin from '@superset-ui/legacy-plugin-chart-iframe';
import MapBoxChartPlugin from '@superset-ui/legacy-plugin-chart-map-box';
import MarkupChartPlugin from '@superset-ui/legacy-plugin-chart-markup';
import PairedTTestChartPlugin from '@superset-ui/legacy-plugin-chart-paired-t-test';
import ParallelCoordinatesChartPlugin from '@superset-ui/legacy-plugin-chart-parallel-coordinates';
import PartitionChartPlugin from '@superset-ui/legacy-plugin-chart-partition';
import PivotTableChartPlugin from '@superset-ui/legacy-plugin-chart-pivot-table';
import RoseChartPlugin from '@superset-ui/legacy-plugin-chart-rose';
import SankeyChartPlugin from '@superset-ui/legacy-plugin-chart-sankey';
import SunburstChartPlugin from '@superset-ui/legacy-plugin-chart-sunburst';
import TableChartPlugin from '@superset-ui/plugin-chart-table';
import TreemapChartPlugin from '@superset-ui/legacy-plugin-chart-treemap';
import { HelloWorldChartPlugin } from '@superset-ui/plugin-chart-hello-world';
import { WordCloudChartPlugin } from '@superset-ui/plugin-chart-word-cloud';
import WorldMapChartPlugin from '@superset-ui/legacy-plugin-chart-world-map';
import {
  AreaChartPlugin,
  BarChartPlugin,
  BubbleChartPlugin,
  BulletChartPlugin,
  CompareChartPlugin,
  DistBarChartPlugin,
  DualLineChartPlugin,
  LineChartPlugin,
  LineMultiChartPlugin,
  PieChartPlugin,
  TimePivotChartPlugin,
} from '@superset-ui/legacy-preset-chart-nvd3';
import { LegacyBoxPlotChartPlugin } from '@superset-ui/preset-chart-xy';
import { DeckGLChartPreset } from '@superset-ui/legacy-preset-chart-deckgl';

import FilterBoxChartPlugin from '../FilterBox/FilterBoxChartPlugin';
import TimeTableChartPlugin from '../TimeTable/TimeTableChartPlugin';

export default class MainPreset extends Preset {
  constructor() {
    super({
      name: 'Legacy charts',
      presets: [new DeckGLChartPreset()],
      plugins: [
        new AreaChartPlugin().configure({ key: 'area' }),
        new BarChartPlugin().configure({ key: 'bar' }),
        new BigNumberChartPlugin().configure({ key: 'big_number' }),
        new BigNumberTotalChartPlugin().configure({ key: 'big_number_total' }),
        new LegacyBoxPlotChartPlugin().configure({ key: 'box_plot' }),
        new BubbleChartPlugin().configure({ key: 'bubble' }),
        new BulletChartPlugin().configure({ key: 'bullet' }),
        new CalendarChartPlugin().configure({ key: 'cal_heatmap' }),
        new ChordChartPlugin().configure({ key: 'chord' }),
        new CompareChartPlugin().configure({ key: 'compare' }),
        new CountryMapChartPlugin().configure({ key: 'country_map' }),
        new DistBarChartPlugin().configure({ key: 'dist_bar' }),
        new DualLineChartPlugin().configure({ key: 'dual_line' }),
        new EventFlowChartPlugin().configure({ key: 'event_flow' }),
        new FilterBoxChartPlugin().configure({ key: 'filter_box' }),
        new ForceDirectedChartPlugin().configure({ key: 'directed_force' }),
        new HeatmapChartPlugin().configure({ key: 'heatmap' }),
        new HistogramChartPlugin().configure({ key: 'histogram' }),
        new HorizonChartPlugin().configure({ key: 'horizon' }),
        new IframeChartPlugin().configure({ key: 'iframe' }),
        new LineChartPlugin().configure({ key: 'line' }),
        new LineMultiChartPlugin().configure({ key: 'line_multi' }),
        new MapBoxChartPlugin().configure({ key: 'mapbox' }),
        new MarkupChartPlugin().configure({ key: 'markup' }),
        new MarkupChartPlugin().configure({ key: 'separator' }),
        new PairedTTestChartPlugin().configure({ key: 'paired_ttest' }),
        new ParallelCoordinatesChartPlugin().configure({ key: 'para' }),
        new PartitionChartPlugin().configure({ key: 'partition' }),
        new PieChartPlugin().configure({ key: 'pie' }),
        new PivotTableChartPlugin().configure({ key: 'pivot_table' }),
        new RoseChartPlugin().configure({ key: 'rose' }),
        new SankeyChartPlugin().configure({ key: 'sankey' }),
        new SunburstChartPlugin().configure({ key: 'sunburst' }),
        new TableChartPlugin().configure({ key: 'table' }),
        new TimePivotChartPlugin().configure({ key: 'time_pivot' }),
        new TimeTableChartPlugin().configure({ key: 'time_table' }),
        new TreemapChartPlugin().configure({ key: 'treemap' }),
    new HelloWorldChartPlugin().configure({key: 'hello_world'}),
        new WordCloudChartPlugin().configure({ key: 'word_cloud' }),
        new WorldMapChartPlugin().configure({ key: 'world_map' }),
      ],
    });
  }
}

package.json file [Located @ superset-frontend]

{
  "name": "superset",
  "version": "0.999.0dev",
  "description": "Superset is a data exploration platform designed to be visual, intuitive, and interactive.",
  "license": "Apache-2.0",
  "directories": {
    "doc": "docs",
    "test": "spec"
  },
  "scripts": {
    "tdd": "NODE_ENV=test jest --watch",
    "test": "NODE_ENV=test jest",
    "type": "tsc --noEmit",
    "cover": "NODE_ENV=test jest --coverage",
    "dev": "webpack --mode=development --colors --debug --watch",
    "dev-server": "NODE_ENV=development BABEL_ENV=development node --max_old_space_size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development",
    "prod": "node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --mode=production --colors",
    "build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --colors",
    "build-instrumented": "cross-env NODE_ENV=development BABEL_ENV=instrumented webpack --mode=development --colors",
    "build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --mode=production --colors",
    "lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,.tsx . && npm run type",
    "prettier-check": "prettier --check '{src,stylesheets}/**/*.{css,less,sass,scss}'",
    "lint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx . && npm run clean-css && npm run type",
    "clean-css": "prettier --write '{src,stylesheets}/**/*.{css,less,sass,scss}'",
    "check-translation": "prettier --check ../superset/translations/**/LC_MESSAGES/*.json",
    "clean-translation": "prettier --write ../superset/translations/**/LC_MESSAGES/*.json",
    "storybook": "NODE_ENV=development BABEL_ENV=development start-storybook -p 6006",
    "build-storybook": "build-storybook"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/apache/incubator-superset.git"
  },
  "keywords": [
    "big",
    "data",
    "exploratory",
    "analysis",
    "react",
    "d3",
    "airbnb",
    "nerds",
    "database",
    "flask"
  ],
  "author": "Apache",
  "bugs": {
    "url": "https://github.com/apache/incubator-superset/issues"
  },
  "browserslist": [
    "last 3 chrome versions",
    "last 3 firefox versions",
    "last 3 safari versions",
    "last 3 edge versions"
  ],
  "engines": {
    "node": ">= 6.11.5 <7.0.0 || >= 8.9.0"
  },
  "homepage": "https://superset.apache.org/",
  "dependencies": {
    "@babel/runtime-corejs3": "^7.8.4",
    "@data-ui/sparkline": "^0.0.54",
    "@emotion/core": "^10.0.28",
    "@storybook/addon-actions": "^5.3.19",
    "@storybook/addon-knobs": "^5.3.19",
    "@superset-ui/chart": "^0.14.9",
    "@superset-ui/chart-composition": "^0.14.9",
    "@superset-ui/plugin-chart-hello-world": "^0.0.0",
    "@superset-ui/chart-controls": "^0.14.9",
    "@superset-ui/color": "^0.14.9",
    "@superset-ui/connection": "^0.14.9",
    "@superset-ui/core": "^0.14.9",
    "@superset-ui/dimension": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-calendar": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-chord": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-country-map": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-event-flow": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-force-directed": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-heatmap": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-histogram": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-horizon": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-iframe": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-map-box": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-markup": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-paired-t-test": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-parallel-coordinates": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-partition": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-pivot-table": "^0.14.14",
    "@superset-ui/legacy-plugin-chart-rose": "^0.14.14",
    "@superset-ui/legacy-plugin-chart-sankey": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-sankey-loop": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-sunburst": "^0.14.9",
    "@superset-ui/legacy-plugin-chart-treemap": "^0.14.13",
    "@superset-ui/legacy-plugin-chart-world-map": "^0.14.9",
    "@superset-ui/legacy-preset-chart-big-number": "^0.14.9",
    "@superset-ui/legacy-preset-chart-deckgl": "^0.2.4",
    "@superset-ui/legacy-preset-chart-nvd3": "^0.14.9",
    "@superset-ui/number-format": "^0.14.9",
    "@superset-ui/plugin-chart-table": "^0.14.11",
    "@superset-ui/plugin-chart-word-cloud": "^0.14.9",
    "@superset-ui/preset-chart-xy": "^0.14.9",
    "@superset-ui/query": "^0.14.15",
    "@superset-ui/style": "^0.14.9",
    "@superset-ui/superset-ui": "^0.14.9",
    "@superset-ui/time-format": "^0.14.9",
    "@superset-ui/translation": "^0.14.9",
    "@superset-ui/validator": "^0.14.9",
    "@types/classnames": "^2.2.9",
    "@types/enzyme": "^3.10.5",
    "@types/fetch-mock": "^7.3.2",
    "@types/react-bootstrap": "^0.32.21",
    "@types/react-gravatar": "^2.6.8",
    "@types/react-json-tree": "^0.6.11",
    "@types/react-router-dom": "^5.1.5",
    "@types/react-select": "^3.0.12",
    "@types/react-virtualized": "^9.21.10",
    "@types/react-window": "^1.8.2",
    "@types/redux-localstorage": "^1.0.8",
    "@types/redux-mock-store": "^1.0.2",
    "@types/rison": "0.0.6",
    "@types/sinon": "^9.0.4",
    "@vx/responsive": "^0.0.195",
    "abortcontroller-polyfill": "^1.1.9",
    "aphrodite": "^2.3.1",
    "array-move": "^2.2.1",
    "bootstrap": "^3.4.1",
    "bootstrap-slider": "^10.0.0",
    "brace": "^0.11.1",
    "chrono-node": "^1.3.11",
    "classnames": "^2.2.5",
    "core-js": "^3.2.1",
    "d3-array": "^1.2.4",
    "d3-color": "^1.2.0",
    "d3-scale": "^2.1.2",
    "dnd-core": "^2.6.0",
    "dom-to-image": "^2.6.0",
    "geolib": "^2.0.24",
    "immutable": "^3.8.2",
    "interweave": "^11.2.0",
    "jquery": "^3.4.1",
    "json-bigint": "^0.3.0",
    "lodash": "^4.17.15",
    "lodash-es": "^4.17.14",
    "mathjs": "^3.20.2",
    "memoize-one": "^5.1.1",
    "moment": "^2.20.1",
    "mousetrap": "^1.6.1",
    "mustache": "^2.2.1",
    "omnibar": "^2.1.1",
    "prop-types": "^15.7.2",
    "re-resizable": "^4.3.1",
    "react": "^16.13.1",
    "react-ace": "^5.10.0",
    "react-avatar": "^3.9.7",
    "react-bootstrap": "^0.33.1",
    "react-bootstrap-dialog": "^0.10.0",
    "react-bootstrap-slider": "2.1.5",
    "react-checkbox-tree": "^1.5.1",
    "react-color": "^2.13.8",
    "react-datetime": "^2.14.0",
    "react-dnd": "^2.5.4",
    "react-dnd-html5-backend": "^2.5.4",
    "react-dom": "^16.13.0",
    "react-gravatar": "^2.6.1",
    "react-hot-loader": "^4.12.20",
    "react-json-tree": "^0.11.2",
    "react-jsonschema-form": "^1.2.0",
    "react-markdown": "^4.3.1",
    "react-redux": "^5.0.2",
    "react-router-dom": "^5.1.2",
    "react-search-input": "^0.11.3",
    "react-select": "^3.1.0",
    "react-select-async-paginate": "^0.4.0-alpha.1",
    "react-select-fast-filter-options": "^0.2.1",
    "react-sortable-hoc": "^1.11.0",
    "react-split": "^2.0.4",
    "react-sticky": "^6.0.2",
    "react-syntax-highlighter": "^7.0.4",
    "react-table": "^7.2.1",
    "react-transition-group": "^2.5.3",
    "react-ultimate-pagination": "^1.2.0",
    "react-virtualized": "9.19.1",
    "react-virtualized-auto-sizer": "^1.0.2",
    "react-virtualized-select": "^3.1.3",
    "react-window": "^1.8.5",
    "reactable-arc": "0.14.42",
    "redux": "^3.5.2",
    "redux-localstorage": "^0.4.1",
    "redux-thunk": "^2.1.0",
    "redux-undo": "^1.0.0-beta9-9-7",
    "regenerator-runtime": "^0.13.5",
    "rison": "^0.1.1",
    "shortid": "^2.2.6",
    "urijs": "^1.18.10",
    "use-query-params": "^0.4.5"
  },
  "devDependencies": {
    "@babel/cli": "^7.8.4",
    "@babel/compat-data": "^7.9.6",
    "@babel/core": "^7.8.7",
    "@babel/node": "^7.8.7",
    "@babel/plugin-proposal-class-properties": "^7.8.3",
    "@babel/plugin-proposal-optional-chaining": "^7.8.3",
    "@babel/plugin-syntax-dynamic-import": "^7.8.3",
    "@babel/plugin-transform-runtime": "^7.8.3",
    "@babel/preset-env": "^7.8.7",
    "@babel/preset-react": "^7.8.3",
    "@babel/register": "^7.8.6",
    "@emotion/babel-preset-css-prop": "^10.0.27",
    "@hot-loader/react-dom": "^16.13.0",
    "@istanbuljs/nyc-config-typescript": "^1.0.1",
    "@storybook/addon-links": "^5.3.19",
    "@storybook/addons": "^5.3.19",
    "@storybook/preset-typescript": "^3.0.0",
    "@storybook/react": "^5.3.19",
    "@svgr/webpack": "^5.4.0",
    "@types/classnames": "^2.2.9",
    "@types/dom-to-image": "^2.6.0",
    "@types/jest": "^26.0.3",
    "@types/jquery": "^3.3.32",
    "@types/react": "^16.9.43",
    "@types/react-dom": "^16.9.8",
    "@types/react-json-tree": "^0.6.11",
    "@types/react-redux": "^5.0.2",
    "@types/react-table": "^7.0.19",
    "@types/react-ultimate-pagination": "^1.2.0",
    "@types/yargs": "12 - 15",
    "@typescript-eslint/eslint-plugin": "^2.20.0",
    "@typescript-eslint/parser": "^2.20.0",
    "babel-eslint": "^10.1.0",
    "babel-jest": "^26.1.0",
    "babel-loader": "^8.0.6",
    "babel-plugin-dynamic-import-node": "^2.3.0",
    "babel-plugin-emotion": "^10.0.29",
    "babel-plugin-lodash": "^3.3.4",
    "cache-loader": "^1.2.2",
    "clean-webpack-plugin": "^3.0.0",
    "copy-webpack-plugin": "^5.1.1",
    "cross-env": "^5.2.0",
    "css-loader": "^1.0.0",
    "emotion-ts-plugin": "^0.5.3",
    "enzyme": "^3.10.0",
    "enzyme-adapter-react-16": "^1.14.0",
    "eslint": "^6.2.2",
    "eslint-config-airbnb": "^15.0.1",
    "eslint-config-prettier": "^6.11.0",
    "eslint-import-resolver-webpack": "^0.10.1",
    "eslint-plugin-cypress": "^2.0.1",
    "eslint-plugin-import": "^2.2.0",
    "eslint-plugin-jest": "^23.17.1",
    "eslint-plugin-jsx-a11y": "^5.1.1",
    "eslint-plugin-no-only-tests": "^2.0.1",
    "eslint-plugin-prettier": "^3.1.3",
    "eslint-plugin-react": "^7.16.0",
    "exports-loader": "^0.7.0",
    "fetch-mock": "^7.0.0-alpha.6",
    "file-loader": "^6.0.0",
    "fork-ts-checker-webpack-plugin": "^0.4.9",
    "ignore-styles": "^5.0.1",
    "imports-loader": "^0.7.1",
    "jest": "^26.1.0",
    "jsdom": "^16.2.2",
    "less": "^3.9.0",
    "less-loader": "^5.0.0",
    "mini-css-extract-plugin": "^0.4.0",
    "optimize-css-assets-webpack-plugin": "^5.0.1",
    "po2json": "^0.4.5",
    "prettier": "^2.0.5",
    "react-test-renderer": "^16.9.0",
    "redux-mock-store": "^1.2.3",
    "sinon": "^9.0.2",
    "source-map-support": "^0.5.16",
    "speed-measure-webpack-plugin": "^1.2.3",
    "storybook-addon-jsx": "^7.3.3",
    "style-loader": "^1.0.0",
    "terser-webpack-plugin": "^1.1.0",
    "thread-loader": "^1.2.0",
    "transform-loader": "^0.2.3",
    "ts-jest": "^26.1.1",
    "ts-loader": "^6.2.1",
    "typescript": "^3.8.3",
    "url-loader": "^1.0.1",
    "webpack": "^4.42.0",
    "webpack-bundle-analyzer": "^3.6.1",
    "webpack-cli": "^3.3.11",
    "webpack-dev-server": "^3.10.3",
    "webpack-manifest-plugin": "^2.2.0",
    "webpack-sources": "^1.4.3",
    "yargs": "12 - 15"
  },
  "optionalDependencies": {
    "fsevents": "^2.0.7"
  },
  "stylelint": {
    "rules": {
      "block-opening-brace-space-before": "always",
      "no-missing-end-of-source-newline": "never",
      "rule-empty-line-before": [
        "always",
        {
          "except": [
            "first-nested"
          ],
          "ignore": [
            "after-comment"
          ]
        }
      ]
    }
  }
}

Environment

  • superset version: 0.36.0 [Running on Docker so not very sure about it]
  • python version: 3.6.9
  • node.js version: v12.18.2
  • npm version: 6.14.6

Checklist

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 there are 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.
#bug

Most helpful comment

Do you mean by copying the plugin to @superset-ui folder inside superset-frontend it will get resolved!? Hmm I will try it too.

Yes. I tried that earlier also but somehow was getting the same error, may be I missed something while building back then. I tried it again and it got installed. I am using docker for deployment.

All 29 comments

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.78. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

You seem to be missing the hello world chart plugin in your package.json file! Add to the dependencies
image

Try that and give it another go! This step is in the tutorial.

I just rechecked. Have already added that and did an npm link. that didn't work either.

I have the same issue. I even tried putting the new plugin package(hello world) inside the node_modules/@superset-ui . But still no luck. I also tried cloning already created plugin and configuring with a new key in Mainpreset file but unable to register it properly like it mentioned in Readme(was unable to get the file where I can use SuperChartand add plugin). So while, opening chart I get key_name. So eventually, I sacrificed one of the already created plugin and used its key. Please let me know if any luck in this. I am struggling in this for 2 weeks now.

npm run dev-server works fine but when I dodocker-compose upit throws the module not found error.

I resolved this by putting the cp -r /path/to/plugin superset-frontend/node_modules/@superset-ui/ . This copied my plugin created inside the directory rather than having link. Somehow, I suspect that after running the server there was some problem in getting the link.
So, try replacing this link with the actual package. Hope, this resolves your issue.

I resolved this by putting the cp -r /path/to/plugin superset-frontend/node_modules/@superset-ui/ . This copied my plugin created inside the directory rather than having link. Somehow, I suspect that after running the server there was some problem in getting the link.
So, try replacing this link with the actual package. Hope, this resolves your issue.

Do you mean by copying the plugin to @superset-ui folder inside superset-frontend it will get resolved!? Hmm I will try it too.

Do you mean by copying the plugin to @superset-ui folder inside superset-frontend it will get resolved!? Hmm I will try it too.

Yes. I tried that earlier also but somehow was getting the same error, may be I missed something while building back then. I tried it again and it got installed. I am using docker for deployment.

I see... so basically it means that the folder that got created by yeoman generator needs to be copied at @superset-ui folder? Let me try it out! Thankss btw

That is the purpose of npm link. I suspect that in some remote server environments link gets brake after building for deployment or something like that. Also, since it's given here not to do npm install , so i removed it from docker-compose.yml too.

hmm I tried it with copy paste too. Here's my @superset-ui folder:
image
And I still get this error when I run rpm run prod:
image

sudo npm run prod doesn't work but running with docker-compose up works after manually copying the files.

Try cleaning cache npm cache clean --force . Then delete package-lock.json and node_modules. Then npm installand try running again. I had this ELIFECYCLE error earlier. Remove line of ^0.0.0 from package.json before doing npm install and also the link from directory. Hope this helps. :)

Just correct me if i am wrong:

  1. npm cache clean --force
  2. Delete node_modules and package-lock.json
  3. Remove plugin-chart-hello-world: "^0.0.0" from package. json
  4. Do a npm i
  5. Manually copy plugin-chart-hello-world to @superset-ui and manually add back plugin-chart-hello-world: "^0.0.0" to package.json.
  6. Now run npm run prod.

Is this what you're saying!?

Yes, that would build the broken dependencies again. But I am not getting why you have to do npm run prod when you can build and deploy your application using docker-compose up. In docker-compose.yml when you go to superset_node there you will find thisnpm run command, change it accordingly and build using docker.

Actually i have one more device where docker isn't setup. I want to make the changes on that too so i found by doing npm run prod this can be achieved.

I just followed this article https://preset.io/blog/2020-07-02-hello-world/
everything works fine(and it shows link for custom chart package) except it doesn't show in the "Select a visualization type" list ....
and I also test the storybook, it shows the hello world chart correctly
it looks like the register func doesn't work , but I've test it in both mainpreset.js and setupPlugins.ts , compiling are fine for both, but no charts appeared in select menu

I faced exactly the same issue when completed the plugin development using the same link as given by 'pingf'. Appreciate any help.

@ravijabe try to manually copy the files instead of npm link. That worked for me.

Thanks for the quick response. I have copied the hello-world plugin to superset-frontend/node_modules/@superset-ui
when i run npm run dev-server there are no errors. get compiled successfully. But can't see the hello-world plugin the web interface when creating a new chart.
when I run npm run prod i get the following error and server stops
error

Hi @ravijabe are you using pip install superset version? Can you share the output of superset --version and superset version. I believe pip version of superset is quite outdated and better go with git clone. Also I did the same in docker (that would be the best solution I will suggest at the moment). It will definitely work out, I have tried a lot using pip version but due to some issues it always ends up throwing some error.

I'm not using docker since i'm not familiar with it. If its the best way then I have to learn to do it. Is docker okay for production when i want to go live ?
superset_2

@ravijabe yes, docker is a great choice for production and you don't need to dive deeper just understand docker-compose.yml rest all is quite smooth... Also just test everything on a dev server before totally switching to docker.

Thanks for the advice sedhha, Had couple of busy days. finally I managed to prepare a docker installation. however I'm unable to get superset running. Appreciate if you can assist. following is the output when running 'docker compose up' for the first time.

[asyw@localhost Downloads]$ cd incubator-superset/
[asyw@localhost incubator-superset]$ sudo docker-compose up
[sudo] password for asyw:
Creating network "incubator-superset_default" with the default driver
Creating volume "incubator-superset_superset_home" with default driver
Creating volume "incubator-superset_db_home" with default driver
Creating volume "incubator-superset_redis" with default driver
Pulling redis (redis:3.2)...
3.2: Pulling from library/redis
f17d81b4b692: Pull complete
b32474098757: Pull complete
8980cabe8bc2: Pull complete
58af19693e78: Pull complete
a977782cf22d: Pull complete
9c1e268980b7: Pull complete
Digest: sha256:7b0a40301bc1567205e6461c5bf94c38e1e1ad0169709e49132cafc47f6b51f3
Status: Downloaded newer image for redis:3.2
Pulling db (postgres:10)...
10: Pulling from library/postgres
babf97a3f00a: Pull complete
0526c44df6ea: Pull complete
b2466ee00e96: Pull complete
77c605d60192: Pull complete
76b14ab41842: Pull complete
440f557fff31: Pull complete
30bba27806f4: Pull complete
a4e155509054: Pull complete
ff8228dd9c6c: Pull complete
687446f7ecc1: Pull complete
8e3cd5a196d7: Pull complete
ed343704369a: Pull complete
bd793ab304ef: Pull complete
09d7b347c7d5: Pull complete
Digest: sha256:8f14682f49a66eb10dd97a3336224e6136b33179e9569cd7d1bd999f40355e55
Status: Downloaded newer image for postgres:10
Building superset
Step 1/6 : FROM preset/superset:dev
dev: Pulling from preset/superset
57df1a1f1ad8: Pull complete
71e126169501: Pull complete
1af28a55c3f3: Pull complete
03f1c9932170: Pull complete
65b3db15f518: Pull complete
3e3b8947ed83: Pull complete
38d9e7938097: Pull complete
724043f425e0: Pull complete
6cf90f3f5863: Pull complete
edf25eb9d2b0: Pull complete
740ed84b7f65: Pull complete
05d98899a8f4: Pull complete
3d0fdfa7128c: Pull complete
3d6fdaed5e07: Pull complete
d090585fbc19: Pull complete
ce1602e661a1: Pull complete
ad0d92a16866: Pull complete
066f8beef4e0: Pull complete
bf533094ddbe: Pull complete
7e3ee9ff7cfd: Pull complete
Digest: sha256:c863401a29d49b4fd76da253e405ebfa7874f020c89d42452824a222a4341df0
Status: Downloaded newer image for preset/superset:dev
---> ef470253aa82
Step 2/6 : COPY ./requirements/.txt ./docker/requirements-.txt /app/requirements/
---> 80f09564b384
Step 3/6 : COPY ./setup.py ./MANIFEST.in /app/
---> 2f1b0ad2a962
Step 4/6 : USER root
---> Running in 50dafc802ac9
Removing intermediate container 50dafc802ac9
---> 8c755fdcca25
Step 5/6 : RUN cd /app && pip install -e . && pip install -r requirements/docker.txt && pip install -r requirements/requirements-local.txt || true
---> Running in be2452b98b71
Obtaining file:///app
Requirement already satisfied: backoff>=1.8.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.10.0)
Requirement already satisfied: bleach<4.0.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (3.2.1)
Requirement already satisfied: cachelib<0.2,>=0.1.1 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.1.1)
Requirement already satisfied: celery!=4.4.1,<5.0.0,>=4.3.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (4.4.7)
Requirement already satisfied: click<8 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (7.1.2)
Requirement already satisfied: colorama in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.4.3)
Requirement already satisfied: contextlib2 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.6.0.post1)
Requirement already satisfied: croniter>=0.3.28 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.3.34)
Requirement already satisfied: cryptography>=2.4.2 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (3.1.1)
Requirement already satisfied: flask<2.0.0,>=1.1.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.1.2)
Requirement already satisfied: flask-appbuilder<4.0.0,>=3.0.1 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (3.0.1)
Requirement already satisfied: flask-caching in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.9.0)
Requirement already satisfied: flask-compress in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.5.0)
Requirement already satisfied: flask-talisman in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.7.0)
Requirement already satisfied: flask-migrate in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (2.5.3)
Requirement already satisfied: flask-wtf in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.14.3)
Requirement already satisfied: geopy in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (2.0.0)
Requirement already satisfied: gunicorn<20.1,>=20.0.2 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (20.0.4)
Requirement already satisfied: humanize in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (2.6.0)
Requirement already satisfied: isodate in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.6.0)
Requirement already satisfied: markdown>=3.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (3.2.2)
Requirement already satisfied: msgpack<1.1,>=1.0.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.0.0)
Requirement already satisfied: pandas<1.2,>=1.1.2 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.1.2)
Requirement already satisfied: parsedatetime in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (2.6)
Requirement already satisfied: pathlib2 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (2.3.5)
Requirement already satisfied: polyline in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.4.0)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (2.8.1)
Requirement already satisfied: python-dotenv in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.14.0)
Requirement already satisfied: python-geohash in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.8.5)
Requirement already satisfied: pyarrow<1.1,>=1.0.1 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.0.1)
Requirement already satisfied: pyyaml>=5.1 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (5.3.1)
Requirement already satisfied: retry>=0.9.2 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.9.2)
Requirement already satisfied: selenium>=3.141.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (3.141.0)
Requirement already satisfied: simplejson>=3.15.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (3.17.2)
Requirement already satisfied: slackclient==2.5.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (2.5.0)
Requirement already satisfied: sqlalchemy<2.0,>=1.3.16 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (1.3.19)
Requirement already satisfied: sqlalchemy-utils<0.37,>=0.36.6 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.36.8)
Requirement already satisfied: sqlparse==0.3.0 in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.3.0)
Requirement already satisfied: wtforms-json in /usr/local/lib/python3.7/site-packages (from apache-superset==0.999.0.dev0) (0.3.3)
Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.7/site-packages (from bleach<4.0.0,>=3.0.2->apache-superset==0.999.0.dev0) (1.15.0)
Requirement already satisfied: packaging in /usr/local/lib/python3.7/site-packages (from bleach<4.0.0,>=3.0.2->apache-superset==0.999.0.dev0) (20.4)
Requirement already satisfied: webencodings in /usr/local/lib/python3.7/site-packages (from bleach<4.0.0,>=3.0.2->apache-superset==0.999.0.dev0) (0.5.1)
Requirement already satisfied: pytz>dev in /usr/local/lib/python3.7/site-packages (from celery!=4.4.1,<5.0.0,>=4.3.0->apache-superset==0.999.0.dev0) (2020.1)
Requirement already satisfied: vine==1.3.0 in /usr/local/lib/python3.7/site-packages (from celery!=4.4.1,<5.0.0,>=4.3.0->apache-superset==0.999.0.dev0) (1.3.0)
Requirement already satisfied: kombu<4.7,>=4.6.10 in /usr/local/lib/python3.7/site-packages (from celery!=4.4.1,<5.0.0,>=4.3.0->apache-superset==0.999.0.dev0) (4.6.11)
Requirement already satisfied: billiard<4.0,>=3.6.3.0 in /usr/local/lib/python3.7/site-packages (from celery!=4.4.1,<5.0.0,>=4.3.0->apache-superset==0.999.0.dev0) (3.6.3.0)
Requirement already satisfied: natsort in /usr/local/lib/python3.7/site-packages (from croniter>=0.3.28->apache-superset==0.999.0.dev0) (7.0.1)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.7/site-packages (from cryptography>=2.4.2->apache-superset==0.999.0.dev0) (1.14.3)
Requirement already satisfied: Werkzeug>=0.15 in /usr/local/lib/python3.7/site-packages (from flask<2.0.0,>=1.1.0->apache-superset==0.999.0.dev0) (1.0.1)
Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.7/site-packages (from flask<2.0.0,>=1.1.0->apache-superset==0.999.0.dev0) (1.1.0)
Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.7/site-packages (from flask<2.0.0,>=1.1.0->apache-superset==0.999.0.dev0) (2.11.2)
Requirement already satisfied: Flask-OpenID<2,>=1.2.5 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (1.2.5)
Requirement already satisfied: jsonschema<4,>=3.0.1 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (3.2.0)
Requirement already satisfied: Flask-JWT-Extended<4,>=3.18 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (3.24.1)
Requirement already satisfied: prison<1.0.0,>=0.1.3 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (0.1.3)
Requirement already satisfied: Flask-Login<0.5,>=0.3 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (0.4.1)
Requirement already satisfied: marshmallow-sqlalchemy<1,>=0.22.0 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (0.23.1)
Requirement already satisfied: marshmallow<4,>=3 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (3.8.0)
Requirement already satisfied: marshmallow-enum<2,>=1.5.1 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (1.5.1)
Requirement already satisfied: Flask-Babel<2,>=1 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (1.0.0)
Requirement already satisfied: PyJWT>=1.7.1 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (1.7.1)
Requirement already satisfied: Flask-SQLAlchemy<3,>=2.4 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (2.4.4)
Requirement already satisfied: email-validator<2,>=1.0.5 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (1.1.1)
Requirement already satisfied: apispec[yaml]<4,>=3.3 in /usr/local/lib/python3.7/site-packages (from flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (3.3.2)
Requirement already satisfied: brotli in /usr/local/lib/python3.7/site-packages (from flask-compress->apache-superset==0.999.0.dev0) (1.0.9)
Requirement already satisfied: alembic>=0.7 in /usr/local/lib/python3.7/site-packages (from flask-migrate->apache-superset==0.999.0.dev0) (1.4.3)
Requirement already satisfied: WTForms in /usr/local/lib/python3.7/site-packages (from flask-wtf->apache-superset==0.999.0.dev0) (2.3.3)
Requirement already satisfied: geographiclib<2,>=1.49 in /usr/local/lib/python3.7/site-packages (from geopy->apache-superset==0.999.0.dev0) (1.50)
Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.7/site-packages (from gunicorn<20.1,>=20.0.2->apache-superset==0.999.0.dev0) (50.3.0)
Requirement already satisfied: importlib-metadata; python_version < "3.8" in /usr/local/lib/python3.7/site-packages (from markdown>=3.0->apache-superset==0.999.0.dev0) (1.7.0)
Requirement already satisfied: numpy>=1.15.4 in /usr/local/lib/python3.7/site-packages (from pandas<1.2,>=1.1.2->apache-superset==0.999.0.dev0) (1.19.2)
Requirement already satisfied: py<2.0.0,>=1.4.26 in /usr/local/lib/python3.7/site-packages (from retry>=0.9.2->apache-superset==0.999.0.dev0) (1.9.0)
Requirement already satisfied: decorator>=3.4.2 in /usr/local/lib/python3.7/site-packages (from retry>=0.9.2->apache-superset==0.999.0.dev0) (4.4.2)
Requirement already satisfied: urllib3 in /usr/local/lib/python3.7/site-packages (from selenium>=3.141.0->apache-superset==0.999.0.dev0) (1.25.10)
Requirement already satisfied: aiohttp>3.5.2 in /usr/local/lib/python3.7/site-packages (from slackclient==2.5.0->apache-superset==0.999.0.dev0) (3.6.2)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.7/site-packages (from packaging->bleach<4.0.0,>=3.0.2->apache-superset==0.999.0.dev0) (2.4.7)
Requirement already satisfied: amqp<2.7,>=2.6.0 in /usr/local/lib/python3.7/site-packages (from kombu<4.7,>=4.6.10->celery!=4.4.1,<5.0.0,>=4.3.0->apache-superset==0.999.0.dev0) (2.6.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.4.2->apache-superset==0.999.0.dev0) (2.20)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/site-packages (from Jinja2>=2.10.1->flask<2.0.0,>=1.1.0->apache-superset==0.999.0.dev0) (1.1.1)
Requirement already satisfied: python3-openid>=2.0 in /usr/local/lib/python3.7/site-packages (from Flask-OpenID<2,>=1.2.5->flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (3.2.0)
Requirement already satisfied: pyrsistent>=0.14.0 in /usr/local/lib/python3.7/site-packages (from jsonschema<4,>=3.0.1->flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (0.16.1)
Requirement already satisfied: attrs>=17.4.0 in /usr/local/lib/python3.7/site-packages (from jsonschema<4,>=3.0.1->flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (20.2.0)
Requirement already satisfied: Babel>=2.3 in /usr/local/lib/python3.7/site-packages (from Flask-Babel<2,>=1->flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (2.8.0)
Requirement already satisfied: dnspython>=1.15.0 in /usr/local/lib/python3.7/site-packages (from email-validator<2,>=1.0.5->flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (2.0.0)
Requirement already satisfied: idna>=2.0.0 in /usr/local/lib/python3.7/site-packages (from email-validator<2,>=1.0.5->flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (2.10)
Requirement already satisfied: python-editor>=0.3 in /usr/local/lib/python3.7/site-packages (from alembic>=0.7->flask-migrate->apache-superset==0.999.0.dev0) (1.0.4)
Requirement already satisfied: Mako in /usr/local/lib/python3.7/site-packages (from alembic>=0.7->flask-migrate->apache-superset==0.999.0.dev0) (1.1.3)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/site-packages (from importlib-metadata; python_version < "3.8"->markdown>=3.0->apache-superset==0.999.0.dev0) (3.2.0)
Requirement already satisfied: chardet<4.0,>=2.0 in /usr/local/lib/python3.7/site-packages (from aiohttp>3.5.2->slackclient==2.5.0->apache-superset==0.999.0.dev0) (3.0.4)
Requirement already satisfied: multidict<5.0,>=4.5 in /usr/local/lib/python3.7/site-packages (from aiohttp>3.5.2->slackclient==2.5.0->apache-superset==0.999.0.dev0) (4.7.6)
Requirement already satisfied: yarl<2.0,>=1.0 in /usr/local/lib/python3.7/site-packages (from aiohttp>3.5.2->slackclient==2.5.0->apache-superset==0.999.0.dev0) (1.5.1)
Requirement already satisfied: async-timeout<4.0,>=3.0 in /usr/local/lib/python3.7/site-packages (from aiohttp>3.5.2->slackclient==2.5.0->apache-superset==0.999.0.dev0) (3.0.1)
Requirement already satisfied: defusedxml in /usr/local/lib/python3.7/site-packages (from python3-openid>=2.0->Flask-OpenID<2,>=1.2.5->flask-appbuilder<4.0.0,>=3.0.1->apache-superset==0.999.0.dev0) (0.6.0)
Requirement already satisfied: typing-extensions>=3.7.4; python_version < "3.8" in /usr/local/lib/python3.7/site-packages (from yarl<2.0,>=1.0->aiohttp>3.5.2->slackclient==2.5.0->apache-superset==0.999.0.dev0) (3.7.4.3)
Installing collected packages: apache-superset
Attempting uninstall: apache-superset
Found existing installation: apache-superset 0.999.0.dev0
Uninstalling apache-superset-0.999.0.dev0:
Successfully uninstalled apache-superset-0.999.0.dev0
Running setup.py develop for apache-superset
Successfully installed apache-superset
Obtaining file:///. (from -r requirements/base.txt (line 8))
Obtaining file:///. (from -r requirements/docker.txt (line 9))
Requirement already satisfied: aiohttp==3.6.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 9)) (3.6.2)
Requirement already satisfied: alembic==1.4.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 10)) (1.4.3)
Requirement already satisfied: amqp==2.6.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 11)) (2.6.1)
Requirement already satisfied: apispec[yaml]==3.3.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 12)) (3.3.2)
Requirement already satisfied: async-timeout==3.0.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 13)) (3.0.1)
Requirement already satisfied: attrs==20.2.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 14)) (20.2.0)
Requirement already satisfied: babel==2.8.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 15)) (2.8.0)
Requirement already satisfied: backoff==1.10.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 16)) (1.10.0)
Requirement already satisfied: billiard==3.6.3.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 17)) (3.6.3.0)
Requirement already satisfied: bleach==3.2.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 18)) (3.2.1)
Requirement already satisfied: brotli==1.0.9 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 19)) (1.0.9)
Requirement already satisfied: cachelib==0.1.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 20)) (0.1.1)
Requirement already satisfied: celery==4.4.7 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 21)) (4.4.7)
Requirement already satisfied: cffi==1.14.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 22)) (1.14.3)
Requirement already satisfied: chardet==3.0.4 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 23)) (3.0.4)
Requirement already satisfied: click==7.1.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 24)) (7.1.2)
Requirement already satisfied: colorama==0.4.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 25)) (0.4.3)
Requirement already satisfied: contextlib2==0.6.0.post1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 26)) (0.6.0.post1)
Requirement already satisfied: croniter==0.3.34 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 27)) (0.3.34)
Requirement already satisfied: cryptography==3.1.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 28)) (3.1.1)
Requirement already satisfied: decorator==4.4.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 29)) (4.4.2)
Requirement already satisfied: defusedxml==0.6.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 30)) (0.6.0)
Requirement already satisfied: dnspython==2.0.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 31)) (2.0.0)
Requirement already satisfied: email-validator==1.1.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 32)) (1.1.1)
Requirement already satisfied: flask-appbuilder==3.0.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 33)) (3.0.1)
Requirement already satisfied: flask-babel==1.0.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 34)) (1.0.0)
Requirement already satisfied: flask-caching==1.9.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 35)) (1.9.0)
Requirement already satisfied: flask-compress==1.5.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 36)) (1.5.0)
Requirement already satisfied: flask-jwt-extended==3.24.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 37)) (3.24.1)
Requirement already satisfied: flask-login==0.4.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 38)) (0.4.1)
Requirement already satisfied: flask-migrate==2.5.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 39)) (2.5.3)
Requirement already satisfied: flask-openid==1.2.5 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 40)) (1.2.5)
Requirement already satisfied: flask-sqlalchemy==2.4.4 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 41)) (2.4.4)
Requirement already satisfied: flask-talisman==0.7.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 42)) (0.7.0)
Requirement already satisfied: flask-wtf==0.14.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 43)) (0.14.3)
Requirement already satisfied: flask==1.1.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 44)) (1.1.2)
Requirement already satisfied: geographiclib==1.50 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 45)) (1.50)
Requirement already satisfied: geopy==2.0.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 46)) (2.0.0)
Requirement already satisfied: gunicorn==20.0.4 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 47)) (20.0.4)
Requirement already satisfied: humanize==2.6.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 48)) (2.6.0)
Requirement already satisfied: idna==2.10 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 49)) (2.10)
Requirement already satisfied: importlib-metadata==1.7.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 50)) (1.7.0)
Requirement already satisfied: isodate==0.6.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 51)) (0.6.0)
Requirement already satisfied: itsdangerous==1.1.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 52)) (1.1.0)
Requirement already satisfied: jinja2==2.11.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 53)) (2.11.2)
Requirement already satisfied: jsonschema==3.2.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 54)) (3.2.0)
Requirement already satisfied: kombu==4.6.11 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 55)) (4.6.11)
Requirement already satisfied: mako==1.1.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 56)) (1.1.3)
Requirement already satisfied: markdown==3.2.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 57)) (3.2.2)
Requirement already satisfied: markupsafe==1.1.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 58)) (1.1.1)
Requirement already satisfied: marshmallow-enum==1.5.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 59)) (1.5.1)
Requirement already satisfied: marshmallow-sqlalchemy==0.23.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 60)) (0.23.1)
Requirement already satisfied: marshmallow==3.8.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 61)) (3.8.0)
Requirement already satisfied: msgpack==1.0.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 62)) (1.0.0)
Requirement already satisfied: multidict==4.7.6 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 63)) (4.7.6)
Requirement already satisfied: natsort==7.0.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 64)) (7.0.1)
Requirement already satisfied: numpy==1.19.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 65)) (1.19.2)
Requirement already satisfied: packaging==20.4 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 66)) (20.4)
Requirement already satisfied: pandas==1.1.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 67)) (1.1.2)
Requirement already satisfied: parsedatetime==2.6 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 68)) (2.6)
Requirement already satisfied: pathlib2==2.3.5 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 69)) (2.3.5)
Requirement already satisfied: polyline==1.4.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 70)) (1.4.0)
Requirement already satisfied: prison==0.1.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 71)) (0.1.3)
Requirement already satisfied: py==1.9.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 72)) (1.9.0)
Requirement already satisfied: pyarrow==1.0.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 73)) (1.0.1)
Requirement already satisfied: pycparser==2.20 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 74)) (2.20)
Requirement already satisfied: pyjwt==1.7.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 75)) (1.7.1)
Requirement already satisfied: pyparsing==2.4.7 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 76)) (2.4.7)
Requirement already satisfied: pyrsistent==0.16.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 77)) (0.16.1)
Requirement already satisfied: python-dateutil==2.8.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 78)) (2.8.1)
Requirement already satisfied: python-dotenv==0.14.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 79)) (0.14.0)
Requirement already satisfied: python-editor==1.0.4 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 80)) (1.0.4)
Requirement already satisfied: python-geohash==0.8.5 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 81)) (0.8.5)
Requirement already satisfied: python3-openid==3.2.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 82)) (3.2.0)
Requirement already satisfied: pytz==2020.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 83)) (2020.1)
Requirement already satisfied: pyyaml==5.3.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 84)) (5.3.1)
Requirement already satisfied: retry==0.9.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 85)) (0.9.2)
Requirement already satisfied: selenium==3.141.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 86)) (3.141.0)
Requirement already satisfied: simplejson==3.17.2 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 87)) (3.17.2)
Requirement already satisfied: six==1.15.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 88)) (1.15.0)
Requirement already satisfied: slackclient==2.5.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 89)) (2.5.0)
Requirement already satisfied: sqlalchemy-utils==0.36.8 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 90)) (0.36.8)
Requirement already satisfied: sqlalchemy==1.3.19 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 91)) (1.3.19)
Requirement already satisfied: sqlparse==0.3.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 92)) (0.3.0)
Requirement already satisfied: typing-extensions==3.7.4.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 93)) (3.7.4.3)
Requirement already satisfied: urllib3==1.25.10 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 94)) (1.25.10)
Requirement already satisfied: vine==1.3.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 95)) (1.3.0)
Requirement already satisfied: webencodings==0.5.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 96)) (0.5.1)
Requirement already satisfied: werkzeug==1.0.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 97)) (1.0.1)
Requirement already satisfied: wtforms-json==0.3.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 98)) (0.3.3)
Requirement already satisfied: wtforms==2.3.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 99)) (2.3.3)
Requirement already satisfied: yarl==1.5.1 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 100)) (1.5.1)
Requirement already satisfied: zipp==3.2.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/base.txt (line 101)) (3.2.0)
Requirement already satisfied: gevent==20.9.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/docker.txt (line 10)) (20.9.0)
Requirement already satisfied: greenlet==0.4.17 in /usr/local/lib/python3.7/site-packages (from -r requirements/docker.txt (line 11)) (0.4.17)
Requirement already satisfied: psycopg2-binary==2.8.6 in /usr/local/lib/python3.7/site-packages (from -r requirements/docker.txt (line 12)) (2.8.6)
Requirement already satisfied: redis==3.5.3 in /usr/local/lib/python3.7/site-packages (from -r requirements/docker.txt (line 13)) (3.5.3)
Requirement already satisfied: zope.event==4.5.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/docker.txt (line 14)) (4.5.0)
Requirement already satisfied: zope.interface==5.1.0 in /usr/local/lib/python3.7/site-packages (from -r requirements/docker.txt (line 15)) (5.1.0)
Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.7/site-packages (from gunicorn==20.0.4->-r requirements/base.txt (line 47)) (50.3.0)
Installing collected packages: apache-superset
Attempting uninstall: apache-superset
Found existing installation: apache-superset 0.999.0.dev0
Uninstalling apache-superset-0.999.0.dev0:
Successfully uninstalled apache-superset-0.999.0.dev0
Running setup.py develop for apache-superset
Successfully installed apache-superset
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements/requirements-local.txt'
Removing intermediate container be2452b98b71
---> 6062957b27ee
Step 6/6 : USER superset
---> Running in afeebfc7dbcb
Removing intermediate container afeebfc7dbcb
---> 8947bf39034f

[Warning] One or more build-args [NPM_BUILD_CMD] were not consumed
Successfully built 8947bf39034f
Successfully tagged incubator-superset_superset:latest
WARNING: Image for service superset was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.
Building superset-init
Step 1/6 : FROM preset/superset:dev
---> ef470253aa82
Step 2/6 : COPY ./requirements/.txt ./docker/requirements-.txt /app/requirements/
---> Using cache
---> 80f09564b384
Step 3/6 : COPY ./setup.py ./MANIFEST.in /app/
---> Using cache
---> 2f1b0ad2a962
Step 4/6 : USER root
---> Using cache
---> 8c755fdcca25
Step 5/6 : RUN cd /app && pip install -e . && pip install -r requirements/docker.txt && pip install -r requirements/requirements-local.txt || true
---> Using cache
---> 6062957b27ee
Step 6/6 : USER superset
---> Using cache
---> 8947bf39034f

[Warning] One or more build-args [NPM_BUILD_CMD] were not consumed
Successfully built 8947bf39034f
Successfully tagged incubator-superset_superset-init:latest
WARNING: Image for service superset-init was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.
Pulling superset-node (node:12)...
12: Pulling from library/node
0400ac8f7460: Pull complete
fa8559aa5ebb: Pull complete
da32bfbbc3ba: Pull complete
e1dc6725529d: Pull complete
572866ab72a6: Pull complete
63ee7d0b743d: Pull complete
f324c5002e7c: Pull complete
31b678b0b485: Pull complete
6fde07dc44ee: Pull complete
Digest: sha256:b7aa57bb141b7adca179797a88f6dc350603124f9a88e4d78d9a67d0ad129350
Status: Downloaded newer image for node:12
Building superset-worker
Step 1/6 : FROM preset/superset:dev
---> ef470253aa82
Step 2/6 : COPY ./requirements/.txt ./docker/requirements-.txt /app/requirements/
---> Using cache
---> 80f09564b384
Step 3/6 : COPY ./setup.py ./MANIFEST.in /app/
---> Using cache
---> 2f1b0ad2a962
Step 4/6 : USER root
---> Using cache
---> 8c755fdcca25
Step 5/6 : RUN cd /app && pip install -e . && pip install -r requirements/docker.txt && pip install -r requirements/requirements-local.txt || true
---> Using cache
---> 6062957b27ee
Step 6/6 : USER superset
---> Using cache
---> 8947bf39034f

[Warning] One or more build-args [NPM_BUILD_CMD] were not consumed
Successfully built 8947bf39034f
Successfully tagged incubator-superset_superset-worker:latest
WARNING: Image for service superset-worker was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.
Building superset-tests-worker
Step 1/6 : FROM preset/superset:dev
---> ef470253aa82
Step 2/6 : COPY ./requirements/.txt ./docker/requirements-.txt /app/requirements/
---> Using cache
---> 80f09564b384
Step 3/6 : COPY ./setup.py ./MANIFEST.in /app/
---> Using cache
---> 2f1b0ad2a962
Step 4/6 : USER root
---> Using cache
---> 8c755fdcca25
Step 5/6 : RUN cd /app && pip install -e . && pip install -r requirements/docker.txt && pip install -r requirements/requirements-local.txt || true
---> Using cache
---> 6062957b27ee
Step 6/6 : USER superset
---> Using cache
---> 8947bf39034f

[Warning] One or more build-args [NPM_BUILD_CMD] were not consumed
Successfully built 8947bf39034f
Successfully tagged incubator-superset_superset-tests-worker:latest
WARNING: Image for service superset-tests-worker was built because it did not already exist. To rebuild this image you must use docker-compose build or docker-compose up --build.
Creating superset_cache ... done
Creating superset_db ... done
Creating superset_tests_worker ... done
Creating superset_node ... done
Creating superset_worker ... done
Creating superset_app ... done
Creating superset_init ... done
Attaching to superset_cache, superset_db, superset_tests_worker, superset_node, superset_init, superset_worker, superset_app
superset_cache | 1:C 27 Oct 09:03:31.997 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
superset_cache | _._
superset_cache | _.-__ ''-._ superset_cache | _.- ._. ''-._ Redis 3.2.12 (00000000/0) 64 bit
superset_cache | .-.-```. ```\/ _.,_ ''-._ superset_cache | ( ' , .-` | `, ) Running in standalone mode superset_cache | |`-._`-...-` __...-.-._|'_.-'| Port: 6379 superset_cache | |-._ ._ / _.-' | PID: 1 superset_cache |-._ -._-./ _.-' _.-'
superset_cache | |-._-._ -.__.-' _.-'_.-'| superset_cache | |-._-._ _.-'_.-' | http://redis.io superset_cache |-._ -._-.__.-'_.-' _.-'
superset_cache | |-._-._ -.__.-' _.-'_.-'| superset_cache | |-._-._ _.-'_.-' | superset_cache |-._ -._-.__.-'_.-' _.-'
superset_cache | -._-.__.-' _.-'
superset_cache | -._ _.-' superset_cache |-.__.-'
superset_cache |
superset_cache | 1:M 27 Oct 09:03:32.008 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
superset_cache | 1:M 27 Oct 09:03:32.008 # Server started, Redis version 3.2.12
superset_cache | 1:M 27 Oct 09:03:32.008 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
superset_cache | 1:M 27 Oct 09:03:32.008 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
superset_cache | 1:M 27 Oct 09:03:32.008 * The server is now ready to accept connections on port 6379
superset_db | The files belonging to this database system will be owned by user "postgres".
superset_db | This user must also own the server process.
superset_db |
superset_db | The database cluster will be initialized with locale "en_US.utf8".
superset_db | The default database encoding has accordingly been set to "UTF8".
superset_db | The default text search configuration will be set to "english".
superset_db |
superset_db | Data page checksums are disabled.
superset_db |
superset_db | fixing permissions on existing directory /var/lib/postgresql/data ... ok
superset_db | creating subdirectories ... ok
superset_init |
superset_init | ######################################################################
superset_init |
superset_init |
superset_init | Init Step 1/4 [Starting] -- Applying DB migrations
superset_init |
superset_init |
superset_init | ######################################################################
superset_init |
superset_db | selecting default max_connections ... 100
superset_db | selecting default shared_buffers ... 128MB
superset_db | selecting default timezone ... Etc/UTC
superset_db | selecting dynamic shared memory implementation ... posix
superset_db | creating configuration files ... ok
superset_db | running bootstrap script ... ok
superset_db | performing post-bootstrap initialization ... ok
superset_node | npm WARN using --force I sure hope you know what you are doing.
superset_db | syncing data to disk ... ok
superset_db |
superset_db | Success. You can now start the database server using:
superset_db |
superset_db | pg_ctl -D /var/lib/postgresql/data -l logfile start
superset_db |
superset_db |
superset_db | WARNING: enabling "trust" authentication for local connections
superset_db | You can change this by editing pg_hba.conf or using the option -A, or
superset_db | --auth-local and --auth-host, the next time you run initdb.
superset_db | waiting for server to start....2020-10-27 09:03:38.625 UTC [45] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
superset_db | 2020-10-27 09:03:38.699 UTC [46] LOG: database system was shut down at 2020-10-27 09:03:35 UTC
superset_db | 2020-10-27 09:03:38.722 UTC [45] LOG: database system is ready to accept connections
superset_db | done
superset_db | server started
superset_db | CREATE DATABASE
superset_db |
superset_db |
superset_db | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
superset_db |
superset_db | waiting for server to shut down....2020-10-27 09:03:40.593 UTC [45] LOG: received fast shutdown request
superset_db | 2020-10-27 09:03:40.601 UTC [45] LOG: aborting any active transactions
superset_db | 2020-10-27 09:03:40.607 UTC [45] LOG: worker process: logical replication launcher (PID 52) exited with exit code 1
superset_db | 2020-10-27 09:03:40.611 UTC [47] LOG: shutting down
superset_db | 2020-10-27 09:03:40.693 UTC [45] LOG: database system is shut down
superset_db | done
superset_db | server stopped
superset_db |
superset_db | PostgreSQL init process complete; ready for start up.
superset_db |
superset_db | 2020-10-27 09:03:40.799 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
superset_db | 2020-10-27 09:03:40.800 UTC [1] LOG: listening on IPv6 address "::", port 5432
superset_db | 2020-10-27 09:03:40.832 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
superset_db | 2020-10-27 09:03:40.898 UTC [63] LOG: database system was shut down at 2020-10-27 09:03:40 UTC
superset_db | 2020-10-27 09:03:41.003 UTC [1] LOG: database system is ready to accept connections
superset_tests_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_db | 2020-10-27 09:03:45.051 UTC [70] FATAL: database "test" does not exist
superset_tests_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_tests_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_tests_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) FATAL: database "test" does not exist
superset_tests_worker |
superset_tests_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_tests_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_app | * Serving Flask app "superset.app:create_app()" (lazy loading)
superset_app | * Environment: development
superset_app | * Debug mode: on
superset_app | * Running on http://0.0.0.0:8088/ (Press CTRL+C to quit)
superset_app | * Restarting with stat
superset_tests_worker exited with code 1
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_init | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_app | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_init | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_init | "Flask-Caching: CACHE_TYPE is set to null, "
superset_init | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_init | Is the server running on host "db" (172.19.0.3) and accepting
superset_init | TCP/IP connections on port 5432?
superset_init |
superset_init | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_init | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_init exited with code 1
superset_app | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_app | "Flask-Caching: CACHE_TYPE is set to null, "
superset_app | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_app | Is the server running on host "db" (172.19.0.3) and accepting
superset_app | TCP/IP connections on port 5432?
superset_app |
superset_app | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_app | * Debugger is active!
superset_app | * Debugger PIN: 187-566-313
superset_app | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_app | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_app | "Flask-Caching: CACHE_TYPE is set to null, "
superset_app | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_app | Is the server running on host "db" (172.19.0.3) and accepting
superset_app | TCP/IP connections on port 5432?
superset_app |
superset_app | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_worker exited with code 1
superset_node | npm ERR! code EAI_AGAIN
superset_node | npm ERR! errno EAI_AGAIN
superset_node | npm ERR! request to https://registry.npmjs.org/webpack failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
superset_node |
superset_node | npm ERR! A complete log of this run can be found in:
superset_node | npm ERR! /root/.npm/_logs/2020-10-27T09_04_00_590Z-debug.log
superset_node exited with code 1
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_worker exited with code 1
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_app | INFO:root:Configured event logger of type
superset_app | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker exited with code 1
superset_app | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_app | Is the server running on host "db" (172.19.0.3) and accepting
superset_app | TCP/IP connections on port 5432?
superset_app |
superset_app | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_worker exited with code 1
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_worker exited with code 1
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_worker exited with code 1
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_app | INFO:root:Configured event logger of type
superset_app | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_worker exited with code 1
superset_app | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_app | Is the server running on host "db" (172.19.0.3) and accepting
superset_app | TCP/IP connections on port 5432?
superset_app |
superset_app | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_worker | /usr/local/lib/python3.7/site-packages/flask_caching/__init__.py:192: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled.
superset_worker | "Flask-Caching: CACHE_TYPE is set to null, "
superset_worker | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_worker | Is the server running on host "db" (172.19.0.3) and accepting
superset_worker | TCP/IP connections on port 5432?
superset_worker |
superset_worker | (Background on this error at: http://sqlalche.me/e/13/e3q8)
superset_worker | Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]
superset_worker exited with code 1
superset_app | INFO:root:Configured event logger of type
superset_app | INFO:superset.utils.logging_configurator:logging was configured successfully
superset_app | ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (psycopg2.OperationalError) could not connect to server: No route to host
superset_app | Is the server running on host "db" (172.19.0.3) and accepting
superset_app | TCP/IP connections on port 5432?
superset_app |
superset_app | (Background on this error at: http://sqlalche.me/e/13/e3q8)
supe

@ravijabe are you trying to install it on windows machine?

Error happends because flask_manager could not find default db path for sqlite db. To fix this your need to change SQLALCHEMY_DATABASE_URI in caravel config.py

Go to your anaconda / python directory.
Open %python_path%\Lib\site-packages\caravel\config.py with text editor
Find row with SQLALCHEMY_DATABASE_URI connection string and change it according to your operation system / database setup. For windows you should type something like
'sqlite:///C:\tmp\caravel.db'
More examples on connection strings at sql alchemy docs pages:
http://docs.sqlalchemy.org/en/rel_0_9/core/engines.html#database-urls

No. Oracle Linux 8.1

@ravijabe ok....not sure how it works there but in that case you need to create config files to connect to your database.

Generally this issue is faced by windows users but in your case, not sure where sql database uri is to be searched for flask fabmanager.

Also kindly refer to this: https://github.com/apache/incubator-superset/issues/173

Thanks sedhha for your help. Will investigate more to see if I can find a solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

john-bodley picture john-bodley  路  3Comments

deity-bram picture deity-bram  路  3Comments

gbrian picture gbrian  路  3Comments

lenguyenthedat picture lenguyenthedat  路  3Comments

sashank picture sashank  路  3Comments