# Site path restricted to C: in Windows issue

**URL:** https://community.kinsta.com/t/site-path-restricted-to-c-in-windows-issue/1679
**Category:** Bug Reports
**Created:** [August 23, 2022, 3:07pm UTC](https://community.kinsta.com/t/site-path-restricted-to-c-in-windows-issue/1679 "2022-08-23T15:07:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)
#### Post date: [August 23, 2022, 3:07pm UTC](https://community.kinsta.com/t/site-path-restricted-to-c-in-windows-issue/1679/1 "2022-08-23T15:07:31Z")

</div>

**Q: Date/Time this occurred (Provide your time zone also)**  
This happens whenever, you tried to change the site path.

**Q: DevKinsta Version**  
latest - 2.7.0

**Q: OS Version**  
Windows 64-bit

**Q: Docker Desktop Version**  
4.10.1(82475)

**Q: Were any error codes or messages observed? If so, what were they?**  
Just keeps failing when trying to change site path - see image

**Q: Detailed Description of the Problem**  
I’m trying to change my SitePath but as you can see, there seems to be a strange forward slash at the end of the default install site path. Anyway changing is impossible and Kevin asked that I open a bug report

![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/b/ba9d89c2f6f00c43bd1fb496cb631c596234ac9c.png)

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [August 23, 2022, 4:32pm UTC](https://community.kinsta.com/t/site-path-restricted-to-c-in-windows-issue/1679/2 "2022-08-23T16:32:32Z")

</div>

Thanks for opening this @dgilfillan!  
Can you first try this for me:

1. Open your config.json. It should be somewhere like `C:\Users\USERNAME\AppData\Roaming\DevKinsta`
2. Find the `projectPath` and change it to match this format if it doesn’t already  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/b/bb8b7b4e6b47db9f0e374805e439ea1d0a5aa22d.png)
3. Close and reopen DevKinsta then try to change the Site path within DevKinsta again.

If it fails again, please private message your main.log file to me. You can find that in `C:\Users\USERNAME\AppData\Roaming\DevKinsta\logs`

---

<div class="post-metadata">

### Author: ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)
#### Post date: [August 23, 2022, 6:26pm UTC](https://community.kinsta.com/t/site-path-restricted-to-c-in-windows-issue/1679/3 "2022-08-23T18:26:45Z")

</div>

Thanks for sharing your main.log @dgilfillan!  
I’m seeing this error, which is important: `user declined directory sharing`  
Usually you get a popup from Windows/Docker asking for access to directories. I’m assuming you aren’t seeing those. I’m also assuming you’re using Hyper-V instead of WSL2.

Can you try opening Docker Desktop and adding your destination directory to “File Sharing?” Here’s how you do that:

1. Go to the Docker Desktop setting page  

2. Add the new target directory here so that Docker has permission to move files there.  

Now try moving DevKinsta to your new directory. Does it still fail? If so please send me your main.log again.  
Thank you!

---

<div class="post-metadata">

### Author: ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)
#### Post date: [August 23, 2022, 8:34pm UTC](https://community.kinsta.com/t/site-path-restricted-to-c-in-windows-issue/1679/4 "2022-08-23T20:34:05Z")

</div>

Hey Kevin, that’s resolved it now. Thank you so much! Great job!

I can also confirm I am able to move the DevKinsta Sitepath to another Drive. In my case I’ve moved it to my D Drive.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [August 26, 2022, 8:35pm UTC](https://community.kinsta.com/t/site-path-restricted-to-c-in-windows-issue/1679/5 "2022-08-26T20:35:04Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
