{"id":335,"date":"2022-08-29T16:40:31","date_gmt":"2022-08-29T08:40:31","guid":{"rendered":"https:\/\/43.143.33.33:8080\/?p=335"},"modified":"2023-07-27T13:27:53","modified_gmt":"2023-07-27T05:27:53","slug":"gitlab-ci-cd%e8%84%91%e7%98%ab%e9%97%ae%e9%a2%98too-large-archive","status":"publish","type":"post","link":"https:\/\/ext4.cn\/?p=335","title":{"rendered":"gitlab CI\/CD\u8111\u762b\u95ee\u9898\u2018too large archive\u2019"},"content":{"rendered":"\n<ol>\n<li>\u5728\u4f7f\u7528gitlab-ci\u7f16\u8bd1Android\u9879\u76ee\u65f6\uff0c\u51fa\u73b0\u4ee5\u4e0b\u95ee\u9898<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/ext4.cn\/wp-content\/uploads\/2022\/08\/image-45-1024x479.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"479\" data-original=\"https:\/\/ext4.cn\/wp-content\/uploads\/2022\/08\/image-45-1024x479.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-336\"  sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<ul>\n<li>\u5927\u6982\u662f\u8bf4\u63d0\u4ea4\u4f53\u79ef\u8fc7\u5927\u5f15\u53d1\u63a5\u53d7\u7aef 413 \u9519\u8bef\uff0c\u53ef\u662f\u8fd9\u662f\u600e\u4e48\u56de\u4e8b\u5462\uff1f\u4e8e\u662f\u6211\u4f7f\u7528 <code>ERROR: Uploading artifacts to coordinator... too large archive<\/code> \u641c\u7d22\u4e86 <code>BING cn<\/code>, <code>Google<\/code>, <code>BaiDu<\/code>, \u6700\u7ec8\u6709\u4e24\u79cd\u65b9\u6848\uff1a<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">In your gitlab, go to Settings &gt; Continuous Integration and Deployment &gt; Maximum artifacts size (MB) and set it to the desired value. The default is 100MB. <\/code><\/pre>\n\n\n\n<p>   2. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">In the gitlab.rb file, mine at \/etc\/gitlab\/gitlab.rb, set or uncomment the following line.\nnginx['client_max_body_size'] = '250m' <\/code><\/pre>\n\n\n\n<ul>\n<li>\u5c1d\u8bd5\u540e\u90fd\u65e0\u6548\u3002\u3002\u3002\u3002<\/li>\n<\/ul>\n\n\n\n<p>  3. \u7136\u540e\u60f3\u8d77\u6765\uff0c\u6211\u7684gitlab\u4f7f\u7528\u7684\u662f\u5916\u90e8nginx\u53cd\u5411\u4ee3\u7406<\/p>\n\n\n\n<ul>\n<li>nginx\u914d\u7f6e\u6587\u4ef6\u52a0\u5165<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"nginx\" class=\"language-nginx\">server {\n  listen 443 ssl;\n  server_name xxx.xxx.xyz;\n  ssl_certificate \/usr\/local\/openresty\/nginx\/xxx.xxx.xyz_nginx\/xxx.xxx.xyz_bundle.crt;\n  ssl_certificate_key \/usr\/local\/openresty\/nginx\/xxx.xxx.xyz_nginx\/xxx.xxx.xyz.key;\n  proxy_set_header Host $http_host;\n  client_max_body_size 0;\nlocation \/ {\n    proxy_pass https:\/\/127.0.0.1:4433;\n  }\n}<\/code><\/pre>\n\n\n\n<ul>\n<li>\u6ce8\u610f\uff01\uff01\uff01<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">  # client_max_body_size \u7528\u6765\u4fee\u6539\u5141\u8bb8\u5ba2\u6237\u7aef\u4e0a\u4f20\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u9ed8\u8ba4\u4e3a1m\uff0c\u5982\u679c\u8bbe\u7f6e\u4e3a0\uff0c\u8868\u793a\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\u4e0d\u53d7\u9650\u5236\u3002\n  # \u53ef\u4ee5\u5728\u4ee5\u4e0b\u6a21\u5757\u8bbe\u7f6e: http, server, location \n  client_max_body_size 10m;<\/code><\/pre>\n\n\n\n<ul>\n<li>\u91cd\u542fnginx<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nginx -t\nnginx -s reload<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/ext4.cn\/wp-content\/uploads\/2022\/08\/image-46-1024x498.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"498\" data-original=\"https:\/\/ext4.cn\/wp-content\/uploads\/2022\/08\/image-46-1024x498.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-338\"  sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>2. 3. \u7136\u540e\u60f3\u8d77\u6765\uff0c\u6211\u7684gitlab\u4f7f\u7528\u7684\u662f\u5916\u90e8nginx\u53cd\u5411\u4ee3\u7406<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[39],"_links":{"self":[{"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/posts\/335"}],"collection":[{"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ext4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=335"}],"version-history":[{"count":1,"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":1278,"href":"https:\/\/ext4.cn\/index.php?rest_route=\/wp\/v2\/posts\/335\/revisions\/1278"}],"wp:attachment":[{"href":"https:\/\/ext4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ext4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ext4.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}