IIS Dispatcher not caching:Unable to open temporary file
Good Morning,
I installed dispatcher-iis-windows-x64-4.3.2 and AEM 6.2 SP1 on my win10 laptop following Installing Dispatcher .
I'm able to access page http://localhost:8000/content/we-retail.html normally. But the problem is that none file is cached.
I'm sure I have given write access to Application Pool User (AEM in my case) for docroot.
Based on the log, error is "Unable to open temporary file C:\inetpub\wwwroot\aem\content\we-retail.html_PJNAa21612: Permission denied" . Cannot understand what happened to my server. Any idea?
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] HTTP keepalive is enabled, timeout is 60 seconds.
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] Dispatcher initializing (build 4.3.2/iis-windows-x64)
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] farms[publish].cache.docroot = C:\inetpub\wwwroot\aem
[Fri May 03 21:54:08 2019] [I] [pid 8872 (tid 21612)] Dispatcher initialized (build 4.3.2/iis-windows-x64)
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] Initializing PRNG with seed: 581453824
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] Found farm publish for localhost
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] checking [/content/we-retail.html]
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] Cache rule entry /0000 allowed '/content/we-retail.html'
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] cachefile does not exist: C:\inetpub\wwwroot\aem\content\we-retail.html
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] try to create new cachefile: C:\inetpub\wwwroot\aem\content\we-retail.html
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] cache-action for [/content/we-retail.html]: CREATE
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] Filter rule entry /0023 allowed 'GET /content/we-retail.html HTTP/1.1'
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] Creating new socket: 127.0.0.1:4503
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] Connected to backend rend01 (127.0.0.1:4503)
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.uri = "/content/we-retail.html"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[Cache-Control] = "max-age=0"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[Accept] = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[Accept-Encoding] = "gzip, deflate, br"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[Accept-Language] = "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[Cookie] = "_ga= xxx] request.headers[Host] = "localhost:8000"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[User-Agent] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[Upgrade-Insecure-Requests] = "1"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[Via] = "1.1 localhost (dispatcher)"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[X-Forwarded-For] = "::1"
[Fri May 03 21:54:08 2019] [T] [pid 8872 (tid 21612)] request.headers[Server-Agent] = "Communique-Dispatcher"
[Fri May 03 21:54:08 2019] [E] [pid 8872 (tid 21612)] Unable to open temporary file C:\inetpub\wwwroot\aem\content\we-retail.html_PJNAa21612: Permission denied
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] response.status = 200
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] response.headers[Date] = "Fri, 03 May 2019 13:54:08 GMT"
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] response.headers[X-Content-Type-Options] = "nosniff"
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] response.headers[X-Frame-Options] = "SAMEORIGIN"
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] response.headers[Content-Type] = "text/html; charset=UTF-8"
[Fri May 03 21:54:08 2019] [D] [pid 8872 (tid 21612)] Storing socket for later reuse: 127.0.0.1:4503
[Fri May 03 21:54:08 2019] [I] [pid 8872 (tid 21612)] "GET /content/we-retail.html" 200 2951 66ms [publish/rend01]