事象
100MB以上のファイルをGitLabにpushしようとすると、GitLab You are attempting to check in one or more blobs which exceed the 100.0MiB limit
というエラーが発生し、pushが行えないという事象がありました。
この事象はGitLab 17.10.0以上、17.10.3未満へアップグレードした場合に発生するようです。
解決策
GitLabサーバに接続し、以下を順に実行します。
gitlab-rails console
前者のコマンドを実行すると以下のようなコンソール出力がされます。
※出力されるまで、少し時間がかかります。
--------------------------------------------------------------------------------
Ruby: ruby 3.2.5 (2024-07-26 revision 31d0f1a2e7) [x86_64-linux]
GitLab: 17.10.1-ee (6313c41c880) EE
GitLab Shell: 14.41.0
PostgreSQL: 14.17
------------------------------------------------------------[ booted in 57.42s ]
WARNING: Active Record does not support composite primary key.
security_findings has composite primary key. Composite primary key is ignored.
Loading production environment (Rails 7.0.8.7)
irb(main):001:0>
これが表示されたら、以下を実行します。
※2048は仮の値です。必要に応じて変更してください。
Plan.default.actual_limits.update!(file_size_limit_mb: 2048)
これでpushができるようになりました。
参考リンク
以下を参考にしました。
https://forum.gitlab.com/t/limit-on-pushed-file-size-after-upgrading-to-17-10-0/123201/22