Automatic Issue Closing not working with customized expression
Summary
We have a selfhosted instance of gitlab running through docker. We have always found very useful the Automatic Close Issue feature of Gitlab, and we use it a lot in fact, or at least we use to do it, since it has stopped working for us.
I think the problem is related with the fact that we have changed the default clossing pattern to include the Finish keyword, I have tried reverting to the default one and it works again.
This is the line causing the issue, if I comment out this line from the GITLAB_OMNIBUS_CONFIG section in the docker-compose.yml file everything works as expected.
gitlab_rails['gitlab_issue_closing_pattern'] = "\b((?:[Cc]los(?:e[sd]?|ing)|\b[Ff]inish(?:e[sd]|ing)?|\b[Ff]ix(?:e[sd]|ing)?|\b[Rr]esolv(?:e[sd]?|ing)|\b[Ii]mplement(?:s|ed|ing)?)(:?) +(?:(?:issues? +)?%{issue_ref}(?:(?: *,? +and +| *,? *)?)|([A-Z][A-Z0-9_]+-\d+))+)"
I don't understand where the problem is, the regular expression is quite similar to the default one and it's working on Rubular. Is something wrong with my modified regular expression?
Steps to reproduce
Use the regular expression above as the pattern for closing issues.
Try closing one committing Finish #1
or Closing #1
The issue does not close
What is the current bug behavior?
A commit with the message Close #3
pushed onto the default repository branch does not close the issue #3
using the regular expression above. Using the default one works correctly
What is the expected correct behavior?
The customized regular expression works
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.6.5p114 Gem Version: 2.7.10 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.7 Git Version: 2.26.2 Sidekiq Version:5.2.7 Go Version: unknown GitLab information Version: 12.10.6 Revision: 833223f2a7f Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 11.7 URL: https://gitlab.domain.com HTTP Clone URL: https://gitlab.domain.com/some-group/some-project.git SSH Clone URL: git@gitlab.domain.com:some-group/some-project.git Using LDAP: yes Using Omniauth: no GitLab Shell Version: 12.2.0 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 12.2.0 ? ... OK (12.2.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... yes Init.d configured correctly? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 100 users of 100 limit.
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 223/2 ... yes 33/7 ... yes 33/8 ... yes 34/10 ... yes 30/11 ... yes 31/12 ... yes 31/13 ... yes 32/14 ... yes 34/16 ... yes 35/17 ... yes 37/21 ... yes 37/22 ... yes 37/23 ... yes 39/24 ... yes 305/25 ... yes 40/26 ... yes 305/27 ... yes 305/28 ... yes 305/29 ... yes 305/30 ... yes 305/31 ... yes 37/33 ... yes 44/36 ... yes 45/37 ... yes 44/38 ... yes 44/39 ... yes 45/40 ... yes 45/41 ... yes 48/42 ... yes 223/43 ... yes 57/44 ... yes 305/45 ... yes 96/46 ... yes 98/47 ... yes 57/50 ... yes 91/51 ... yes 93/52 ... yes 45/53 ... yes 106/54 ... yes 99/55 ... yes 97/56 ... yes 97/57 ... yes 97/58 ... yes 97/59 ... yes 102/60 ... yes 108/61 ... yes 108/63 ... yes 102/64 ... yes 103/65 ... yes 96/66 ... yes 96/67 ... yes 100/68 ... yes 104/69 ... yes 105/70 ... yes 110/72 ... yes 36/73 ... yes 111/74 ... yes 111/75 ... yes 111/76 ... yes 69/77 ... yes 113/78 ... yes 113/79 ... yes 114/80 ... yes 39/81 ... yes 118/82 ... yes 74/83 ... yes 74/85 ... yes 123/87 ... yes 35/88 ... yes 142/89 ... yes 131/90 ... yes 133/91 ... yes 48/92 ... yes 41/93 ... yes 48/94 ... yes 48/95 ... yes 142/96 ... yes 48/97 ... yes 108/98 ... yes 48/99 ... yes 48/100 ... yes 135/101 ... yes 136/102 ... yes 136/103 ... yes 118/104 ... yes 137/106 ... yes 137/107 ... yes 69/109 ... yes 140/111 ... yes 139/112 ... yes 114/114 ... yes 142/115 ... yes 68/116 ... yes 68/117 ... yes 68/118 ... yes 68/119 ... yes 68/120 ... yes 68/121 ... yes 68/122 ... yes 68/123 ... yes 69/124 ... yes 48/125 ... yes 68/126 ... yes 68/127 ... yes 69/128 ... yes 148/129 ... yes 35/130 ... yes 129/131 ... yes 150/132 ... yes 45/133 ... yes 253/134 ... yes 148/135 ... yes 69/136 ... yes 74/137 ... yes 151/138 ... yes 151/139 ... yes 68/140 ... yes 48/142 ... yes 155/143 ... yes 155/144 ... yes 155/145 ... yes 155/146 ... yes 48/147 ... yes 162/148 ... yes 162/149 ... yes 162/150 ... yes 162/151 ... yes 162/152 ... yes 48/153 ... yes 163/154 ... yes 163/155 ... yes 74/156 ... yes 166/157 ... yes 167/158 ... yes 167/159 ... yes 74/160 ... yes 77/161 ... yes 74/162 ... yes 169/163 ... yes 169/164 ... yes 171/165 ... yes 171/166 ... yes 74/167 ... yes 172/168 ... yes 48/169 ... yes 77/170 ... yes 173/171 ... yes 175/172 ... yes 178/173 ... yes 173/175 ... yes 48/176 ... yes 48/177 ... yes 48/178 ... yes 48/179 ... yes 74/180 ... yes 133/181 ... yes 133/182 ... yes 133/183 ... yes 48/184 ... yes 133/185 ... yes 181/186 ... yes 48/187 ... yes 48/188 ... yes 48/189 ... yes 108/190 ... yes 185/191 ... yes 74/192 ... yes 186/193 ... yes 75/194 ... yes 74/195 ... yes 169/196 ... yes 188/198 ... yes 137/199 ... yes 140/200 ... yes 73/201 ... yes 189/202 ... yes 186/203 ... yes 305/204 ... yes 74/205 ... yes 73/206 ... yes 45/207 ... yes 378/208 ... yes 129/209 ... yes 97/210 ... yes 199/211 ... yes 200/212 ... yes 201/213 ... yes 45/216 ... yes 224/218 ... yes 84/219 ... yes 209/226 ... yes 69/228 ... yes 68/229 ... yes 48/230 ... yes 188/231 ... yes 210/232 ... yes 199/234 ... yes 216/235 ... yes 216/236 ... yes 217/237 ... yes 218/238 ... yes 41/239 ... yes 41/240 ... yes 41/241 ... yes 73/242 ... yes 84/244 ... yes 14/245 ... yes 209/246 ... yes 209/247 ... yes 209/248 ... yes 209/249 ... yes 220/252 ... yes 221/253 ... yes 222/254 ... yes 222/255 ... yes 224/256 ... yes 209/258 ... yes 209/259 ... yes 209/260 ... yes 209/261 ... yes 209/262 ... yes 209/264 ... yes 226/265 ... yes 226/266 ... yes 48/267 ... yes 48/268 ... yes 221/269 ... yes 78/270 ... yes 68/271 ... yes 78/274 ... yes 78/275 ... yes 227/276 ... yes 78/277 ... yes 78/278 ... yes 78/279 ... yes 78/280 ... yes 78/281 ... yes 104/282 ... yes 209/284 ... yes 209/285 ... yes 209/286 ... yes 209/287 ... yes 209/290 ... yes 209/291 ... yes 75/292 ... yes 229/293 ... yes 104/294 ... yes 209/295 ... yes 209/296 ... yes 232/298 ... yes 209/299 ... yes 209/301 ... yes 209/302 ... yes 233/303 ... yes 74/305 ... yes 35/306 ... yes 74/307 ... yes 234/309 ... yes 233/310 ... yes 234/311 ... yes 75/312 ... yes 233/313 ... yes 118/314 ... yes 236/315 ... yes 240/316 ... yes 248/317 ... yes 240/318 ... yes 248/319 ... yes 236/320 ... yes 250/321 ... yes 251/323 ... yes 68/324 ... yes 68/325 ... yes 236/326 ... yes 48/327 ... yes 200/328 ... yes 257/329 ... yes 257/330 ... yes 257/331 ... yes 257/332 ... yes 252/334 ... yes 261/336 ... yes 69/337 ... yes 139/338 ... yes 200/340 ... yes 73/341 ... yes 186/342 ... yes 259/343 ... yes 262/344 ... yes 263/345 ... yes 251/346 ... yes 186/347 ... yes 57/348 ... yes 264/349 ... yes 199/350 ... yes 248/355 ... yes 248/356 ... yes 248/357 ... yes 68/359 ... yes 77/360 ... yes 263/361 ... yes 263/362 ... yes 216/363 ... yes 268/364 ... yes 269/365 ... yes 35/373 ... yes 271/374 ... yes 273/376 ... yes 273/377 ... yes 273/378 ... yes 273/379 ... yes 273/380 ... yes 273/381 ... yes 273/382 ... yes 75/383 ... yes 48/385 ... yes 263/386 ... yes 263/387 ... yes 274/388 ... yes 275/389 ... yes 224/390 ... yes 276/391 ... yes 263/392 ... yes 133/393 ... yes 277/395 ... yes 268/396 ... yes 278/397 ... yes 188/398 ... yes 275/399 ... yes 217/400 ... yes 57/401 ... yes 279/402 ... yes 338/403 ... yes 263/404 ... yes 201/405 ... yes 216/406 ... yes 238/407 ... yes 200/408 ... yes 199/409 ... yes 229/410 ... yes 284/411 ... yes 284/412 ... yes 284/413 ... yes 45/414 ... yes 284/416 ... yes 284/417 ... yes 284/418 ... yes 284/419 ... yes 284/420 ... yes 285/421 ... yes 285/422 ... yes 285/423 ... yes 285/424 ... yes 285/425 ... yes 285/426 ... yes 285/427 ... yes 285/428 ... yes 285/429 ... yes 285/430 ... yes 40/431 ... yes 285/432 ... yes 285/433 ... yes 289/435 ... yes 285/436 ... yes 188/437 ... yes 188/438 ... yes 188/439 ... yes 68/441 ... yes 290/443 ... yes 291/444 ... yes 292/445 ... yes 294/447 ... yes 295/448 ... yes 296/449 ... yes 268/450 ... yes 298/451 ... yes 298/452 ... yes 169/454 ... yes 123/455 ... yes 301/456 ... yes 101/457 ... yes 301/458 ... yes 302/459 ... yes 40/460 ... yes 303/461 ... yes 100/462 ... yes 304/463 ... yes 304/464 ... yes 304/465 ... yes 304/466 ... yes 304/467 ... yes 304/468 ... yes 304/469 ... yes 307/470 ... yes 307/471 ... yes 296/472 ... yes 296/473 ... yes 296/474 ... yes 308/475 ... yes 310/476 ... yes 310/477 ... yes 275/478 ... yes 310/479 ... yes 311/481 ... yes 309/482 ... yes 309/483 ... yes 312/484 ... yes 312/485 ... yes 312/486 ... yes 155/487 ... yes 315/495 ... yes 301/496 ... yes 45/497 ... yes 162/498 ... yes 303/499 ... yes 118/500 ... yes 118/501 ... yes 220/502 ... yes 57/503 ... yes 57/504 ... yes 169/506 ... yes 303/507 ... yes 189/508 ... yes 68/509 ... yes 222/511 ... yes 376/512 ... yes 45/513 ... yes 430/514 ... yes 258/515 ... yes 258/516 ... yes 376/517 ... yes 376/518 ... yes 376/519 ... yes 70/521 ... yes 70/524 ... yes 139/525 ... yes 317/526 ... yes 317/527 ... yes 229/528 ... yes 317/529 ... yes 321/530 ... yes 41/531 ... yes 427/532 ... yes 70/533 ... yes 45/534 ... yes 57/535 ... yes 268/536 ... yes 317/537 ... yes 322/538 ... yes 325/539 ... yes 376/540 ... yes 133/541 ... yes 309/542 ... yes 301/543 ... yes 326/544 ... yes 315/545 ... yes 75/547 ... yes 234/548 ... yes 48/550 ... yes 275/551 ... yes 327/552 ... yes 302/554 ... yes 328/556 ... yes 175/557 ... yes 45/558 ... yes 224/559 ... yes 69/560 ... yes 70/561 ... yes 377/562 ... yes 329/563 ... yes 330/564 ... yes 77/565 ... yes 327/566 ... yes 317/567 ... yes 100/568 ... yes 155/569 ... yes 150/570 ... yes 199/571 ... yes 199/572 ... yes 259/573 ... yes 45/574 ... yes 375/575 ... yes 332/576 ... yes 377/577 ... yes 333/578 ... yes 258/579 ... yes 185/580 ... yes 303/581 ... yes 40/582 ... yes 69/583 ... yes 334/585 ... yes 380/586 ... yes 327/587 ... yes 340/588 ... yes 430/589 ... yes 310/590 ... yes 375/591 ... yes 375/592 ... yes 336/593 ... yes 337/594 ... yes 310/595 ... yes 338/597 ... yes 339/598 ... yes 340/599 ... yes 340/600 ... yes 375/601 ... yes 340/602 ... yes 73/603 ... yes 29/604 ... yes 45/605 ... yes 341/606 ... yes 341/607 ... yes 341/608 ... yes 341/609 ... yes 99/610 ... yes 73/611 ... yes 41/612 ... yes 41/613 ... yes 346/614 ... yes 68/615 ... yes 68/616 ... yes 347/617 ... yes 57/618 ... yes 222/619 ... yes 348/620 ... yes 45/621 ... yes 328/622 ... yes 45/623 ... yes 310/624 ... yes 199/625 ... yes 224/626 ... yes 350/627 ... yes 350/628 ... yes 350/629 ... yes 350/630 ... yes 45/631 ... yes 222/633 ... yes 57/636 ... yes 355/637 ... yes 358/638 ... yes 358/639 ... yes 358/640 ... yes 360/641 ... yes 199/642 ... yes 236/643 ... yes 73/644 ... yes 236/645 ... yes 317/646 ... yes 301/647 ... yes 359/648 ... yes 296/649 ... yes 296/650 ... yes 68/652 ... yes 68/653 ... yes 68/654 ... yes 216/656 ... yes 236/657 ... yes 248/658 ... yes 361/659 ... yes 296/660 ... yes 430/661 ... yes 100/662 ... yes 362/663 ... yes 375/664 ... yes 360/665 ... yes 100/666 ... yes 72/668 ... yes 363/669 ... yes 73/670 ... yes 365/672 ... yes 232/673 ... yes 366/674 ... yes 277/675 ... yes 368/676 ... yes 368/677 ... yes 369/678 ... yes 217/679 ... yes 310/680 ... yes 100/681 ... yes 68/682 ... yes 368/683 ... yes 374/684 ... yes 199/685 ... yes 362/686 ... yes 366/687 ... yes 209/688 ... yes 281/689 ... yes 325/690 ... yes 355/691 ... yes 379/692 ... yes 325/694 ... yes 68/696 ... yes 325/698 ... yes 380/701 ... yes 69/704 ... yes 301/705 ... yes 222/708 ... yes 301/709 ... yes 380/710 ... yes 380/711 ... yes 70/712 ... yes 104/713 ... yes 104/714 ... yes 233/715 ... yes 118/716 ... yes 150/717 ... yes 381/718 ... yes 381/719 ... yes 233/720 ... yes 382/721 ... yes 233/722 ... yes 233/723 ... yes 142/724 ... yes 366/725 ... yes 383/728 ... yes 384/729 ... yes 69/730 ... yes 69/732 ... yes 69/733 ... yes 69/734 ... yes 69/735 ... yes 70/738 ... yes 341/739 ... yes 385/740 ... yes 365/743 ... yes 388/744 ... yes 388/745 ... yes 388/746 ... yes 388/747 ... yes 137/748 ... yes 281/749 ... yes 389/751 ... yes 389/752 ... yes 389/753 ... yes 392/754 ... yes 102/755 ... yes 86/756 ... yes 362/757 ... yes 385/758 ... yes 71/759 ... yes 341/760 ... yes 296/761 ... yes 281/762 ... yes 430/763 ... yes 258/764 ... yes 258/765 ... yes 385/766 ... yes 341/767 ... yes 104/768 ... yes 407/769 ... yes 404/770 ... yes 404/772 ... yes 407/773 ... yes 368/774 ... yes 73/777 ... yes 407/779 ... yes 137/780 ... yes 333/781 ... yes 333/782 ... yes 408/783 ... yes 104/784 ... yes 57/785 ... yes 68/786 ... yes 375/787 ... yes 362/788 ... yes 412/789 ... yes 412/790 ... yes 412/791 ... yes 412/792 ... yes 412/793 ... yes 412/794 ... yes 412/795 ... yes 412/796 ... yes 412/797 ... yes 412/798 ... yes 411/799 ... yes 411/800 ... yes 199/801 ... yes 412/802 ... yes 413/803 ... yes 413/804 ... yes 413/805 ... yes 413/806 ... yes 410/807 ... yes 414/808 ... yes 45/809 ... yes 414/810 ... yes 69/811 ... yes 412/812 ... yes 350/814 ... yes 350/815 ... yes 430/816 ... yes 73/817 ... yes 322/819 ... yes 430/820 ... yes 418/822 ... yes 73/823 ... yes 73/824 ... yes 45/825 ... yes 96/826 ... yes 69/827 ... yes 404/828 ... yes 419/829 ... yes 420/830 ... yes 420/831 ... yes 48/832 ... yes 420/833 ... yes 301/834 ... yes 40/835 ... yes 271/836 ... yes 248/837 ... yes 399/838 ... yes 399/840 ... yes 398/841 ... yes 398/842 ... yes 398/843 ... yes 398/844 ... yes 397/845 ... yes 400/846 ... yes 347/847 ... yes 236/848 ... yes 347/849 ... yes 397/850 ... yes 397/851 ... yes 272/852 ... yes 271/853 ... yes 385/854 ... yes 301/855 ... yes 73/856 ... yes 424/857 ... yes 57/858 ... yes 419/859 ... yes 358/860 ... yes 427/861 ... yes 428/862 ... yes 111/863 ... yes 350/864 ... yes 341/866 ... yes 341/867 ... yes 420/871 ... yes 111/872 ... yes 73/873 ... yes 274/874 ... yes 274/875 ... yes 358/876 ... yes 188/877 ... yes 188/878 ... yes 199/879 ... yes 40/880 ... yes 113/881 ... yes 430/883 ... yes 68/884 ... yes 301/885 ... yes 432/886 ... yes 236/887 ... yes 430/888 ... yes 407/889 ... yes 434/890 ... yes 436/891 ... yes 439/892 ... yes 440/893 ... yes 73/894 ... yes 41/895 ... yes 405/896 ... yes 385/897 ... yes 385/898 ... yes 443/900 ... yes 432/901 ... yes 341/902 ... yes 445/903 ... yes 385/904 ... yes 385/905 ... yes 443/906 ... yes 446/907 ... yes 275/908 ... yes 448/909 ... yes 155/910 ... yes 451/911 ... yes 459/912 ... yes 104/913 ... yes 341/914 ... yes 377/916 ... yes 469/917 ... yes 444/918 ... yes 472/919 ... yes 377/920 ... yes 420/921 ... yes 420/922 ... yes 420/923 ... yes 81/924 ... yes 350/925 ... yes 350/926 ... yes 420/927 ... yes 420/928 ... yes 69/930 ... yes 258/931 ... yes 362/932 ... yes 423/933 ... yes 380/934 ... yes 58/935 ... yes 104/937 ... yes 385/938 ... yes 258/939 ... yes 498/940 ... yes 133/941 ... yes 69/942 ... yes 480/943 ... yes 481/944 ... yes 285/945 ... yes 420/946 ... yes 275/947 ... yes 57/949 ... yes 57/951 ... yes 423/952 ... yes 69/954 ... yes 70/955 ... yes 486/957 ... yes 420/958 ... yes 279/959 ... yes 420/961 ... yes 420/962 ... yes 448/963 ... yes 301/964 ... yes 69/966 ... yes 69/968 ... yes 151/971 ... yes 151/972 ... yes 151/973 ... yes 151/974 ... yes 151/975 ... yes 151/976 ... yes 151/977 ... yes 236/978 ... yes 69/979 ... yes 445/980 ... yes 420/981 ... yes 416/983 ... yes 69/984 ... yes 416/985 ... yes 69/986 ... yes 488/987 ... yes 445/988 ... yes 490/989 ... yes 234/990 ... yes 333/991 ... yes 333/992 ... yes 333/993 ... yes 333/994 ... yes 333/995 ... yes 333/996 ... yes 333/998 ... yes 333/1000 ... yes 240/1002 ... yes 234/1003 ... yes 234/1004 ... yes 496/1006 ... yes 70/1007 ... yes 45/1009 ... yes 57/1010 ... yes 497/1011 ... yes 350/1012 ... yes 498/1013 ... yes 296/1014 ... yes 499/1016 ... yes 496/1017 ... yes 69/1018 ... yes 355/1019 ... yes 248/1020 ... yes 104/1021 ... yes 500/1022 ... yes 367/1023 ... yes 502/1024 ... yes 503/1025 ... yes 502/1026 ... yes 104/1027 ... yes 502/1028 ... yes 199/1029 ... yes 66/1031 ... yes 69/1032 ... yes 347/1033 ... yes 510/1034 ... yes 104/1035 ... yes 104/1036 ... yes 68/1037 ... yes 86/1038 ... yes 512/1039 ... yes 301/1040 ... yes 350/1041 ... yes 69/1042 ... yes 516/1043 ... yes 518/1044 ... yes 513/1045 ... yes 519/1046 ... yes 520/1047 ... yes 521/1048 ... yes 518/1049 ... yes 77/1050 ... yes 199/1051 ... yes 70/1053 ... yes 378/1054 ... yes 151/1055 ... yes 151/1056 ... yes 151/1057 ... yes 151/1058 ... yes 151/1059 ... yes 151/1060 ... yes 151/1061 ... yes 151/1062 ... yes 151/1063 ... yes 151/1064 ... yes 522/1065 ... yes 524/1067 ... yes 155/1068 ... yes 68/1069 ... yes 341/1070 ... yes 430/1071 ... yes 512/1072 ... yes 376/1073 ... yes 525/1075 ... yes 355/1076 ... yes 341/1077 ... yes 529/1080 ... yes 530/1083 ... yes 532/1084 ... yes 533/1085 ... yes 532/1086 ... yes 350/1088 ... yes 512/1089 ... yes 350/1093 ... yes 57/1094 ... yes 534/1095 ... yes 534/1096 ... yes 537/1098 ... yes 322/1099 ... yes 101/1100 ... yes 104/1102 ... yes 311/1104 ... yes 100/1106 ... yes 311/1107 ... yes 311/1108 ... yes 101/1110 ... yes 104/1111 ... yes 104/1112 ... yes 538/1121 ... yes 104/1122 ... yes 68/1123 ... yes 497/1124 ... yes 337/1125 ... yes 311/1126 ... yes 443/1127 ... yes 36/1128 ... yes 311/1129 ... yes 100/1130 ... yes 251/1131 ... yes 334/1132 ... yes 334/1133 ... yes 166/1134 ... yes 540/1135 ... yes 68/1136 ... yes 69/1138 ... yes 541/1139 ... yes 541/1141 ... yes 541/1142 ... yes 509/1143 ... yes 543/1146 ... yes 378/1147 ... yes 199/1149 ... yes 520/1150 ... yes 544/1151 ... yes 520/1152 ... yes 4/1154 ... yes 520/1155 ... yes Redis version >= 4.0.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.5) Git version >= 2.22.0 ? ... yes (2.26.2) Git user has default SSH configuration? ... yes Active users: ... 139 Is authorized keys file accessible? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
docker-compose.yml file
Expand to see the docker-compose.yml file
version: '3' services: gitlab: image: 'gitlab/gitlab-ce' restart: always container_name: gitlab environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.domain.com' # Timezone gitlab_rails['time_zone'] = 'Europe/Amsterdam' # LFS gitlab_rails['lfs_storage_path'] = "/var/opt/lfs" # Permissions gitlab_rails['gitlab_default_can_create_group'] = false # Backups gitlab_rails['backup_path'] = "/var/opt/gitlab/backups" # https nginx['redirect_http_to_https'] = true nginx['ssl_certificate'] = "/var/certificates/gitlab.domain.com.pem" nginx['ssl_certificate_key'] = "/var/certificates/gitlab.domain.com.key" # Enable RackAttack gitlab_rails['rack_attack_git_basic_auth'] = { 'enabled' => true, 'ip_whitelist' => ["127.0.0.1"], 'maxretry' => 10, 'findtime' => 60, 'bantime' => 300 } # Disable OmniAuth gitlab_rails['omniauth_enabled'] = false # Enable Gravatar for getting the photos profile gitlab_rails['gravatar_ssl_url'] = 'https://domain.sharepoint.com/layouts/15/userphoto.aspx?size=HR120x120&username=%{email}' # Default light theme gitlab_rails['gitlab_default_theme'] = 3 # Container Registry registry_external_url 'https://gitlab.domain.com:5001' registry_nginx['ssl_certificate'] = "/var/certificates/gitlab.domain.com.pem" registry_nginx['ssl_certificate_key'] = "/var/certificates/gitlab.domain.com.key" gitlab_rails['registry_path'] = "/var/opt/container_registry" # Change regular expression for closing issues gitlab_rails['gitlab_issue_closing_pattern'] = "\b((?:[Cc]los(?:e[sd]?|ing)|\b[Ff]inish(?:e[sd]|ing)?|\b[Ff]ix(?:e[sd]|ing)?|\b[Rr]esolv(?:e[sd]?|ing)|\b[Ii]mplement(?:s|ed|ing)?)(:?) +(?:(?:issues? +)?%{issue_ref}(?:(?: *,? +and +| *,? *)?)|([A-Z][A-Z0-9]+-\d+))+)" # Redirect external PlantUML requests to local PlantUML server nginx['custom_gitlab_server_config'] = "location /-/plantuml/ { \n proxy_cache off; \n proxy_pass http://127.0.0.1:18080/; \n}\n" # Mail gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtprelay.domain.com" gitlab_rails['smtp_port'] = 25 gitlab_rails['smtp_domain'] = "smtprelay.domain.com" gitlab_rails['smtp_tls'] = false; gitlab_rails['smtp_openssl_verify_mode'] = 'none' gitlab_rails['smtp_enable_starttls_auto'] = false gitlab_rails['smtp_ssl'] = false gitlab_rails['smtp_force_ssl'] = false gitlab_rails['gitlab_email_from'] = 'gitlab@domain.com' gitlab_rails['gitlab_email_reply_to'] = 'noreply@domain.com' # Incoming email gitlab_rails['incoming_email_enabled'] = true gitlab_rails['incoming_email_address'] = "gitlab@domain.com" gitlab_rails['incoming_email_email'] = "gitlab@domain.com" gitlab_rails['incoming_email_password'] = "password" gitlab_rails['incoming_email_host'] = "outlook.office365.com" gitlab_rails['incoming_email_port'] = 993 gitlab_rails['incoming_email_ssl'] = true # AD gitlab_rails['ldap_enabled'] = true gitlab_rails['ldap_servers'] = YAML.load <<-EOS # remember to close this block with 'EOS' below main: # 'main' is the GitLab 'provider ID' of this LDAP server ## label # # A human-friendly name for your LDAP server. It is OK to change the label later, # for instance if you find out it is too large to fit on the web page. # # Example: 'Paris' or 'Acme, Ltd.' label: 'domain'
# Example: 'ldap.mydomain.com' host: 'newton2.domain.com' # This port is an example, it is sometimes different but it is always an integer and not a string port: 389 # usually 636 for SSL uid: 'sAMAccountName' # This should be the attribute, not the value that maps to uid. # Examples: 'america\\momo' or 'CN=Gitlab Git,CN=Users,DC=mydomain,DC=com' bind_dn: 'CN=GitLab,CN=Users,DC=domain,DC=com' password: 'password' # Encryption method. The "method" key is deprecated in favor of # "encryption". # # Examples: "start_tls" or "simple_tls" or "plain" # # Deprecated values: "tls" was replaced with "start_tls" and "ssl" was # replaced with "simple_tls". # encryption: 'plain' # Set a timeout, in seconds, for LDAP queries. This helps avoid blocking # a request if the LDAP server becomes unresponsive. # A value of 0 means there is no timeout. timeout: 10 # This setting specifies if LDAP server is Active Directory LDAP server. # For non AD servers it skips the AD specific queries. # If your LDAP server is not AD, set this to false. active_directory: true # If allow_username_or_email_login is enabled, GitLab will ignore everything # after the first '@' in the LDAP username submitted by the user on login. # # Example: # - the user enters 'jane.doe@example.com' and 'p@ssw0rd' as LDAP credentials; # - GitLab queries the LDAP server with 'jane.doe' and 'p@ssw0rd'. # # If you are using "uid: 'userPrincipalName'" on ActiveDirectory you need to # disable this setting, because the userPrincipalName contains an '@'. allow_username_or_email_login: false # Base where we can search for users # # Ex. 'ou=People,dc=gitlab,dc=example' or 'DC=mydomain,DC=com' # base: 'OU=Internal users,DC=domain,DC=com' # LDAP attributes that GitLab will use to create an account for the LDAP user. # The specified attribute can either be the attribute name as a string (e.g. 'mail'), # or an array of attribute names to try in order (e.g. ['mail', 'email']). # Note that the user's LDAP login will always be the attribute specified as `uid` above. attributes: # The username will be used in paths for the user's own projects # (like `gitlab.example.com/username/project`) and when mentioning # them in issues, merge request and comments (like `@username`). # If the attribute specified for `username` contains an email address, # the GitLab username will be the part of the email address before the '@'. username: ['uid', 'userid', 'sAMAccountName'] email: ['mail', 'email', 'userPrincipalName'] # If no full name could be found at the attribute specified for `name`, # the full name is determined using the attributes specified for # `first_name` and `last_name`. name: 'cn' first_name: 'givenName' last_name: 'sn' # If lowercase_usernames is enabled, GitLab will lower case the username. lowercase_usernames: true EOS network_mode: "host" volumes: - '/home/domain/gitlabdata/certificates:/var/certificates' - '/home/domain/gitlabdata/config:/etc/gitlab' - '/home/domain/gitlabdata/logs:/var/log/gitlab' - '/home/domain/gitlabdata/data:/var/opt/gitlab' - '/home/domain/gitlabdata/lfs:/var/opt/lfs' - '/home/domain/gitlabdata/container_registry:/var/opt/container_registry' - '/mnt/backupGitlab:/var/opt/gitlab/backups'