Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Castopod
  3. trillions of session files

trillions of session files

Scheduled Pinned Locked Moved Castopod
3 Posts 2 Posters 27 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • luckowL Online
    luckowL Online
    luckow
    translator
    wrote last edited by
    #1

    Today I discovered that /app/data/writable/session contained so many files that ls -la failed. The result: the backup took an absolute age.

    I've now set up a cron job to delete the folder every week.
    Let's see if this works.

    Pronouns: he/him | Primary language: German

    1 Reply Last reply
    2
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote last edited by
      #2

      Castopod seems to use default php session functionality. Maybe we have to explicitly set https://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime though it should have a sane default according to docs.

      How does your session cleanup script look like? Maybe we have to add this to the package then.

      luckowL 1 Reply Last reply
      0
      • nebulonN nebulon

        Castopod seems to use default php session functionality. Maybe we have to explicitly set https://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime though it should have a sane default according to docs.

        How does your session cleanup script look like? Maybe we have to add this to the package then.

        luckowL Online
        luckowL Online
        luckow
        translator
        wrote last edited by
        #3

        @nebulon Honestly, there's no actual script at play right now. A simple sudo rm -rf session did the trick. The subsequent session then generated a new folder, complete with a file, the correct user, and appropriate permissions.

        Pronouns: he/him | Primary language: German

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search