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.

Dashboards Will Not Load

See original GitHub issue

Fresh install of superset 1.0.1. Dashboards will not open. I originally had GLOBAL_ASYNC_QUERIES enabled, but have sinced disabled, as it appeared that the client side poll never resolved.

Expected results

Dashboard opens 😉

Actual results

Attempting to open a dashboard leaves you stuck on the loader. There is no error recorded in the browser console, or the server log.

Screenshots

https://user-images.githubusercontent.com/14878744/114721552-689b2380-9d0f-11eb-80b6-962096051500.mp4

Environment

(please complete the following information):

  • superset version: 1.0.1
  • python version: 3.8.8
  • node.js version: not installed

Additional context

superset_config.py

from celery.schedules import crontab
from superset.utils.logging_configurator import DefaultLoggingConfigurator

FLASK_APP = 'superset'
APP_NAME = 'superset'

LOG_LEVEL = "INFO"
ENABLE_TIME_ROTATE=True
SILENCE_FAB = False

# Superset specific config
ROW_LIMIT = 5000

# Superset webserver port
SUPERSET_WEBSERVER_PORT = 8088
# Superset webserver address
SUPERSET_WEBSERVER_ADDRESS = '127.0.0.1'
# Superset upload folder
UPLOAD_FOLDER = '/srv/superset/upload'
IMG_UPLOAD_FOLDER = '/srv/superset/img'

# Flask App Builder configuration
# Your App secret key
SECRET_KEY = ''

# The SQLAlchemy connection string to your database backend
# This connection defines the path to the database that stores your
# superset metadata (slices, connections, tables, dashboards, ...).
# Note that the connection information to connect to the datasources
# you want to explore are managed directly in the web UI
SQLALCHEMY_DATABASE_URI = 'mysql://root:@localhost/superset'

# Flask-WTF flag for CSRF
WTF_CSRF_ENABLED = False
# Add endpoints that need to be exempt from CSRF protection
WTF_CSRF_EXEMPT_LIST = []
# A CSRF token that expires in 1 year
WTF_CSRF_TIME_LIMIT = 60 * 60 * 24 * 365

APP_NAME = "DDX Enterprise BI"
APP_ICON = "https://www.ddxdental.com/images/marketing/logo-ddx-small.png"
APP_ICON_WIDTH = 70
MAPBOX_API_KEY = ""
FAVICONS = [{"href": "https://www.ddxdental.com/wp-content/uploads/2017/05/DDXOS_Favicon2.jpg"}]

CACHE_CONFIG = {
    'CACHE_TYPE': 'redis',
    'CACHE_DEFAULT_TIMEOUT': 60 * 60 * 24, # 1 day default (in secs)
    'CACHE_KEY_PREFIX': 'superset_results',
    'CACHE_REDIS_URL': 'redis://localhost:6379/0',
}

DATA_CACHE_CONFIG = {
    'CACHE_TYPE': 'redis',
    'CACHE_DEFAULT_TIMEOUT': 60 * 60 * 24, # 1 day default (in secs)
    'CACHE_KEY_PREFIX': 'superset_results',
    'CACHE_REDIS_URL': 'redis://localhost:6379/0',
}

class CeleryConfig:  # pylint: disable=too-few-public-methods
    BROKER_URL = "redis://localhost:6379/0"
    CELERY_IMPORTS = ("superset.sql_lab", "superset.tasks")
    CELERY_RESULT_BACKEND = "redis://localhost:6379/0"
    CELERYD_LOG_LEVEL = "DEBUG"
    CELERYD_PREFETCH_MULTIPLIER = 1
    CELERY_ACKS_LATE = False
    CELERY_ANNOTATIONS = {
        "sql_lab.get_sql_results": {"rate_limit": "100/s"},
        "email_reports.send": {
            "rate_limit": "1/s",
            "time_limit": 120,
            "soft_time_limit": 150,
            "ignore_result": True,
        },
    }
    CELERYBEAT_SCHEDULE = {
        "email_reports.schedule_hourly": {
            "task": "email_reports.schedule_hourly",
            "schedule": crontab(minute=1, hour="*"),
        },
        "reports.scheduler": {
            "task": "reports.scheduler",
            "schedule": crontab(minute="*", hour="*"),
        },
        "reports.prune_log": {
            "task": "reports.prune_log",
            "schedule": crontab(minute=0, hour=0),
        },
        'cache-warmup-hourly': {
            'task': 'cache-warmup',
            'schedule': crontab(minute=0, hour='*'),  # hourly
            'kwargs': {
                'strategy_name': 'top_n_dashboards',
                'top_n': 5,
                'since': '7 days ago',
            },
        },
    }


CELERY_CONFIG = CeleryConfig  # pylint: disable=invalid-name

#GLOBAL_ASYNC_QUERIES_JWT_SECRET = ""

FEATURE_FLAGS = {
#    "GLOBAL_ASYNC_QUERIES": True,
    "DASHBOARD_NATIVE_FILTERS": True,
    "ALERTS_REPORTS": True,
    "DYNAMIC_PLUGINS": True
}

EMAIL_NOTIFICATIONS = True
SMTP_HOST = "smtp.sparkpostmail.com"
SMTP_STARTTLS = True
SMTP_SSL = False
SMTP_USER = "SMTP_Injection"
SMTP_PORT = 587
SMTP_PASSWORD = ""
SMTP_MAIL_FROM = "team@ddxdental.com"

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ddxdentalcommented, Apr 23, 2021

Updated to 1.1.0 This resolved the issue

0reactions
ddxdentalcommented, Apr 21, 2021

@robdiciuccio yes, secret is redacted. Can access redis via redis-cli. Can create and load individual charts.

How does one rebuild the frontend assets? Google seems to be failing me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dashboards not loading for Admin account - Esri Community
Dashboards not loading for Admin account · Disable (or remove) ALL browser extensions in any Chrome browser that is problematic -> Clear cache...
Read more >
Solved: Canvas dashboard not loading - Instructure Community
Solved: Hello I have been trying to access Canvas dashboard for several days and it is no loading. Mobile works fine, but desktop...
Read more >
Dashboard does not display anything, will not load
The dashboard of this plugin only shows a bunch of blocks trying to load but they never do. ... Dashboard does not display...
Read more >
Solved: My Dashboard won't load - The Seller Community
Make sure your browser is up to date. · Clear the cache on your browser. · Switch to Google Chrome. (Internet Explorer is...
Read more >
Tableau Server not loading Dashboards or sheets
Hello,. I have a few workbooks posted in a private Tableau Server space. They were working just fine for a few days and...
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