ddxdental opened a new issue #14138:
URL: https://github.com/apache/superset/issues/14138


   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 = "[email protected]"
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to