-
Notifications
You must be signed in to change notification settings - Fork 73
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
File modification monitoring doesn't work with 9p #112
Comments
Hi, I just spotted that issue. There was indeed a bug with missing directory entries and it's fixed now. |
@jceel Thanks reply. I'm surprised 😮 thanks |
Hi. I think I might be suffering from a similar issue as reported by @Strech. I'm using docker-machine-driver-xhyve with minikube:
On creating a fresh VM (
I can't see any logic as to the mismatch - if I shorten the file names, I get the same count. Below c.70 files, the counts tend to be the same, but above that, they get 2 out from each other. Two files (nothing special about them) are simply not listed on the VM. Please let me know if you need any further information. |
The original issue title is When you mount a folder in your container then modification time seen from python code are wrong. folder /srv/server is a p9 mounted folder. If I launch a python console:
You can notice that the fraction part of the time is always different.
In this case you see that time is always So I think there is an issue with the stat of mounted folder. Then if you try to use a mouted folder for development your code will always reload in loop :-( My host is a Mac OS X 10.11.6 and I am running |
The 9p protocol does not support modification notifications, so this will never work. |
The Django development server has an auto-reload feature, where it monitors the source code for changes and restarts the webserver if required. I tried to run the Django dev server in a docker container on top of xhyve, but the auto-reload feature kept continuously reloading the source code (i.e. it was detecting some kind of change continuously.) This was using a 9p shared drive.
When I run the exact same Django project in docker on top of xhyve using the NFS shared drive it works as expected.
I chacked if the system time inside the machine was OK, and it was. Sorry I don't have more info at this point.
Edit: the NFS shared drive seems to be extremely slow to notice modifications.
The text was updated successfully, but these errors were encountered: