jenkins - git clone gets hung and gets timedout -


i use bitbucket(git) server , git clone randomly getting hung. same repo gets cloned , hung unexpectedly , gets timed out. server memory, cpu utilization, disk space fine. please advise other areas needs attention find root cause.this happening on 5 different jenkins slave not restricted single server.

following error log:

error: error cloning remote repo 'origin' hudson.plugins.git.gitexception: command "/usr/bin/git -c core.askpass=true fetch --tags --progress http://bitbucket.net/project.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout:  stderr: remote: counting objects: 2506, done.    stdout:  stderr: remote: counting objects: 2506, done.         remote: compressing objects:   0% (1/2405)            remote: compressing objects:   1% (25/2405)            remote: compressing objects:   2% (49/2405)            remote: compressing objects:   3% (73/2405)            remote: compressing objects:   4% (97/2405)            remote: compressing objects:   5% (121/2405)            remote: compressing objects:   6% (145/2405)            remote: compressing objects:   7% (169/2405)            remote: compressing objects:   8% (193/2405)            remote: compressing objects:   9% (217/2405)            remote: compressing objects:  10% (241/2405)            remote: compressing objects:  11% (265/2405)            remote: compressing objects:  12% (289/2405)            remote: compressing objects:  13% (313/2405)            remote: compressing objects:  14% (337/2405)            remote: compressing objects:  15% (361/2405)            remote: compressing objects:  16% (385/2405)            remote: compressing objects:  17% (409/2405)            remote: compressing objects:  18% (433/2405)            remote: compressing objects:  19% (457/2405)            remote: compressing objects:  20% (481/2405)            remote: compressing objects:  21% (506/2405)            remote: compressing objects:  22% (530/2405)            remote: compressing objects:  23% (554/2405)            remote: compressing objects:  24% (578/2405)            remote: compressing objects:  25% (602/2405)            remote: compressing objects:  26% (626/2405)            remote: compressing objects:  27% (650/2405)            remote: compressing objects:  28% (674/2405)            remote: compressing objects:  29% (698/2405)            remote: compressing objects:  30% (722/2405)            remote: compressing objects:  31% (746/2405)            remote: compressing objects:  32% (770/2405)            remote: compressing objects:  33% (794/2405)            remote: compressing objects:  34% (818/2405)            remote: compressing objects:  35% (842/2405)            remote: compressing objects:  36% (866/2405)            remote: compressing objects:  37% (890/2405)            remote: compressing objects:  38% (914/2405)            remote: compressing objects:  39% (938/2405)            remote: compressing objects:  40% (962/2405)            remote: compressing objects:  41% (987/2405)            remote: compressing objects:  42% (1011/2405)            remote: compressing objects:  43% (1035/2405)            remote: compressing objects:  44% (1059/2405)            remote: compressing objects:  45% (1083/2405)            remote: compressing objects:  46% (1107/2405)            remote: compressing objects:  47% (1131/2405)            remote: compressing objects:  48% (1155/2405)            remote: compressing objects:  49% (1179/2405)            remote: compressing objects:  50% (1203/2405)            remote: compressing objects:  51% (1227/2405)            remote: compressing objects:  52% (1251/2405)            remote: compressing objects:  53% (1275/2405)            remote: compressing objects:  54% (1299/2405)            remote: compressing objects:  55% (1323/2405)            remote: compressing objects:  56% (1347/2405)            remote: compressing objects:  57% (1371/2405)            remote: compressing objects:  58% (1395/2405)            remote: compressing objects:  59% (1419/2405)            remote: compressing objects:  60% (1443/2405)            remote: compressing objects:  61% (1468/2405)            remote: compressing objects:  62% (1492/2405)            remote: compressing objects:  63% (1516/2405)            remote: compressing objects:  64% (1540/2405)            remote: compressing objects:  65% (1564/2405)            remote: compressing objects:  66% (1588/2405)            remote: compressing objects:  67% (1612/2405)            remote: compressing objects:  68% (1636/2405)            remote: compressing objects:  69% (1660/2405)            remote: compressing objects:  70% (1684/2405)            remote: compressing objects:  71% (1708/2405)            remote: compressing objects:  72% (1732/2405)            remote: compressing objects:  73% (1756/2405)            remote: compressing objects:  74% (1780/2405)            remote: compressing objects:  75% (1804/2405)            remote: compressing objects:  76% (1828/2405)            remote: compressing objects:  77% (1852/2405)            remote: compressing objects:  78% (1876/2405)            remote: compressing objects:  79% (1900/2405)            remote: compressing objects:  80% (1924/2405)            remote: compressing objects:  81% (1949/2405)            remote: compressing objects:  82% (1973/2405)            remote: compressing objects:  83% (1997/2405)            remote: compressing objects:  84% (2021/2405)            remote: compressing objects:  85% (2045/2405)            remote: compressing objects:  86% (2069/2405)            remote: compressing objects:  87% (2093/2405)            remote: compressing objects:  88% (2117/2405)            remote: compressing objects:  89% (2141/2405)            remote: compressing objects:  90% (2165/2405)            remote: compressing objects:  91% (2189/2405)            remote: compressing objects:  92% (2213/2405)            remote: compressing objects:  93% (2237/2405)            remote: compressing objects:  94% (2261/2405)            remote: compressing objects:  94% (2278/2405)            remote: compressing objects:  95% (2285/2405)            remote: compressing objects:  96% (2309/2405)            remote: compressing objects:  97% (2333/2405)            remote: compressing objects:  98% (2357/2405)            remote: compressing objects:  99% (2381/2405)            remote: compressing objects: 100% (2405/2405)            remote: compressing objects: 100% (2405/2405), done.         receiving objects:   0% (1/2506)    receiving objects:   1% (26/2506)    receiving objects:   2% (51/2506)    receiving objects:   3% (76/2506)    receiving objects:   4% (101/2506)    receiving objects:   5% (126/2506)    receiving objects:   6% (151/2506)    receiving objects:   7% (176/2506)    receiving objects:   8% (201/2506)    receiving objects:   9% (226/2506)    receiving objects:  10% (251/2506)    receiving objects:  11% (276/2506)    receiving objects:  12% (301/2506)    receiving objects:  13% (326/2506)    receiving objects:  14% (351/2506)    receiving objects:  15% (376/2506)    receiving objects:  16% (401/2506)    receiving objects:  17% (427/2506)    receiving objects:  18% (452/2506)    receiving objects:  19% (477/2506)    receiving objects:  20% (502/2506)    receiving objects:  21% (527/2506)    receiving objects:  22% (552/2506)    receiving objects:  23% (577/2506)    receiving objects:  24% (602/2506)    receiving objects:  25% (627/2506)    receiving objects:  26% (652/2506)    receiving objects:  27% (677/2506)    receiving objects:  28% (702/2506)    receiving objects:  29% (727/2506)    receiving objects:  30% (752/2506)    receiving objects:  31% (777/2506)    receiving objects:  32% (802/2506)    receiving objects:  33% (827/2506)    receiving objects:  34% (853/2506)    receiving objects:  35% (878/2506)    receiving objects:  36% (903/2506)    receiving objects:  37% (928/2506)    receiving objects:  38% (953/2506)    receiving objects:  39% (978/2506)    receiving objects:  40% (1003/2506)    receiving objects:  41% (1028/2506)    receiving objects:  42% (1053/2506)    receiving objects:  43% (1078/2506)    receiving objects:  44% (1103/2506)    receiving objects:  45% (1128/2506)    receiving objects:  46% (1153/2506)    receiving objects:  47% (1178/2506)    receiving objects:  48% (1203/2506)    receiving objects:  49% (1228/2506)    receiving objects:  50% (1253/2506)    receiving objects:  51% (1279/2506)    receiving objects:  52% (1304/2506)    receiving objects:  53% (1329/2506)    receiving objects:  54% (1354/2506)    receiving objects:  55% (1379/2506)    receiving objects:  56% (1404/2506)    receiving objects:  57% (1429/2506)    receiving objects:  58% (1454/2506)    receiving objects:  59% (1479/2506)    receiving objects:  60% (1504/2506)    receiving objects:  61% (1529/2506)    receiving objects:  62% (1554/2506)    receiving objects:  63% (1579/2506)    receiving objects:  64% (1604/2506)    receiving objects:  65% (1629/2506)    receiving objects:  66% (1654/2506)    receiving objects:  67% (1680/2506)    receiving objects:  68% (1705/2506)    receiving objects:  69% (1730/2506)    receiving objects:  70% (1755/2506)    receiving objects:  71% (1780/2506)    receiving objects:  72% (1805/2506)    receiving objects:  73% (1830/2506)    receiving objects:  74% (1855/2506)    receiving objects:  75% (1880/2506), 188.00 kib | 367.00 kib/s    receiving objects:  76% (1905/2506), 188.00 kib | 367.00 kib/s    receiving objects:  77% (1930/2506), 188.00 kib | 367.00 kib/s    receiving objects:  78% (1955/2506), 188.00 kib | 367.00 kib/s    receiving objects:  78% (1958/2506), 412.00 kib | 406.00 kib/s    receiving objects:  79% (1980/2506), 412.00 kib | 406.00 kib/s    receiving objects:  80% (2005/2506), 652.00 kib | 429.00 kib/s    receiving objects:  81% (2030/2506), 652.00 kib | 429.00 kib/s    receiving objects:  82% (2055/2506), 652.00 kib | 429.00 kib/s    receiving objects:  83% (2080/2506), 652.00 kib | 429.00 kib/s    receiving objects:  84% (2106/2506), 652.00 kib | 429.00 kib/s    receiving objects:  85% (2131/2506), 652.00 kib | 429.00 kib/s    receiving objects:  86% (2156/2506), 652.00 kib | 429.00 kib/s    receiving objects:  86% (2170/2506), 964.00 kib | 468.00 kib/s    receiving objects:  87% (2181/2506), 964.00 kib | 468.00 kib/s    receiving objects:  88% (2206/2506), 964.00 kib | 468.00 kib/s    receiving objects:  89% (2231/2506), 964.00 kib | 468.00 kib/s    receiving objects:  90% (2256/2506), 964.00 kib | 468.00 kib/s    receiving objects:  90% (2266/2506), 1.32 mib | 416.00 kib/s    receiving objects:  91% (2281/2506), 1.32 mib | 416.00 kib/s    receiving objects:  92% (2306/2506), 1.32 mib | 416.00 kib/s    receiving objects:  92% (2312/2506), 1.54 mib | 411.00 kib/s    receiving objects:  92% (2319/2506), 1.71 mib | 347.00 kib/s    receiving objects:  93% (2331/2506), 1.77 mib | 306.00 kib/s    receiving objects:  93% (2333/2506), 1.77 mib | 306.00 kib/s    receiving objects:  93% (2341/2506), 1.82 mib | 222.00 kib/s    receiving objects:  93% (2344/2506), 1.88 mib | 112.00 kib/s    receiving objects:  93% (2345/2506), 1.90 mib | 97.00 kib/s    receiving objects:  93% (2348/2506), 1.93 mib | 65.00 kib/s    receiving objects:  94% (2356/2506), 1.93 mib | 65.00 kib/s    receiving objects:  94% (2371/2506), 1.98 mib | 46.00 kib/s    receiving objects:  94% (2371/2506), 2.01 mib | 34.00 kib/s    receiving objects:  94% (2372/2506), 2.01 mib | 34.00 kib/s    receiving objects:  94% (2372/2506), 2.04 mib | 29.00 kib/s    receiving objects:  94% (2373/2506), 2.05 mib | 28.00 kib/s    receiving objects:  94% (2375/2506), 2.07 mib | 22.00 kib/s    receiving objects:  94% (2376/2506), 2.09 mib | 21.00 kib/s    receiving objects:  95% (2381/2506), 2.11 mib | 19.00 kib/s    error: index-pack died of signal 15 fatal: index-pack failed  

i suggest set git clone timeout value upto logger value, default 10 minutes. cause error if git repo big enough or networking not good.

here how change default git clone timeout value:

source code management --> git --> add--> additional behaviours -->  advanced clone behaviors --> timeout (in minutes) clone , fetch operations 

you can set 60 mins example.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -