Installing official gitlab linux package

Feb 16, 2024
4
0
1
United States
Please pardon my ignorance. I am new to both ProxMox and Gitlab.
I am trying to set up an LXC container from the Turnkey templates. No other CT or VM is running on my dedicated ProxMox system.
The summary window tells me this:
Statusrunning
HA Statenone
Node wintermute
Unprivileged Yes
CPU usage0.02% of 4 CPU(s)
Memory usage 0.65% (51.77 MiB of 7.81 GiB)
SWAP usage0.00% (0 B of 1.00 GiB)
Bootdisk size 9.10% (2.28 GiB of 25.00 GiB)

After a reboot, requesting status returns this:

root@GitLab-local ~# gitlab-ctl status
fail: alertmanager: runsv not running
fail: gitaly: runsv not running
fail: gitlab-exporter: runsv not running
fail: gitlab-kas: runsv not running
fail: gitlab-workhorse: runsv not running
fail: logrotate: runsv not running
fail: nginx: runsv not running
fail: node-exporter: runsv not running
fail: postgres-exporter: runsv not running
fail: postgresql: runsv not running
fail: prometheus: runsv not running
fail: puma: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: sidekiq: runsv not running


Running start returns the same:
root@GitLab-local ~# gitlab-ctl start
fail: alertmanager: runsv not running
fail: gitaly: runsv not running
fail: gitlab-exporter: runsv not running
fail: gitlab-kas: runsv not running
fail: gitlab-workhorse: runsv not running
fail: logrotate: runsv not running
fail: nginx: runsv not running
fail: node-exporter: runsv not running
fail: postgres-exporter: runsv not running
fail: postgresql: runsv not running
fail: prometheus: runsv not running
fail: puma: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: sidekiq: runsv not running

I really don't know what to expect, but something here does not seem right to me.
Can anyone tell me what I should be expecting and how to go about getting there?
 
Have you tried to login to the Gitlab GUI instance, by pointing your browser to http://{LXC_GITLAB_IP}/ (replace {LXC_GITLAB_IP} with actual IP
There's also a System control panel at the above but on port :12321 so http://{LXC_GITLAB_IP}:12321/

Disclaimer: Never used this Turnkey - Gitlab, but I believe these are the docs.
 
Thanks, I couldn't find the docs.
It seems pretty obvious that the webserver(nginx) is not running. Neither of those pages respond. And that seems to be what the status command is telling me.

Time to do more reading!
 
I notice your LXC is Unprivileged. I believe I read somewhere, that Gitlab LXC can only run Privileged
Try recreating the LXC (from scratch) in a Privileged container.

Notice: Be aware of the implications of running an LXC container in a Privileged fashion!
 
I will try that.
I'm not sure why that would be, but I know so little about this kind of environment.
In my small world local Gitlab for staging code seems like a great example of the sort of thing ProxMox is good for.

Thanks!
 
I notice your LXC is Unprivileged. I believe I read somewhere, that Gitlab LXC can only run Privileged
Try recreating the LXC (from scratch) in a Privileged container.

Notice: Be aware of the implications of running an LXC container in a Privileged fashion!
I'm not sure I agree with this. Mine is running unprivileged just fine. Mine is not the TurnKey appliance, though. Install is pretty simple, too:

Code:
# Export env vars
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
echo "export LANG=en_US.UTF-8" >> ~/.bashrc
echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc
source ~/.bashrc

apt update && apt dist-upgrade -y
apt install -y curl openssh-server ca-certificates tzdata perl vim

# curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
# or
# vim /etc/apt/sources.list.d/gitlab_gitlab-ee.list

sudo EXTERNAL_URL="http://your.gitlab.url" apt install gitlab-ee

cat /etc/gitlab/initial_root_password
 
Last edited:
I'm not sure I agree with this. Mine is running unprivileged just fine.
As I mentioned, I don't personally have an LXC running Gitlab. Did you install using the Turnkey template? Or maybe built your own on a Debian or Ubuntu LXC? Turnkey's have been known to have Unprivileged/Privileged problems. See also nesting setting.

Maybe you & OP can share:
Code:
cat /etc/pve/lxc/CTID.conf  #replace CTID with LXC ID Number
Then maybe you can compare your situations
 
As I mentioned, I don't personally have an LXC running Gitlab. Did you install using the Turnkey template? Or maybe built your own on a Debian or Ubuntu LXC? Turnkey's have been known to have Unprivileged/Privileged problems. See also nesting setting.

Maybe you & OP can share:
Code:
cat /etc/pve/lxc/CTID.conf  #replace CTID with LXC ID Number
Then maybe you can compare your situations
I didn't mean for the tone to feel as if I was attacking - only disagreeing! Apologies if that came off wrong.

As suggested, here's my conf file:

Code:
pveh2:~# cat /etc/pve/lxc/118.conf
arch: amd64
cores: 8
features: nesting=1
hostname: gitlab
memory: 16384
net0: name=eth0,bridge=vmbr0,firewall=1,gw=172.16.13.1,hwaddr=A6:83:2D:B0:B1:48,ip=172.16.13.30/24,tag=13,type=veth
onboot: 1
ostype: ubuntu
rootfs: ceph_nvme:vm-118-disk-0,size=64G
startup: order=4
swap: 0
tags: ubuntu
unprivileged: 1
 
This all seems like good advice to try.
I'm learning the ins and outs of this,
These suggestions give me new options to explore.
I love the ease of 'ripping it out and trying over'.
Most things - from Windows and BSD VM's to CT's running an assortment of Lunacies have gone well.
I want to find out if this can manage my Thunderbolt ports and other I/O
But GitLab is the first that I really imagine using
More things to try today.
 
Please pardon my ignorance. I am new to both ProxMox and Gitlab.
I am trying to set up an LXC container from the Turnkey templates. No other CT or VM is running on my dedicated ProxMox system.
The summary window tells me this:
Statusrunning
HA Statenone
Nodewintermute
UnprivilegedYes
CPU usage0.02% of 4 CPU(s)
Memory usage0.65% (51.77 MiB of 7.81 GiB)
SWAP usage0.00% (0 B of 1.00 GiB)
Bootdisk size9.10% (2.28 GiB of 25.00 GiB)

After a reboot, requesting status returns this:

root@GitLab-local ~# gitlab-ctl status
fail: alertmanager: runsv not running
fail: gitaly: runsv not running
fail: gitlab-exporter: runsv not running
fail: gitlab-kas: runsv not running
fail: gitlab-workhorse: runsv not running
fail: logrotate: runsv not running
fail: nginx: runsv not running
fail: node-exporter: runsv not running
fail: postgres-exporter: runsv not running
fail: postgresql: runsv not running
fail: prometheus: runsv not running
fail: puma: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: sidekiq: runsv not running


Running start returns the same:
root@GitLab-local ~# gitlab-ctl start
fail: alertmanager: runsv not running
fail: gitaly: runsv not running
fail: gitlab-exporter: runsv not running
fail: gitlab-kas: runsv not running
fail: gitlab-workhorse: runsv not running
fail: logrotate: runsv not running
fail: nginx: runsv not running
fail: node-exporter: runsv not running
fail: postgres-exporter: runsv not running
fail: postgresql: runsv not running
fail: prometheus: runsv not running
fail: puma: runsv not running
fail: redis: runsv not running
fail: redis-exporter: runsv not running
fail: sidekiq: runsv not running

I really don't know what to expect, but something here does not seem right to me.
Can anyone tell me what I should be expecting and how to go about getting there?
Same here!
couldn't get it to work with the turnkey gitlab template, yet i was able to access the turnkey webim service shipped with the template.

Not restarting the container after creation lets me access the login page of gitlab, but getting an error 500 after login.
After a CT restart it seems as gitlab is not started anymore.

Probably trying an ubuntu LXC installation now, as suggested by mrwizardno2.

 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!