cli icon indicating copy to clipboard operation
cli copied to clipboard

error downloading daprd binary

Open pravpuru opened this issue 2 years ago • 9 comments

In Windows 10, trying to perform 'dapr init' in Powershell in administrator mode. Everytime i try dapr init it fails.

PS C:\Users\xxxxx> dapr init Making the jump to hyperspace... Container images will be pulled from Docker Hub Installing runtime version 1.7.4 Downloading binaries and setting up components... error downloading daprd binary: open C:\Users\xxxxx.dapr\bin/daprd_windows_amd64.zip: Access is denied.

Any suggestions would be much appreciated.

pravpuru avatar Jun 14 '22 14:06 pravpuru

@pravpuru Can you create files manually in C:\Users successfully

hueifeng avatar Jun 14 '22 14:06 hueifeng

@hueifeng Yes, i'm able to create files. To be specific, in C:\Users\MyUserId\

pravpuru avatar Jun 14 '22 14:06 pravpuru

Based on the description is to deny access, you can delete files in this directory? Try to delete daprd_windows_amd64.zip to see if it has been occupied?

hueifeng avatar Jun 14 '22 14:06 hueifeng

I'm able to delete any file in the directory. So I'm wondering if the error message is misleading.

I don't see daprd_windows_amd64.zip in the path C:\Users\xxxxx.dapr\bin after i get this error.

pravpuru avatar Jun 14 '22 15:06 pravpuru

@pravpuru Are you getting this only in 'administrator' mode ? I just tried on my local, seems to be working fine. Can you try dapr uninstall --all then do dapr init.

pravinpushkar avatar Jun 15 '22 05:06 pravinpushkar

@pravinpushkar I've tried that. Still no luck. Doing this worked for me. Downloaded the daprd_windows_amd64.zip manually and placed the extracted exe in the bin.

pravpuru avatar Jun 15 '22 23:06 pravpuru

@pravpuru Any luck with this? Did you try setting the default home dir to some other folder where you have full permissions and do dapr init

set userprofile=<other directory>
dapr init

pravinpushkar avatar Jul 13 '22 05:07 pravinpushkar

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.

dapr-bot avatar Aug 12 '22 05:08 dapr-bot

@pravpuru Did you get a chance to try above suggestion, basically by setting a different home directory ?

pravinpushkar avatar Aug 16 '22 04:08 pravinpushkar

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.

dapr-bot avatar Sep 15 '22 05:09 dapr-bot

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.

dapr-bot avatar Sep 22 '22 05:09 dapr-bot