Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Docker image に失敗する #13268

Closed
1 task
kakkokari-gtyih opened this issue Feb 12, 2024 · 22 comments · Fixed by #13325
Closed
1 task

Publish Docker image に失敗する #13268

kakkokari-gtyih opened this issue Feb 12, 2024 · 22 comments · Fixed by #13325
Labels

Comments

@kakkokari-gtyih
Copy link
Contributor

kakkokari-gtyih commented Feb 12, 2024

💡 Summary

Update deps (7fc1d77) 後から、 Publish Docker imageのCheckが落ちているので多分何かやらかしている

🥰 Expected Behavior

通る

🤬 Actual Behavior

通らない

📝 Steps to Reproduce

N/A

💻 Frontend Environment

N/A

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service:
* Misskey:
* Node:
* PostgreSQL:
* Redis:
* OS and Architecture:

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request
@kakkokari-gtyih kakkokari-gtyih added the ⚠️bug? This might be a bug label Feb 12, 2024
@kakkokari-gtyih
Copy link
Contributor Author

強火

@anatawa12
Copy link
Member

https://github.com/misskey-dev/misskey/actions/runs/7866659964

System.IO.IOException: No space left on device : '/home/runner/runners/2.312.0/_diag/Worker_20240212-024054-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite()
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at GitHub.Runner.Common.HostTraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id)
   at GitHub.Runner.Common.HostTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
   at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String message)
   at GitHub.Runner.Worker.Worker.RunAsync(String pipeIn, String pipeOut)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)
System.IO.IOException: No space left on device : '/home/runner/runners/2.312.0/_diag/Worker_20240212-024054-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite()
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at GitHub.Runner.Common.HostTraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id)
   at GitHub.Runner.Common.HostTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
   at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String message)
   at GitHub.Runner.Common.Tracing.Error(Exception exception)
   at GitHub.Runner.Worker.Program.MainAsync(IHostContext context, String[] args)
Unhandled exception. System.IO.IOException: No space left on device : '/home/runner/runners/2.312.0/_diag/Worker_20240212-024054-utc.log'
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.Strategies.BufferedFileStreamStrategy.FlushWrite()
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.Diagnostics.TextWriterTraceListener.Flush()
   at System.Diagnostics.TraceSource.Flush()
   at GitHub.Runner.Common.TraceManager.Dispose(Boolean disposing)
   at GitHub.Runner.Common.TraceManager.Dispose()
   at GitHub.Runner.Common.HostContext.Dispose(Boolean disposing)
   at GitHub.Runner.Common.HostContext.Dispose()
   at GitHub.Runner.Worker.Program.Main(String[] args)

なんかシンプルにログが長すぎるとかにも見える

@anatawa12
Copy link
Member

actions/runner#1807 多分類似issue

@kakkokari-gtyih
Copy link
Contributor Author

@kakkokari-gtyih
Copy link
Contributor Author

ファイル数が多すぎて死んでいるらしい(どうすればいいんだ

@anatawa12
Copy link
Member

You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 95 MB

95Mって 150Gからしたら結構小さい気がするけどでもinodeなのかな

@kakkokari-gtyih
Copy link
Contributor Author

kakkokari-gtyih commented Feb 12, 2024

そもそもそんな容量食う作業なのかしら(そうじゃないなら何かがおかしいはず)

@anatawa12
Copy link
Member

platforms: linux/amd64,linux/arm64

platforms: ${{ steps.buildx.outputs.platforms }}

いまarm64とx64を同時にビルドしてるけど、これを別途やるだけでも当面は解決しそう。

@tamaina
Copy link
Contributor

tamaina commented Feb 12, 2024

@tamaina
Copy link
Contributor

tamaina commented Feb 12, 2024

あっそもそもmatrixじゃない?

@anatawa12
Copy link
Member

matrixではないですね。jobが別れてたらfs共有されないです。

@tamaina
Copy link
Contributor

tamaina commented Feb 12, 2024

#9927 (comment) はぁ

@tamaina
Copy link
Contributor

tamaina commented Feb 12, 2024

つまり #13269 をマージしたら同じ問題が起きるのか?

@anatawa12
Copy link
Member

そういう実装なのか...だとすると #13269 マージするとダメそうですね

@tamaina
Copy link
Contributor

tamaina commented Feb 12, 2024

@anatawa12
Copy link
Member

https://docs.docker.com/build/ci/github-actions/multi-platform/
docker/docs#19339

docker/build-push-action#1051

@anatawa12
Copy link
Member

https://docs.docker.com/build/ci/github-actions/multi-platform/#distribute-build-across-multiple-runners
にあるようにマージするstepを追加すればいいらしい?

@anatawa12
Copy link
Member

別のプロジェクトに忙しいのでそこまで複雑な変更はできるヒマがないので修正はどなたかやっていただきたいです

@kakkokari-gtyih
Copy link
Contributor Author

kakkokari-gtyih commented Feb 16, 2024

容量足りないのなら応急処置としてこれが使える可能性がある?

https://zenn.dev/pinto0309/scraps/c6413eb15a1b2a

@kakkokari-gtyih
Copy link
Contributor Author

まだダメっぽいので一応あけておく

@tamaina
Copy link
Contributor

tamaina commented Feb 16, 2024

なおった

@tamaina tamaina closed this as completed Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
3 participants