... | ... |
@@ -214,9 +214,53 @@ or rerun setup.sh on command line. |
214 | 214 |
|
215 | 215 |
### I can't push large repository by http protocol |
216 | 216 |
|
217 |
-Maybe http.postBuffer value of git config is small. Input the following command to increase this size. |
|
217 |
+There are some reasons. |
|
218 | 218 |
|
219 |
- git config http.postBuffer 104857600 |
|
219 |
+** 1. Git version is old ** |
|
220 |
+ |
|
221 |
+If you see "error: RPC failed; result=56, HTTP code = 200" , your git maybe old. |
|
222 |
+Please upgrade to latest git. I checked git version 1.8.5.5. |
|
223 |
+ |
|
224 |
+**2. GitPrep restriction** |
|
225 |
+ |
|
226 |
+GitPrep restrict max post message size 10MB(This is default of Mojolicious) |
|
227 |
+ |
|
228 |
+You maybe see the following error |
|
229 |
+ |
|
230 |
+ Delta compression using up to 4 threads. |
|
231 |
+ Compressing objects: 100% (17830/17830), done. |
|
232 |
+ Writing objects: 100% (18281/18281), 687.05 MiB | 129.92 MiB/s, done. |
|
233 |
+ Total 18281 (delta 295), reused 18281 (delta 295) |
|
234 |
+ error: RPC failed; result=22, HTTP code = 413 |
|
235 |
+ fatal: The remote end hung up unexpectedly |
|
236 |
+ fatal: The remote end hung up unexpectedly |
|
237 |
+ |
|
238 |
+Please increase increase the value of MOJO_MAX_MESSAGE_SIZE |
|
239 |
+ |
|
240 |
+ # 1GB |
|
241 |
+ export MOJO_MAX_MESSAGE_SIZE=1024000000 |
|
242 |
+ |
|
243 |
+**3. git restriction** |
|
244 |
+ |
|
245 |
+git restrict post max size via http protocol. |
|
246 |
+http.postBuffer value of git config is maybe small. |
|
247 |
+ |
|
248 |
+You maybe see the following error message. |
|
249 |
+ |
|
250 |
+ error: RPC failed; result=56, HTTP code = 200 |
|
251 |
+ fatal: The remote end hung up unexpectedly |
|
252 |
+ Counting objects: 18281, done. |
|
253 |
+ Delta compression using up to 4 threads. |
|
254 |
+ Compressing objects: 100% (17830/17830), done. |
|
255 |
+ Writing objects: 100% (18281/18281), 687.05 MiB | 133.23 MiB/s, done. |
|
256 |
+ Total 18281 (delta 295), reused 18281 (delta 295) |
|
257 |
+ fatal: The remote end hung up unexpectedly |
|
258 |
+ Everything up-to-date |
|
259 |
+ |
|
260 |
+Please increase the value of http.postBuffer. |
|
261 |
+ |
|
262 |
+ # 1GB |
|
263 |
+ git config http.postBuffer 1024000000 |
|
220 | 264 |
|
221 | 265 |
## Web Site |
222 | 266 |
|
... | ... |
@@ -550,9 +550,9 @@ sub _create_rep { |
550 | 550 |
} |
551 | 551 |
} |
552 | 552 |
}; |
553 |
- if ($@) { |
|
553 |
+ if (my $e = $@) { |
|
554 | 554 |
rmtree $rep; |
555 |
- croak $@; |
|
555 |
+ croak $e; |
|
556 | 556 |
} |
557 | 557 |
} |
558 | 558 |
|