mutagen-io / mutagen

Fast file synchronization and network forwarding for remote development
https://mutagen.io
Other
3.47k stars 153 forks source link

Mutagen does'nt sync files on my MAC #490

Closed mcmc4519 closed 7 months ago

mcmc4519 commented 7 months ago

I'm using Mutagen on my MacBook throw a warden (local development)

I have an issue.

My changes on local storage does'nt sync with Docker

That's sync only after reboot docker imageFor instance I changed some file ( index.php / build.xml at setra. I had tried different files in different folders)

The changes became only after rebooting docker imageI assumed that some files or folders has an exception for synchronization. But when I had reloading docker image, files were sync.Would you help me with that?When I check the command mutagen sync listhave an reponse:


Identifier: sync_CnnkD1bQRdNen6P5mZAY1hSdmDpUKJ7ufWFuafNakzU
Labels:
        warden-sync: opencart-flip
Configuration:
        Synchronization mode: Two Way Resolved
        Hashing algorithm: Default (SHA-1)
        Maximum allowed entry count: Default (2⁶⁴−1)
        Maximum staging file size: Default (18 EB)
        Symbolic link mode: Default (Portable)
        Ignore VCS mode: Propagate
        Ignores:
                /.git/
                .DS_Store
                ._*
                *~
                *.sw[a-p]
                /pub/media
                /pub/static/**
                !/pub/static/.htaccess
                /var/**
                !/var/.htaccess
        Permissions mode: Default (Portable)
Alpha:
        URL: /Users/apple/Documents/work/flip-opencart
        Configuration:
                Watch mode: Default (Portable)
                Watch polling interval: 10 seconds
                Probe mode: Default (Probe)
                Scan mode: Default (Accelerated)
                Stage mode: Default (Mutagen Data Directory)
                File mode: 0644
                Directory mode: 0755
                Default file/directory owner: Default
                Default file/directory group: Default
        Connected: Yes
        Synchronizable contents:
                588 directories
                3815 files (54 MB)
                0 symbolic links
Beta:
        URL: docker://1d230641101b8747313b6cda59395318077e62e72df4e3386fa2ca4beca08063/var/www/html
        Configuration:
                Watch mode: Default (Portable)
                Watch polling interval: 10 seconds
                Probe mode: Default (Probe)
                Scan mode: Default (Accelerated)
                Stage mode: Default (Mutagen Data Directory)
                File mode: 0644
                Directory mode: 0755
                Default file/directory owner: Default
                Default file/directory group: Default
                Compression: Default (DEFLATE)
        Connected: Yes
        Synchronizable contents:
                588 directories
                3815 files (54 MB)
                0 symbolic links
Status: Watching for changes

My device : MacBook Pro 2021 Apple M1 Pro macOS Sonoma 14.2.1

Mutagen version 0.17.5

Mutagen configs: ` sync: defaults: mode: two-way-resolved watch: pollingInterval: 10 ignore: vcs: false paths:

Root .git folder

    - "/.git/"

    # System files
    - ".DS_Store"
    - "._*"

    # Vim files
    - "*~"
    - "*.sw[a-p]"

    # Magento files
    - "/pub/media"
    - "/pub/static/**"
    - "!/pub/static/.htaccess"
    - "/var/**"
    - "!/var/.htaccess"

permissions:
  defaultFileMode: "0644"
  defaultDirectoryMode: "0755"`

One more fact is, when I had no changes in monitoring when I have changed files on my MAC

I have sent command mutagen sync monitor sync_CnnkD1bQRdNen6P5mZAY1hSdmDpUKJ7ufWFuafNakzU

And the response always is: Identifier: sync_CnnkD1bQRdNen6P5mZAY1hSdmDpUKJ7ufWFuafNakzU Alpha: URL: /Users/apple/Documents/work/flip-opencart Beta: URL: docker://1d230641101b8747313b6cda59395318077e62e72df4e3386fa2ca4beca08063/var/www/html Watching for changes

Whether a realtime logs in console shoud shows a files which was changed if I have changed files or to see a message waching for changes that's all what I can see?

mcmc4519 commented 7 months ago

My bad

I found, that mutagen is works correctly but I think that's something about php fpm cache