Page MenuHomePhabricator

CRM Jenkins build failing
Closed, ResolvedPublic1 Estimated Story Points

Description

the jenkins crm build seems to have started failing today, the last builds on these two patch sets show the error (while earlier builds pass): https://gerrit.wikimedia.org/r/#/c/217990/ and https://gerrit.wikimedia.org/r/#/c/218579/

The most obvious problem appears to be the mysql connect string getting a socket of /dev/null

Event Timeline

cwdent raised the priority of this task from to Needs Triage.
cwdent updated the task description. (Show Details)
cwdent added subscribers: hashar, awight, Krinkle, thcipriani.
hashar triaged this task as Unbreak Now! priority.
hashar set Security to None.
hashar updated the task description. (Show Details)

The job runs on the Trusty CI slaves and php is actually HHVM. I have upgraded HHVM yesterday from 3.3.x to 3.6.x (T102616) and our HHVM build does not support MySQL connection over a socket.

The PHP mysql function would attempt to connect over a socket when the hostname is localhost. The workaround is to point it to 127.0.0.1, potentially with the MySQL port as well (3306).

Related patches:
https://gerrit.wikimedia.org/r/#/c/218625/1/bin/mw-set-env.sh,unified (localhost -> 127.0.0.1)
https://gerrit.wikimedia.org/r/#/c/218624/1/bin/mw-install-mysql.sh,unified (add :3306 to $wgDBserver)

Taking the task, will figure out how to change the DB server if I can :-)

Change 218853 had a related patch set uploaded (by Hashar):
ci-settings: point MySQL db to 127.0.0.1

https://gerrit.wikimedia.org/r/218853

https://gerrit.wikimedia.org/r/218853 switch to TCP connection. Sorry, should have noticed it and do a grep 'localhost' on CI configuration files :/

hashar moved this task from Backlog to AWight brooding on on the Fundraising-Backlog-Old board.
hashar edited a custom field.

Change 218853 merged by jenkins-bot:
ci-settings: point MySQL db to 127.0.0.1

https://gerrit.wikimedia.org/r/218853

cwdent subscribed.

just ran the build and confirmed working, thanks again for the quick resolution!