Self Hosted install stuck on Unpacking gitlab-ce (14.0.2-ce.0)


I’m new to this whole self hosted, but basically I’ve been following the tutorial here Download and install GitLab | GitLab

I get to the 2nd stage i.e sudo EXTERNAL_URL=“” apt-get install gitlab-ce

Every time I try to run that, everything works until it unpacks, I’ve been stuck on Unpacking gitlab-ce for over 4 hours, not sure if this is correct or not. I’ve changed operating system three times.

I’m not sure what I am doing wrong,

The only thing I can think of is my setup is as follows

SSD (Boot drive)
Raid 1 (2tb HDD) ← Was wondering if this is the reason

Any help would be great


So seems I managed to get past that step by not doing a raid 1, currently its stuck on something else but hopefully that won’t take as long

Make sure your machine has 4cpu and 8gb ram as anything less will be too slow and wont work.

Raid1 could have been an issue if using Linux raid and it was still doing the resync.

Yeah the specs are there. So I have it installed now, but I cannot connect to it using my remote ip, I can using my local ip.

Things I’ve tried

  • I’ve disabled my firewalls on both router and server

All I seem to get is This site can’t be reached

To access from the internet, you will need to redirect the ports on the router for ports 80, 443 to the internal IP of your server. This depends on the router, but can be port forwarding or something similar to this.

I’ve already done that,

thing is I can’t even access it using my remote ip (locally) but the local ip works fine

Ah, I take that back. It must be using another port

As allowed all ports on my internal ip and boom it works!

Do you know how I can find out what port my internal server is using?

Also in this documentation Configuration options | GitLab it mentions about changing the EXTERNAL_URL, how do I do that

This is what it tells me to do

Set the external_url in /etc/gitlab/gitlab.rb :

external_url ""

but I don’t know how to do it, any advice?

Best regards,

Same for the root password, how do I access it?

Unless you provided a custom password during installation, a password will be randomly generated and stored for 24 hours in `/etc/gitlab/initial_root_password` . Use this password with username `root` to login.

Installing 14.0.2 outputs the root password to the console at the end of the install. If you didn’t remember this or copy it, then you will need to reset it:

if you changed the ports, then you changed them in the gitlab.rb file. Otherwise they are port 80 for http and port 443 for https.

You can edit the gitlab.rb file using nano or vim or your favourite console text editor.

Okay thank you,

This is where I don’t understand, so I’ve installed VIM using their guide

but when I type vim /etc/gitlab/gitlab.rb
it says [Permission Denied]

Any idea why thats the case?

You need to do it as root or with sudo, so:

sudo vim /etc/gitlab/gitlab.rb


sudo su

to get to root, and then run vim as you did previously.


Honestly thank you so much.

One more question (Hopefully) how can I tell how much storage is left on the server?

You can use:

df -h

and the output will show each the mounted partitions with space used/free.


so if I had two hard drives and one of them is full how can I let gitlab know to use the other one?

First needs to be a partition on the disk. Second, need to mount it somewhere, eg: /mnt and then we can stop gitlab, move the contents of /var/opt/gitlab to this /mnt place and then unmount it, and mount the new disk partition to /var/opt/gitlab. Then start gitlab.

I think for now, concentrate on what you have, and in the meantime, learn a bit of admin for Linux systems in terms of creating partitions etc, and mounting/unmounting, how to edit /etc/fstab so that the partition will mount automatically, etc.