<p>Try to call the json file in the browser. There are chance of showing unknown error when the path of the json file is missing in Asset Index.</p>

CC BY-SA 4.0
2019-05-05T01:20:01.677Z
The files are outside of the webroot so I can't access them from the browser
Trevor Orr
CC BY-SA 4.0
2019-05-05T00:28:59.753Z
2019-05-05T00:28:59.753Z
Priti Rathod
<p>I am getting the error: An unknown error occurred for each file in a folder when I try Update Asset Indexes.  The folder is a local folder that is outside of webroot.  The files just contain json data. I have looked through Craft log files and apache log files and cannot find anything. Any ideas?</p>

<p>I have tried the following from other questions with the same error message and none of these made an difference.</p>

<p><strong>Deleted entire craft/storage/runtime/ folder</strong></p>

<p><a href="https://craftcms.stackexchange.com/questions/30191/an-unknown-error-occurred-no-log-entry">An unknown error occurred - no log entry</a></p>

<p><strong>Made sure no record in table assetindex has null for dateModified column</strong> </p>

<p><a href="https://craftcms.stackexchange.com/questions/26463/an-unknown-error-occurred-in-assets-screen">&quot;An unknown error occurred&quot; in assets screen</a></p>

<p><strong>Reset folder ownership</strong></p>

<p><a href="https://craftcms.stackexchange.com/questions/17039/permissions-userphotos-an-unknown-error-occurred">permissions userphotos &quot;an unknown error occurred&quot;</a></p>

CC BY-SA 4.0
2019-05-06T09:01:13.327Z
Can you use the browser's developer console to check what's in the response body for Ajax requests running during the indexing?
Andris Sevcenko
CC BY-SA 4.0
2019-05-06T13:36:14.607Z
I have not built any code to load the content of the files yet since I can't add them through the reindex
Trevor Orr
CC BY-SA 4.0
2019-05-06T16:47:14.710Z
Symlink the folder they are in from your public web root?
Brad Bell
CC BY-SA 4.0
2019-05-06T17:09:57.137Z
I mean when you run the indexing process, your Craft install fires a bunch of Ajax requests to the server to try to index the files. Can you check the response body of those requests? If all seems normal, maybe enable devMode and try again.
Andris Sevcenko
CC BY-SA 4.0
2019-05-07T02:51:43.067Z
it appears to be some kind of ownership / permission issue even though I reset ownership / permission on the entire folder structure.  I set it up on my work computer and it works perfectly.  Maybe I just need to clone the repo again in a new folder and see if that works.
Trevor Orr
<craft3><assets><error><reindex>
An unknown error has occurred in asset reindex
# An unknown error has occurred in asset reindex

(Asked by: username_0 on 2019-05-04)

I am getting the error: An unknown error occurred for each file in a folder when I try Update Asset Indexes. The folder is a local folder that is outside of webroot. The files just contain json data. I have looked through Craft log files and apache log files and cannot find anything. Any ideas?

I have tried the following from other questions with the same error message and none of these made an difference.

**Deleted entire craft/storage/runtime/ folder**

[An unknown error occurred - no log entry](https://craftcms.stackexchange.com/questions/30191/an-unknown-error-occurred-no-log-entry)

**Made sure no record in table assetindex has null for dateModified column**

["An unknown error occurred" in assets screen](https://craftcms.stackexchange.com/questions/26463/an-unknown-error-occurred-in-assets-screen)

**Reset folder ownership**

[permissions userphotos "an unknown error occurred"](https://craftcms.stackexchange.com/questions/17039/permissions-userphotos-an-unknown-error-occurred)

**Tags:** craft3, assets, error, reindex
> **Comments:**
> **username_1**: Can you use the browser's developer console to check what's in the response body for Ajax requests running during the indexing?  
> **username_0**: I have not built any code to load the content of the files yet since I can't add them through the reindex  
> **username_2**: Symlink the folder they are in from your public web root?  
> **username_1**: I mean when you run the indexing process, your Craft install fires a bunch of Ajax requests to the server to try to index the files. Can you check the response body of those requests? If all seems normal, maybe enable devMode and try again.  
> **username_0**: it appears to be some kind of ownership / permission issue even though I reset ownership / permission on the entire folder structure.  I set it up on my work computer and it works perfectly.  Maybe I just need to clone the repo again in a new folder and see if that works.  

---

## 1 answers

### Answer by username_3 on 2019-05-05. Score: 0

Try to call the json file in the browser. There are chance of showing unknown error when the path of the json file is missing in Asset Index.

> **Comments:**
> **username_0**: The files are outside of the webroot so I can't access them from the browser  

---

