Closed
Description
What happened?
The 'mysql' plugin contains a service, such that devbox services up
launches mysqld. Unfortunately if mysqld fails for some reason, this isn't reported. The status is always 'Launched', the Age keeps increasing, and exit code is unset:
Steps to reproduce
First, get set up:
cd /tmp
devbox create mysqltest --template mysql
devbox shell # This will initialize but not start the db
Now to trigger a failure. Let's claim MySQL's port 3306 (if you run MySQL locally it's probably already listening there - that's fine too).
In a second terminal:
nc -l -p 3306 # This will 'hang' listening on 3306.
Now back in the devbox shell:
devbox services up
The 'mysql' process will stay 'Launched'. Only if you look in 'mysql_logs' will you see evidence that the process actually died.
Command
No response
devbox.json
Devbox version
0.14.0
Nix version
nix (Nix) 2.18.5
What system does this bug occur on?
Linux (x86-64)
Debug logs
No response