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

   This is my first time trying to deploy Superset, and I want to deploy it 
into a Kubernetes cluster. I'm following the guide on 
https://superset.apache.org/docs/installation/running-on-kubernetes and I 
believe I have done all the relevant config steps (I skipped the SMTP settings, 
System packages settings, Data sources, and Alerts and Reporting).
   
   #### How to reproduce the bug
   
   1. Deploy the latest Helm chart (superset 0.8.10`) to Kubernetes with the 
following config (notice the placeholders):
   
   <details><summary><code>values.yaml</code></summary>
   
   <pre>
   postgresql:
     postgresqlPassword: ${jsonencode(postgresql_password)}
   configOverrides:
     secret: |
       SECRET_KEY = '${secret_key}'
     enable_oauth: |
       # This will make sure the redirect_uri is properly computed, even with 
SSL offloading
       ENABLE_PROXY_FIX = True
   
       from flask_appbuilder.security.manager import AUTH_OAUTH
       AUTH_TYPE = AUTH_OAUTH
       OAUTH_PROVIDERS = [
           {
               "name": "google",
               "icon": "fa-google",
               "token_key": "access_token",
               "remote_app": {
                   "client_id": os.getenv("GOOGLE_KEY"),
                   "client_secret": os.getenv("GOOGLE_SECRET"),
                   "api_base_url": "https://www.googleapis.com/oauth2/v2/";,
                   "client_kwargs": {"scope": "email profile"},
                   "request_token_url": None,
                   "access_token_url": 
"https://accounts.google.com/o/oauth2/token";,
                   "authorize_url": "https://accounts.google.com/o/oauth2/auth";,
                   "authorize_params": {"hd": os.getenv("AUTH_DOMAIN", "")}
               },
           }
       ]
   
       # Map Authlib roles to superset roles
       AUTH_ROLE_ADMIN = 'Admin'
       AUTH_ROLE_PUBLIC = 'Public'
   
       # Will allow user self registration, allowing to create Flask users from 
Authorized User
       AUTH_USER_REGISTRATION = True
   
       # The default user self registration role
       AUTH_USER_REGISTRATION_ROLE = "Admin"
   bootstrapScript: |
     #!/bin/bash
     pip install psycopg2==2.9.1 \
       authlib==1.2.0 \
       redis==3.2.1 \
       psycopg2-binary==2.9.6 \
       sqlalchemy-bigquery==1.5.0 \
       elasticsearch-dbapi==0.2.5 &&\
     if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ 
.Values.runAsUser }}" > ~/bootstrap; fi
   extraEnv:
     AUTH_DOMAIN: ${jsonencode(domain_name)}
   extraSecretEnv:
     GOOGLE_KEY: ${jsonencode(google_oauth_client_id)}
     GOOGLE_SECRET: ${jsonencode(google_oauth_client_secret)}
   </pre>
   
   
   </details>
   
   ### Expected results
   
   All Pods come up healthy.
   
   ### Actual results
   
   The `superset-worker` Pod fails with the following stacktrace:
   
   ```
   superset [2023-04-04 17:43:16,310: CRITICAL/MainProcess] Unrecoverable 
error: TypeError("__init__() got an unexpected keyword argument 'usern
   superset Traceback (most recent call last):
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/transport/virtual/base.py", line 
925, in create_channel
   superset     return self._avail_channels.pop()
   superset IndexError: pop from empty list
   superset
   superset During handling of the above exception, another exception occurred:
   superset
   superset Traceback (most recent call last):
   superset   File 
"/usr/local/lib/python3.8/site-packages/redis/connection.py", line 988, in 
get_connection
   superset     connection = self._available_connections.pop()
   superset IndexError: pop from empty list
   superset
   superset During handling of the above exception, another exception occurred:
   superset
   superset Traceback (most recent call last):
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/worker/worker.py", line 203, in 
start
   superset     self.blueprint.start(self)
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/bootsteps.py", line 116, in start
   superset     step.start(parent)
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/bootsteps.py", line 365, in start
   superset     return self.obj.start()
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", 
line 326, in start
   superset     blueprint.start(self)
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/bootsteps.py", line 116, in start
   superset     step.start(parent)
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/worker/consumer/connection.py", 
line 21, in start
   superset     c.connection = c.connect()
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", 
line 422, in connect
   superset     conn = self.connection_for_read(heartbeat=self.amqheartbeat)
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", 
line 428, in connection_for_read
   superset     return self.ensure_connected(
   superset   File 
"/usr/local/lib/python3.8/site-packages/celery/worker/consumer/consumer.py", 
line 454, in ensure_connected
   superset     conn = conn.ensure_connection(
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/connection.py", line 381, in 
ensure_connection
   superset     self._ensure_connection(*args, **kwargs)
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/connection.py", line 433, in 
_ensure_connection
   superset     return retry_over_time(
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/utils/functional.py", line 312, 
in retry_over_time
   superset     return fun(*args, **kwargs)
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/connection.py", line 877, in 
_connection_factory
   superset     self._connection = self._establish_connection()
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/connection.py", line 812, in 
_establish_connection
   superset     conn = self.transport.establish_connection()
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/transport/virtual/base.py", line 
949, in establish_connection
   superset     self._avail_channels.append(self.create_channel(self))
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/transport/virtual/base.py", line 
927, in create_channel
   superset     channel = self.Channel(connection)
   superset   File 
"/usr/local/lib/python3.8/site-packages/kombu/transport/redis.py", line 737, in 
__init__
   superset     self.client.ping()
   superset   File "/usr/local/lib/python3.8/site-packages/redis/client.py", 
line 1037, in ping
   superset     return self.execute_command('PING')
   superset   File "/usr/local/lib/python3.8/site-packages/redis/client.py", 
line 772, in execute_command
   superset     connection = pool.get_connection(command_name, **options)
   superset   File 
"/usr/local/lib/python3.8/site-packages/redis/connection.py", line 990, in 
get_connection
   superset     connection = self.make_connection()
   superset   File 
"/usr/local/lib/python3.8/site-packages/redis/connection.py", line 1025, in 
make_connection
   superset     return self.connection_class(**self.connection_kwargs)
   superset TypeError: __init__() got an unexpected keyword argument 'username'
   ```
   
   
   ### Environment
   
   (please complete the following information):
   
   - ~browser type and version:~
   - superset version: `superset 2.0.1` (from Helm chart `0.8.10`)
   - python version: 3.8.12
   - ~node.js version:~
   - ~any feature flags active:~
   
   ### 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.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   


-- 
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

Reply via email to