dosubot[bot] commented on issue #29120:
URL: https://github.com/apache/superset/issues/29120#issuecomment-2156239829
<!-- Greeting -->
Hey @chayandashora29! I'm here to help you with the issue you've
encountered. I'm a bot that can assist with bug resolutions, answer questions,
and support you while waiting for a human maintainer. Let's work together to
solve this!
<!-- Answer -->
To resolve the error where the Celery Flower container crashes with "No such
command 'flower'" when enabling `supersetCeleryFlower` in the `values.yaml`
file, you need to ensure that the Superset image being used has `flower<1.0.0`
installed. The default images do not have this installed.
Here is how you can fix it:
1. **Create a Custom Docker Image**:
Create a Dockerfile to build a custom Superset image with the required
version of Flower installed.
```dockerfile
FROM apachesuperset.docker.scarf.sh/apache/superset:latest
RUN pip install flower<1.0.0
```
2. **Build and Push the Custom Image**:
Build the Docker image and push it to your Docker registry.
```sh
docker build -t your-custom-repo/superset:your-custom-tag .
docker push your-custom-repo/superset:your-custom-tag
```
3. **Update `values.yaml`**:
Modify the `values.yaml` file to use your custom image.
```yaml
image:
repository: your-custom-repo/superset
tag: your-custom-tag
pullPolicy: IfNotPresent
```
4. **Ensure Correct Command Configuration**:
Make sure the `supersetCeleryFlower` section in your `values.yaml` file
is correctly configured to use the custom image and command.
```yaml
supersetCeleryFlower:
enabled: true
replicaCount: 1
command:
- "/bin/sh"
- "-c"
- "celery --app=superset.tasks.celery_app:app flower"
```
By following these steps, the Celery Flower container should start correctly
without the "No such command 'flower'" error
<sup>[[1]](https://github.com/apache/superset/blob/master/helm/superset/values.yaml)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/helm/superset/templates/deployment-flower.yaml)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]