All PHP builds are failing since a few days

For about 8 days (since build #6060), all of our builds are failing.

https://travis-ci.org/mantisbt/mantisbt/builds
https://travis-ci.org/mantisbt/mantisbt/pull_requests

Errors are as follows :

  • mysql
216 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
217 The command "./scripts/travis_before_script.sh" failed and exited with 1 during .
  • pgsql
224 psql: could not connect to server: No such file or directory
225 Is the server running locally and accepting
226 connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
227 The command "./scripts/travis_before_script.sh" failed and exited with 2 during .

We have not modified anything in our build process, so maybe some recent change in the CI infrastructure is causing this.

Any help in troubleshooting and fixing this issue would be greatly appreciated !

Thanks in advance

Your repo has been migrated to Xenial, where databases are not started by default. Please read

and either:

  1. Explicitly stay with Trusty with dist: trusty, or
  2. Start DB accordingly.

@BanzaiMan thanks for the fast reply !

Indeed this is it. What threw me off is that the build for the same branch, was working properly on my fork :

Turns out I am still running on Trusty, for some reason my fork was not yet migrated.

I’ll adapt our travis.yml file accordingly.

Many thanks for your help !
Damien

Imprint