<?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 Temporary files not removed in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323774#M10775</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am having serious problem with free space in my server because of the binary temporary directory. When I check the directories' size, the /binaries/tmp folder has the 90% of the disk space.
&lt;EM&gt;&lt;STRONG&gt;Please, note that I am not talking about the nuxeo.tmp.dir.&lt;/STRONG&gt; I am talking about the tmp folder that nuxeo creates inside de directory specified in repository.binary.store property.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The problem is that, when I see / download a document, the binary of that document is copied into de tmp directory, but then, it is not removed. So that binary stays there for a long time, and in a few hours, the disk is full. Why is this happening? I think temporary files should be removed almost instantly after seeing them.&lt;/P&gt;
&lt;P&gt;This is also a big security problem, as I use binary encription, and the files stored in the temporary directory are not encrpyted! If they are removed instantly after getting the document, then there isn't any problem, but if they stay there, it will be a big security problem.&lt;/P&gt;
&lt;P&gt;I don't know if I am missing any configuration for tmp files. I would appreciate any help about this.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 07:54:25 GMT</pubDate>
    <dc:creator>Rodri_</dc:creator>
    <dc:date>2019-06-19T07:54:25Z</dc:date>
    <item>
      <title>Temporary files not removed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323774#M10775</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am having serious problem with free space in my server because of the binary temporary directory. When I check the directories' size, the /binaries/tmp folder has the 90% of the disk space.
&lt;EM&gt;&lt;STRONG&gt;Please, note that I am not talking about the nuxeo.tmp.dir.&lt;/STRONG&gt; I am talking about the tmp folder that nuxeo creates inside de directory specified in repository.binary.store property.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The problem is that, when I see / download a document, the binary of that document is copied into de tmp directory, but then, it is not removed. So that binary stays there for a long time, and in a few hours, the disk is full. Why is this happening? I think temporary files should be removed almost instantly after seeing them.&lt;/P&gt;
&lt;P&gt;This is also a big security problem, as I use binary encription, and the files stored in the temporary directory are not encrpyted! If they are removed instantly after getting the document, then there isn't any problem, but if they stay there, it will be a big security problem.&lt;/P&gt;
&lt;P&gt;I don't know if I am missing any configuration for tmp files. I would appreciate any help about this.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 07:54:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323774#M10775</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2019-06-19T07:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary files not removed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323775#M10776</link>
      <description>&lt;P&gt;Hi Rodri,&lt;/P&gt;
&lt;P&gt;Just wondering, if you can answer these questions to get a better understanding.&lt;/P&gt;
&lt;P&gt;Have you done any encryption setup on the configuration file yet?&lt;BR /&gt; /&amp;gt;
Which version of nuxeo is this?&lt;BR /&gt; /&amp;gt;
When you say "Download a document", I am assuming a document of type "File" and downloading it's binary attachment under "Main File" correct?&lt;/P&gt;
&lt;P&gt;So if it's creating a temporary file in the /binaries/tmp directory, this is done when a binary is being used according to this quote:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;While the files are in use by the application, a temporary file in clear is created. It is removed as soon as possible.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://doc.nuxeo.com/nxdoc/file-storage/" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/file-storage/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If encryption was setup, it should create an encrypted file on the tmp directory (which it does not as you reported). Once they are done being used, they should be cleared the temporary files.&lt;/P&gt;
&lt;P&gt;If you haven't done any encryption setup, I would suggest taking a look at this and test out the settings for nuxeo.conf&lt;/P&gt;
&lt;P&gt;&lt;A href="https://doc.nuxeo.com/nxdoc/implementing-encryption/" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/implementing-encryption/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;NOTE: I have limited experience with encryption myself, so I've yet to run into this issue. I tried to see if I could reproduce the issue on my local test instance, but it didn't reproduce.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 00:38:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323775#M10776</guid>
      <dc:creator>Peter_Tucker</dc:creator>
      <dc:date>2019-06-20T00:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary files not removed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323776#M10777</link>
      <description>&lt;P&gt;Hello. Thank you for your reply.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 11:05:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323776#M10777</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2019-06-20T11:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary files not removed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323777#M10778</link>
      <description>&lt;P&gt;So to follow up&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 23:46:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323777#M10778</guid>
      <dc:creator>Peter_Tucker</dc:creator>
      <dc:date>2019-06-20T23:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary files not removed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323778#M10779</link>
      <description>&lt;P&gt;Yes, I have configured encryption correctly. I have added the following lines in my nuxeo.conf&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 12:58:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323778#M10779</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2019-06-21T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary files not removed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323779#M10780</link>
      <description>&lt;P&gt;i've the same problem and I don't find any solution&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 09:16:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/temporary-files-not-removed/m-p/323779#M10780</guid>
      <dc:creator>jribmartins_</dc:creator>
      <dc:date>2020-10-28T09:16:55Z</dc:date>
    </item>
  </channel>
</rss>

