2 years ago

#70034

test-img

mp035

Why can't PHP flock on btrfs filesystem?

I am trying to set up a chromebook for Laravel development and I was having trouble with my project throwing "419 Page Expired" on every form. The project works fine on a Manjaro development machine.

I traced the issue down to Laravel's file-system session driver not retrieving the session token from the file system.

It seems that Crostini (ChromeBook Linux Container) uses a btrfs root filesystem and any attempt to use php's "flock" function always results in a failure response.

Has anyone come across this before? Does anyone have any idea of a possible work-around? I would imagine, with the abundance of containerised development environments, that this is a common problem, but I have googled to no avail.

php

laravel

containers

chromebook

btrfs

0 Answers

Your Answer

Accepted video resources