<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CIFS server caching problem? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153628#M108169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your questions, let me explain what I'm trying to do. I have another webapp running in Alfresco's Tomcat (say, "mywebapp"), and this app needs to access files in Alfresco. We'd like this access to be direct, rather than using content copied/pushed from Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this, I turn on CIFS in Alfresco and mount the document library folder on the Alfresco server using "mount.cifs" to /usr/mnt/doclib:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mount.cifs //[SERVER_IP]/alfresco/sites/[SITE_NAME]/documentLibrary/mywebapp_content /usr/mnt/doclib -o user=admin,pass=admin,port=1445,forcedirectio&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I symbolically link "/usr/mnt/doclib" to "tomcat/webapps/mywebapp/doclib" and turn on symbolic link following in Tomcat's server.xml. This allows me to hit "&lt;/SPAN&gt;&lt;A href="http://localhost/mywebapp/mywebapp_content" rel="nofollow noopener noreferrer"&gt;http://localhost/mywebapp/mywebapp_content&lt;/A&gt;&lt;SPAN&gt;" and I can browse the Alfresco folder in a web browser. Now, ultimately, this use case is not the goal, but this allows mywebapp to directly access certain documents in Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of this works great. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is when a file is modified in Alfresco. When I browse to the file in a web browser, it always displays the unmodified version, which leads me to believe that CIFS is caching data. I've cleared the browser cache, so I know it's not the browser. And I've looked into and have seen recommendations to set the "forcedirectio" flag on the mount.cifs command, but this has not helped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this make sense? Any thoughts or recommendations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Note that if I unmount and re-mount the directory, the file contents are updated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 15:32:36 GMT</pubDate>
    <dc:creator>cpaul</dc:creator>
    <dc:date>2012-08-28T15:32:36Z</dc:date>
    <item>
      <title>CIFS server caching problem?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153625#M108166</link>
      <description>We've encountered a problem that appears to be with the CIFS server caching stuff.In our repository, when someone uploads a file that already exists we want to copy the content across with versioning. This works fine usually. But when I upload a file via CIFS and then try to update it, Windows gives</description>
      <pubDate>Tue, 08 Jul 2008 12:55:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153625#M108166</guid>
      <dc:creator>joshaber</dc:creator>
      <dc:date>2008-07-08T12:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS server caching problem?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153626#M108167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm actually encountering the same issue, although from a different angle: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When mounting an Alfresco directory into Tomcat via CIFS, I'm able to browse that directory from a web browser, but the file contents are not updated if I make changes to those files in Alfresco. I believe it may have something to do with CIFS caching as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any idea how to overcome this issue? Am I completely crazy for thinking this will work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 17:04:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153626#M108167</guid>
      <dc:creator>cpaul</dc:creator>
      <dc:date>2012-07-03T17:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS server caching problem?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153627#M108168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean by "mounting an Alfresco directory into Tomcat via CIFS"?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using CIFS for the filestore?&amp;nbsp;&amp;nbsp; Or are you using Alfresco's CIFS interface?&amp;nbsp; Or something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you accessing a CIFS directory from a web browser?&amp;nbsp;&amp;nbsp;&amp;nbsp; What are you looking at?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 20:48:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153627#M108168</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-07-03T20:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS server caching problem?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153628#M108169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your questions, let me explain what I'm trying to do. I have another webapp running in Alfresco's Tomcat (say, "mywebapp"), and this app needs to access files in Alfresco. We'd like this access to be direct, rather than using content copied/pushed from Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do this, I turn on CIFS in Alfresco and mount the document library folder on the Alfresco server using "mount.cifs" to /usr/mnt/doclib:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mount.cifs //[SERVER_IP]/alfresco/sites/[SITE_NAME]/documentLibrary/mywebapp_content /usr/mnt/doclib -o user=admin,pass=admin,port=1445,forcedirectio&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I symbolically link "/usr/mnt/doclib" to "tomcat/webapps/mywebapp/doclib" and turn on symbolic link following in Tomcat's server.xml. This allows me to hit "&lt;/SPAN&gt;&lt;A href="http://localhost/mywebapp/mywebapp_content" rel="nofollow noopener noreferrer"&gt;http://localhost/mywebapp/mywebapp_content&lt;/A&gt;&lt;SPAN&gt;" and I can browse the Alfresco folder in a web browser. Now, ultimately, this use case is not the goal, but this allows mywebapp to directly access certain documents in Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of this works great. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is when a file is modified in Alfresco. When I browse to the file in a web browser, it always displays the unmodified version, which leads me to believe that CIFS is caching data. I've cleared the browser cache, so I know it's not the browser. And I've looked into and have seen recommendations to set the "forcedirectio" flag on the mount.cifs command, but this has not helped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this make sense? Any thoughts or recommendations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Note that if I unmount and re-mount the directory, the file contents are updated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 15:32:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153628#M108169</guid>
      <dc:creator>cpaul</dc:creator>
      <dc:date>2012-08-28T15:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS server caching problem?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153629#M108170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There won't be caching on alfresco's side, the caching you seem to be experiencing is elsewhere.&amp;nbsp; And there's an interaction between your app server and cifs client,&amp;nbsp; I suspect one of those is not quite right.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 20:19:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153629#M108170</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-08-28T20:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS server caching problem?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153630#M108171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike, you're right – the caching was being done on Tomcat's side of things. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once I added &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;cachingAllowed="false"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; to the &amp;lt;Context&amp;gt; tag in my_webapp/META-INF/context.xml, it worked like a charm. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your input!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 18:05:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cifs-server-caching-problem/m-p/153630#M108171</guid>
      <dc:creator>cpaul</dc:creator>
      <dc:date>2012-08-29T18:05:02Z</dc:date>
    </item>
  </channel>
</rss>

