{"id":22487,"date":"2024-05-10T10:36:42","date_gmt":"2024-05-10T07:36:42","guid":{"rendered":"https:\/\/kifarunix.com\/?p=22487"},"modified":"2024-05-10T10:36:46","modified_gmt":"2024-05-10T07:36:46","slug":"how-to-install-gitlab-on-ubuntu-24-04-with-ssl-tls","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-install-gitlab-on-ubuntu-24-04-with-ssl-tls\/","title":{"rendered":"How to Install Gitlab on Ubuntu 24.04 with SSL\/TLS"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1046\" height=\"585\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/install-gitlab-on-linux.png?v=1715326105\" alt=\"install gitlab on ubuntu 24.04\" class=\"wp-image-22499\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/install-gitlab-on-linux.png?v=1715326105 1046w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/install-gitlab-on-linux-768x430.png?v=1715326105 768w\" sizes=\"(max-width: 1046px) 100vw, 1046px\" \/><\/figure>\n\n\n\n<p>In this tutorial, you will learn how to install Gitlab on Ubuntu 24.04.\u00a0<a href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab\" target=\"_blank\" rel=\"noreferrer noopener\">GitLab<\/a>\u00a0<em>is an open source end-to-end software development platform with built-in version control, issue tracking, code review, CI\/CD,<\/em>\u00a0etc.\u00a0<em>It is is a complete DevOps platform, delivered as a single application<\/em>.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#installing-gitlab-on-ubuntu-24-04\">Installing Gitlab on Ubuntu 24.04<\/a><ul><li><a href=\"#system-requirements\">System Requirements<\/a><ul><li><a href=\"#hardware-requirements\">Hardware Requirements<\/a><\/li><\/ul><\/li><li><a href=\"#install-gitlab\">Install Gitlab<\/a><ul><li><a href=\"#installing-gitlab-using-deb-binary-package\">Installing Gitlab using DEB Binary package<\/a><\/li><li><a href=\"#install-gitlab-from-apt-repository\">Install Gitlab from APT Repository<\/a><\/li><\/ul><\/li><li><a href=\"#configure-gitlab-on-ubuntu-24-04\">Configure Gitlab on Ubuntu 24.04<\/a><ul><li><a href=\"#set-external-url-for-git-lab-server\">Set External URL for GitLab Server<\/a><\/li><li><a href=\"#enable-gitlab-ssl-tls-settings\">Enable Gitlab SSL\/TLS Settings<\/a><\/li><li><a href=\"#other-gitlab-configurations\">Other Gitlab Configurations<\/a><\/li><li><a href=\"#reconfigure-omnibus-git-lab\">Reconfigure Omnibus\u00a0GitLab<\/a><\/li><li><a href=\"#reset-gitlab-user-password\">Reset Gitlab User Password<\/a><\/li><li><a href=\"#check-status-of-gitlab-services\">Check Status of Gitlab Services<\/a><\/li><li><a href=\"#managing-gitlab-services\">Managing Gitlab Services<\/a><\/li><\/ul><\/li><li><a href=\"#accessing-gitlab-web-interface\">Accessing Gitlab Web Interface<\/a><\/li><li><a href=\"#what-is-next-after-installation\">What is next after Installation?<\/a><\/li><li><a href=\"#reference\">Reference<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"installing-gitlab-on-ubuntu-24-04\">Installing Gitlab on Ubuntu 24.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"system-requirements\">System Requirements<\/h3>\n\n\n\n<p>Below are the bare minimum software and hardware system requirements to install Gitlab with SSL\/TLS certificates on Ubuntu 24.04.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"hardware-requirements\">Hardware Requirements<\/h4>\n\n\n\n<p>Ensure the system you want to host with Gitlab has met the following minimum hardware requirements;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Storage<\/strong>: Enough storage depending on the size of the repositories you want to store in GitLab.<\/li>\n\n\n\n<li><strong>CPU<\/strong>: At least 4 cores. (supports up to 500 users).<\/li>\n\n\n\n<li><strong>Memory<\/strong>: At least 4GB RAM (supports up to 500 users).<\/li>\n\n\n\n<li><strong>Swap<\/strong>: At least 2GB of swap memory.<\/li>\n<\/ul>\n\n\n\n<p>For other system requirements, the package installer will take care of it, unless you are doing self compilation.<\/p>\n\n\n\n<p>Read more about the requirements of installing\u00a0<a href=\"https:\/\/docs.gitlab.com\/ee\/install\/requirements.html\" target=\"_blank\" rel=\"noreferrer noopener\">Gitlab on Requirements page<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-gitlab\">Install Gitlab<\/h3>\n\n\n\n<p>Run system update;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update<\/pre>\n\n\n\n<p>Run the command below to install some required package dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install curl tzdata ca-certificates<\/pre>\n\n\n\n<p>In this tutorial, we are installing Gitlab Community Edition, CE. There are two ways in which you can install Gitlab.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#deb-binary\">Install Gitlab using DEB Binary package<\/a><\/li>\n\n\n\n<li><a href=\"#apt-repo\">Install Gitlab from APT repository<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"installing-gitlab-using-deb-binary-package\">Installing Gitlab using DEB Binary package<\/h4>\n\n\n\n<p>To install Gitlab using DEB binary package, download the binary from the\u00a0<a href=\"https:\/\/packages.gitlab.com\/gitlab\/gitlab-ce\" target=\"_blank\" rel=\"noreferrer noopener\">Gitlab packages page<\/a>\u00a0and install it manually using\u00a0<code>apt<\/code>\u00a0or\u00a0<code>dpkg<\/code>\u00a0commands;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>VER=16.11.2<\/code><\/pre>\n\n\n\n<p>Replace the value of the VER above to current release version.<\/p>\n\n\n\n<p>Again, currently only packages for Noble are not available.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget --content-disposition https:\/\/packages.gitlab.com\/gitlab\/gitlab-ce\/packages\/ubuntu\/jammy\/gitlab-ce_${VER}-ce.0_amd64.deb\/download.deb<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install .\/gitlab-ce_${VER}-ce.0_amd64.deb<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-small-font-size\">To automatically configure Gitlab during installation, you can provide the EXTERNAL URL address. Note that you can also change the URL later after installation and reconfigure Gitlab.<\/p>\n\n\n\n<p class=\"has-small-font-size\">Be sure to change the URL, <strong>gitlab.kifarunix.com<\/strong>, with your respective domain address.<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>sudo  EXTERNAL_URL=\"https:\/\/gitlab.kifarunix.com\" apt install .\/gitlab-ce_${VER}-ce.0_amd64.deb<\/code><\/pre>\n<\/blockquote>\n\n\n\n<p>Sample installation output.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>Reading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nNote, selecting 'gitlab-ce' instead of '.\/gitlab-ce_16.11.2-ce.0_amd64.deb'\nThe following NEW packages will be installed:\n  gitlab-ce\n0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.\nNeed to get 965 MB of archives.\nAfter this operation, 3,029 MB of additional disk space will be used.\nGet:1 https:\/\/packages.gitlab.com\/gitlab\/gitlab-ce\/ubuntu jammy\/main amd64 gitlab-ce amd64 16.11.2-ce.0 [965 MB]\nFetched 965 MB in 9s (106 MB\/s)                                                                                                                     \nSelecting previously unselected package gitlab-ce.\n(Reading database ... 100567 files and directories currently installed.)\nPreparing to unpack ...\/gitlab-ce_16.11.2-ce.0_amd64.deb ...\nUnpacking gitlab-ce (16.11.2-ce.0) ...\nSetting up gitlab-ce (16.11.2-ce.0) ...\nIt looks like GitLab has not been configured yet; skipping the upgrade script.\n\n       *.                  *.\n      ***                 ***\n     *****               *****\n    .******             *******\n    ********            ********\n   ,,,,,,,,,***********,,,,,,,,,\n  ,,,,,,,,,,,*********,,,,,,,,,,,\n  .,,,,,,,,,,,*******,,,,,,,,,,,,\n      ,,,,,,,,,*****,,,,,,,,,.\n         ,,,,,,,****,,,,,,\n            .,,,***,,,,\n                ,*,.\n  \n\n\n     _______ __  __          __\n    \/ ____(_) \/_\/ \/   ____ _\/ \/_\n   \/ \/ __\/ \/ __\/ \/   \/ __ `\/ __ \\\n  \/ \/_\/ \/ \/ \/_\/ \/___\/ \/_\/ \/ \/_\/ \/\n  \\____\/_\/\\__\/_____\/\\__,_\/_.___\/\n  \n\nThank you for installing GitLab!\nGitLab was unable to detect a valid hostname for your instance.\nPlease configure a URL for your GitLab instance by setting `external_url`\nconfiguration in \/etc\/gitlab\/gitlab.rb file.\nThen, you can start your GitLab instance by running the following command:\n  sudo gitlab-ctl reconfigure\n\nFor a comprehensive list of configuration options please see the Omnibus GitLab readme\nhttps:\/\/gitlab.com\/gitlab-org\/omnibus-gitlab\/blob\/master\/README.md\n\nHelp us improve the installation experience, let us know how we did with a 1 minute survey:\nhttps:\/\/gitlab.fra1.qualtrics.com\/jfe\/form\/SV_6kVqZANThUQ1bZb?installation=omnibus&release=16-11\n\nScanning processes...                                                                                                                                \nScanning linux images...                                                                                                                             \n\nRunning kernel seems to be up-to-date.\n\nNo services need to be restarted.\n\nNo containers need to be restarted.\n\nNo user sessions are running outdated binaries.\n\nNo VM guests are running outdated hypervisor (qemu) binaries on this host.\n<\/code><\/pre>\n\n\n\n<p>We will configure Gitlab in the next steps.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-gitlab-from-apt-repository\">Install Gitlab from APT Repository<\/h4>\n\n\n\n<p>To install Gitlab from APT repository on Ubuntu 24.04, you need to install the Gitlab repo by running the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -sS https:\/\/packages.gitlab.com\/install\/repositories\/gitlab\/gitlab-ce\/script.deb.sh | sudo bash<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>Detected operating system as Ubuntu\/noble.\nChecking for curl...\nDetected curl...\nChecking for gpg...\nDetected gpg...\nRunning apt-get update... done.\nInstalling apt-transport-https... done.\nInstalling \/etc\/apt\/sources.list.d\/gitlab_gitlab-ce.list...done.\nImporting packagecloud gpg key... done.\nRunning apt-get update... done.\n\nThe repository is setup! You can now install packages.\n<\/code><\/pre>\n\n\n\n<p>Once the Gitlab package repo is done, install Gitlab on Ubuntu 24.04;<\/p>\n\n\n\n<p><strong>NOTE<\/strong> that as of this writing, there are no repos for Ubuntu 24.04. In this case, you can use Ubuntu 22.04 Jammy repos.<\/p>\n\n\n\n<p>Thus, update the repo accordingly;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sed -i 's\/noble\/jammy\/' \/etc\/apt\/sources.list.d\/gitlab_gitlab-ce.list<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo EXTERNAL_URL=\"https:\/\/gitlab.kifarunix.com\" apt install gitlab-ce<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>Reading package lists... Done\nBuilding dependency tree... Done\nReading state information... Done\nThe following NEW packages will be installed:\n  gitlab-ce\n0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.\nNeed to get 965 MB of archives.\nAfter this operation, 3,029 MB of additional disk space will be used.\nGet:1 https:\/\/packages.gitlab.com\/gitlab\/gitlab-ce\/ubuntu jammy\/main amd64 gitlab-ce amd64 16.11.2-ce.0 [965 MB]\nFetched 965 MB in 9s (111 MB\/s)                                                                                                                     \nSelecting previously unselected package gitlab-ce.\n(Reading database ... 100567 files and directories currently installed.)\nPreparing to unpack ...\/gitlab-ce_16.11.2-ce.0_amd64.deb ...\nUnpacking gitlab-ce (16.11.2-ce.0) ...\nSetting up gitlab-ce (16.11.2-ce.0) ...\nIt looks like GitLab has not been configured yet; skipping the upgrade script.\n\n       *.                  *.\n      ***                 ***\n     *****               *****\n    .******             *******\n    ********            ********\n   ,,,,,,,,,***********,,,,,,,,,\n  ,,,,,,,,,,,*********,,,,,,,,,,,\n  .,,,,,,,,,,,*******,,,,,,,,,,,,\n      ,,,,,,,,,*****,,,,,,,,,.\n         ,,,,,,,****,,,,,,\n            .,,,***,,,,\n                ,*,.\n  \n\n\n     _______ __  __          __\n    \/ ____(_) \/_\/ \/   ____ _\/ \/_\n   \/ \/ __\/ \/ __\/ \/   \/ __ `\/ __ \\\n  \/ \/_\/ \/ \/ \/_\/ \/___\/ \/_\/ \/ \/_\/ \/\n  \\____\/_\/\\__\/_____\/\\__,_\/_.___\/\n  \n\nThank you for installing GitLab!\nGitLab was unable to detect a valid hostname for your instance.\nPlease configure a URL for your GitLab instance by setting `external_url`\nconfiguration in \/etc\/gitlab\/gitlab.rb file.\nThen, you can start your GitLab instance by running the following command:\n  sudo gitlab-ctl reconfigure\n\nFor a comprehensive list of configuration options please see the Omnibus GitLab readme\nhttps:\/\/gitlab.com\/gitlab-org\/omnibus-gitlab\/blob\/master\/README.md\n\nHelp us improve the installation experience, let us know how we did with a 1 minute survey:\nhttps:\/\/gitlab.fra1.qualtrics.com\/jfe\/form\/SV_6kVqZANThUQ1bZb?installation=omnibus&release=16-11\n\nScanning processes...                                                                                                                                \nScanning linux images...                                                                                                                             \n\nRunning kernel seems to be up-to-date.\n\nNo services need to be restarted.\n\nNo containers need to be restarted.\n\nNo user sessions are running outdated binaries.\n\nNo VM guests are running outdated hypervisor (qemu) binaries on this host.\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-gitlab-on-ubuntu-24-04\">Configure Gitlab on Ubuntu 24.04<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"set-external-url-for-git-lab-server\">Set External URL for GitLab Server<\/h4>\n\n\n\n<p>Edit the\u00a0<strong><code>\/etc\/gitlab\/gitlab.rb<\/code><\/strong>\u00a0configuration file and replace the value of the\u00a0<strong><code>external_url<\/code><\/strong>\u00a0parameter with your Gitlab server URL.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo grep \"^external_url\" \/etc\/gitlab\/gitlab.rb<\/code><\/pre>\n\n\n\n<p>Output;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>external_url 'http:\/\/gitlab.example.com'<\/code><\/pre>\n\n\n\n<p>Replace the Gitlab external URL domain.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim \/etc\/gitlab\/gitlab.rb<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#external_url 'http:\/\/gitlab.example.com'\n<strong>external_url 'https:\/\/gitlab.kifarunix.com'<\/strong><\/code><\/pre>\n\n\n\n<p>Notice that I also enabled HTTPS for the domain.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"enable-gitlab-ssl-tls-settings\">Enable Gitlab SSL\/TLS Settings<\/h4>\n\n\n\n<p>Once the Gitlab package is installed, you can configure it to use SSL\/TLS certificates. There are two ways in which you can configure Gitlab with SSL\/TLS certificates;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Using free and automated HTTPS with Let\u2019s Encrypt<\/li>\n\n\n\n<li>Manually configuring HTTPS with your own self signed certificates<\/li>\n<\/ol>\n\n\n\n<p>Assuming you have already have generated Let&#8217;s Encrypt SSL certs;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ls -1 \/etc\/letsencrypt\/live\/kifarunix.com<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>cert.pem\nchain.pem\nfullchain.pem\nprivkey.pem\nREADME\n<\/code><\/pre>\n\n\n\n<p>You can configure Gitlab to use Let&#8217;s Encrypt certs as follows;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim \/etc\/gitlab\/gitlab.rb<\/code><\/pre>\n\n\n\n<p>Next, scroll down to Gitlab <strong>NGINX section<\/strong> and make the following adjustments (as per your setup).<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>################################################################################\n## GitLab NGINX\n##! Docs: https:\/\/docs.gitlab.com\/omnibus\/settings\/nginx.html\n################################################################################\n\n<strong>nginx['enable'] = true \nnginx['client_max_body_size'] = '250m'\nnginx['redirect_http_to_https'] = true<\/strong>\n...\n...\n<strong>nginx['ssl_certificate'] = \"\/etc\/letsencrypt\/live\/kifarunix.com\/fullchain.pem\"\nnginx['ssl_certificate_key'] = \"\/etc\/letsencrypt\/live\/kifarunix.com\/privkey.pem\"\n<\/strong>\n...\n...\n<strong>nginx['ssl_protocols'] = \"TLSv1.2 TLSv1.3\"<\/strong>\n<\/code><\/pre>\n\n\n\n<p>Save the file and exit.<\/p>\n\n\n\n<p>If you want to use your own self signed SSL\/TLS certs, you can generate and use them as follows.<\/p>\n\n\n\n<p>Create a directory to store the SSL certs;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/etc\/gitlab\/ssl<\/code><\/pre>\n\n\n\n<p>Next, generate the self signed SSL certs by running the command below. Be sure to replace the certificates details accordingly in the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl req -newkey rsa:4096 -x509 -sha512 -days 3650 -nodes -out \/etc\/gitlab\/ssl\/kifarunix-demo.crt -keyout \/etc\/gitlab\/ssl\/kifarunix-demo.key -subj \"\/C=US\/ST=California\/L=San Francisco\/O=Kifarunix-demo Ltd\/CN=*.kifarunix-demo.com\/\"<\/code><\/pre>\n\n\n\n<p>Copy the public certificate file only into the&nbsp;<code><strong>\/etc\/gitlab\/trusted-certs<\/strong><\/code>&nbsp;directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/etc\/gitlab\/trusted-certs<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>cp \/etc\/gitlab\/ssl\/kifarunix-demo.crt \/etc\/gitlab\/trusted-certs\/<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"other-gitlab-configurations\">Other Gitlab Configurations<\/h4>\n\n\n\n<p>There are quite number of configuration options in the <strong>\/etc\/gitlab\/gitlab.rb<\/strong> configuration. Go through the configuration and make appropriate changes that suits your needs.<\/p>\n\n\n\n<p>Save and exit the configuration file once you are done with the configurations.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"reconfigure-omnibus-git-lab\">Reconfigure Omnibus&nbsp;GitLab<\/h4>\n\n\n\n<p>Once the setup is done, reconfigure Omnibus&nbsp;Gitlab. Reconfiguration is needed whenever there is any configuration changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo gitlab-ctl reconfigure<\/pre>\n\n\n\n<p>Sample command output;<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>...\nRunning handlers:\n[2024-05-10T06:40:54+00:00] INFO: Running report handlers\nRunning handlers complete\n[2024-05-10T06:40:54+00:00] INFO: Report handlers complete\nInfra Phase complete, 557\/1595 resources updated in 02 minutes 32 seconds\n\nNotes:\nDefault admin account has been configured with following details:\nUsername: root\nPassword: You didn't opt-in to print initial root password to STDOUT.\nPassword stored to \/etc\/gitlab\/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.\n\nNOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https:\/\/docs.gitlab.com\/ee\/security\/reset_user_password.html#reset-your-root-password.\n\n[2024-05-10T06:40:54+00:00] WARN: This release of Cinc Client became end of life (EOL) on May 1st 2024. Please update to a supported release to receive new features, bug fixes, and security updates.\ngitlab Reconfigured!\n<\/code><\/pre>\n\n\n\n<p>Are you experiencing long wait to time outs waiting for logrotate socket to appear?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>...\n* ruby_block&#91;wait for logrotate service socket] action run...<\/code><\/pre>\n\n\n\n<p>Ensure that the Gitlab <strong>runit<\/strong> service supervisor (<strong>runsvdir<\/strong>) is running;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status gitlab-runsvdir.service<\/code><\/pre>\n\n\n\n<p>If it is not running, restart it;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart gitlab-runsvdir.service<\/code><\/pre>\n\n\n\n<p>Confirm status again!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status gitlab-runsvdir.service<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\u25cf gitlab-runsvdir.service - GitLab Runit supervision process\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/gitlab-runsvdir.service; enabled; preset: enabled)\n     Active: active (running) since Fri 2024-05-10 06:34:54 UTC; 13s ago\n   Main PID: 12092 (runsvdir)\n      Tasks: 1 (limit: 4915)\n     Memory: 196.0K (peak: 660.0K)\n        CPU: 4ms\n     CGroup: \/system.slice\/gitlab-runsvdir.service\n             \u2514\u250012092 runsvdir -P \/opt\/gitlab\/service \"log: .................................................................\n<\/code><\/pre>\n\n\n\n<p>After that, re-run the reconfiguration.<\/p>\n\n\n\n<p>Based on the summary of reconfiguration, Gitlab login username is <code><strong>root<\/strong><\/code> and the password is stored in the file, <strong><code>\/etc\/gitlab\/initial_root_password<\/code><\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo grep Password: \/etc\/gitlab\/initial_root_password<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Password: 5KLL7fXIMWPuaSf1qANpKs6scO0ZwwOxY6UhvRiG4NQ=<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"reset-gitlab-user-password\"><a href=\"#reset-gitlab-user-password\">Reset Gitlab User Password<\/a><\/h4>\n\n\n\n<p>If you want to reset Gitlab user password, run the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo gitlab-rake \"gitlab:password:reset\"<\/code><\/pre>\n\n\n\n<p>The command will prompt to enter the username and password.<\/p>\n\n\n\n<p>You can specify the username in command line. Replace the username with respective username.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo gitlab-rake \"gitlab:password:reset&#91;<strong>username<\/strong>]\"<\/code><\/pre>\n\n\n\n<p>Like;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo gitlab-rake \"gitlab:password:reset&#91;<strong>root<\/strong>]\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"check-status-of-gitlab-services\">Check Status of Gitlab Services<\/h4>\n\n\n\n<p>Check the status of Gitlab services;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gitlab-ctl status<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>run: alertmanager: (pid 2380) 407s; run: log: (pid 2072) 468s\nrun: gitaly: (pid 2415) 406s; run: log: (pid 1507) 1209s\nrun: gitlab-exporter: (pid 2350) 410s; run: log: (pid 2012) 485s\nrun: gitlab-workhorse: (pid 2327) 411s; run: log: (pid 1917) 545s\nrun: grafana: (pid 2400) 407s; run: log: (pid 2283) 427s\nrun: logrotate: (pid 1430) 1222s; run: log: (pid 1438) 1221s\nrun: nginx: (pid 1951) 511s; run: log: (pid 1962) 507s\nrun: node-exporter: (pid 2342) 410s; run: log: (pid 1993) 493s\nrun: postgres-exporter: (pid 2392) 407s; run: log: (pid 2110) 461s\nrun: postgresql: (pid 1644) 1129s; run: log: (pid 1656) 1126s\nrun: prometheus: (pid 2364) 409s; run: log: (pid 2049) 475s\nrun: puma: (pid 1870) 560s; run: log: (pid 1878) 557s\nrun: redis: (pid 1465) 1216s; run: log: (pid 1476) 1215s\nrun: redis-exporter: (pid 2352) 409s; run: log: (pid 2037) 480s\nrun: sidekiq: (pid 1888) 554s; run: log: (pid 1899) 551s\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"managing-gitlab-services\">Managing Gitlab Services<\/h4>\n\n\n\n<p>If you need to restart all Gitlab services;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo gitlab-ctl restart<\/pre>\n\n\n\n<p>You can as well use&nbsp;<code><strong>start|stop<\/strong><\/code>&nbsp;command options to control Gitlab services.<\/p>\n\n\n\n<p>To start, stop or restart an individual component, eg nginx;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo gitlab-ctl start|stop|restart nginx<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"accessing-gitlab-web-interface\">Accessing Gitlab Web Interface<\/h3>\n\n\n\n<p>The basic install of Gitlab on Ubuntu 24.04 is now done. All you can do now is to access the Gitlab web interface, <strong><code>https:\/\/server-IP-or-domain<\/code><\/strong>.<\/p>\n\n\n\n<p>If UFW is running, you need to open port 443\/80 to allow external access.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo ufw allow \"Apache Full\"<\/pre>\n\n\n\n<p>You can also allow access from specific IPs.<\/p>\n\n\n\n<p>If you are not using UFW, you can also open ports using <strong>iptables<\/strong>.<code><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/07\/gitlab_ui.png\"><\/a><\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1401\" height=\"929\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/gitlab-ce-login-page-ubuntu-24.04.png?v=1715324448\" alt=\"gitlab login page ubuntu 24.04\" class=\"wp-image-22494\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/gitlab-ce-login-page-ubuntu-24.04.png?v=1715324448 1401w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/gitlab-ce-login-page-ubuntu-24.04-768x509.png?v=1715324448 768w\" sizes=\"(max-width: 1401px) 100vw, 1401px\" \/><\/figure>\n\n\n\n<p>Login to Gitlab web user interface as <strong>root<\/strong> user with password provided above.<\/p>\n\n\n\n<p>Upon successful login, such an interface welcomes you.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1616\" height=\"851\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/default-dashboard-gitlab.png?v=1715324467\" alt=\"gitlab default welcome page\" class=\"wp-image-22495\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/default-dashboard-gitlab.png?v=1715324467 1616w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/default-dashboard-gitlab-768x404.png?v=1715324467 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/default-dashboard-gitlab-1536x809.png?v=1715324467 1536w\" sizes=\"(max-width: 1616px) 100vw, 1616px\" \/><\/figure><\/div>\n\n\n<p>Gitlab web dashboard for user root. You can access by clicking <strong>Admin Area<\/strong> at the bottom left;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1601\" height=\"850\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/gitlab-admin-area-dashboard.png?v=1715324705\" alt=\"gitlab admin area dashboard\" class=\"wp-image-22496\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/gitlab-admin-area-dashboard.png?v=1715324705 1601w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/gitlab-admin-area-dashboard-768x408.png?v=1715324705 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2024\/05\/gitlab-admin-area-dashboard-1536x815.png?v=1715324705 1536w\" sizes=\"(max-width: 1601px) 100vw, 1601px\" \/><\/figure>\n\n\n\n<p>Gitlab is now installed and setup, basically. That marks the end of our tutorial on how to install Gitlab.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-is-next-after-installation\">What is next after Installation?<\/h3>\n\n\n\n<p>Once Gitlab is up and running, you can now proceed with the next steps outlined on the documentation page.<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.gitlab.com\/ee\/install\/next_steps.html\" target=\"_blank\" rel=\"noreferrer noopener\">Steps after installing GitLab<\/a><a href=\"https:\/\/docs.gitlab.com\/ee\/install\/next_steps.html#steps-after-installing-gitlab\" target=\"_blank\" rel=\"noopener\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"reference\">Reference<\/h3>\n\n\n\n<p><a href=\"https:\/\/about.gitlab.com\/install\/#ubuntu\" target=\"_blank\" rel=\"noreferrer noopener\">Download and install Gitlab on Ubuntu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install Gitlab on Ubuntu 24.04.\u00a0GitLab\u00a0is an open source end-to-end software development platform with built-in version control, issue<\/p>\n","protected":false},"author":10,"featured_media":22499,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121],"tags":[4180,7485,7396],"class_list":["post-22487","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-gitlab-ce","tag-gitlab-ssl","tag-ubuntu-24-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/22487"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=22487"}],"version-history":[{"count":7,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/22487\/revisions"}],"predecessor-version":[{"id":22501,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/22487\/revisions\/22501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/22499"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=22487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=22487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=22487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}