Closed mjtansin closed 2 years ago
@halspang - can you help investigate this?
@mjtansin - What statestore are you using in your application? Also, does the app continue to run afterwards? Or are all actor functions broken?
The error appears to be based on your statestore's authentication model. The reason you may be seeing it is hard to say at first, but when an actor runtime starts up, it tries to fetch all reminders for the actors. This is because reminders are persistent and must always be accounted for.
Hi! I thank you are right. I use mongo replica set as statestore. When actors store state value, it will throw exception for authentication problem. Usually, to login to a mongo db we need to set authentication db, like
mongo --authenticationDatabase
but it seems mongdb component dosen't offered the opportunity to set that db. When I change statestore to redis, all errors will disppear, so it's not dapr's bug.
Best regards,
发件人: halspang @.> 发送时间: 2021年9月28日 18:48 收件人: dapr/dotnet-sdk @.> 抄送: mjtansin @.>; Mention @.> 主题: Re: [dapr/dotnet-sdk] Using actor report reminders error (#737)
@mjtansinhttps://github.com/mjtansin - What statestore are you using in your application? Also, does the app continue to run afterwards? Or are all actor functions broken?
The error appears to be based on your statestore's authentication model. The reason you may be seeing it is hard to say at first, but when an actor runtime starts up, it tries to fetch all reminders for the actors. This is because reminders are persistent and must always be accounted for.
― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/dapr/dotnet-sdk/issues/737#issuecomment-929530060, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACN73NT7QPC4BTWSUIYZT43UEIEXRANCNFSM5CDIBBJQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@mjtansin - Gotcha, do you need anything else from this ticket then?
@rynowak, if they don't can you close it? I don't have permission yet.
No activity here for a while, and I have permission to close things now.
I used actors, and when I set up the app in k8s, there were some errors about reminders, like these:
error getting reminders for actor type ChatRoom: (Unauthorized) there are no users authenticated" app_id=chatroom instance=chatroom-b4dfcd6c-4r58r scope=dapr.runtime.actor type=log ver=1.3.0 error getting reminders for actor type User: (Unauthorized) there are no users authenticated" app_id=chatroom instance=chatroom-b4dfcd6c-4r58r scope=dapr.runtime.actor type=log ver=1.3.0
Since I didnt' use reminder, why this error could happen? What's the meaning and how to fix it ?
Thanks a lot.