Fastlane 在 5 秒后无法从 FastlaneRunner 二进制文件接收连接
Fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds
在我们的 CI 度过了艰难的一天之后,当我们终于恢复在线时 fastlane
立即开始失败构建并显示消息:
fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds
由于 COVID-19,我们都是 WFH,因此理想情况下不想关闭构建从站,以防我们无法将其重新联机。
我们怎样才能让我们的构建再次工作?
This issue 告诉我 Fastlane 可能在其他地方 运行。然后我发现slave上确实有一些陈旧的Fastlane进程:
$ ps -A | grep -i fastlane
30090 ?? 0:11.04 ruby /Users/<redacted>/.rvm/gems/ruby-2.6.0/bin/fastlane test --verbose
30154 ttys000 0:00.01 sh -c set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace ./<redacted>.xcworkspace -scheme <redacted>_iOS\ Prod -destination 'platform=iOS Simulator,id=52D9686C-79BB-4D98-8A05-FDF3FB659BA5' -derivedDataPath '/Users/<redacted>/Library/Developer/Xcode/DerivedData/<redacted>-cftrijcalkbyledyzrsthsbefqmz' build test | tee '/Users/<redacted>/Library/Logs/scan/<redacted>_iOS-<redacted>_iOS Prod.log' | xcpretty --report html --output '/Users/<redacted>/bamboo-agent-home/xml-data/build-dir/<redacted>/fastlane/test_output/report.html' --report junit --output '/Users/<redacted>/bamboo-agent-home/xml-data/build-dir/<redacted>/fastlane/test_output/report.junit' --report junit --output '/var/folders/0m/v5x0gd316qn4msj39z81_yym0000gp/T/junit_report20200319-30090-b9dtoq'
30157 ttys000 0:05.37 /Users/<redacted>/.rvm/rubies/ruby-2.6.0/bin/ruby /Users/<redacted>/.rvm/gems/ruby-2.6.0/bin/xcpretty --report html --output /Users/<redacted>/bamboo-agent-home/xml-data/build-dir/<redacted>/fastlane/test_output/report.html --report junit --output /Users/<redacted>/bamboo-agent-home/xml-data/build-dir/<redacted>/fastlane/test_output/report.junit --report junit --output /var/folders/0m/v5x0gd316qn4msj39z81_yym0000gp/T/junit_report20200319-30090-b9dtoq
65854 ttys001 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn -i fastlane
65139 ttys002 0:00.00 sh -c ./fastlane/FastlaneRunner lane test logMode verbose swiftServerPort 2000 > /dev/null
65140 ttys002 0:00.10 ./fastlane/FastlaneRunner lane test logMode verbose swiftServerPort 2000
65507 ttys002 0:00.00 sh -c ./fastlane/FastlaneRunner lane test logMode verbose swiftServerPort 2000 > /dev/null
65508 ttys002 0:00.06 ./fastlane/FastlaneRunner lane test logMode verbose swiftServerPort 2000
然后我kill -9
编辑了所有进程,例如
kill -9 30154
之后,CI开始正常构建!
在我们的 CI 度过了艰难的一天之后,当我们终于恢复在线时 fastlane
立即开始失败构建并显示消息:
fastlane failed to receive a connection from the FastlaneRunner binary after 5 seconds
由于 COVID-19,我们都是 WFH,因此理想情况下不想关闭构建从站,以防我们无法将其重新联机。
我们怎样才能让我们的构建再次工作?
This issue 告诉我 Fastlane 可能在其他地方 运行。然后我发现slave上确实有一些陈旧的Fastlane进程:
$ ps -A | grep -i fastlane
30090 ?? 0:11.04 ruby /Users/<redacted>/.rvm/gems/ruby-2.6.0/bin/fastlane test --verbose
30154 ttys000 0:00.01 sh -c set -o pipefail && env NSUnbufferedIO=YES xcodebuild -workspace ./<redacted>.xcworkspace -scheme <redacted>_iOS\ Prod -destination 'platform=iOS Simulator,id=52D9686C-79BB-4D98-8A05-FDF3FB659BA5' -derivedDataPath '/Users/<redacted>/Library/Developer/Xcode/DerivedData/<redacted>-cftrijcalkbyledyzrsthsbefqmz' build test | tee '/Users/<redacted>/Library/Logs/scan/<redacted>_iOS-<redacted>_iOS Prod.log' | xcpretty --report html --output '/Users/<redacted>/bamboo-agent-home/xml-data/build-dir/<redacted>/fastlane/test_output/report.html' --report junit --output '/Users/<redacted>/bamboo-agent-home/xml-data/build-dir/<redacted>/fastlane/test_output/report.junit' --report junit --output '/var/folders/0m/v5x0gd316qn4msj39z81_yym0000gp/T/junit_report20200319-30090-b9dtoq'
30157 ttys000 0:05.37 /Users/<redacted>/.rvm/rubies/ruby-2.6.0/bin/ruby /Users/<redacted>/.rvm/gems/ruby-2.6.0/bin/xcpretty --report html --output /Users/<redacted>/bamboo-agent-home/xml-data/build-dir/<redacted>/fastlane/test_output/report.html --report junit --output /Users/<redacted>/bamboo-agent-home/xml-data/build-dir/<redacted>/fastlane/test_output/report.junit --report junit --output /var/folders/0m/v5x0gd316qn4msj39z81_yym0000gp/T/junit_report20200319-30090-b9dtoq
65854 ttys001 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn -i fastlane
65139 ttys002 0:00.00 sh -c ./fastlane/FastlaneRunner lane test logMode verbose swiftServerPort 2000 > /dev/null
65140 ttys002 0:00.10 ./fastlane/FastlaneRunner lane test logMode verbose swiftServerPort 2000
65507 ttys002 0:00.00 sh -c ./fastlane/FastlaneRunner lane test logMode verbose swiftServerPort 2000 > /dev/null
65508 ttys002 0:00.06 ./fastlane/FastlaneRunner lane test logMode verbose swiftServerPort 2000
然后我kill -9
编辑了所有进程,例如
kill -9 30154
之后,CI开始正常构建!