@aureq opened this Issue on September 15th 2017

Hi,

I'm working on publishing the 3.1.0 package into de debian repository and while doing some test, I had an unexpected error related to some random files in /var/lib/piwik/data/tmp/cache/tracker/.

I looked in my production folder to notice a lot of files named like:

-rw-rw-r-- 1 www-data www-data  506678 Sep 15 12:30 eagercache-310-tracker.php
-rw-rw-r-- 1 www-data www-data   77948 Sep 15 12:30 eagercache-310-ui.php
-rw-rw-r-- 1 www-data www-data     832 Sep 15 12:30 piwikcache_1.php
-rw-rw-r-- 1 www-data www-data    1056 Sep 15 12:30 piwikcache_47.php
-rw-rw-r-- 1 www-data www-data    1036 Sep 15 12:30 piwikcache_80.php
-rw-rw-r-- 1 www-data www-data    1020 Sep 15 12:30 piwikcache_88.php
-rw-rw-r-- 1 www-data www-data   12246 Sep 15 12:30 piwikcache_allSiteUrlsPerSite.php
-rw-rw-r-- 1 www-data www-data   12542 Sep 15 12:30 piwikcache_general.php
-rw-rw-r-- 1 www-data www-data  227089 Sep 15 12:30 piwikcache_Translations-en-301efe31e3f07ebdb317f320ec56c28f6b65c973.php
-rw-rw-r-- 1 www-data www-data   35352 Sep 15 12:30 piwikcache_Translations-en-95b445388d012ff658fa9613a1dacfa20ec2c161.php
-rw-rw-r-- 1 www-data www-data  248057 Sep 15 12:30 piwikcache_Translations-fr-301efe31e3f07ebdb317f320ec56c28f6b65c973.php
-rw-rw-r-- 1 www-data www-data   40161 Sep 15 12:30 piwikcache_Translations-fr-95b445388d012ff658fa9613a1dacfa20ec2c161.php
-rwxr-xr-x 1 www-data www-data       0 Jan 30  2017 swap002TJT
-rwxr-xr-x 1 www-data www-data       0 Jan 31  2017 swap006kxi
-rwxr-xr-x 1 www-data www-data       0 Jan 29  2017 swap007hmC
-rwxr-xr-x 1 www-data www-data       0 Jan 29  2017 swap00i8I0
-rwxr-xr-x 1 www-data www-data       0 Jan 31  2017 swap00iCBO
-rwxr-xr-x 1 www-data www-data       0 Jan 31  2017 swap00kiFY
-rwxr-xr-x 1 www-data www-data       0 Jan 31  2017 swap00l4RC
-rwxr-xr-x 1 www-data www-data       0 Feb  2  2017 swap00lYQz
-rwxr-xr-x 1 www-data www-data       0 Jan 31  2017 swap00mPJz
-rwxr-xr-x 1 www-data www-data       0 Jan 29  2017 swap00OmtY
-rwxr-xr-x 1 www-data www-data       0 Jan 29  2017 swap00QNe2
-rwxr-xr-x 1 www-data www-data       0 Jan 29  2017 swap00Smay
-rwxr-xr-x 1 www-data www-data       0 Jan 30  2017 swap00t9KP
-rwxr-xr-x 1 www-data www-data       0 Feb  2  2017 swap00tqst
-rwxr-xr-x 1 www-data www-data       0 Jan 31  2017 swap00uluI
-rwxr-xr-x 1 www-data www-data       0 Feb  2  2017 swap00viHH
-rwxr-xr-x 1 www-data www-data       0 Jan 31  2017 swap00vKOp
-rwxr-xr-x 1 www-data www-data    4096 Jan 30  2017 swap00VZit
-rwxr-xr-x 1 www-data www-data       0 Feb  2  2017 swap00XpE5
-rwxr-xr-x 1 www-data www-data       0 Jan 30  2017 swap00yBaM
-rwxr-xr-x 1 www-data www-data       0 Jan 30  2017 swap00ynIc
-rwxr-xr-x 1 www-data www-data       0 Jan 31  2017 swap014DFc
-rwxr-xr-x 1 www-data www-data       0 Jan 29  2017 swap01613M
-rwxr-xr-x 1 www-data www-data       0 Jan 30  2017 swap018Ib6

Is it safe to empty this folder before doing an upgrade?

@aureq commented on September 15th 2017

Note: the list of random files is much much longer.

@mattab commented on September 15th 2017 Owner

Yes, the tmp/* folder content in piwik is safe to be deleted before
upgrade, and even should be safe to be deleted any time and would be auto
created.

@aureq commented on September 15th 2017

@mattab Thanks for confirming.

This Issue was closed on September 15th 2017
Powered by GitHub Issue Mirror