今天 Gitlab 上 CI 一片飘红,所有 Android 的项目全部编译失败
FAILURE: Build failed with an exception.
* What went wrong:
Could not connect to the Gradle daemon.
Daemon uid:
Daemon pid:
log file: /home/gitlab_ci_multi_runner/.gradle/daemon/2.14.1/daemon-9343.out.log
----- Last 20 lines from daemon log file - daemon-9343.out.log -----
17:03:47.542 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Adding IP addresses for network interface p3p1
17:03:47.543 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddressFactory] Is this a loopback interface? false
----- End of the daemon log -----
各种尝试解决错误不提
最后自己看 log 发现似乎跟 loop back 接口有关,ifconfig 一看果然没有了 lo,但是有一个 docker 的接口。回想起来,很久以前 gitlab-runner 是通过 docker 安装的,虽然后来不用了,docker 也一直保留着了。可能是某次更新后把 lo 搞没了吧。卸载docker 重启后正常。