fbgeobit opened a new issue, #26130: URL: https://github.com/apache/superset/issues/26130
On Superset v 2.1.0, I can't import a finished dashboard exported from an existing deployment on Superset v 2.1.0. #### How to reproduce the bug 1. On Superset v 2.1.0, I create a new dashboard with necessary, DB, datasets and charts. Once completed, I exported it from main Dashboards screen, by clicking "Export" menu on selected dashboard. 2. Then, on a different installation, I try to import it from main Dashboards screen by clicking on "Import dashboards" top right button. 3. After some seconds, an error arises on "Import dashboard" window with following info: > An error occurred while importing dashboard: Error importing dashboard. Please re-export your file and try importing again 4. Importing dashboard fails. ### Expected results Importing dashboards from a installation of Superset to another of same version (2.1.0 in this case) should work properly. ### Actual results The import fails #### Screenshots  ### Environment - browser type and version: `Mozilla Firefox 115.5.0esr (64-bit)` - docker Client: Docker Engine - Community Version: ` 24.0.4` - docker Server: Docker Engine - Community Version: `23.0.1` - docker-compose version: `Docker Compose version v2.19.1` - superset version: `2.1.0` - python version: `Python 3.8.16` - node.js version: `16.9.1` - any feature flags active: - FEATURE_FLAGS ``` # FEATURE_FLAGS = { "ALERT_REPORTS": True, "ENABLE_TEMPLATE_PROCESSING": True, "ENABLE_TEMPLATE_REMOVE_FILTERS": True, "DASHBOARD_NATIVE_FILTERS": True, "DASHBOARD_CROSS_FILTERS": True, "EMBEDDED_SUPERSET": True, "DASHBOARD_RBAC": True, "DRILL_TO_DETAIL": True, "HORIZONTAL_FILTER_BAR": True } ``` - CUSTOM FEATURES ``` # CUSTOM FEATURES SESSION_COOKIE_SAMESITE = 'Lax' SESSION_COOKIE_HTTPONLY = False GUEST_ROLE_NAME = "Admin" WTF_CSRF_ENABLED = False ENABLE_PROXY_FIX = True SUPERSET_WEBSERVER_PROTOCOL = "https" SUPERSET_WEBSERVER_TIMEOUT = '20 minutes' TALISMAN_ENABLED = False ``` ### Checklist Make sure to follow these steps 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. - [ ] I have reproduced the issue with at least the latest released version of superset. (I need `v2 .1.0` for production) - [ X] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context #### Docker containers: ``` sudo docker-compose -f /opt/superset/docker-compose-non-dev.yml ps NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS superset_app apache/superset:2.1.0 "/app/docker/docker-…" superset 2 months ago Up 2 months (healthy) 0.0.0.0:8088->8088/tcp, :::8088->8088/tcp superset_cache redis:7 "docker-entrypoint.s…" redis 2 months ago Up 2 months 6379/tcp superset_db postgres:14 "docker-entrypoint.s…" db 2 months ago Up 2 months 5432/tcp superset_worker apache/superset:2.1.0 "/app/docker/docker-…" superset-worker 2 months ago Up 2 months (unhealthy) 8088/tcp superset_worker_beat apache/superset:2.1.0 "/app/docker/docker-…" superset-worker-beat 2 months ago Up 2 months 8088/tcp ``` #### python stacktraces ``` INFO:superset.dashboards.commands.importers.dispatcher:Command failed validation CommandException Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1517, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1503, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 95, in wraps return f(self, *args, **kwargs) File "/app/superset/views/base_api.py", line 122, in wraps raise ex File "/app/superset/views/base_api.py", line 113, in wraps duration, response = time_function(f, self, *args, **kwargs) File "/app/superset/utils/core.py", line 1586, in time_function response = func(*args, **kwargs) File "/app/superset/utils/log.py", line 266, in wrapper value = f(*args, **kwargs) File "/app/superset/views/base_api.py", line 100, in wraps return f(self, *args, **kwargs) File "/app/superset/dashboards/api.py", line 1060, in import_ command.run() File "/app/superset/dashboards/commands/importers/dispatcher.py", line 64, in run raise exc File "/app/superset/dashboards/commands/importers/dispatcher.py", line 57, in run command.run() File "/app/superset/commands/importers/v1/__init__.py", line 64, in run self.validate() File "/app/superset/commands/importers/v1/__init__.py", line 98, in validate raise exception superset.commands.exceptions.CommandInvalidError: Error importing dashboard 2023-11-29 11:08:29,619:WARNING:superset.views.base:CommandException Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1517, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1503, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/usr/local/lib/python3.8/site-packages/flask_appbuilder/security/decorators.py", line 95, in wraps return f(self, *args, **kwargs) File "/app/superset/views/base_api.py", line 122, in wraps raise ex File "/app/superset/views/base_api.py", line 113, in wraps duration, response = time_function(f, self, *args, **kwargs) File "/app/superset/utils/core.py", line 1586, in time_function response = func(*args, **kwargs) File "/app/superset/utils/log.py", line 266, in wrapper value = f(*args, **kwargs) File "/app/superset/views/base_api.py", line 100, in wraps return f(self, *args, **kwargs) File "/app/superset/dashboards/api.py", line 1060, in import_ command.run() File "/app/superset/dashboards/commands/importers/dispatcher.py", line 64, in run raise exc File "/app/superset/dashboards/commands/importers/dispatcher.py", line 57, in run command.run() File "/app/superset/commands/importers/v1/__init__.py", line 64, in run self.validate() File "/app/superset/commands/importers/v1/__init__.py", line 98, in validate raise exception superset.commands.exceptions.CommandInvalidError: Error importing dashboard ``` -- 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. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org