docksal icon indicating copy to clipboard operation
docksal copied to clipboard

Unison stops syncing sometimes

Open achekulaev opened this issue 6 years ago • 6 comments

Because of the bug in Docker for Mac (https://github.com/docker/for-mac/issues/681) Unison can stop syncing sometimes and the only way to make in syncing again is

fin project remove unison
fin project start

achekulaev avatar Aug 02 '18 19:08 achekulaev

I did see this error in the logs recently when I did a config export in the container and then git status on the host isn't showing changes, but git status in the container shows file changes.

Fatal error: Filesystem watcher error: error while handling events: Resource temporarily unavailable [read]
unison_1     | 
unison_1     | The watcher can be disabled by setting preference 'watch' to false
\ docroot/core/core.link_relation_types.ymlation_types.yml

shelane avatar Sep 01 '18 02:09 shelane

I'm also experiencing this, but I am using VirtualBox not Docker for Mac, so maybe the root-cause described in this thread is not correct (or I'm having an unrelated issue with the same effect).

Here you can see a comparison of my local file copy, and the copy inside docker. Locally I added lines 34-37, but these lines were not propagated to docker:

new vm

MKorostoff avatar Jun 26 '19 21:06 MKorostoff

@MKorostoff unison logs (fin logs unison) is really vital to troubleshoot this case. If/when this happens again please take those logs and attach here. If it is the same "Resource temporarily unavailable" message then I might think of a way to notify user about it.

achekulaev avatar Jul 01 '19 23:07 achekulaev

@achekulaev unfortunately I switched back to NFS due to this problem, and I believe the logs were lost when that occurred. When I give this command now I just get ERROR: No such service: unison

MKorostoff avatar Jul 02 '19 13:07 MKorostoff

Sure I mean if you ever use it again and meet the issue.

achekulaev avatar Jul 02 '19 14:07 achekulaev

I have similar issue.

Output of fin config:

fin config output
---------------------
COMPOSE_PROJECT_NAME_SAFE: example_com
COMPOSE_FILE:
/Users/bartlomiej.kwiatek/.docksal/stacks/volumes-bind.yml
/Users/bartlomiej.kwiatek/.docksal/stacks/stack-default.yml
/Users/bartlomiej.kwiatek/www/domains/example_com/.docksal/docksal.yml
ENV_FILE:
/Users/bartlomiej.kwiatek/www/domains/example_com/.docksal/docksal.env
/Users/bartlomiej.kwiatek/www/domains/example_com/.docksal/docksal-local.env

PROJECT_ROOT: /Users/bartlomiej.kwiatek/www/domains/example_com
DOCROOT: .
VIRTUAL_HOST: example-com.docksal
VIRTUAL_HOST_ALIASES: *.example-com.docksal
IP: 192.168.64.100
MYSQL: 192.168.64.100:3064

Docker Compose configuration
---------------------
services:
  cli:
    dns:
    - 192.168.64.100
    - 8.8.8.8
    environment:
      AUTOMATIC_UPDATER_DISABLED: "true"
      BLACKFIRE_CLIENT_ID: null
      BLACKFIRE_CLIENT_TOKEN: null
      COMPOSER_ALLOW_XDEBUG: '0'
      COMPOSER_DISABLE_XDEBUG_WARN: '0'
      COOKIE_DOMAIN: example-com.docksal
      DOCROOT: .
      DRUSH_ALLOW_XDEBUG: '0'
      DRUSH_OPTIONS_URI: example-com.docksal
      HOST_GID: '20'
      HOST_UID: '501'
      HTTPS: "on"
      MYSQL_DATABASE: default
      MYSQL_HOST: db
      MYSQL_PASSWORD: user
      MYSQL_ROOT_PASSWORD: root
      MYSQL_USER: user
      NONCE_KEY: Tti}h`HFwTt~yUC|5--,k1@xd*P,|$$rFS^MCm hr>N5c.t2n?bAI0{OHo`tA*--
      NONCE_SALT: v&o xCj.!7+)boYhOEf~dFmC(H1uLUe6!,t<7]|eR5Ts UK~tAbM;u^@/ u8s=aB
      PHP_IDE_CONFIG: null
      RDS_DB_NAME: default
      RDS_HOSTNAME: db
      RDS_PASSWORD: user
      RDS_PORT: '3306'
      RDS_USERNAME: user
      SECRET_ACAPI_EMAIL: null
      SECRET_ACAPI_KEY: null
      SECRET_ACQUIACLI_KEY: null
      SECRET_ACQUIACLI_SECRET: null
      SECRET_PLATFORMSH_CLI_TOKEN: null
      SECRET_SSH_PRIVATE_KEY: null
      SECRET_TERMINUS_TOKEN: null
      SMTP_AUTH: ''
      SMTP_DEBUG: ''
      SMTP_FROM: ''
      SMTP_HOST: ''
      SMTP_NAME: ''
      SMTP_PASS: ''
      SMTP_PORT: ''
      SMTP_SECURE: ''
      SMTP_USER: ''
      SSH_AUTH_SOCK: /.ssh-agent/proxy-socket
      VIRTUAL_HOST: example-com.docksal
      WP_CONTENT_URL: https://example-com.docksal/wp-content
      WP_HOME: https://example-com.docksal/
      WP_SITEURL: https://example-com.docksal/
      XDEBUG_CONFIG: remote_connect_back=0 remote_host=192.168.64.1
      XDEBUG_ENABLED: '0'
    hostname: cli
    image: docksal/cli:2.5-php7.0
    labels:
      io.docksal.shell: bash
      io.docksal.user: docker
    logging:
      options:
        max-file: '10'
        max-size: 1m
    volumes:
    - docksal_ssh_agent:/.ssh-agent:ro
    - /Users/bartlomiej.kwiatek/.docksal/tmp/example_com:/Users/bartlomiej.kwiatek/.docksal/tmp/example_com:ro
    - cli_home:/home/docker:rw
    - project_root:/var/www:rw,nocopy,cached
    - /Users/bartlomiej.kwiatek/www/domains/example_com/.docksal/services/cli/uploads:/wpfiles/uploads:rw
  db:
    dns:
    - 192.168.64.100
    - 8.8.8.8
    environment:
      MYSQL_ALLOW_EMPTY_PASSWORD: null
      MYSQL_DATABASE: default
      MYSQL_INITDB_SKIP_TZINFO: null
      MYSQL_ONETIME_PASSWORD: null
      MYSQL_PASSWORD: user
      MYSQL_RANDOM_ROOT_PASSWORD: null
      MYSQL_ROOT_PASSWORD: root
      MYSQL_USER: user
    hostname: db
    image: docksal/mysql:5.6-1.5
    logging:
      options:
        max-file: '10'
        max-size: 1m
    ports:
    - 3064:3306/tcp
    volumes:
    - /Users/bartlomiej.kwiatek/www/domains/example_com/.docksal/services/db/init:/docker-entrypoint-initdb.d:ro
    - db_data:/var/lib/mysql:rw
    - project_root:/var/www:ro,nocopy,cached
  web:
    depends_on:
      cli:
        condition: service_started
    dns:
    - 192.168.64.100
    - 8.8.8.8
    environment:
      APACHE_BASIC_AUTH_PASS: null
      APACHE_BASIC_AUTH_USER: null
      APACHE_DOCUMENTROOT: /var/www/.
      APACHE_FCGI_HOST_PORT: cli:9000
    hostname: web
    image: docksal/apache:2.4-2.3
    labels:
      io.docksal.cert-name: none
      io.docksal.permanent: "false"
      io.docksal.project-root: /Users/bartlomiej.kwiatek/www/domains/example_com
      io.docksal.virtual-host: example-com.docksal,*.example-com.docksal,example-com.docksal.*
    logging:
      options:
        max-file: '10'
        max-size: 1m
    volumes:
    - project_root:/var/www:ro,nocopy,cached
    - /Users/bartlomiej.kwiatek/www/domains/example_com/.docksal/services/cli/uploads:/wpfiles/uploads:rw
version: '2.1'
volumes:
  cli_home: {}
  db_data: {}
  docksal_ssh_agent:
    external: true
    name: docksal_ssh_agent
  project_root:
    driver: local
    driver_opts:
      device: /Users/bartlomiej.kwiatek/www/domains/example_com
      o: bind
      type: none

---------------------


Output of fin sysinfo:

fin sysinfo output
containerd:
Version:          v1.3.7
GitCommit:        8fba4e9a7d01810a393d5d25a3621dc101981175
runc:
Version:          1.0.0-rc10
GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version:          0.18.0
GitCommit:        fec3683

███  DOCKSAL: PROJECTS
project             STATUS                    virtual host                                                                     project root
example_com    Up 42 minutes (healthy)   example-com.docksal,*.example-com.docksal,example-com.docksal.*   /Users/bartlomiej.kwiatek/www/domains/example_com

███  DOCKSAL: VIRTUAL HOSTS
*.example-com.docksal
example-com.docksal.*
example-com.docksal

███  DOCKSAL: NETWORKING

DOCKSAL_IP: 192.168.64.100
DOCKSAL_VHOST_PROXY_IP: 0.0.0.0
DOCKSAL_DNS_IP: 0.0.0.0
DOCKSAL_DNS_DISABLED: 0
DOCKSAL_NO_DNS_RESOLVER: 0
DOCKSAL_DNS_UPSTREAM: 
DOCKSAL_DNS_DOMAIN: docksal

Checking connectivity to http://dns-test.docksal...
Host: PASS
Containers: PASS

███  DOCKER: RUNNING CONTAINERS
CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS                    PORTS                                      NAMES
f5a292e99d5c        docksal/ssh-agent:1.3     "docker-entrypoint.s…"   7 minutes ago       Up 7 minutes (healthy)                                               docksal-ssh-agent
957af0d179ed        docksal/dns:1.1           "docker-entrypoint.s…"   7 minutes ago       Up 7 minutes (healthy)    0.0.0.0:53->53/udp                         docksal-dns
76b7f2215c0e        docksal/vhost-proxy:1.6   "docker-entrypoint.s…"   7 minutes ago       Up 7 minutes (healthy)    0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   docksal-vhost-proxy
14701ee2eef7        docksal/apache:2.4-2.3    "httpd-foreground"       4 weeks ago         Up 42 minutes (healthy)   80/tcp, 443/tcp                            example_com_web_1
967aa1b31fae        docksal/cli:2.5-php7.0    "/opt/startup.sh sup…"   4 weeks ago         Up 42 minutes (healthy)   22/tcp, 3000/tcp, 9000/tcp                 example_com_cli_1
48014af5e2c6        docksal/mysql:5.6-1.4     "docker-entrypoint.s…"   6 weeks ago         Up 42 minutes (healthy)   0.0.0.0:3064->3306/tcp                     example_com_db_1

███  DOCKER: NETWORKS
NETWORK ID          NAME                                  DRIVER              SCOPE
c1dee24dcb78        _default                              bridge              local
1716cf8c67c9        bridge                                bridge              local
46f9cbec7d45        example_com_default              bridge              local
ac0c3d960f12        fbtabpraca_vmlpoland_com_default      bridge              local
f4921c1a2a31        fundacja_pzu_pl_default               bridge              local
dea3da4f1798        hills_profiles_default                bridge              local
845cfa034e9a        host                                  host                local
a20a653e28ba        mercedes_actros_7_innowacji_default   bridge              local
c0e091796d29        mercedes_actros_goldedition_default   bridge              local
4ec72df13827        mercedes_truckparts_default           bridge              local
b3529e112e7a        none                                  null                local
4523f5bd4fd6        zywiec_specjal_default                bridge              local

███  DOCKER DESKTOP
EXPECTED VERSION: 2.1.0.5
DETECTED VERSION: 2.4.0.0

███  HDD Usage
Filesystem      Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk1s5   466Gi   11Gi  166Gi     6%  488673 4882988247    0%   /
devfs          334Ki  334Ki    0Bi   100%    1154          0  100%   /dev
/dev/disk1s1   466Gi  284Gi  166Gi    64% 5124321 4878352599    0%   /System/Volumes/Data
/dev/disk1s4   466Gi  5.0Gi  166Gi     3%       8 4883476912    0%   /private/var/vm
map auto_home    0Bi    0Bi    0Bi   100%       0          0  100%   /System/Volumes/Data/home

Flower7C3 avatar Oct 29 '20 13:10 Flower7C3