<p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br>
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]</p>
<p dir="auto"><strong>Describe the solution you'd like</strong><br>
A clear and concise description of what you want to happen.</p>
<p dir="auto"><strong>Describe alternatives you've considered</strong><br>
A clear and concise description of any alternative solutions or features you've considered.</p>
<p dir="auto"><strong>Additional context</strong><br>
Add any other context or screenshots about the feature request here.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/82137779/145382509-c4560d4b-faa8-4541-bfc5-73048e0416e1.png"><img width="956" alt="Screenshot 2021-12-09 114113" src="https://user-images.githubusercontent.com/82137779/145382509-c4560d4b-faa8-4541-bfc5-73048e0416e1.png" style="max-width: 100%;"></a></p>
<p dir="auto">I have been trying to create a new chart in superset the duplicates are not restricting. when I create it shows<br>
the error message and after the page will be reloaded the duplicate name is created.</p>
<p dir="auto">please solve this issue..!</p>
<h4 dir="auto">How to reproduce the bug</h4>
<p dir="auto">I am trying to deploy to Kubernetes by Helm based on <a href="https://superset.apache.org/docs/installation/running-on-kubernetes" rel="nofollow">https://superset.apache.org/docs/installation/running-on-kubernetes</a></p>
<p dir="auto">by running</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="helm repo add superset https://apache.github.io/superset
helm upgrade --install --values values.yaml superset superset/superset"><pre class="notranslate">helm repo add superset https://apache.github.io/superset
helm upgrade --install --values values.yaml superset superset/superset</pre></div>
<p dir="auto">The values.yaml file I am using is <a href="https://github.com/apache/superset/blob/master/helm/superset/values.yaml">https://github.com/apache/superset/blob/master/helm/superset/values.yaml</a><br>
I didn't change any value.</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">I expect it deploy successfully.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">I got error</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation &quot;ab_permission_view_role&quot; does not exist
LINE 2: FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_...
                                      ^

[SQL: SELECT ab_role.id AS ab_role_id, ab_role.name AS ab_role_name, ab_permission_view_1.id AS ab_permission_view_1_id, ab_permission_view_1.permission_id AS ab_permission_view_1_permission_id, ab_permission_view_1.view_menu_id AS ab_permission_view_1_view_menu_id 
FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_permission_view_role_1 JOIN ab_permission_view AS ab_permission_view_1 ON ab_permission_view_1.id = ab_permission_view_role_1.permission_view_id) ON ab_role.id = ab_permission_view_role_1.role_id]
(Background on this error at: http://sqlalche.me/e/13/f405)"><pre class="notranslate">sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation <span class="pl-s"><span class="pl-pds">"</span>ab_permission_view_role<span class="pl-pds">"</span></span> does not exist
LINE 2: FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_...
                                      ^

[SQL: SELECT ab_role.id AS ab_role_id, ab_role.name AS ab_role_name, ab_permission_view_1.id AS ab_permission_view_1_id, ab_permission_view_1.permission_id AS ab_permission_view_1_permission_id, ab_permission_view_1.view_menu_id AS ab_permission_view_1_view_menu_id 
FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_permission_view_role_1 JOIN ab_permission_view AS ab_permission_view_1 ON ab_permission_view_1.id = ab_permission_view_role_1.permission_view_id) ON ab_role.id <span class="pl-k">=</span> ab_permission_view_role_1.role_id]
(Background on this error at: http://sqlalche.me/e/13/f405)</pre></div>
<details>
  <summary>Full log for `superset-init-db--1-xxx` (click to expand)</summary>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Requirement already satisfied: psycopg2-binary==2.9.1 in /usr/local/lib/python3.8/site-packages (2.9.1)
Requirement already satisfied: redis==3.5.3 in /usr/local/lib/python3.8/site-packages (3.5.3)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.2.4; however, version 22.0.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Upgrading DB schema...
logging was configured successfully
2022-04-16 03:29:27,934:INFO:superset.utils.logging_configurator:logging was configured successfully
2022-04-16 03:29:27,940:INFO:root:Configured event logger of type &lt;class 'superset.utils.log.DBEventLogger'&gt;
Falling back to the built-in cache, that stores data in the metadata database, for the following cache: `FILTER_STATE_CACHE_CONFIG`. It is recommended to use `RedisCache`, `MemcachedCache` or another dedicated caching backend for production deployments
2022-04-16 03:29:27,945:WARNING:superset.utils.cache_manager:Falling back to the built-in cache, that stores data in the metadata database, for the following cache: `FILTER_STATE_CACHE_CONFIG`. It is recommended to use `RedisCache`, `MemcachedCache` or another dedicated caching backend for production deployments
Falling back to the built-in cache, that stores data in the metadata database, for the following cache: `EXPLORE_FORM_DATA_CACHE_CONFIG`. It is recommended to use `RedisCache`, `MemcachedCache` or another dedicated caching backend for production deployments
2022-04-16 03:29:27,954:WARNING:superset.utils.cache_manager:Falling back to the built-in cache, that stores data in the metadata database, for the following cache: `EXPLORE_FORM_DATA_CACHE_CONFIG`. It is recommended to use `RedisCache`, `MemcachedCache` or another dedicated caching backend for production deployments
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade  -&gt; 4e6a06bad7a8, Init
INFO  [alembic.runtime.migration] Running upgrade 4e6a06bad7a8 -&gt; 5a7bad26f2a7, empty message
INFO  [alembic.runtime.migration] Running upgrade 5a7bad26f2a7 -&gt; 1e2841a4128, empty message
INFO  [alembic.runtime.migration] Running upgrade 1e2841a4128 -&gt; 2929af7925ed, TZ offsets in data sources
INFO  [alembic.runtime.migration] Running upgrade 2929af7925ed -&gt; 289ce07647b, Add encrypted password field
INFO  [alembic.runtime.migration] Running upgrade 289ce07647b -&gt; 1a48a5411020, adding slug to dash
INFO  [alembic.runtime.migration] Running upgrade 1a48a5411020 -&gt; 315b3f4da9b0, adding log model
INFO  [alembic.runtime.migration] Running upgrade 315b3f4da9b0 -&gt; 55179c7f25c7, sqla_descr
INFO  [alembic.runtime.migration] Running upgrade 55179c7f25c7 -&gt; 12d55656cbca, is_featured
INFO  [alembic.runtime.migration] Running upgrade 12d55656cbca -&gt; 2591d77e9831, user_id
INFO  [alembic.runtime.migration] Running upgrade 2591d77e9831 -&gt; 8e80a26a31db, empty message
INFO  [alembic.runtime.migration] Running upgrade 8e80a26a31db -&gt; 7dbf98566af7, empty message
INFO  [alembic.runtime.migration] Running upgrade 7dbf98566af7 -&gt; 43df8de3a5f4, empty message
INFO  [alembic.runtime.migration] Running upgrade 43df8de3a5f4 -&gt; d827694c7555, css templates
INFO  [alembic.runtime.migration] Running upgrade d827694c7555 -&gt; 430039611635, log more
INFO  [alembic.runtime.migration] Running upgrade 430039611635 -&gt; 18e88e1cc004, making audit nullable
INFO  [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; 836c0bf75904, cache_timeouts
INFO  [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; a2d606a761d9, adding favstar model
INFO  [alembic.runtime.migration] Running upgrade a2d606a761d9, 836c0bf75904 -&gt; d2424a248d63, empty message
INFO  [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 763d4b211ec9, fixing audit fk
INFO  [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 1d2ddd543133, log dt
INFO  [alembic.runtime.migration] Running upgrade 1d2ddd543133, 763d4b211ec9 -&gt; fee7b758c130, empty message
INFO  [alembic.runtime.migration] Running upgrade fee7b758c130 -&gt; 867bf4f117f9, Adding extra field to Database model
INFO  [alembic.runtime.migration] Running upgrade 867bf4f117f9 -&gt; bb51420eaf83, add schema to table model
INFO  [alembic.runtime.migration] Running upgrade bb51420eaf83 -&gt; b4456560d4f3, change_table_unique_constraint
INFO  [alembic.runtime.migration] Running upgrade b4456560d4f3 -&gt; 4fa88fe24e94, owners_many_to_many
INFO  [alembic.runtime.migration] Running upgrade 4fa88fe24e94 -&gt; c3a8f8611885, Materializing permission
INFO  [alembic.runtime.migration] Running upgrade c3a8f8611885 -&gt; f0fbf6129e13, Adding verbose_name to tablecolumn
INFO  [alembic.runtime.migration] Running upgrade f0fbf6129e13 -&gt; 956a063c52b3, adjusting key length
INFO  [alembic.runtime.migration] Running upgrade 956a063c52b3 -&gt; 1226819ee0e3, Fix wrong constraint on table columns
INFO  [alembic.runtime.migration] Running upgrade 1226819ee0e3 -&gt; d8bc074f7aad, Add new field 'is_restricted' to SqlMetric and DruidMetric
INFO  [alembic.runtime.migration] Running upgrade d8bc074f7aad -&gt; 27ae655e4247, Make creator owners
INFO  [alembic.runtime.migration] Running upgrade 27ae655e4247 -&gt; 960c69cb1f5b, add dttm_format related fields in table_columns
INFO  [alembic.runtime.migration] Running upgrade 960c69cb1f5b -&gt; f162a1dea4c4, d3format_by_metric
INFO  [alembic.runtime.migration] Running upgrade f162a1dea4c4 -&gt; ad82a75afd82, Update models to support storing the queries.
INFO  [alembic.runtime.migration] Running upgrade ad82a75afd82 -&gt; 3c3ffe173e4f, add_sql_string_to_table
INFO  [alembic.runtime.migration] Running upgrade 3c3ffe173e4f -&gt; 41f6a59a61f2, database options for sql lab
INFO  [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 4500485bde7d, allow_run_sync_async
INFO  [alembic.runtime.migration] Running upgrade 4500485bde7d -&gt; 65903709c321, allow_dml
INFO  [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 33d996bcc382, update slice model
INFO  [alembic.runtime.migration] Running upgrade 33d996bcc382, 65903709c321 -&gt; b347b202819b, empty message
INFO  [alembic.runtime.migration] Running upgrade b347b202819b -&gt; 5e4a03ef0bf0, Add access_request table to manage requests to access datastores.
INFO  [alembic.runtime.migration] Running upgrade 5e4a03ef0bf0 -&gt; eca4694defa7, sqllab_setting_defaults
INFO  [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; ab3d66c4246e, add_cache_timeout_to_druid_cluster
INFO  [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; 3b626e2a6783, Sync DB with the models.py.
INFO  [alembic.runtime.migration] Running upgrade 3b626e2a6783, ab3d66c4246e -&gt; ef8843b41dac, empty message
INFO  [alembic.runtime.migration] Running upgrade ef8843b41dac -&gt; b46fa1b0b39e, Add json_metadata to the tables table.
INFO  [alembic.runtime.migration] Running upgrade b46fa1b0b39e -&gt; 7e3ddad2a00b, results_key to query
INFO  [alembic.runtime.migration] Running upgrade 7e3ddad2a00b -&gt; ad4d656d92bc, Add avg() to default metrics
INFO  [alembic.runtime.migration] Running upgrade ad4d656d92bc -&gt; c611f2b591b8, dim_spec
INFO  [alembic.runtime.migration] Running upgrade c611f2b591b8 -&gt; e46f2d27a08e, materialize perms
INFO  [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; f1f2d4af5b90, Enable Filter Select
INFO  [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; 525c854f0005, log_this_plus
INFO  [alembic.runtime.migration] Running upgrade 525c854f0005, f1f2d4af5b90 -&gt; 6414e83d82b7, empty message
INFO  [alembic.runtime.migration] Running upgrade 6414e83d82b7 -&gt; 1296d28ec131, Adds params to the datasource (druid) table
INFO  [alembic.runtime.migration] Running upgrade 1296d28ec131 -&gt; f18570e03440, Add index on the result key to the query table.
INFO  [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; bcf3126872fc, Add keyvalue table
INFO  [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; db0c65b146bd, update_slice_model_json
INFO  [alembic.runtime.migration] Running upgrade db0c65b146bd -&gt; a99f2f7c195a, rewriting url from shortner with new format
INFO  [alembic.runtime.migration] Running upgrade a99f2f7c195a, bcf3126872fc -&gt; d6db5a5cdb5d, empty message
INFO  [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; b318dfe5fb6c, adding verbose_name to druid column
INFO  [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; 732f1c06bcbf, add fetch values predicate
INFO  [alembic.runtime.migration] Running upgrade 732f1c06bcbf, b318dfe5fb6c -&gt; ea033256294a, empty message
INFO  [alembic.runtime.migration] Running upgrade b318dfe5fb6c -&gt; db527d8c4c78, Add verbose name to DruidCluster and Database
INFO  [alembic.runtime.migration] Running upgrade db527d8c4c78, ea033256294a -&gt; 979c03af3341, empty message
INFO  [alembic.runtime.migration] Running upgrade 979c03af3341 -&gt; a6c18f869a4e, query.start_running_time
INFO  [alembic.runtime.migration] Running upgrade a6c18f869a4e -&gt; 2fcdcb35e487, saved_queries
INFO  [alembic.runtime.migration] Running upgrade 2fcdcb35e487 -&gt; a65458420354, add_result_backend_time_logging
INFO  [alembic.runtime.migration] Running upgrade a65458420354 -&gt; ca69c70ec99b, tracking_url
INFO  [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; a9c47e2c1547, add impersonate_user to dbs
INFO  [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; ddd6ebdd853b, annotations
INFO  [alembic.runtime.migration] Running upgrade a9c47e2c1547, ddd6ebdd853b -&gt; d39b1e37131d, empty message
INFO  [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; 19a814813610, Adding metric warning_text
INFO  [alembic.runtime.migration] Running upgrade 19a814813610, a9c47e2c1547 -&gt; 472d2f73dfd4, empty message
INFO  [alembic.runtime.migration] Running upgrade 472d2f73dfd4, d39b1e37131d -&gt; f959a6652acd, empty message
INFO  [alembic.runtime.migration] Running upgrade f959a6652acd -&gt; 4736ec66ce19, empty message
INFO  [alembic.runtime.migration] Running upgrade 4736ec66ce19 -&gt; 67a6ac9b727b, update_spatial_params
INFO  [alembic.runtime.migration] Running upgrade 67a6ac9b727b -&gt; 21e88bc06c02, migrate_old_annotation_layers
INFO  [alembic.runtime.migration] Running upgrade 21e88bc06c02 -&gt; e866bd2d4976, smaller_grid
INFO  [alembic.runtime.migration] Running upgrade e866bd2d4976 -&gt; e68c4473c581, allow_multi_schema_metadata_fetch
INFO  [alembic.runtime.migration] Running upgrade e68c4473c581 -&gt; f231d82b9b26, empty message
INFO  [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; bf706ae5eb46, cal_heatmap_metric_to_metrics
INFO  [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 30bb17c0dc76, empty message
INFO  [alembic.runtime.migration] Running upgrade 30bb17c0dc76, bf706ae5eb46 -&gt; c9495751e314, empty message
INFO  [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 130915240929, is_sqllab_view
INFO  [alembic.runtime.migration] Running upgrade 130915240929, c9495751e314 -&gt; 5ccf602336a0, empty message
INFO  [alembic.runtime.migration] Running upgrade 5ccf602336a0 -&gt; e502db2af7be, add template_params to tables
INFO  [alembic.runtime.migration] Running upgrade e502db2af7be -&gt; c5756bec8b47, Time grain SQLA
INFO  [alembic.runtime.migration] Running upgrade c5756bec8b47 -&gt; afb7730f6a9c, remove empty filters
INFO  [alembic.runtime.migration] Running upgrade afb7730f6a9c -&gt; 80a67c5192fa, single pie chart metric
INFO  [alembic.runtime.migration] Running upgrade 80a67c5192fa -&gt; bddc498dd179, adhoc filters
INFO  [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 4451805bbaa1, remove double percents
INFO  [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 3dda56f1c4c6, Migrate num_period_compare and period_ratio_type
INFO  [alembic.runtime.migration] Running upgrade 3dda56f1c4c6 -&gt; 1d9e835a84f9, empty message
INFO  [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; e3970889f38e, empty message
INFO  [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; 705732c70154, empty message
INFO  [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; fc480c87706c, empty message
INFO  [alembic.runtime.migration] Running upgrade fc480c87706c -&gt; bebcf3fed1fe, Migrate dashboard position_json data from V1 to V2
INFO  [alembic.runtime.migration] Running upgrade bebcf3fed1fe, 705732c70154 -&gt; ec1f88a35cc6, empty message
INFO  [alembic.runtime.migration] Running upgrade 705732c70154, e3970889f38e -&gt; 46ba6aaaac97, empty message
INFO  [alembic.runtime.migration] Running upgrade 46ba6aaaac97, ec1f88a35cc6 -&gt; c18bd4186f15, empty message
INFO  [alembic.runtime.migration] Running upgrade c18bd4186f15 -&gt; 7fcdcde0761c, Reduce position_json size by remove extra space and component id prefix
INFO  [alembic.runtime.migration] Running upgrade 7fcdcde0761c -&gt; 0c5070e96b57, add user attributes table
INFO  [alembic.runtime.migration] Running upgrade 0c5070e96b57 -&gt; 1a1d627ebd8e, position_json
INFO  [alembic.runtime.migration] Running upgrade 1a1d627ebd8e -&gt; 55e910a74826, add_metadata_column_to_annotation_model.py
INFO  [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 4ce8df208545, empty message
INFO  [alembic.runtime.migration] Running upgrade 4ce8df208545 -&gt; 46f444d8b9b7, remove_coordinator_from_druid_cluster_model.py
INFO  [alembic.runtime.migration] Running upgrade 46f444d8b9b7 -&gt; a61b40f9f57f, remove allow_run_sync
INFO  [alembic.runtime.migration] Running upgrade a61b40f9f57f -&gt; 6c7537a6004a, models for email reports
INFO  [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; 3e1b21cd94a4, change_owner_to_m2m_relation_on_datasources.py
INFO  [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; cefabc8f7d38, Increase size of name column in ab_view_menu
INFO  [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 0b1f1ab473c0, Add extra column to Query
INFO  [alembic.runtime.migration] Running upgrade 0b1f1ab473c0, cefabc8f7d38, 3e1b21cd94a4 -&gt; de021a1ca60d, empty message
INFO  [alembic.runtime.migration] Running upgrade de021a1ca60d -&gt; fb13d49b72f9, better_filters
INFO  [alembic.runtime.migration] Running upgrade fb13d49b72f9 -&gt; a33a03f16c4a, Add extra column to SavedQuery
INFO  [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; c829ff0b37d0, empty message
INFO  [alembic.runtime.migration] Running upgrade c829ff0b37d0 -&gt; 7467e77870e4, remove_aggs
INFO  [alembic.runtime.migration] Running upgrade 7467e77870e4, de021a1ca60d -&gt; fbd55e0f83eb, empty message
INFO  [alembic.runtime.migration] Running upgrade fbd55e0f83eb, fb13d49b72f9 -&gt; 8b70aa3d0f87, empty message
INFO  [alembic.runtime.migration] Running upgrade 8b70aa3d0f87, a33a03f16c4a -&gt; 18dc26817ad2, empty message
INFO  [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; c617da68de7d, form nullable
INFO  [alembic.runtime.migration] Running upgrade c617da68de7d -&gt; c82ee8a39623, Add implicit tags
INFO  [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; e553e78e90c5, add_druid_auth_py.py
INFO  [alembic.runtime.migration] Running upgrade e553e78e90c5, c82ee8a39623 -&gt; 45e7da7cfeba, empty message
INFO  [alembic.runtime.migration] Running upgrade 45e7da7cfeba -&gt; 80aa3f04bc82, Add Parent ids in dashboard layout metadata
INFO  [alembic.runtime.migration] Running upgrade 80aa3f04bc82 -&gt; d94d33dbe938, form strip
INFO  [alembic.runtime.migration] Running upgrade d94d33dbe938 -&gt; 937d04c16b64, update datasources
INFO  [alembic.runtime.migration] Running upgrade 937d04c16b64 -&gt; 7f2635b51f5d, update base columns
INFO  [alembic.runtime.migration] Running upgrade 7f2635b51f5d -&gt; e9df189e5c7e, update base metrics
INFO  [alembic.runtime.migration] Running upgrade e9df189e5c7e -&gt; afc69274c25a, update the sql, select_sql, and executed_sql columns in the
 query table in mysql dbs to be long text columns
INFO  [alembic.runtime.migration] Running upgrade afc69274c25a -&gt; d7c1a0d6f2da, Remove limit used from query model
INFO  [alembic.runtime.migration] Running upgrade d7c1a0d6f2da -&gt; ab8c66efdd01, resample
INFO  [alembic.runtime.migration] Running upgrade ab8c66efdd01 -&gt; b4a38aa87893, deprecate database expression
INFO  [alembic.runtime.migration] Running upgrade b4a38aa87893 -&gt; d6ffdf31bdd4, Add published column to dashboards
INFO  [alembic.runtime.migration] Running upgrade d6ffdf31bdd4 -&gt; 190188938582, Remove duplicated entries in dashboard_slices table and add unique constraint
INFO  [alembic.runtime.migration] Running upgrade 190188938582 -&gt; def97f26fdfb, Add index to tagged_object
INFO  [alembic.runtime.migration] Running upgrade def97f26fdfb -&gt; 11c737c17cc6, deprecate_restricted_metrics
INFO  [alembic.runtime.migration] Running upgrade 11c737c17cc6 -&gt; 258b5280a45e, form strip leading and trailing whitespace
INFO  [alembic.runtime.migration] Running upgrade 258b5280a45e -&gt; 1495eb914ad3, time range
INFO  [alembic.runtime.migration] Running upgrade 1495eb914ad3 -&gt; b6fa807eac07, make_names_non_nullable
INFO  [alembic.runtime.migration] Running upgrade b6fa807eac07 -&gt; cca2f5d568c8, add encrypted_extra to dbs
INFO  [alembic.runtime.migration] Running upgrade cca2f5d568c8 -&gt; c2acd2cf3df2, alter type of dbs encrypted_extra
INFO  [alembic.runtime.migration] Running upgrade c2acd2cf3df2 -&gt; 78ee127d0d1d, reconvert legacy filters into adhoc
INFO  [alembic.runtime.migration] Running upgrade 78ee127d0d1d -&gt; db4b49eb0782, Add tables for SQL Lab state
INFO  [alembic.runtime.migration] Running upgrade db4b49eb0782 -&gt; 5afa9079866a, serialize_schema_permissions.py
INFO  [alembic.runtime.migration] Running upgrade 5afa9079866a -&gt; 89115a40e8ea, Change table schema description to long text
INFO  [alembic.runtime.migration] Running upgrade 89115a40e8ea -&gt; 817e1c9b09d0, add_not_null_to_dbs_sqlalchemy_url
INFO  [alembic.runtime.migration] Running upgrade 817e1c9b09d0 -&gt; e96dbf2cfef0, datasource_cluster_fk
INFO  [alembic.runtime.migration] Running upgrade e96dbf2cfef0 -&gt; 3325d4caccc8, empty message
INFO  [alembic.runtime.migration] Running upgrade 3325d4caccc8 -&gt; 0a6f12f60c73, add_role_level_security
INFO  [alembic.runtime.migration] Running upgrade 0a6f12f60c73 -&gt; 72428d1ea401, Add tmp_schema_name to the query object.
INFO  [alembic.runtime.migration] Running upgrade 72428d1ea401 -&gt; b5998378c225, add certificate to dbs
INFO  [alembic.runtime.migration] Running upgrade b5998378c225 -&gt; f9a30386bd74, cleanup_time_grainularity
INFO  [alembic.runtime.migration] Running upgrade f9a30386bd74 -&gt; 620241d1153f, update time_grain_sqla
INFO  [alembic.runtime.migration] Running upgrade 620241d1153f -&gt; 743a117f0d98, Add slack to the schedule
INFO  [alembic.runtime.migration] Running upgrade 743a117f0d98 -&gt; e557699a813e, add_tables_relation_to_row_level_security
INFO  [alembic.runtime.migration] Running upgrade e557699a813e -&gt; ea396d202291, Add ctas_method to the Query object
INFO  [alembic.runtime.migration] Running upgrade ea396d202291 -&gt; a72cb0ebeb22, deprecate dbs.perm column
INFO  [alembic.runtime.migration] Running upgrade a72cb0ebeb22 -&gt; 2f1d15e8a6af, add_alerts
INFO  [alembic.runtime.migration] Running upgrade 2f1d15e8a6af -&gt; f2672aa8350a, add_slack_to_alerts
INFO  [alembic.runtime.migration] Running upgrade f2672aa8350a -&gt; f120347acb39, Add extra column to tables and metrics
INFO  [alembic.runtime.migration] Running upgrade f2672aa8350a -&gt; 978245563a02, Migrate iframe in dashboard to markdown component
INFO  [alembic.runtime.migration] Running upgrade 978245563a02, f120347acb39 -&gt; f80a3b88324b, empty message
INFO  [alembic.runtime.migration] Running upgrade f80a3b88324b -&gt; 2e5a0ee25ed4, refractor_alerting
INFO  [alembic.runtime.migration] Running upgrade f80a3b88324b -&gt; 175ea3592453, Add cache to datasource lookup table.
INFO  [alembic.runtime.migration] Running upgrade 175ea3592453, 2e5a0ee25ed4 -&gt; ae19b4ee3692, empty message
INFO  [alembic.runtime.migration] Running upgrade ae19b4ee3692 -&gt; e5ef6828ac4e, add rls filter type and grouping key
INFO  [alembic.runtime.migration] Running upgrade e5ef6828ac4e -&gt; 3fbbc6e8d654, fix data access permissions for virtual datasets
INFO  [alembic.runtime.migration] Running upgrade 3fbbc6e8d654 -&gt; 18532d70ab98, Delete table_name unique constraint in mysql
INFO  [alembic.runtime.migration] Running upgrade 18532d70ab98 -&gt; b56500de1855, add_uuid_column_to_import_mixin
INFO  [alembic.runtime.migration] Running upgrade b56500de1855 -&gt; af30ca79208f, Collapse alerting models into a single one
INFO  [alembic.runtime.migration] Running upgrade af30ca79208f -&gt; 585b0b1a7b18, add exec info to saved queries
INFO  [alembic.runtime.migration] Running upgrade 585b0b1a7b18 -&gt; 96e99fb176a0, add_import_mixing_to_saved_query
INFO  [alembic.runtime.migration] Running upgrade 96e99fb176a0 -&gt; 49b5a32daba5, add report schedules
INFO  [alembic.runtime.migration] Running upgrade 49b5a32daba5 -&gt; a8173232b786, Add path to logs
INFO  [alembic.runtime.migration] Running upgrade a8173232b786 -&gt; e38177dbf641, security converge saved queries
Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]

Cleaning up slice uuid from dashboard position json..
Cleaning up slice uuid from dashboard position json.. Done.      

Traceback (most recent call last):
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1276, in _execute_context
  self.dialect.do_execute(
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py&quot;, line 608, in do_execute
  cursor.execute(statement, parameters)
psycopg2.errors.UndefinedTable: relation &quot;ab_permission_view_role&quot; does not exist
LINE 2: FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_...
                                    ^


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File &quot;/usr/local/bin/superset&quot;, line 33, in &lt;module&gt;
  sys.exit(load_entry_point('apache-superset', 'console_scripts', 'superset')())
File &quot;/usr/local/lib/python3.8/site-packages/click/core.py&quot;, line 1128, in __call__
  return self.main(*args, **kwargs)
File &quot;/usr/local/lib/python3.8/site-packages/flask/cli.py&quot;, line 601, in main
  return super().main(*args, **kwargs)
File &quot;/usr/local/lib/python3.8/site-packages/click/core.py&quot;, line 1053, in main
  rv = self.invoke(ctx)
File &quot;/usr/local/lib/python3.8/site-packages/click/core.py&quot;, line 1659, in invoke
  return _process_result(sub_ctx.command.invoke(sub_ctx))
File &quot;/usr/local/lib/python3.8/site-packages/click/core.py&quot;, line 1659, in invoke
  return _process_result(sub_ctx.command.invoke(sub_ctx))
File &quot;/usr/local/lib/python3.8/site-packages/click/core.py&quot;, line 1395, in invoke
  return ctx.invoke(self.callback, **ctx.params)
File &quot;/usr/local/lib/python3.8/site-packages/click/core.py&quot;, line 754, in invoke
  return __callback(*args, **kwargs)
File &quot;/usr/local/lib/python3.8/site-packages/click/decorators.py&quot;, line 26, in new_func
  return f(get_current_context(), *args, **kwargs)
File &quot;/usr/local/lib/python3.8/site-packages/flask/cli.py&quot;, line 445, in decorator
  return __ctx.invoke(f, *args, **kwargs)
File &quot;/usr/local/lib/python3.8/site-packages/click/core.py&quot;, line 754, in invoke
  return __callback(*args, **kwargs)
File &quot;/usr/local/lib/python3.8/site-packages/flask_migrate/cli.py&quot;, line 149, in upgrade
  _upgrade(directory, revision, sql, tag, x_arg)
File &quot;/usr/local/lib/python3.8/site-packages/flask_migrate/__init__.py&quot;, line 98, in wrapped
  f(*args, **kwargs)
File &quot;/usr/local/lib/python3.8/site-packages/flask_migrate/__init__.py&quot;, line 185, in upgrade
  command.upgrade(config, revision, sql=sql, tag=tag)
File &quot;/usr/local/lib/python3.8/site-packages/alembic/command.py&quot;, line 294, in upgrade
  script.run_env()
File &quot;/usr/local/lib/python3.8/site-packages/alembic/script/base.py&quot;, line 490, in run_env
  util.load_python_file(self.dir, &quot;env.py&quot;)
File &quot;/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py&quot;, line 97, in load_python_file
  module = load_module_py(module_id, path)
File &quot;/usr/local/lib/python3.8/site-packages/alembic/util/compat.py&quot;, line 184, in load_module_py
  spec.loader.exec_module(module)
File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 843, in exec_module
File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
File &quot;/app/superset/extensions/../migrations/env.py&quot;, line 126, in &lt;module&gt;
  run_migrations_online()
File &quot;/app/superset/extensions/../migrations/env.py&quot;, line 118, in run_migrations_online
  context.run_migrations()
File &quot;&lt;string&gt;&quot;, line 8, in run_migrations
File &quot;/usr/local/lib/python3.8/site-packages/alembic/runtime/environment.py&quot;, line 813, in run_migrations
  self.get_context().run_migrations(**kw)
File &quot;/usr/local/lib/python3.8/site-packages/alembic/runtime/migration.py&quot;, line 561, in run_migrations
  step.migration_fn(**kw)
File &quot;/app/superset/migrations/versions/e38177dbf641_security_converge_saved_queries.py&quot;, line 100, in upgrade
  migrate_roles(session, PVM_MAP)
File &quot;/app/superset/migrations/shared/security_converge.py&quot;, line 237, in migrate_roles
  roles = session.query(Role).options(Load(Role).joinedload(Role.permissions)).all()
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py&quot;, line 3373, in all
  return list(self)
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py&quot;, line 3535, in __iter__
  return self._execute_and_instances(context)
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py&quot;, line 3560, in _execute_and_instances
  result = conn.execute(querycontext.statement, self._params)
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1011, in execute
  return meth(self, multiparams, params)
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py&quot;, line 298, in _execute_on_connection
  return connection._execute_clauseelement(self, multiparams, params)
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1124, in _execute_clauseelement
  ret = self._execute_context(
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1316, in _execute_context
  self._handle_dbapi_exception(
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1510, in _handle_dbapi_exception
  util.raise_(
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py&quot;, line 182, in raise_
  raise exception
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1276, in _execute_context
  self.dialect.do_execute(
File &quot;/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py&quot;, line 608, in do_execute
  cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation &quot;ab_permission_view_role&quot; does not exist
LINE 2: FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_...
                                    ^

[SQL: SELECT ab_role.id AS ab_role_id, ab_role.name AS ab_role_name, ab_permission_view_1.id AS ab_permission_view_1_id, ab_permission_view_1.permission_id AS ab_permission_view_1_permission_id, ab_permission_view_1.view_menu_id AS ab_permission_view_1_view_menu_id 
FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_permission_view_role_1 JOIN ab_permission_view AS ab_permission_view_1 ON ab_permission_view_1.id = ab_permission_view_role_1.permission_view_id) ON ab_role.id = ab_permission_view_role_1.role_id]
(Background on this error at: http://sqlalche.me/e/13/f405)"><pre class="notranslate">Requirement already satisfied: psycopg2-binary==2.9.1 <span class="pl-k">in</span> /usr/local/lib/python3.8/site-packages (2.9.1)
Requirement already satisfied: redis==3.5.3 <span class="pl-k">in</span> /usr/local/lib/python3.8/site-packages (3.5.3)
WARNING: Running pip as the <span class="pl-s"><span class="pl-pds">'</span>root<span class="pl-pds">'</span></span> user can result <span class="pl-k">in</span> broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.2.4<span class="pl-k">;</span> however, version 22.0.4 is available.
You should consider upgrading via the <span class="pl-s"><span class="pl-pds">'</span>/usr/local/bin/python -m pip install --upgrade pip<span class="pl-pds">'</span></span> command.
Upgrading DB schema...
logging was configured successfully
2022-04-16 03:29:27,934:INFO:superset.utils.logging_configurator:logging was configured successfully
2022-04-16 03:29:27,940:INFO:root:Configured event logger of <span class="pl-c1">type</span> <span class="pl-k">&lt;</span>class <span class="pl-s"><span class="pl-pds">'</span>superset.utils.log.DBEventLogger<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span>
Falling back to the built-in cache, that stores data <span class="pl-k">in</span> the metadata database, <span class="pl-k">for</span> the following cache: <span class="pl-s"><span class="pl-pds">`</span>FILTER_STATE_CACHE_CONFIG<span class="pl-pds">`</span></span>. It is recommended to use <span class="pl-s"><span class="pl-pds">`</span>RedisCache<span class="pl-pds">`</span></span>, <span class="pl-s"><span class="pl-pds">`</span>MemcachedCache<span class="pl-pds">`</span></span> or another dedicated caching backend <span class="pl-k">for</span> production deployments
2022-04-16 03:29:27,945:WARNING:superset.utils.cache_manager:Falling back to the built-in cache, that stores data <span class="pl-k">in</span> the metadata database, <span class="pl-k">for</span> the following cache: <span class="pl-s"><span class="pl-pds">`</span>FILTER_STATE_CACHE_CONFIG<span class="pl-pds">`</span></span>. It is recommended to use <span class="pl-s"><span class="pl-pds">`</span>RedisCache<span class="pl-pds">`</span></span>, <span class="pl-s"><span class="pl-pds">`</span>MemcachedCache<span class="pl-pds">`</span></span> or another dedicated caching backend <span class="pl-k">for</span> production deployments
Falling back to the built-in cache, that stores data <span class="pl-k">in</span> the metadata database, <span class="pl-k">for</span> the following cache: <span class="pl-s"><span class="pl-pds">`</span>EXPLORE_FORM_DATA_CACHE_CONFIG<span class="pl-pds">`</span></span>. It is recommended to use <span class="pl-s"><span class="pl-pds">`</span>RedisCache<span class="pl-pds">`</span></span>, <span class="pl-s"><span class="pl-pds">`</span>MemcachedCache<span class="pl-pds">`</span></span> or another dedicated caching backend <span class="pl-k">for</span> production deployments
2022-04-16 03:29:27,954:WARNING:superset.utils.cache_manager:Falling back to the built-in cache, that stores data <span class="pl-k">in</span> the metadata database, <span class="pl-k">for</span> the following cache: <span class="pl-s"><span class="pl-pds">`</span>EXPLORE_FORM_DATA_CACHE_CONFIG<span class="pl-pds">`</span></span>. It is recommended to use <span class="pl-s"><span class="pl-pds">`</span>RedisCache<span class="pl-pds">`</span></span>, <span class="pl-s"><span class="pl-pds">`</span>MemcachedCache<span class="pl-pds">`</span></span> or another dedicated caching backend <span class="pl-k">for</span> production deployments
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade  -<span class="pl-k">&gt;</span> 4e6a06bad7a8, Init
INFO  [alembic.runtime.migration] Running upgrade 4e6a06bad7a8 -<span class="pl-k">&gt;</span> 5a7bad26f2a7, empty message
INFO  [alembic.runtime.migration] Running upgrade 5a7bad26f2a7 -<span class="pl-k">&gt;</span> 1e2841a4128, empty message
INFO  [alembic.runtime.migration] Running upgrade 1e2841a4128 -<span class="pl-k">&gt;</span> 2929af7925ed, TZ offsets <span class="pl-k">in</span> data sources
INFO  [alembic.runtime.migration] Running upgrade 2929af7925ed -<span class="pl-k">&gt;</span> 289ce07647b, Add encrypted password field
INFO  [alembic.runtime.migration] Running upgrade 289ce07647b -<span class="pl-k">&gt;</span> 1a48a5411020, adding slug to dash
INFO  [alembic.runtime.migration] Running upgrade 1a48a5411020 -<span class="pl-k">&gt;</span> 315b3f4da9b0, adding log model
INFO  [alembic.runtime.migration] Running upgrade 315b3f4da9b0 -<span class="pl-k">&gt;</span> 55179c7f25c7, sqla_descr
INFO  [alembic.runtime.migration] Running upgrade 55179c7f25c7 -<span class="pl-k">&gt;</span> 12d55656cbca, is_featured
INFO  [alembic.runtime.migration] Running upgrade 12d55656cbca -<span class="pl-k">&gt;</span> 2591d77e9831, user_id
INFO  [alembic.runtime.migration] Running upgrade 2591d77e9831 -<span class="pl-k">&gt;</span> 8e80a26a31db, empty message
INFO  [alembic.runtime.migration] Running upgrade 8e80a26a31db -<span class="pl-k">&gt;</span> 7dbf98566af7, empty message
INFO  [alembic.runtime.migration] Running upgrade 7dbf98566af7 -<span class="pl-k">&gt;</span> 43df8de3a5f4, empty message
INFO  [alembic.runtime.migration] Running upgrade 43df8de3a5f4 -<span class="pl-k">&gt;</span> d827694c7555, css templates
INFO  [alembic.runtime.migration] Running upgrade d827694c7555 -<span class="pl-k">&gt;</span> 430039611635, log more
INFO  [alembic.runtime.migration] Running upgrade 430039611635 -<span class="pl-k">&gt;</span> 18e88e1cc004, making audit nullable
INFO  [alembic.runtime.migration] Running upgrade 18e88e1cc004 -<span class="pl-k">&gt;</span> 836c0bf75904, cache_timeouts
INFO  [alembic.runtime.migration] Running upgrade 18e88e1cc004 -<span class="pl-k">&gt;</span> a2d606a761d9, adding favstar model
INFO  [alembic.runtime.migration] Running upgrade a2d606a761d9, 836c0bf75904 -<span class="pl-k">&gt;</span> d2424a248d63, empty message
INFO  [alembic.runtime.migration] Running upgrade d2424a248d63 -<span class="pl-k">&gt;</span> 763d4b211ec9, fixing audit fk
INFO  [alembic.runtime.migration] Running upgrade d2424a248d63 -<span class="pl-k">&gt;</span> 1d2ddd543133, log dt
INFO  [alembic.runtime.migration] Running upgrade 1d2ddd543133, 763d4b211ec9 -<span class="pl-k">&gt;</span> fee7b758c130, empty message
INFO  [alembic.runtime.migration] Running upgrade fee7b758c130 -<span class="pl-k">&gt;</span> 867bf4f117f9, Adding extra field to Database model
INFO  [alembic.runtime.migration] Running upgrade 867bf4f117f9 -<span class="pl-k">&gt;</span> bb51420eaf83, add schema to table model
INFO  [alembic.runtime.migration] Running upgrade bb51420eaf83 -<span class="pl-k">&gt;</span> b4456560d4f3, change_table_unique_constraint
INFO  [alembic.runtime.migration] Running upgrade b4456560d4f3 -<span class="pl-k">&gt;</span> 4fa88fe24e94, owners_many_to_many
INFO  [alembic.runtime.migration] Running upgrade 4fa88fe24e94 -<span class="pl-k">&gt;</span> c3a8f8611885, Materializing permission
INFO  [alembic.runtime.migration] Running upgrade c3a8f8611885 -<span class="pl-k">&gt;</span> f0fbf6129e13, Adding verbose_name to tablecolumn
INFO  [alembic.runtime.migration] Running upgrade f0fbf6129e13 -<span class="pl-k">&gt;</span> 956a063c52b3, adjusting key length
INFO  [alembic.runtime.migration] Running upgrade 956a063c52b3 -<span class="pl-k">&gt;</span> 1226819ee0e3, Fix wrong constraint on table columns
INFO  [alembic.runtime.migration] Running upgrade 1226819ee0e3 -<span class="pl-k">&gt;</span> d8bc074f7aad, Add new field <span class="pl-s"><span class="pl-pds">'</span>is_restricted<span class="pl-pds">'</span></span> to SqlMetric and DruidMetric
INFO  [alembic.runtime.migration] Running upgrade d8bc074f7aad -<span class="pl-k">&gt;</span> 27ae655e4247, Make creator owners
INFO  [alembic.runtime.migration] Running upgrade 27ae655e4247 -<span class="pl-k">&gt;</span> 960c69cb1f5b, add dttm_format related fields <span class="pl-k">in</span> table_columns
INFO  [alembic.runtime.migration] Running upgrade 960c69cb1f5b -<span class="pl-k">&gt;</span> f162a1dea4c4, d3format_by_metric
INFO  [alembic.runtime.migration] Running upgrade f162a1dea4c4 -<span class="pl-k">&gt;</span> ad82a75afd82, Update models to support storing the queries.
INFO  [alembic.runtime.migration] Running upgrade ad82a75afd82 -<span class="pl-k">&gt;</span> 3c3ffe173e4f, add_sql_string_to_table
INFO  [alembic.runtime.migration] Running upgrade 3c3ffe173e4f -<span class="pl-k">&gt;</span> 41f6a59a61f2, database options <span class="pl-k">for</span> sql lab
INFO  [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -<span class="pl-k">&gt;</span> 4500485bde7d, allow_run_sync_async
INFO  [alembic.runtime.migration] Running upgrade 4500485bde7d -<span class="pl-k">&gt;</span> 65903709c321, allow_dml
INFO  [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -<span class="pl-k">&gt;</span> 33d996bcc382, update slice model
INFO  [alembic.runtime.migration] Running upgrade 33d996bcc382, 65903709c321 -<span class="pl-k">&gt;</span> b347b202819b, empty message
INFO  [alembic.runtime.migration] Running upgrade b347b202819b -<span class="pl-k">&gt;</span> 5e4a03ef0bf0, Add access_request table to manage requests to access datastores.
INFO  [alembic.runtime.migration] Running upgrade 5e4a03ef0bf0 -<span class="pl-k">&gt;</span> eca4694defa7, sqllab_setting_defaults
INFO  [alembic.runtime.migration] Running upgrade eca4694defa7 -<span class="pl-k">&gt;</span> ab3d66c4246e, add_cache_timeout_to_druid_cluster
INFO  [alembic.runtime.migration] Running upgrade eca4694defa7 -<span class="pl-k">&gt;</span> 3b626e2a6783, Sync DB with the models.py.
INFO  [alembic.runtime.migration] Running upgrade 3b626e2a6783, ab3d66c4246e -<span class="pl-k">&gt;</span> ef8843b41dac, empty message
INFO  [alembic.runtime.migration] Running upgrade ef8843b41dac -<span class="pl-k">&gt;</span> b46fa1b0b39e, Add json_metadata to the tables table.
INFO  [alembic.runtime.migration] Running upgrade b46fa1b0b39e -<span class="pl-k">&gt;</span> 7e3ddad2a00b, results_key to query
INFO  [alembic.runtime.migration] Running upgrade 7e3ddad2a00b -<span class="pl-k">&gt;</span> ad4d656d92bc, Add <span class="pl-en">avg</span>() to default metrics
INFO  [alembic.runtime.migration] Running upgrade ad4d656d92bc -<span class="pl-k">&gt;</span> c611f2b591b8, dim_spec
INFO  [alembic.runtime.migration] Running upgrade c611f2b591b8 -<span class="pl-k">&gt;</span> e46f2d27a08e, materialize perms
INFO  [alembic.runtime.migration] Running upgrade e46f2d27a08e -<span class="pl-k">&gt;</span> f1f2d4af5b90, Enable Filter Select
INFO  [alembic.runtime.migration] Running upgrade e46f2d27a08e -<span class="pl-k">&gt;</span> 525c854f0005, log_this_plus
INFO  [alembic.runtime.migration] Running upgrade 525c854f0005, f1f2d4af5b90 -<span class="pl-k">&gt;</span> 6414e83d82b7, empty message
INFO  [alembic.runtime.migration] Running upgrade 6414e83d82b7 -<span class="pl-k">&gt;</span> 1296d28ec131, Adds params to the datasource (druid) table
INFO  [alembic.runtime.migration] Running upgrade 1296d28ec131 -<span class="pl-k">&gt;</span> f18570e03440, Add index on the result key to the query table.
INFO  [alembic.runtime.migration] Running upgrade f18570e03440 -<span class="pl-k">&gt;</span> bcf3126872fc, Add keyvalue table
INFO  [alembic.runtime.migration] Running upgrade f18570e03440 -<span class="pl-k">&gt;</span> db0c65b146bd, update_slice_model_json
INFO  [alembic.runtime.migration] Running upgrade db0c65b146bd -<span class="pl-k">&gt;</span> a99f2f7c195a, rewriting url from shortner with new format
INFO  [alembic.runtime.migration] Running upgrade a99f2f7c195a, bcf3126872fc -<span class="pl-k">&gt;</span> d6db5a5cdb5d, empty message
INFO  [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -<span class="pl-k">&gt;</span> b318dfe5fb6c, adding verbose_name to druid column
INFO  [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -<span class="pl-k">&gt;</span> 732f1c06bcbf, add fetch values predicate
INFO  [alembic.runtime.migration] Running upgrade 732f1c06bcbf, b318dfe5fb6c -<span class="pl-k">&gt;</span> ea033256294a, empty message
INFO  [alembic.runtime.migration] Running upgrade b318dfe5fb6c -<span class="pl-k">&gt;</span> db527d8c4c78, Add verbose name to DruidCluster and Database
INFO  [alembic.runtime.migration] Running upgrade db527d8c4c78, ea033256294a -<span class="pl-k">&gt;</span> 979c03af3341, empty message
INFO  [alembic.runtime.migration] Running upgrade 979c03af3341 -<span class="pl-k">&gt;</span> a6c18f869a4e, query.start_running_time
INFO  [alembic.runtime.migration] Running upgrade a6c18f869a4e -<span class="pl-k">&gt;</span> 2fcdcb35e487, saved_queries
INFO  [alembic.runtime.migration] Running upgrade 2fcdcb35e487 -<span class="pl-k">&gt;</span> a65458420354, add_result_backend_time_logging
INFO  [alembic.runtime.migration] Running upgrade a65458420354 -<span class="pl-k">&gt;</span> ca69c70ec99b, tracking_url
INFO  [alembic.runtime.migration] Running upgrade ca69c70ec99b -<span class="pl-k">&gt;</span> a9c47e2c1547, add impersonate_user to dbs
INFO  [alembic.runtime.migration] Running upgrade ca69c70ec99b -<span class="pl-k">&gt;</span> ddd6ebdd853b, annotations
INFO  [alembic.runtime.migration] Running upgrade a9c47e2c1547, ddd6ebdd853b -<span class="pl-k">&gt;</span> d39b1e37131d, empty message
INFO  [alembic.runtime.migration] Running upgrade ca69c70ec99b -<span class="pl-k">&gt;</span> 19a814813610, Adding metric warning_text
INFO  [alembic.runtime.migration] Running upgrade 19a814813610, a9c47e2c1547 -<span class="pl-k">&gt;</span> 472d2f73dfd4, empty message
INFO  [alembic.runtime.migration] Running upgrade 472d2f73dfd4, d39b1e37131d -<span class="pl-k">&gt;</span> f959a6652acd, empty message
INFO  [alembic.runtime.migration] Running upgrade f959a6652acd -<span class="pl-k">&gt;</span> 4736ec66ce19, empty message
INFO  [alembic.runtime.migration] Running upgrade 4736ec66ce19 -<span class="pl-k">&gt;</span> 67a6ac9b727b, update_spatial_params
INFO  [alembic.runtime.migration] Running upgrade 67a6ac9b727b -<span class="pl-k">&gt;</span> 21e88bc06c02, migrate_old_annotation_layers
INFO  [alembic.runtime.migration] Running upgrade 21e88bc06c02 -<span class="pl-k">&gt;</span> e866bd2d4976, smaller_grid
INFO  [alembic.runtime.migration] Running upgrade e866bd2d4976 -<span class="pl-k">&gt;</span> e68c4473c581, allow_multi_schema_metadata_fetch
INFO  [alembic.runtime.migration] Running upgrade e68c4473c581 -<span class="pl-k">&gt;</span> f231d82b9b26, empty message
INFO  [alembic.runtime.migration] Running upgrade f231d82b9b26 -<span class="pl-k">&gt;</span> bf706ae5eb46, cal_heatmap_metric_to_metrics
INFO  [alembic.runtime.migration] Running upgrade f231d82b9b26 -<span class="pl-k">&gt;</span> 30bb17c0dc76, empty message
INFO  [alembic.runtime.migration] Running upgrade 30bb17c0dc76, bf706ae5eb46 -<span class="pl-k">&gt;</span> c9495751e314, empty message
INFO  [alembic.runtime.migration] Running upgrade f231d82b9b26 -<span class="pl-k">&gt;</span> 130915240929, is_sqllab_view
INFO  [alembic.runtime.migration] Running upgrade 130915240929, c9495751e314 -<span class="pl-k">&gt;</span> 5ccf602336a0, empty message
INFO  [alembic.runtime.migration] Running upgrade 5ccf602336a0 -<span class="pl-k">&gt;</span> e502db2af7be, add template_params to tables
INFO  [alembic.runtime.migration] Running upgrade e502db2af7be -<span class="pl-k">&gt;</span> c5756bec8b47, Time grain SQLA
INFO  [alembic.runtime.migration] Running upgrade c5756bec8b47 -<span class="pl-k">&gt;</span> afb7730f6a9c, remove empty filters
INFO  [alembic.runtime.migration] Running upgrade afb7730f6a9c -<span class="pl-k">&gt;</span> 80a67c5192fa, single pie chart metric
INFO  [alembic.runtime.migration] Running upgrade 80a67c5192fa -<span class="pl-k">&gt;</span> bddc498dd179, adhoc filters
INFO  [alembic.runtime.migration] Running upgrade bddc498dd179 -<span class="pl-k">&gt;</span> 4451805bbaa1, remove double percents
INFO  [alembic.runtime.migration] Running upgrade bddc498dd179 -<span class="pl-k">&gt;</span> 3dda56f1c4c6, Migrate num_period_compare and period_ratio_type
INFO  [alembic.runtime.migration] Running upgrade 3dda56f1c4c6 -<span class="pl-k">&gt;</span> 1d9e835a84f9, empty message
INFO  [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -<span class="pl-k">&gt;</span> e3970889f38e, empty message
INFO  [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -<span class="pl-k">&gt;</span> 705732c70154, empty message
INFO  [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -<span class="pl-k">&gt;</span> fc480c87706c, empty message
INFO  [alembic.runtime.migration] Running upgrade fc480c87706c -<span class="pl-k">&gt;</span> bebcf3fed1fe, Migrate dashboard position_json data from V1 to V2
INFO  [alembic.runtime.migration] Running upgrade bebcf3fed1fe, 705732c70154 -<span class="pl-k">&gt;</span> ec1f88a35cc6, empty message
INFO  [alembic.runtime.migration] Running upgrade 705732c70154, e3970889f38e -<span class="pl-k">&gt;</span> 46ba6aaaac97, empty message
INFO  [alembic.runtime.migration] Running upgrade 46ba6aaaac97, ec1f88a35cc6 -<span class="pl-k">&gt;</span> c18bd4186f15, empty message
INFO  [alembic.runtime.migration] Running upgrade c18bd4186f15 -<span class="pl-k">&gt;</span> 7fcdcde0761c, Reduce position_json size by remove extra space and component id prefix
INFO  [alembic.runtime.migration] Running upgrade 7fcdcde0761c -<span class="pl-k">&gt;</span> 0c5070e96b57, add user attributes table
INFO  [alembic.runtime.migration] Running upgrade 0c5070e96b57 -<span class="pl-k">&gt;</span> 1a1d627ebd8e, position_json
INFO  [alembic.runtime.migration] Running upgrade 1a1d627ebd8e -<span class="pl-k">&gt;</span> 55e910a74826, add_metadata_column_to_annotation_model.py
INFO  [alembic.runtime.migration] Running upgrade 55e910a74826 -<span class="pl-k">&gt;</span> 4ce8df208545, empty message
INFO  [alembic.runtime.migration] Running upgrade 4ce8df208545 -<span class="pl-k">&gt;</span> 46f444d8b9b7, remove_coordinator_from_druid_cluster_model.py
INFO  [alembic.runtime.migration] Running upgrade 46f444d8b9b7 -<span class="pl-k">&gt;</span> a61b40f9f57f, remove allow_run_sync
INFO  [alembic.runtime.migration] Running upgrade a61b40f9f57f -<span class="pl-k">&gt;</span> 6c7537a6004a, models <span class="pl-k">for</span> email reports
INFO  [alembic.runtime.migration] Running upgrade 6c7537a6004a -<span class="pl-k">&gt;</span> 3e1b21cd94a4, change_owner_to_m2m_relation_on_datasources.py
INFO  [alembic.runtime.migration] Running upgrade 6c7537a6004a -<span class="pl-k">&gt;</span> cefabc8f7d38, Increase size of name column <span class="pl-k">in</span> ab_view_menu
INFO  [alembic.runtime.migration] Running upgrade 55e910a74826 -<span class="pl-k">&gt;</span> 0b1f1ab473c0, Add extra column to Query
INFO  [alembic.runtime.migration] Running upgrade 0b1f1ab473c0, cefabc8f7d38, 3e1b21cd94a4 -<span class="pl-k">&gt;</span> de021a1ca60d, empty message
INFO  [alembic.runtime.migration] Running upgrade de021a1ca60d -<span class="pl-k">&gt;</span> fb13d49b72f9, better_filters
INFO  [alembic.runtime.migration] Running upgrade fb13d49b72f9 -<span class="pl-k">&gt;</span> a33a03f16c4a, Add extra column to SavedQuery
INFO  [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -<span class="pl-k">&gt;</span> c829ff0b37d0, empty message
INFO  [alembic.runtime.migration] Running upgrade c829ff0b37d0 -<span class="pl-k">&gt;</span> 7467e77870e4, remove_aggs
INFO  [alembic.runtime.migration] Running upgrade 7467e77870e4, de021a1ca60d -<span class="pl-k">&gt;</span> fbd55e0f83eb, empty message
INFO  [alembic.runtime.migration] Running upgrade fbd55e0f83eb, fb13d49b72f9 -<span class="pl-k">&gt;</span> 8b70aa3d0f87, empty message
INFO  [alembic.runtime.migration] Running upgrade 8b70aa3d0f87, a33a03f16c4a -<span class="pl-k">&gt;</span> 18dc26817ad2, empty message
INFO  [alembic.runtime.migration] Running upgrade 18dc26817ad2 -<span class="pl-k">&gt;</span> c617da68de7d, form nullable
INFO  [alembic.runtime.migration] Running upgrade c617da68de7d -<span class="pl-k">&gt;</span> c82ee8a39623, Add implicit tags
INFO  [alembic.runtime.migration] Running upgrade 18dc26817ad2 -<span class="pl-k">&gt;</span> e553e78e90c5, add_druid_auth_py.py
INFO  [alembic.runtime.migration] Running upgrade e553e78e90c5, c82ee8a39623 -<span class="pl-k">&gt;</span> 45e7da7cfeba, empty message
INFO  [alembic.runtime.migration] Running upgrade 45e7da7cfeba -<span class="pl-k">&gt;</span> 80aa3f04bc82, Add Parent ids <span class="pl-k">in</span> dashboard layout metadata
INFO  [alembic.runtime.migration] Running upgrade 80aa3f04bc82 -<span class="pl-k">&gt;</span> d94d33dbe938, form strip
INFO  [alembic.runtime.migration] Running upgrade d94d33dbe938 -<span class="pl-k">&gt;</span> 937d04c16b64, update datasources
INFO  [alembic.runtime.migration] Running upgrade 937d04c16b64 -<span class="pl-k">&gt;</span> 7f2635b51f5d, update base columns
INFO  [alembic.runtime.migration] Running upgrade 7f2635b51f5d -<span class="pl-k">&gt;</span> e9df189e5c7e, update base metrics
INFO  [alembic.runtime.migration] Running upgrade e9df189e5c7e -<span class="pl-k">&gt;</span> afc69274c25a, update the sql, select_sql, and executed_sql columns <span class="pl-k">in</span> the
 query table <span class="pl-k">in</span> mysql dbs to be long text columns
INFO  [alembic.runtime.migration] Running upgrade afc69274c25a -<span class="pl-k">&gt;</span> d7c1a0d6f2da, Remove limit used from query model
INFO  [alembic.runtime.migration] Running upgrade d7c1a0d6f2da -<span class="pl-k">&gt;</span> ab8c66efdd01, resample
INFO  [alembic.runtime.migration] Running upgrade ab8c66efdd01 -<span class="pl-k">&gt;</span> b4a38aa87893, deprecate database expression
INFO  [alembic.runtime.migration] Running upgrade b4a38aa87893 -<span class="pl-k">&gt;</span> d6ffdf31bdd4, Add published column to dashboards
INFO  [alembic.runtime.migration] Running upgrade d6ffdf31bdd4 -<span class="pl-k">&gt;</span> 190188938582, Remove duplicated entries <span class="pl-k">in</span> dashboard_slices table and add unique constraint
INFO  [alembic.runtime.migration] Running upgrade 190188938582 -<span class="pl-k">&gt;</span> def97f26fdfb, Add index to tagged_object
INFO  [alembic.runtime.migration] Running upgrade def97f26fdfb -<span class="pl-k">&gt;</span> 11c737c17cc6, deprecate_restricted_metrics
INFO  [alembic.runtime.migration] Running upgrade 11c737c17cc6 -<span class="pl-k">&gt;</span> 258b5280a45e, form strip leading and trailing whitespace
INFO  [alembic.runtime.migration] Running upgrade 258b5280a45e -<span class="pl-k">&gt;</span> 1495eb914ad3, <span class="pl-k">time</span> range
INFO  [alembic.runtime.migration] Running upgrade 1495eb914ad3 -<span class="pl-k">&gt;</span> b6fa807eac07, make_names_non_nullable
INFO  [alembic.runtime.migration] Running upgrade b6fa807eac07 -<span class="pl-k">&gt;</span> cca2f5d568c8, add encrypted_extra to dbs
INFO  [alembic.runtime.migration] Running upgrade cca2f5d568c8 -<span class="pl-k">&gt;</span> c2acd2cf3df2, alter <span class="pl-c1">type</span> of dbs encrypted_extra
INFO  [alembic.runtime.migration] Running upgrade c2acd2cf3df2 -<span class="pl-k">&gt;</span> 78ee127d0d1d, reconvert legacy filters into adhoc
INFO  [alembic.runtime.migration] Running upgrade 78ee127d0d1d -<span class="pl-k">&gt;</span> db4b49eb0782, Add tables <span class="pl-k">for</span> SQL Lab state
INFO  [alembic.runtime.migration] Running upgrade db4b49eb0782 -<span class="pl-k">&gt;</span> 5afa9079866a, serialize_schema_permissions.py
INFO  [alembic.runtime.migration] Running upgrade 5afa9079866a -<span class="pl-k">&gt;</span> 89115a40e8ea, Change table schema description to long text
INFO  [alembic.runtime.migration] Running upgrade 89115a40e8ea -<span class="pl-k">&gt;</span> 817e1c9b09d0, add_not_null_to_dbs_sqlalchemy_url
INFO  [alembic.runtime.migration] Running upgrade 817e1c9b09d0 -<span class="pl-k">&gt;</span> e96dbf2cfef0, datasource_cluster_fk
INFO  [alembic.runtime.migration] Running upgrade e96dbf2cfef0 -<span class="pl-k">&gt;</span> 3325d4caccc8, empty message
INFO  [alembic.runtime.migration] Running upgrade 3325d4caccc8 -<span class="pl-k">&gt;</span> 0a6f12f60c73, add_role_level_security
INFO  [alembic.runtime.migration] Running upgrade 0a6f12f60c73 -<span class="pl-k">&gt;</span> 72428d1ea401, Add tmp_schema_name to the query object.
INFO  [alembic.runtime.migration] Running upgrade 72428d1ea401 -<span class="pl-k">&gt;</span> b5998378c225, add certificate to dbs
INFO  [alembic.runtime.migration] Running upgrade b5998378c225 -<span class="pl-k">&gt;</span> f9a30386bd74, cleanup_time_grainularity
INFO  [alembic.runtime.migration] Running upgrade f9a30386bd74 -<span class="pl-k">&gt;</span> 620241d1153f, update time_grain_sqla
INFO  [alembic.runtime.migration] Running upgrade 620241d1153f -<span class="pl-k">&gt;</span> 743a117f0d98, Add slack to the schedule
INFO  [alembic.runtime.migration] Running upgrade 743a117f0d98 -<span class="pl-k">&gt;</span> e557699a813e, add_tables_relation_to_row_level_security
INFO  [alembic.runtime.migration] Running upgrade e557699a813e -<span class="pl-k">&gt;</span> ea396d202291, Add ctas_method to the Query object
INFO  [alembic.runtime.migration] Running upgrade ea396d202291 -<span class="pl-k">&gt;</span> a72cb0ebeb22, deprecate dbs.perm column
INFO  [alembic.runtime.migration] Running upgrade a72cb0ebeb22 -<span class="pl-k">&gt;</span> 2f1d15e8a6af, add_alerts
INFO  [alembic.runtime.migration] Running upgrade 2f1d15e8a6af -<span class="pl-k">&gt;</span> f2672aa8350a, add_slack_to_alerts
INFO  [alembic.runtime.migration] Running upgrade f2672aa8350a -<span class="pl-k">&gt;</span> f120347acb39, Add extra column to tables and metrics
INFO  [alembic.runtime.migration] Running upgrade f2672aa8350a -<span class="pl-k">&gt;</span> 978245563a02, Migrate iframe <span class="pl-k">in</span> dashboard to markdown component
INFO  [alembic.runtime.migration] Running upgrade 978245563a02, f120347acb39 -<span class="pl-k">&gt;</span> f80a3b88324b, empty message
INFO  [alembic.runtime.migration] Running upgrade f80a3b88324b -<span class="pl-k">&gt;</span> 2e5a0ee25ed4, refractor_alerting
INFO  [alembic.runtime.migration] Running upgrade f80a3b88324b -<span class="pl-k">&gt;</span> 175ea3592453, Add cache to datasource lookup table.
INFO  [alembic.runtime.migration] Running upgrade 175ea3592453, 2e5a0ee25ed4 -<span class="pl-k">&gt;</span> ae19b4ee3692, empty message
INFO  [alembic.runtime.migration] Running upgrade ae19b4ee3692 -<span class="pl-k">&gt;</span> e5ef6828ac4e, add rls filter <span class="pl-c1">type</span> and grouping key
INFO  [alembic.runtime.migration] Running upgrade e5ef6828ac4e -<span class="pl-k">&gt;</span> 3fbbc6e8d654, fix data access permissions <span class="pl-k">for</span> virtual datasets
INFO  [alembic.runtime.migration] Running upgrade 3fbbc6e8d654 -<span class="pl-k">&gt;</span> 18532d70ab98, Delete table_name unique constraint <span class="pl-k">in</span> mysql
INFO  [alembic.runtime.migration] Running upgrade 18532d70ab98 -<span class="pl-k">&gt;</span> b56500de1855, add_uuid_column_to_import_mixin
INFO  [alembic.runtime.migration] Running upgrade b56500de1855 -<span class="pl-k">&gt;</span> af30ca79208f, Collapse alerting models into a single one
INFO  [alembic.runtime.migration] Running upgrade af30ca79208f -<span class="pl-k">&gt;</span> 585b0b1a7b18, add <span class="pl-c1">exec</span> info to saved queries
INFO  [alembic.runtime.migration] Running upgrade 585b0b1a7b18 -<span class="pl-k">&gt;</span> 96e99fb176a0, add_import_mixing_to_saved_query
INFO  [alembic.runtime.migration] Running upgrade 96e99fb176a0 -<span class="pl-k">&gt;</span> 49b5a32daba5, add report schedules
INFO  [alembic.runtime.migration] Running upgrade 49b5a32daba5 -<span class="pl-k">&gt;</span> a8173232b786, Add path to logs
INFO  [alembic.runtime.migration] Running upgrade a8173232b786 -<span class="pl-k">&gt;</span> e38177dbf641, security converge saved queries
Loaded your LOCAL configuration at [/app/pythonpath/superset_config.py]

Cleaning up slice uuid from dashboard position json..
Cleaning up slice uuid from dashboard position json.. Done.      

Traceback (most recent call last):
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1276, <span class="pl-k">in</span> _execute_context
  self.dialect.do_execute(
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py<span class="pl-pds">"</span></span>, line 608, <span class="pl-k">in</span> do_execute
  cursor.execute(statement, parameters)
psycopg2.errors.UndefinedTable: relation <span class="pl-s"><span class="pl-pds">"</span>ab_permission_view_role<span class="pl-pds">"</span></span> does not exist
LINE 2: FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_...
                                    ^


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/bin/superset<span class="pl-pds">"</span></span>, line 33, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span>
  sys.exit(load_entry_point(<span class="pl-s"><span class="pl-pds">'</span>apache-superset<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>console_scripts<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>superset<span class="pl-pds">'</span></span>)())
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/click/core.py<span class="pl-pds">"</span></span>, line 1128, <span class="pl-k">in</span> __call__
  <span class="pl-k">return</span> self.main(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/flask/cli.py<span class="pl-pds">"</span></span>, line 601, <span class="pl-k">in</span> main
  <span class="pl-k">return</span> <span class="pl-en">super</span>().main(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/click/core.py<span class="pl-pds">"</span></span>, line 1053, <span class="pl-k">in</span> main
  rv = self.invoke(ctx)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/click/core.py<span class="pl-pds">"</span></span>, line 1659, <span class="pl-k">in</span> invoke
  <span class="pl-k">return</span> _process_result(sub_ctx.command.invoke(sub_ctx))
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/click/core.py<span class="pl-pds">"</span></span>, line 1659, <span class="pl-k">in</span> invoke
  <span class="pl-k">return</span> _process_result(sub_ctx.command.invoke(sub_ctx))
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/click/core.py<span class="pl-pds">"</span></span>, line 1395, <span class="pl-k">in</span> invoke
  <span class="pl-k">return</span> ctx.invoke(self.callback, <span class="pl-k">**</span>ctx.params)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/click/core.py<span class="pl-pds">"</span></span>, line 754, <span class="pl-k">in</span> invoke
  <span class="pl-k">return</span> __callback(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/click/decorators.py<span class="pl-pds">"</span></span>, line 26, <span class="pl-k">in</span> new_func
  <span class="pl-k">return</span> <span class="pl-en">f(get_current_context</span>(), <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/flask/cli.py<span class="pl-pds">"</span></span>, line 445, <span class="pl-k">in</span> decorator
  <span class="pl-k">return</span> __ctx.invoke(f, <span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/click/core.py<span class="pl-pds">"</span></span>, line 754, <span class="pl-k">in</span> invoke
  <span class="pl-k">return</span> __callback(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/flask_migrate/cli.py<span class="pl-pds">"</span></span>, line 149, <span class="pl-k">in</span> upgrade
  _upgrade(directory, revision, sql, tag, x_arg)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/flask_migrate/__init__.py<span class="pl-pds">"</span></span>, line 98, <span class="pl-k">in</span> wrapped
  f(<span class="pl-k">*</span>args, <span class="pl-k">**</span>kwargs)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/flask_migrate/__init__.py<span class="pl-pds">"</span></span>, line 185, <span class="pl-k">in</span> upgrade
  command.upgrade(config, revision, sql=sql, tag=tag)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/alembic/command.py<span class="pl-pds">"</span></span>, line 294, <span class="pl-k">in</span> upgrade
  <span class="pl-en">script.run_env</span>()
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/alembic/script/base.py<span class="pl-pds">"</span></span>, line 490, <span class="pl-k">in</span> run_env
  util.load_python_file(self.dir, <span class="pl-s"><span class="pl-pds">"</span>env.py<span class="pl-pds">"</span></span>)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/alembic/util/pyfiles.py<span class="pl-pds">"</span></span>, line 97, <span class="pl-k">in</span> load_python_file
  module = load_module_py(module_id, path)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/alembic/util/compat.py<span class="pl-pds">"</span></span>, line 184, <span class="pl-k">in</span> load_module_py
  spec.loader.exec_module(module)
File <span class="pl-s"><span class="pl-pds">"</span>&lt;frozen importlib._bootstrap_external&gt;<span class="pl-pds">"</span></span>, line 843, <span class="pl-k">in</span> exec_module
File <span class="pl-s"><span class="pl-pds">"</span>&lt;frozen importlib._bootstrap&gt;<span class="pl-pds">"</span></span>, line 219, <span class="pl-k">in</span> _call_with_frames_removed
File <span class="pl-s"><span class="pl-pds">"</span>/app/superset/extensions/../migrations/env.py<span class="pl-pds">"</span></span>, line 126, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span>
  <span class="pl-en">run_migrations_online</span>()
File <span class="pl-s"><span class="pl-pds">"</span>/app/superset/extensions/../migrations/env.py<span class="pl-pds">"</span></span>, line 118, <span class="pl-k">in</span> run_migrations_online
  <span class="pl-en">context.run_migrations</span>()
File <span class="pl-s"><span class="pl-pds">"</span>&lt;string&gt;<span class="pl-pds">"</span></span>, line 8, <span class="pl-k">in</span> run_migrations
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/alembic/runtime/environment.py<span class="pl-pds">"</span></span>, line 813, <span class="pl-k">in</span> run_migrations
  <span class="pl-en">self.get_context</span>().run_migrations(<span class="pl-k">**</span>kw)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/alembic/runtime/migration.py<span class="pl-pds">"</span></span>, line 561, <span class="pl-k">in</span> run_migrations
  step.migration_fn(<span class="pl-k">**</span>kw)
File <span class="pl-s"><span class="pl-pds">"</span>/app/superset/migrations/versions/e38177dbf641_security_converge_saved_queries.py<span class="pl-pds">"</span></span>, line 100, <span class="pl-k">in</span> upgrade
  migrate_roles(session, PVM_MAP)
File <span class="pl-s"><span class="pl-pds">"</span>/app/superset/migrations/shared/security_converge.py<span class="pl-pds">"</span></span>, line 237, <span class="pl-k">in</span> migrate_roles
  roles = <span class="pl-en">session.query(Role).options(Load(Role).joinedload(Role.permissions)).all</span>()
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py<span class="pl-pds">"</span></span>, line 3373, <span class="pl-k">in</span> all
  <span class="pl-k">return</span> list(self)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py<span class="pl-pds">"</span></span>, line 3535, <span class="pl-k">in</span> __iter__
  <span class="pl-k">return</span> self._execute_and_instances(context)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/orm/query.py<span class="pl-pds">"</span></span>, line 3560, <span class="pl-k">in</span> _execute_and_instances
  result = conn.execute(querycontext.statement, self._params)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1011, <span class="pl-k">in</span> execute
  <span class="pl-k">return</span> meth(self, multiparams, params)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/sql/elements.py<span class="pl-pds">"</span></span>, line 298, <span class="pl-k">in</span> _execute_on_connection
  <span class="pl-k">return</span> connection._execute_clauseelement(self, multiparams, params)
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1124, <span class="pl-k">in</span> _execute_clauseelement
  ret = self._execute_context(
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1316, <span class="pl-k">in</span> _execute_context
  self._handle_dbapi_exception(
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1510, <span class="pl-k">in</span> _handle_dbapi_exception
  util.raise_(
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/util/compat.py<span class="pl-pds">"</span></span>, line 182, <span class="pl-k">in</span> raise_
  raise exception
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/base.py<span class="pl-pds">"</span></span>, line 1276, <span class="pl-k">in</span> _execute_context
  self.dialect.do_execute(
File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.8/site-packages/sqlalchemy/engine/default.py<span class="pl-pds">"</span></span>, line 608, <span class="pl-k">in</span> do_execute
  cursor.execute(statement, parameters)
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation <span class="pl-s"><span class="pl-pds">"</span>ab_permission_view_role<span class="pl-pds">"</span></span> does not exist
LINE 2: FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_...
                                    ^

[SQL: SELECT ab_role.id AS ab_role_id, ab_role.name AS ab_role_name, ab_permission_view_1.id AS ab_permission_view_1_id, ab_permission_view_1.permission_id AS ab_permission_view_1_permission_id, ab_permission_view_1.view_menu_id AS ab_permission_view_1_view_menu_id 
FROM ab_role LEFT OUTER JOIN (ab_permission_view_role AS ab_permission_view_role_1 JOIN ab_permission_view AS ab_permission_view_1 ON ab_permission_view_1.id = ab_permission_view_role_1.permission_view_id) ON ab_role.id <span class="pl-k">=</span> ab_permission_view_role_1.role_id]
(Background on this error at: http://sqlalche.me/e/13/f405)</pre></div>
</details>
<h3 dir="auto">Environment</h3>
<p dir="auto">(please complete the following information):</p>
<ul dir="auto">
<li>browser type and version:</li>
<li>superset version: <code class="notranslate">superset version</code></li>
<li>python version: <code class="notranslate">python --version</code></li>
<li>node.js version: <code class="notranslate">node -v</code></li>
<li>any feature flags active:</li>
</ul>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto">Found a related error when deploying by Helm without clear fix solution inside:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="925045810" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/15262" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/15262/hovercard" href="https://github.com/apache/superset/issues/15262">#15262</a></li>
</ul>
<p dir="auto">Also, found people who are using docker-compose met similar issues:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="970276106" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/16247" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/16247/hovercard" href="https://github.com/apache/superset/issues/16247">#16247</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1084343421" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/17822" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/17822/hovercard" href="https://github.com/apache/superset/issues/17822">#17822</a></li>
</ul>