You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "resulraveendran (via GitHub)" <gi...@apache.org> on 2024/04/16 13:55:38 UTC

[I] Error got when i try to config zitadel to superset [superset]

resulraveendran opened a new issue, #28058:
URL: https://github.com/apache/superset/issues/28058

   ```
   2024-04-16 13:52:26,191:ERROR:flask_appbuilder.security.views:Error on OAuth authorize: Missing "authorize_url" value
   172.31.0.1 - - [16/Apr/2024:13:52:26 +0000] "GET /login/okta?next= HTTP/1.1" 302 189 "https://ss-next.drh.netspective.com/login/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
   172.31.0.1 - - [16/Apr/2024:13:52:26 +0000] "GET / HTTP/1.1" 302 223 "https://ss-next.drh.netspective.com/login/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
   2024-04-16 13:52:26,574:WARNING:root:Class 'werkzeug.local.LocalProxy' is not mapped
   2024-04-16 13:52:26,574:DEBUG:superset.stats_logger:[stats_logger] (incr) welcome
   2024-04-16 13:52:26,576:ERROR:root:DBEventLogger failed to log event(s)
   2024-04-16 13:52:26,576:ERROR:root:(sqlite3.OperationalError) no such table: logs
   [SQL: INSERT INTO logs (action, slice_id, json, dttm, duration_ms, referrer) VALUES (?, ?, ?, ?, ?, ?)]
   [parameters: ('welcome', 0, '{"path": "/superset/welcome/", "object_ref": "Superset.welcome"}', '2024-04-16 13:52:26.576079', 0, 'https://ss-next.drh.netspective.com/login/')]
   (Background on this error at: https://sqlalche.me/e/14/e3q8)
   Traceback (most recent call last):
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1819, in _execute_context
       self.dialect.do_execute(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 732, in do_execute
       cursor.execute(statement, parameters)
   sqlite3.OperationalError: no such table: logs
   
   The above exception was the direct cause of the following exception:
   
   Traceback (most recent call last):
     File "/app/superset/utils/log.py", line 357, in log
       sesh.bulk_save_objects(logs)
     File "<string>", line 2, in bulk_save_objects
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 3627, in bulk_save_objects
       self._bulk_save_mappings(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 3843, in _bulk_save_mappings
       transaction.rollback(_capture_exception=True)
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
       compat.raise_(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
       raise exception
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 3831, in _bulk_save_mappings
       persistence._bulk_insert(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/persistence.py", line 107, in _bulk_insert
       _emit_insert_statements(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/persistence.py", line 1097, in _emit_insert_statements
       c = connection._execute_20(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1631, in _execute_20
       return meth(self, args_10style, kwargs_10style, execution_options)
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 325, in _execute_on_connection
       return connection._execute_clauseelement(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1498, in _execute_clauseelement
       ret = self._execute_context(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1862, in _execute_context
       self._handle_dbapi_exception(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2043, in _handle_dbapi_exception
       util.raise_(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
       raise exception
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1819, in _execute_context
       self.dialect.do_execute(
     File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 732, in do_execute
       cursor.execute(statement, parameters)
   ```
   
   I create superset_config.py file
   
   ```
   from flask_appbuilder.security.manager import AUTH_OAUTH
   AUTH_TYPE = AUTH_OAUTH
   OAUTH_PROVIDERS = [{
     'name':'okta',
     'icon':'fa-circle-o',
     'token_key':'5ktBr+svR98z14yQKwaNAegjxLERZkWTXle8tfid05WUZV9u2Fqq+DHw',
     'remote_app': {
         'client_id':'262848994621878275@drh-admin',
         'client_secret':'USC5otaTy4GrM6soC7XrdmWpWhvQwtlvfyxizBTJKOtWcGhRozcdxym6jDMjhKbH',
         'api_base_url':'https://idi.drh.netspective.com/oauth2/default/',
         'client_kwargs':{
           'scope': 'email profile'
         },
         'authorize_url':'https://idi.drh.netspective.com/oauth/v2/authorize'
   
   
     }
   }]
   
   AUTH_USER_REGISTRATION = True
   AUTH_USER_REGISTRATION_ROLE = "Public"
   
   ```


-- 
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-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Error got when i try to config zitadel to superset [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #28058:
URL: https://github.com/apache/superset/issues/28058#issuecomment-2532272555

   Closing this since it's gone stale, and probably should have been a Q&A discussion rather than a bug report in the first place :) If you're still facing this, let me know, and maybe AI can help or we ca reopen and move it.


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Error got when i try to config zitadel to superset [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #28058: Error got when i try to config zitadel to superset
URL: https://github.com/apache/superset/issues/28058


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org