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

.dapr folder not installed #979

Closed
spottedmahn opened this issue May 10, 2022 · 4 comments
Closed

.dapr folder not installed #979

spottedmahn opened this issue May 10, 2022 · 4 comments

Comments

@spottedmahn
Copy link

spottedmahn commented May 10, 2022

I'm on step 5 of the guide: Step 5: Verify components directory has been initialized & I'm not seeing that folder:

$ ls ~/.dapr
ls: cannot access '/home/mdepouw/.dapr': No such file or directory


I've tried this guide previously so I old bits installed so I ran an uninstall first:

sudo dapr uninstall
ℹ️ Removing Dapr from your machine...
ℹ️ Removing directory: /root/.dapr/bin
ℹ️ Removing container: dapr_placement
✅ Dapr has been removed successfully

sudo dapr init
⌛ Making the jump to hyperspace...
ℹ️ Container images will be pulled from Docker Hub
ℹ️ Installing runtime version 1.7.1
↘ Downloading binaries and setting up components...
Dapr runtime installed to /root/.dapr/bin, you may run the following to add it to your path if you want to run daprd directly:
export PATH=$PATH:/root/.dapr/bin
✅ Downloading binaries and setting up components...
✅ Downloaded binaries and completed components set up.
ℹ️ daprd binary has been installed to /root/.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

running on Ubuntu in WSL

@spottedmahn
Copy link
Author

I just tried this & it failed:

$ dapr run --app-id myapp --dapr-http-port 3500
WARNING: no application command found.
❌ stat /home/mdepouw/.dapr/components: no such file or directory

So I re-ran w/ sudo and it succeeded. The .dapr folder must somewhere then, right?

$ sudo dapr run --app-id myapp --dapr-http-port 3500
WARNING: no application command found.
ℹ️ Starting Dapr with id myapp. HTTP Port: 3500. gRPC Port: 34727

@pravinpushkar
Copy link
Contributor

@spottedmahn Can you please check inside the root directory for .dapr folder.
Also did you try dapr init without sudo and check for above directory.

@shubham1172
Copy link
Member

Since you are using sudo while init, it installs .dapr in /root/.

sudo dapr uninstall --all # to clean dapr's root installation
dapr init # will create a .dapr folder in /home/$USERNAME

dapr run --app-id myapp # finally test running dapr with your user

@spottedmahn
Copy link
Author

Also did you try dapr init without sudo and check for above directory

I did (& I should have mentioned that). I'm running w/ sudo b/c WSL can't communicate w/ my Windows Docker unless I do 🤷‍♂️.

This problem is probably fall-out from that problem ❄⚾(snowball). I'll have to tackle that issue apparently, thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants