Edit report at https://bugs.php.net/bug.php?id=69136&edit=1
ID: 69136
Updated by: yohgaki@php.net
Reported by: maggus dot staab at googlemail dot com
Summary: Session file empty when session-path on NFS mount
-Status: Assigned
+Status: Feedback
Type: Bug
Package: Session related
Operating System: Ubuntu 14 LTS
PHP Version: 5.6.6
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
Could anyone who has this problem analyze strace?
I'm sure this is permission issue. It's not PHP issue.
Previous Comments:
------------------------------------------------------------------------
[2016-04-25 16:00:36] dimiter dot ivanov at yahoo dot com
I think this is related to the changes introduced in this Bug fix #66171
https://bugs.php.net/bug.php?id=66171
I've experienced this problem in PHP 5.5.21, after updating from 5.5.6
OS is CentOS 6.7
------------------------------------------------------------------------
[2016-03-04 19:45:04] sprunka at gmail dot com
UPDATE:
I'm using a vagrant VM. host machine is Mac OS, session storage point is being mounted via nfs,
though I've also tested with "default" (whatever mount type that might be)
VM OS is CentOS 6.something
php -v
PHP 7.0.4 (cli) (built: Mar 2 2016 18:12:39) ( NTS )
using maggus's test script, customized to my paths I get the same result.
Log files can be written and read form the mounted path.
an empty (0 byte) session file is being created at the path location.
Creating a session file on a path internal to the VM works fine.
------------------------------------------------------------------------
[2016-02-14 04:22:20] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2016-02-01 14:33:53] sprunka at gmail dot com
As noted, this is occurring with CentOS 6.x as well.
I am currently writing log files and other file data to the same location with the same permissions.
PHP is generating the session file, but will not write to it or read from it. (I've tried
manually populating the file with known good session data.)
Moving the session save dir internal to the VM has no issues whatsoever.
Identical user definitions, file and directory permissions are being used in both locations.
When the session save dir is on the host computer, PHP writes an empty session file only. When the
session save dir is internal to the VM, PHP handles sessions completely normally.
------------------------------------------------------------------------
[2016-01-31 05:28:14] yohgaki@php.net
I think users who have this problem is using user ID mapping or root squashing
http://manpages.ubuntu.com/manpages/intrepid/man5/exports.5.html
Make sure you are not loosing permission due to ID mapping. Since files handler does not anything
fancy for NFS/etc, if your PHP process has permission, it should not have permission issue.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69136
--
Edit this bug report at https://bugs.php.net/bug.php?id=69136&edit=1