-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLiteJournal not working in VM's shared folder #37
Comments
Which OS do you run in VirtualBox and which file system is used for /var mount? |
I'm running Boot2Docker 1.9.1 in Virtualbox. /var is mounted as ext4. But actual folder mapping is this: |
ping @milo |
I tried that quicky but I didn't reproduced it and I forgot. I'll let you know... |
I prepared minimal example (php:5.6-apache image + nette/caching + Tracy debugger):
And then check this URL:
|
This is interesting.
Anyhow it seems to be some sort of permission issue... If you put this into your script: var_dump(getmyuid());
var_dump(decoct(fileperms(__DIR__)));
var_dump(is_writable(__DIR__)); and run it like this: $ docker run --rm -it -p 39999:80 -v `pwd`:/var/www/html php:5.6-apache you should get:
It looks like PHP runs under uid 1000 which does not exist inside the container -- wtf... Tested with Linux + Docker 1.9.1. |
Permissions on Linux behave bit different. Windows folder mounted into VM As I wrote issue is probably VM related. On Linux, there is no VM with On Wed, Jan 20, 2016, 01:48 Michael Moravec notifications@github.com
|
This is the vboxvfs issue. The SQLite opens
And fails when trying to mmap:
You can find more issues on Google by |
@milo You're right. This can be closed. "Workaround" exists using smb instead of vboxsf. Thanks |
Newly added optimizations of SQLiteJournal caused problem for using SQLiteJournal for apps running in virtual machine (tested in Virtualbox). WAL option doesn't work with network filesystem which is used in Virtualbox.
cause:
PRAGMA journal_mode = WAL;
in SQLiteJournal.php:36
Way to switch WAL on/off in journal or removal of the line would fix the problem.
Environment:
Windows 10 x64
Container running in Docker Toolbox v1.9.1f
PHP 5.6.16
The text was updated successfully, but these errors were encountered: