dapr / components-contrib

Community driven, reusable components for distributed apps
Apache License 2.0
544 stars 473 forks source link

Need guidance on starting daprd built for component checking (OOM error) #3553

Open alg opened 5 hours ago

alg commented 5 hours ago

I have dapr 1.14.1 installed into the system via nix. I've been working on the feature to support TAG type to the Redis State Query and was going to test how it works in the test app. So I followed the tutorial of building the custom daprd, replacing the version in the ~/.dapr/bin etc. When I start, it immediately exists with the killed error. The exit code is 137 (OOM error).

I compared what old version displays when started:

→ ./daprd.bak help
INFO[0000] Starting Dapr Runtime -- version 1.14.1 -- commit 81cb1f5c4709535b03799e7e1826fbab0315b90b  instance=MacBook-Pro.local scope=dapr.runtime type=log ver=1.14.1
...

And the new one:

→ ./daprd help
zsh: killed     ./daprd help

→ echo $?
137

File type looks correct:

→ file daprd
daprd: Mach-O 64-bit executable arm64

Clearly something is wrong here. Can anyone suggest where to look next?

I'm on M1 so I took the dist binary from dist/darwin_arm64/debug obviously. There was no any other.

yaron2 commented 5 hours ago

Did you replace an earlier binary? If so, you must remove/delete the existing binary before copying over the new one