docksal: After Docker and Docksal update, getting "heathcheck failed" on Mac Sierra
Description
Updated docker today and then ran a docksal update. Docker version 17.06.0-ce, build 02c1d87
After running fin project create, site setup fails with a message:
ERROR: test_cli_1 heathcheck failed
Container did not enter a healthy state within the expected amount of time.
Try fin restart
Steps to reproduce the issue:
fin project create- choose type of project
- give project name
- site never completely sets up
Describe the results you received:
No matter what type of site I setup, I always get this message:
ERROR: test_cli_1 heathcheck failed
Container did not enter a healthy state within the expected amount of time.
Try fin restart
So I try fin restart:
Stopping services...
Stopping test_web_1 ... done
Stopping test_db_1 ... done
Stopping test_cli_1 ... done
Starting services...
Starting test_db_1 ...
Starting test_db_1
Starting test_cli_1 ...
Starting test_cli_1 ... done
Starting test_web_1 ...
Starting test_web_1 ... done
Waiting for test_cli_1 to become ready...
The site still does not come up at test.docksal
I’ve tried fin up, fin start, fin restart, and fin reset, and all behavior with those commands seems normal. So maybe this is an apache issue or some kind of routing issue with the URL?
Describe the results you expected:
Any site should come up at the provided URL for the project. But no matter what project I create, they aren’t coming up and I consistently get this healthcheck error
Output of fin config:
fin config output
---------------------
COMPOSE_PROJECT_NAME_SAFE: test
COMPOSE_FILE:
/Users/jasonglisson/.docksal/stacks/volumes-bind.yml
/Users/jasonglisson/.docksal/stacks/stack-default.yml
ENV_FILE:
/Users/jasonglisson/Sites/test/.docksal/docksal.env
PROJECT_ROOT: /Users/jasonglisson/Sites/test
DOCROOT: docroot
VIRTUAL_HOST: test.docksal
VIRTUAL_HOST_ALIASES: *.test.docksal
IP: 192.168.64.100
MYSQL: 192.168.64.100:32779
Docker Compose configuration
---------------------
services:
cli:
dns:
- 192.168.64.100
- 8.8.8.8
environment:
HOST_GID: '20'
HOST_UID: '501'
XDEBUG_ENABLED: '0'
hostname: cli
image: docksal/cli:1.3-php7
volumes:
- docksal_ssh_agent:/.ssh-agent:ro
- project_root:/var/www:rw,nocopy
db:
dns:
- 192.168.64.100
- 8.8.8.8
environment:
MYSQL_DATABASE: default
MYSQL_PASSWORD: user
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
hostname: db
image: docksal/db:1.1-mysql-5.6
ports:
- 03306/tcp
volumes:
- project_root:/var/www:ro,nocopy
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/docroot
hostname: web
image: docksal/web:2.0-apache2.4
labels:
io.docksal.project-root: /Users/jasonglisson/Sites/test
io.docksal.virtual-host: test.docksal,*.test.docksal
volumes:
- project_root:/var/www:ro,nocopy
version: '2.1'
volumes:
docksal_ssh_agent:
external: true
project_root:
driver: local
driver_opts:
device: /Users/jasonglisson/Sites/test
o: bind
type: none
---------------------
Output of fin sysinfo:
fin sysinfo output
███ OS & BASICS
Darwin Jasons-MacBook-Air-2.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
Mac OS X 10.12.5
fin version: 1.22.0
Mode: Native / Docker for Mac/Windows
███ INSTANCES
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Saved Unknown
docksal - virtualbox Stopped Unknown
███ DOCKER
DOCKER_HOST:
Docker: Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:31:53 2017
OS/Arch: darwin/amd64
Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:51:55 2017
OS/Arch: linux/amd64
Experimental: true
███ DOCKER COMPOSE
Docker Compose: docker-compose version 1.14.0, build c7bdf9e
docker-py version: 2.3.0
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j 26 Sep 2016
███ DOCKER MACHINE
docker-machine version 0.12.0, build 45c69ad
███ DOCKER: IMAGES
REPOSITORY TAG IMAGE ID CREATED SIZE
docksal/web 2.0-apache2.4 7f75db9a6aa7 2 days ago 87.5MB
docksal/vhost-proxy 1.1 898fb21e7f2d 7 days ago 158MB
docksal/cli 1.3-php7 1442dc481915 13 days ago 752MB
docksal/cli 1.3-php5 77f9a2e141fa 13 days ago 808MB
docksal/db 1.1-mysql-5.6 6feb79af9597 2 weeks ago 298MB
docksal/cli 1.2-php5 11f47dc7d024 4 months ago 845MB
docksal/cli 1.2-php7 aef362412c9f 4 months ago 787MB
docksal/vhost-proxy 1.0 2c8a8b1e62c4 5 months ago 164MB
docksal/dns 1.0 20c7a535479d 6 months ago 61.6MB
docksal/ssh-agent 1.0 148220cc033d 6 months ago 12.2MB
docksal/web 1.0-apache2.2 a9c03f8a5f0f 6 months ago 188MB
docksal/web 1.0-apache2.4 1e2aa01c55d6 6 months ago 259MB
docksal/db 1.0-mysql-5.6 7c932a2f6a71 6 months ago 328MB
docksal/db 1.0-mysql-5.5 9fb8c0aed5fc 6 months ago 255MB
███ DOCKER: CONTAINERS
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
536809e7e936 docksal/vhost-proxy:1.1 "docker-entrypoint..." 5 minutes ago Up 5 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp docksal-vhost-proxy
2ccb7bdbe768 docksal/web:2.0-apache2.4 "httpd-foreground" 24 minutes ago Up 24 minutes 80/tcp, 443/tcp drupaltest_web_1
d43945623bec docksal/db:1.1-mysql-5.6 "/entrypoint.sh my..." 24 minutes ago Up 24 minutes 0.0.0.0:32777->3306/tcp drupaltest_db_1
cde85966947a docksal/cli:1.3-php5 "/opt/startup.sh s..." 24 minutes ago Up 24 minutes (healthy) 22/tcp, 9000/tcp drupaltest_cli_1
847bf0a98671 docksal/web:2.0-apache2.4 "httpd-foreground" 33 minutes ago Up 33 minutes 80/tcp, 443/tcp wptest_web_1
3704271e81a3 docksal/db:1.1-mysql-5.6 "/entrypoint.sh my..." 33 minutes ago Up 33 minutes 0.0.0.0:32776->3306/tcp wptest_db_1
bcd428b71cfe docksal/cli:1.3-php7 "/opt/startup.sh s..." 33 minutes ago Up 33 minutes (healthy) 22/tcp, 9000/tcp wptest_cli_1
099eb59d6433 docksal/web:2.0-apache2.4 "httpd-foreground" 42 minutes ago Up 3 minutes 80/tcp, 443/tcp test_web_1
bb0c465674ee docksal/web:2.0-apache2.4 "httpd-foreground" 42 minutes ago Up 42 minutes 80/tcp, 443/tcp test2_web_1
41dd2186ef8b docksal/db:1.1-mysql-5.6 "/entrypoint.sh my..." 42 minutes ago Up 42 minutes 0.0.0.0:32773->3306/tcp test2_db_1
74423174dad5 docksal/db:1.1-mysql-5.6 "/entrypoint.sh my..." 42 minutes ago Up 3 minutes 0.0.0.0:32779->3306/tcp test_db_1
f67deff2f51a docksal/cli:1.3-php7 "/opt/startup.sh s..." 42 minutes ago Up 42 minutes (healthy) 22/tcp, 9000/tcp test2_cli_1
307262a96b3a docksal/cli:1.3-php7 "/opt/startup.sh s..." 42 minutes ago Up 3 minutes (healthy) 22/tcp, 9000/tcp test_cli_1
1eaec9200b57 docksal/web:1.0-apache2.2 "/opt/startup.sh a..." About an hour ago Up 4 minutes 80/tcp, 443/tcp kstreet_web_1
023b977bac45 docksal/db:1.0-mysql-5.5 "/entrypoint.sh my..." About an hour ago Up 4 minutes 0.0.0.0:32778->3306/tcp kstreet_db_1
7affcca3cb35 docksal/cli:1.2-php7 "/opt/startup.sh s..." About an hour ago Up 4 minutes 22/tcp, 9000/tcp kstreet_cli_1
9e13242d5368 docksal/web:1.0-apache2.2 "/opt/startup.sh a..." About an hour ago Up About an hour 80/tcp, 443/tcp pasintl_web_1
8bbbaea3ca78 docksal/cli:1.2-php5 "/opt/startup.sh s..." About an hour ago Up About an hour 22/tcp, 9000/tcp pasintl_cli_1
6cb2598b1b6f docksal/db:1.0-mysql-5.5 "/entrypoint.sh my..." About an hour ago Up About an hour 0.0.0.0:32769->3306/tcp pasintl_db_1
3acccffd8189 docksal/ssh-agent:1.0 "/run.sh ssh-agent" 13 days ago Up About an hour docksal-ssh-agent
███ VIRTUALBOX
5.1.22r115126
███ NETWORK INTERFACES
Name: vboxnet0
GUID: 786f6276-656e-4074-8000-0a0027000000
DHCP: Disabled
IPAddress: 192.168.88.1
NetworkMask: 255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 0a:00:27:00:00:00
MediumType: Ethernet
Status: Down
VBoxNetworkName: HostInterfaceNetworking-vboxnet0
Name: vboxnet1
GUID: 786f6276-656e-4174-8000-0a0027000001
DHCP: Disabled
IPAddress: 192.168.64.1
NetworkMask: 255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 0a:00:27:00:00:01
MediumType: Ethernet
Status: Down
VBoxNetworkName: HostInterfaceNetworking-vboxnet1
Name: vboxnet2
GUID: 786f6276-656e-4274-8000-0a0027000002
DHCP: Disabled
IPAddress: 192.168.99.1
NetworkMask: 255.255.255.0
IPV6Address:
IPV6NetworkMaskPrefixLength: 0
HardwareAddress: 0a:00:27:00:00:02
MediumType: Ethernet
Status: Down
VBoxNetworkName: HostInterfaceNetworking-vboxnet2
███ NFS EXPORTS
# VAGRANT-BEGIN: 501 9853e966-f059-41c4-9b2e-6ee3db86c632
#"/Users/jasonglisson/Sites/drupal-vm" 192.168.88.88 -alldirs -mapall=501:20
# VAGRANT-END: 501 9853e966-f059-41c4-9b2e-6ee3db86c632
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 35 (17 by maintainers)
Sorry I meant the full configuration FOR THOSE EXTRA CONTAINERS only. I will now remove web, cli and db from docksal.yml completely and only include mailhog’s section (for example) in docksal.yml and then in docksal.env set the version of the web, cli and db containers I want for that project. This will alleviate having to keep up with changes to the default stacks although I may need to make other adjustments as the web, cli and db containers upgrade over time. This allows me to more likely not have to make as many system-wide repository changes in the future.
Thanks again!
I have not been able to reproduce this with Docker for Mac (like you have here). This is what I get:
I’m testing with the same version of fin (1.22.0) and the same image versions (
docksal/cli 1.3-php7 1442dc481915forclispecifically)According to the
fin sysinfooutput you do have a bunch of projects started and theirclicontainers are showing up ashealthy.Please post the full output from
fin resetorfin project create. You may be hitting the wait limit on theclicontainers to enter thehealthystate.Also, I noticed
docksal/dnsservice is not running. Without that onehttp://test.docksalwill not resolve properly and won’t open in a browser. Do afin reset systemto this this (post the output here as well).