1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Travis CIでMySQLに接続できなくなった

Posted at

古いリポジトリのテストを久しぶりにTravis CI上で走らせたら、次のようなエラーが出た。

Incorrect MySQL client library version! This gem was compiled for 5.5.41 but the client library is 5.6.24.

2015/4/9前後にTravis CI上のMySQLのバージョンが5.5系から5.6系に上がったのだけれども、今回はbundle installした結果をキャッシュするようにしていたために5.5系のライブラリとリンクしたmysql2 gemを使って5.6系と接続しようとしていたことが原因だった。

キャッシュはTravis CI上のリポジトリごとの画面で削除できるので、そこから削除したのち再実行したら上記のエラーは出なくなった。

image

ちなみに時々MySQLサーバが起動せず接続に失敗することがあって、そのときは再実行したら普通に走った。
https://twitter.com/travisci/status/588012083083665409

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?