After upgrade CLI to 3.4.0, the export space copy files to destination but it did not clean up confluence home data temp
Asked by Long Nguyen:

Confluence 5.2.1 , upgraded from CLI 3.1.0 to 3.4.0

The confluence home /deploy/AppData/techwiki/data is filling up with all htmlexport directories after it completed export files to destination. Is it a bug?

ls -ld /deploy/AppData/techwiki/data/temp/htmlexport\* \|less  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:47 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-154758-135  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 15:48 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-154808-139  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:48 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-154823-141  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 15:50 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-154942-145  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:51 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155102-147  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 15:58 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155721-151  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:58 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155837-153  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 15:58 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155841-157  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:58 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155847-159  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155859-163  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155911-165  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155920-169  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155936-171  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155939-175  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-155943-179  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:03 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160304-181  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:06 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160327-185  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:06 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160652-189  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:06 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160656-191  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160659-195  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160710-197  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160715-201  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160721-203  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160723-207  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160728-211  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160730-213  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160734-217  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160745-219  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:09 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-160841-223  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:10 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-161030-225  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:10 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-161043-229  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:11 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-161102-231  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:11 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-161108-235  
drwxr-xr-x 3 wasadmin wasadmin 4096 May 22 16:15 /deploy/AppData/techwiki/data/temp/htmlexport-20130522-161336-239  
---------------------------------------------

04:42 PM tscsjw01 \~$ ls -ld /deploy/AppData/techwiki/data/temp/pdfexport\* \|less  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:47 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1547-137  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:48 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1548-143  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:51 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1551-149  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:58 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1558-155  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:58 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1558-161  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1559-167  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1559-173  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 15:59 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1559-177  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:03 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1603-183  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:06 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1606-187  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:06 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1606-193  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1607-199  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1607-205  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1607-209  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1607-215  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:07 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1607-221  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:10 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1610-227  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:11 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1611-233  
drwxr-xr-x 2 wasadmin wasadmin 4096 May 22 16:13 /deploy/AppData/techwiki/data/temp/pdfexport-20130522-220513-1613-237

\> df -h /deploy/AppData/techwiki/data/  
Filesystem Size Used Avail Use% Mounted on  
/dev/mapper/app_main-deploy  
20G 19.4G 512M 98% /deploy  


Answers:
author: Long Nguyen
body: I have verified that the CLI 3.4.0 cleaned up data temp directory via cron job.


author: Bob Swift (personal)
body: The CLI runs on a client, it does not run on the server. The remote APIs run on the server. Are you sure that there hasn't been a Confluence upgrade before the bad behavior occurred? It is unlikely there was a CLI change in this area between 3.1 and 3.4. Rerun you test with both 3.1 and 3.4 to verify different behavior. If you still need assistance, [open an issue](https://bobswift.atlassian.net/browse/CSOAP).


author: Long Nguyen
body: The confluence has been upgraded from 4.3.5 to 5.1.2. It's change the behavior if I ran the export manually, it left all exports (pdf and zip) files under confluence home data. It's clean up when using 3.1.0 CLI afterward if it's schedule via cron. I need to verify it under CLI 3.4.0

comments: author: Long Nguyen
body: The cron job has been ran on 3.4.0 and it clean up data temp directory afterward. So it's working as expected.