Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process component sentinel error: [INIT_COMPONENT_FAILURE]: initialization error occurred for sentinel (middleware.http.sentinel/v1) #3408

Open
bunengxiu opened this issue May 2, 2024 · 4 comments
Labels
kind/bug Something isn't working

Comments

@bunengxiu
Copy link

bunengxiu commented May 2, 2024

An error occurred following the documentation tutorial, deploy context is nodeapp.txt

error log:
process component sentinel error: [INIT_COMPONENT_FAILURE]: initialization error occurred for sentinel (middleware.http.sentinel/v1): [CREATE_COMPONENT_FAILURE]: initialization error occurred for sentinel (middleware.http.sentinel/v1): process component sentinel error: error creating HTTP middleware middleware.http.sentinel/v1: error to init sentinel with config '{"Version":"v1","Sentinel":{"App":{"Name .......

Dapr
Runtime -- version 1.13.2
kubectl
Client Version: v1.28.3
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.2

@bunengxiu bunengxiu added the kind/bug Something isn't working label May 2, 2024
@berndverst
Copy link
Member

Are you saying the component yaml file you used is exactly the one from the docs?

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: sentinel
spec:
  type: middleware.http.sentinel
  version: v1
  metadata:
  - name: appName
    value: "nodeapp"
  - name: logDir
    value: "/var/tmp"
  - name: flowRules
    value: >-
      [
        {
          "resource": "POST:/v1.0/invoke/nodeapp/method/neworder",
          "threshold": 10,
          "tokenCalculateStrategy": 0,
          "controlBehavior": 0
        }
      ]  

@berndverst
Copy link
Member

Please note the component is alpha, so we do not provide patch releases for Dapr to address this.

Hopefully someone has a chance to investigate this for the 1.14 release.

https://docs.dapr.io/reference/components-reference/supported-middleware/

@berndverst berndverst transferred this issue from dapr/dapr May 3, 2024
@bunengxiu
Copy link
Author

Sendtinel is alpha, I see
Following the tutorial docs, sentinel not work, some errors occurred
you means that the error will be fixed in the future, maybe for the 1.14 or more later

@berndverst
Copy link
Member

@bunengxiu right now nobody is working on or investigating this component. It might not be fixed until 1.14 or later (probably later).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants