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

❌ fork/exec /root/.dapr/bin/daprd: no such file or directory #974

Closed
sharadregoti opened this issue May 5, 2022 · 5 comments
Closed
Labels
kind/bug Something isn't working not-reproducible bug not reproducible

Comments

@sharadregoti
Copy link

Expected Behavior

Launch a Dapr sidecar that will listen on port 3500 for a blank application named myapp:

Actual Behavior

As per the getting started docs, After running dapr init. I had to run this command dapr run --app-id myapp --dapr-http-port 3500

But the above step failed.
There are multiple behaviours that i want to highlight

  1. After running dapr init command, I am not able to run dapr commands directly
    dapr command just gets stuck on the terminal. I have to press ctrl + c to exit
  2. dapr commands started working if use sudo
    After running this command sudo dapr run --app-id myapp --dapr-http-port 3500
    I got this output
WARNING: no application command found.
❌  stat /root/.dapr/components: no such file or directory
  1. I tried to fix the above error by using this command
    sudo dapr run --app-id myapp --dapr-http-port 3500 --components-path /home/sharad/.dapr/components/
    But then i got this error
ℹ️  Starting Dapr with id myapp. HTTP Port: 3500. gRPC Port: 37037
❌  fork/exec /root/.dapr/bin/daprd: no such file or directory

Steps to Reproduce the Problem

  1. Download the latest dapr cli
  2. Run dapr init
    The above command result with the following output
⌛  Making the jump to hyperspace...
ℹ️  Container images will be pulled from Docker Hub
ℹ️  Installing runtime version 1.7.2
↘  Downloading binaries and setting up components...
Dapr runtime installed to /home/sharad/.dapr/bin, you may run the following to add it to your path if you want to run daprd directly:
    export PATH=$PATH:/home/sharad/.dapr/bin
✅  Downloading binaries and setting up components...
✅  Downloaded binaries and completed components set up.
ℹ️  daprd binary has been installed to /home/sharad/.dapr/bin.
ℹ️  dapr_placement container is running.
ℹ️  dapr_redis container is running.
ℹ️  dapr_zipkin container is running.
ℹ️  Use `docker ps` to check running containers.
✅  Success! Dapr is up and running. To get started, go here: https://aka.ms/dapr-getting-started
  1. Export the path as specified in the logs
    export PATH=$PATH:/home/sharad/.dapr/bin

  2. Run the dapr run command
    dapr run --app-id myapp --dapr-http-port 3500

Dapr Version

❯ sudo dapr --version
CLI version: 1.7.0
Runtime version: n/a

OS: Windows 10, wsl2

@sharadregoti sharadregoti added the kind/bug Something isn't working label May 5, 2022
@pravinpushkar
Copy link
Contributor

@sharadregoti
I followed the exact same steps as you mentioned in the steps to reproduce, I could not reproduce this.
Can you please try to execute the steps without sudo. Ideally after doing dapr init running this command dapr --version should produce correct cli and runtime versions.

@mukundansundar mukundansundar added the not-reproducible bug not reproducible label Jun 9, 2022
@dapr-bot
Copy link
Collaborator

dapr-bot commented Jul 9, 2022

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

@shubham1172
Copy link
Member

Shall we close this due to inactivity? /cc @mukundansundar

@mukundansundar
Copy link
Collaborator

closing due to this issue not being reproducible. Please open a new issue if this issue persists. @sharadregoti

@guybartal
Copy link

happened to me now

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 not-reproducible bug not reproducible
Projects
None yet
Development

No branches or pull requests

6 participants