Closed kyleskrinak closed 8 years ago
@kyleskrinak that's a weird one and won't be easy to debug.
When did this start?
I would kill the VM and start fresh. This would be the easiest and fastest approach.
I've deleted boot2docker and used dsh install boot2docker
to add it back. I'm at 30 minutes in, no problems so far. If this fixes it, boy, that was easy. I'll close this if I remain uninterrupted after an hour.
Update: my instances continue to "go away," despite the new VM.
I've switched to Acquia Dev Desktop — and I'm experiencing a similar problem. The MySQL instance stops, though the stack is far more stable than my drude dev environment. Much of this is concurrent with recent VirtualBox and Vagrant upgrades. This might be an issue with my system?
@kyleskrinak when you say the MySQL instance stops, do you see something like "MySQL server has gone away" error or something else?
No:
PDOException: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (61) in lock_may_be_available() (line 167 of /Users/kds38/Documents/devdesktop/phyoriginal/includes/lock.inc).
Whether it's Drude or, now, Acquia Dev Desktop, the MySQL server crashes.
I fired up the drude instance again and let the site run. I open a dsh bash db
so I can tail -f /var/log/mysql.err
output. However, the db instance goes away, and I see this:
Version: '5.5.46-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) read tcp 192.168.10.1:57159->192.168.10.10:2375: read: operation timed out
That's when I have to vagrant halt && dsh up
I think you are seeing two distinct issues with Drude and Acquia Dev Desktop, as the latter one does not use any VMs/Docker.
Try removing all network adapters in VirtualBox - https://github.com/blinkreaction/boot2docker-vagrant/blob/develop/docs/troubleshooting.md#various-networking-issues
One note - use dsh logs db
to see DB logs. Logs are streamed into stdout in containers where docker picks them up. Also, you can use dsh reload
to reload restart the VM and containers instead of vagrant halt && dsh up
.
Thanks @lmakarov the network adapter removal fixed the problem.
Site instance will "go away" after an indeterminate period of time, roughly in the 2 - 10 minute range.
If I try, say,
dsh drush cc all
I'll be met withIf I do
dsh up
I see:Perhaps incorrectly, I'll run
vagrant halt && dsh up
To return my docker instances to a running state. However, the site remains unstable and I'll have to repeat this process.
Looking at the logs,
web reports:
db:
cli:
version info
dsh version: 1.20.3 Boot2Docker-cli version: v1.8.0