Not Able to login Superset key decryption error #43227
Replies: 15 comments 20 replies
|
Hey @PARKER-X, don't worry — this is a very common situation and it's fixable! I can see you've been dealing with this across a couple of discussions. Let me give you a clear plan. What's happening: The Step-by-step fix: 1. Figure out which key is actually being loaded Open a terminal in your Superset folder and check: echo %SUPERSET_SECRET_KEY%If that prints anything, it's overriding your Superset logs which config file it loads on startup — look for 2. Pick ONE key and stick with it Your metadata database was encrypted with one specific key. You need to use that same key every time. Never swap keys between restarts without re-encrypting. 3. Re-create your database connections Once you have the correct key loaded and Superset starts without errors, go to Settings → Database Connections and delete and re-add any broken connections. The stored passwords were encrypted with the wrong key and can't be recovered without the original — but you can just re-enter them [1]. 4. If you need to switch to a new key Superset has a CLI command for key rotation: superset re-encrypt-secretsThis re-encrypts stored credentials with the new key. Run it while the old key is still active, then swap to the new key [1]. 5. Clear your browser session After fixing the key, clear cookies/local storage for The most important thing: identify the original key your metadata DB was encrypted with and restore it. If that was your own key before you cloned your friend's project, go back to that value in your Let me know what you see in step 1 and we can narrow it down further! To reply, just mention @dosu. Docs are dead. Just use Dosu. |
|
this command echo %SUPERSET_SECRET_KEY% returns %SUPERSET_SECRET_KEY% |
|
how can i find the database uri path?superset_db? @dosu |
@dosu (venv) PS C:\Users\Administrator\Desktop\SamarthX_New\superset> superset db upgradeA Default SECRET_KEY was detected, please use superset_config.py to override it.
|
|
@dosu i am able to login but not able to delete database file "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy_utils\types\encrypted\encrypted_type.py", line 407, in process_result_value During handling of the above exception, another exception occurred: Traceback (most recent call last): |
|
I am using my old one key no my friend key use my old chats and remember my problem |
|
I am using my old one key no my friend key use my old chats and remember my problem |
But there is no datbase shown?
with closing(engine.raw_connection()) as conn:
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\engine\base.py", line 3404, in raw_connection
return self._wrap_pool_connect(self.pool.connect, _connection)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\engine\base.py", line 3374, in _wrap_pool_connect
Connection._handle_dbapi_exception_noconnection(
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\engine\base.py", line 2208, in _handle_dbapi_exception_noconnection
util.raise_(
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\util\compat.py", line 211, in raise_
raise exception
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\engine\base.py", line 3371, in _wrap_pool_connect
return fn()
^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\pool\base.py", line 327, in connect
return _ConnectionFairy._checkout(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\pool\base.py", line 894, in _checkout
fairy = _ConnectionRecord.checkout(pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\pool\base.py", line 493, in checkout
rec = pool._do_get()
^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\pool\impl.py", line 256, in _do_get
return self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\pool\base.py", line 273, in _create_connection
return _ConnectionRecord(self)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\pool\base.py", line 388, in __init__
self.__connect()
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\pool\base.py", line 690, in __connect
with util.safe_reraise():
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\util\langhelpers.py", line 70, in __exit__
compat.raise_(
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\util\compat.py", line 211, in raise_
raise exception
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\pool\base.py", line 686, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\engine\create.py", line 574, in connect
return dialect.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\sqlalchemy\engine\default.py", line 598, in connect
return self.dbapi.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SamarthX_New\superset\venv\Lib\site-packages\psycopg2\__init__.py", line 135, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "172.16.0.119", port 5432 failed: fe_sendauth: no password supplied
(Background on this error at: https://sqlalche.me/e/14/e3q8) The above exception was the direct cause of the following exception: Traceback (most recent call last): |
|
line 130, in run |
|
, line 72, in run The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): |
|
can i create new secret key and new metabase from scratch @dosu and connect with my data |
|
how can i add database in my folder? |
|
what is the best way to do colobrated work in apache superset file structure for this so 4 ppl can work together @dosu |
|
how can we do this One person hosts locally and shares the URL — Run Superset on one machine (e.g. http://192.168.x.x:8088) and the other 3 access it over the same network. Create accounts for each person with superset fab create-user.? how can someone host and other use full roadmap |






Uh oh!
There was an error while loading. Please reload this page.
I am using superset for my project later i git clone my friend project and use there superset key but i think after superset db upgrade and init from his key i am not able to login on superset using my and his key now i am not able to access key decryption error how can i resolve it i am using my old key now but not able to login and access sqllab or connecting database i just got decryption error plz help me to solve!!
@rusackas @dosu Help me to setup superset for both my friend project and mine i recently joined my 1st full time role and ur company using it working with superset from last 1 month now this error happens i am bit depressed if i am not able to resolve this help me this is my first job!!
Thank you!!
All reactions