-
Notifications
You must be signed in to change notification settings - Fork 64
provide way to clear up /var/lib/hhvm/sessions #139
Comments
The permissions of the folder are set to
That means that anyone is actually allowed to create files inside So I can't really reproduce the error you get on my system. Can you give a little more detail? (OS, HHVM version, the actual error message...) |
@bauerj This is the problem, when HHVM tries to GC sessions it gives permission denied error because it can't list the contents of that dir. I was able to repro this on a ubuntu with vanilla phpmyadmin install on the login page |
Okay, that makes sense 😄 The way php handles this is that there is a cronjob that deletes old sessions. It seems like old sessions don't even get deleted on my server (which, of course is not good). Did you change anything in the config to trigger the garbage collection? I think there would be two options to solve this problem:
I don't know what would be better here. Any opinions about this? |
IMO HHVM is trying hard to be cross-platform and if we hard-code cron for sessions GC, we'll have to do a special case for windows. Therefore it would be nice to just chown that directory to hhvm |
I haven't tested re-install, but on a fresh install
/var/lib/hhvm
and/var/lib/hhvm/sessions
is not chowned to the hhvm user. This results in a permission denied error for every app that uses sessionsThe text was updated successfully, but these errors were encountered: