forked from RoushTech/docker
Session directory is unwritable by the server user, so sessions silently never persist #23
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
session.save_pathpoints at a directory the server user cannot write, so every requestloses its session and nobody can stay logged in.
The directory is
root:frankenphp 0770, but/etc/services.d/frankenphp/runstarts theserver as
app— which is neither the owner nor (effectively) in the group. Every requestlogs:
These are warnings, not errors, so the app looks like it is working — it just never keeps
anyone logged in. In our case it failed 10 of 11 Playwright E2E tests, all of which begin
by signing in.
Note on the obvious fix
addgroup app frankenphpdoes not work, because of #22 —chpst -u appdropssupplementary groups. Until #22 is fixed the only thing that helps is ownership by uid:
Best fixed here in the base image, since the image is what chooses both the
save_pathand the user the server runs as.
matthewbaggett/php:8.5leavessave_pathempty, so PHPfalls back to
/tmpand the problem does not arise there.