hhvm / homebrew-hhvm

Official Mac OS X Homebrew formula for HHVM
MIT License
81 stars 22 forks source link

/usr/local/var/lib/hhvm/sessions/{session_id}: No such file or directory #71

Open farizluqman opened 7 years ago

farizluqman commented 7 years ago

Description

Problem: Directory not found (/usr/local/var/lib/hhvm/sessions/) when attempting to create a session.

Context and Logs

Farizs-MacBook-Air:libexec farizluqman$ hhvm --mode server -d hhvm.server.type=fastcgi -d hhvm.server.port=9000 \nWarning: open(/usr/local/var/lib/hhvm/sessions/sess_94d4333d93936d7dd0a387c1832ca8db, O_RDWR) failed: No such file or directory (2) in /Users/farizluqman/Sites/htdocs/project/vendor/cartalyst/sentinel/src/Sessions/NativeSession.php on line 90 \nWarning: open(/usr/local/var/lib/hhvm/sessions/sess_94d4333d93936d7dd0a387c1832ca8db, O_RDWR) failed: No such file or directory (2) \nWarning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/local/var/lib/hhvm/sessions) \nWarning: open(/usr/local/var/lib/hhvm/sessions/sess_94d4333d93936d7dd0a387c1832ca8db, O_RDWR) failed: No such file or directory (2) in /Users/farizluqman/Sites/htdocs/project/vendor/cartalyst/sentinel/src/Sessions/NativeSession.php on line 90 \nWarning: open(/usr/local/var/lib/hhvm/sessions/sess_94d4333d93936d7dd0a387c1832ca8db, O_RDWR) failed: No such file or directory (2) \nWarning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/local/var/lib/hhvm/sessions)

Possible Solution

Create directory /usr/local/var/lib/hhvm/sessions/. Perhaps other use need it too? (I created it and it solved the problem for me. Is this too specific to me or needed to put in the installer?)

rawnly commented 7 years ago

I had the same problem, I've also (as you) created the directory and it solved.. i think it needs to be in the installer