Tmp directories are not cleaned up in ispconfig 3.2.

Discussion in 'General' started by buhler, Dec 23, 2020.

  1. buhler

    buhler Member

    Good Morning,
    The sites' tmp directories are getting crowded.
    The cleaning routine is not working. Debian 9 and 10 with ispconfig 3.2.1
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Are the ISPConfig cronjobs enabled?
     
  3. buhler

    buhler Member

    Yes this is enabled
    But the session files, etc, continue on tmp
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    How are the session files named on your system?
     
  5. buhler

    buhler Member

    sess_*
    examples:
    sess_0208ugnq3qv6mdk9qcaemee9km
    but other types of files are also not deleted.
     
  6. buhler

    buhler Member

    Sorry I noticed now that the function deletes files older than 2 days. So for session this is correct. But other types of files remain

    -rw------- 1 xxxxxxxxxx 0 nov 16 00:15 class_index.phpy98GAY
    -rw------- 1 xxxxxxxxxx 0 nov 16 11:33 class_index.phpyUEavi

    -rw------- 1 xxxxxxxxxx 0 dez 23 01:01 sess_0208ugnq3qv6mdk9qcaemee9km
    -rw------- 1 xxxxxxxxxx 0 dez 23 00:56 sess_04nnt3ihs3i3dsok97iq52fb6j
    -rw------- 1 xxxxxxxxxx 0 dez 23 06:38 sess_07jf6v78ddfpkehgp5lj4u39nd
    -rw------- 1 xxxxxxxxxx 0 dez 22 12:04 sess_0ojnqa4vg6dkpa31h832mkihj6
    -rw------- 1 xxxxxxxxxx 0 dez 22 23:29 sess_12hscfgdnnia5n3mksc58ck561
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The cleanup code will only delete sess_* files, so at least these should be deleted when they are old. ISPConfig runs this command:

    cd ?; find . -mtime +1 -name 'sess_*' | grep -v -w .no_delete | xargs rm > /dev/null 2> /dev/null

    where ? is replaced with the path of the temporary directory.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig shall not delete other files there.
     
  9. buhler

    buhler Member

    I understood. Thanks
     

Share This Page