Install with SUSE Linux Enterprise Server 15

I have followed the instructions to download and install for OpenSuse from here Download and install GitLab | GitLab

At this point it says ‘Now install the GitLab package’ - I would but how? I looked in Yast and didn’t find it.

Please advise.

I found the packages but yast does not see them when I try to do an install and zypper won’t find them for an install or info or most things:

localhost:/home/git # zypper lr | grep gitlab
35 | gitlab_gitlab-ee | gitlab_gitlab-ee | Yes | (r ) Yes | Yes
36 | gitlab_gitlab-ee-source | gitlab_gitlab-ee-source | Yes | (r ) Yes | Yes

Perhaps:

zypper in gitlab_gitlab-ee

from the link you sent, it does show something similar:

sudo EXTERNAL_URL="https://gitlab.example.com" zypper install gitlab-ee

alternatively you can just do zypper install gitlab-ee and then edit /etc/gitlab/gitlab.rb later and configure external_url to whatever you want it to be.

Tried that with no joy:

localhost:/home/git # zypper install gitlab-ee
Refreshing service ‘Basesystem_Module_15_SP2_x86_64’.
Refreshing service ‘Desktop_Applications_Module_15_SP2_x86_64’.
Refreshing service ‘SUSE_Linux_Enterprise_Server_15_SP2_x86_64’.
Refreshing service ‘SUSE_Package_Hub_15_SP2_x86_64’.
Refreshing service ‘Server_Applications_Module_15_SP2_x86_64’.
Refreshing service ‘Web_and_Scripting_Module_15_SP2_x86_64’.
Loading repository data…
Reading installed packages…
‘gitlab-ee’ not found in package names. Trying capabilities.
No provider of ‘gitlab-ee’ found.
Resolving package dependencies…
Nothing to do.

Then tried gitlab_gitlab-ee with same lack of success

Try:

zypper refresh

To update the repo data just in case it hasnt refreshed itself.

Then try the install commands again

Had tried that before but did it again:

Repository ‘gitlab_gitlab-ee’ is up to date.
Repository ‘gitlab_gitlab-ee-source’ is up to date.
All repositories have been refreshed.

Same results on the install.

Thanks for the ideas.

Looks like the gitlab repo hasn’t activated for some reason. You can check this in yast choose the repository option, and see if gitlab is in the list or not. Maybe it doesn’t have an “X” against it to show that it’s enabled/disabled.

Failing that, if you still have issues, I can spin up a SLES 15.2 VM and see if I can replicate it and try to help out further.

Try running this command as root:

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | bash

without sudo, as the gitlab instructions use sudo.

Well I decided to spin a VM up, I expect one of your commands didn’t work properly. See my example below:

opensuse:~ # curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | bash
Detected operating system as opensuse/15.2.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.repo?os=opensuse&dist=15.2&source=script
done.
Retrieving repository 'gitlab_gitlab-ee' metadata -------------------------------------------------------------------------------[-]

Automatically importing the following key:

  Repository:       gitlab_gitlab-ee
  Key Name:         GitLab B.V. (package repository signing key) <packages@gitlab.com>
  Key Fingerprint:  F6403F65 44A38863 DAA0B6E0 3F01618A 51312F3F
  Key Created:      Mon 02 Mar 2020 16:16:59 CET
  Key Expires:      Wed 02 Mar 2022 16:16:59 CET
  Subkey:           1193DC8C5FFF7061 2020-03-02 [expires: 2022-03-02]
  Rpm Name:         gpg-pubkey-51312f3f-5e5d236b


Retrieving repository 'gitlab_gitlab-ee' metadata ............................................................................[done]
Building repository 'gitlab_gitlab-ee' cache .................................................................................[done]
Specified repositories have been refreshed.
Retrieving repository 'gitlab_gitlab-ee-source' metadata .....................................................................[done]
Building repository 'gitlab_gitlab-ee-source' cache ..........................................................................[done]
Specified repositories have been refreshed.

The repository is setup! You can now install packages.

opensuse:~ # ls /etc/zypp/repos.d/

gitlab_gitlab-ee.repo      repo-debug.repo                 repo-non-oss.repo         repo-source.repo
openSUSE-Leap-15.2-1.repo  repo-debug-update-non-oss.repo  repo-oss.repo             repo-update-non-oss.repo
repo-debug-non-oss.repo    repo-debug-update.repo          repo-source-non-oss.repo  repo-update.repo

opensuse:~ # zypper ref
Repository 'gitlab_gitlab-ee' is up to date.                                                                                        
Repository 'gitlab_gitlab-ee-source' is up to date.                                                                                 
Repository 'Non-OSS Repository' is up to date.                                                                                      
Repository 'Main Repository' is up to date.                                                                                         
Repository 'Main Update Repository' is up to date.                                                                                  
Repository 'Update Repository (Non-Oss)' is up to date.                                                                             
All repositories have been refreshed.

opensuse:~ # zypper in gitlab-ee
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  gitlab-ee

1 new package to install.
Overall download size: 936.8 MiB. Already cached: 0 B. After the operation, 1.9 GiB will be freed.
Continue? [y/n/v/...? shows all options] (y): 

as you can see, I ran the script command without sudo, I checked /etc/zypp/repos.d to make sure the gitlab repo file existed. I did a zypper ref, and you can see gitlab showing in the results. And then I managed to run zypper install gitlab-ee.

Just checked the /etc/zypp/repos.d/ and got this so it looks to be there:

localhost:/home/git # ls /etc/zypp/repos.d | grep gitlab
gitlab_gitlab-ee.repo
localhost:/home/git #how-to-use-gitlab

I will see how I can remove it and start over.

Tryit it - download is fine then did the ref and install:

localhost:/ # zypper ref
Repository ‘SLE-Module-Basesystem15-SP2-Pool’ is up to date.
Repository ‘SLE-Module-Basesystem15-SP2-Updates’ is up to date.
Repository ‘SLE-Module-Desktop-Applications15-SP2-Pool’ is up to date.
Repository ‘SLE-Module-Desktop-Applications15-SP2-Updates’ is up to date.
Repository ‘SLE-Product-SLES15-SP2-Pool’ is up to date.
Repository ‘SLE-Product-SLES15-SP2-Updates’ is up to date.
Repository ‘SLE-Module-Packagehub-Subpackages15-SP2-Pool’ is up to date.
Repository ‘SLE-Module-Packagehub-Subpackages15-SP2-Updates’ is up to date.
Repository ‘SUSE-PackageHub-15-SP2-Backports-Pool’ is up to date.
Repository ‘SUSE-PackageHub-15-SP2-Pool’ is up to date.
Repository ‘SLE-Module-Server-Applications15-SP2-Pool’ is up to date.
Repository ‘SLE-Module-Server-Applications15-SP2-Updates’ is up to date.
Repository ‘SLE-Module-Web-Scripting15-SP2-Pool’ is up to date.
Repository ‘SLE-Module-Web-Scripting15-SP2-Updates’ is up to date.
Repository ‘gitlab_gitlab-ee’ is up to date.
Repository ‘gitlab_gitlab-ee-source’ is up to date.
All repositories have been refreshed.
localhost:/ # zypper in gitlab-ee
Refreshing service ‘Basesystem_Module_15_SP2_x86_64’.
Refreshing service ‘Desktop_Applications_Module_15_SP2_x86_64’.
Refreshing service ‘SUSE_Linux_Enterprise_Server_15_SP2_x86_64’.
Refreshing service ‘SUSE_Package_Hub_15_SP2_x86_64’.
Refreshing service ‘Server_Applications_Module_15_SP2_x86_64’.
Refreshing service ‘Web_and_Scripting_Module_15_SP2_x86_64’.
Loading repository data…
Reading installed packages…
‘gitlab-ee’ not found in package names. Trying capabilities.
No provider of ‘gitlab-ee’ found.
Resolving package dependencies…
Nothing to do.
localhost:/ #

I’m open to try other things…

Can you see if this command reports the same results as mine?

opensuse:/etc/zypp/repos.d # cat /etc/zypp/repos.d/gitlab_gitlab-ee.repo | grep -i enabled
enabled=1
enabled=1

since it shows in zypper ref, they should be enabled. I find it strange that your command won’t find and install it. It doesn’t make sense.

Tried this - can’t explain things:

localhost:/ # zypper rm gitlab_gitlab-ee
Reading installed packages…
‘gitlab_gitlab-ee’ not found in package names. Trying capabilities.
No provider of ‘gitlab_gitlab-ee’ found.
Resolving package dependencies…
Nothing to do.
localhost:/ # zypper rm gitlab-ee
Reading installed packages…
‘gitlab-ee’ not found in package names. Trying capabilities.
No provider of ‘gitlab-ee’ found.
Resolving package dependencies…
Nothing to do.
localhost:/ # zypper lr | grep gitlab
35 | gitlab_gitlab-ee | gitlab_gitlab-ee | Yes | (r ) Yes | Yes
36 | gitlab_gitlab-ee-source | gitlab_gitlab-ee-source | Yes | (r ) Yes | Yes
localhost:/ #

Tried it and get the same results as you:

localhost:/ # cat /etc/zypp/repos.d/gitlab_gitlab-ee.repo | grep -i enabled
enabled=1
enabled=1

Just out of interest, do:

ls

from the directory that you are currently sitting in. If there are any files in this location with gitlab in their name, remove them just in case it’s causing problems when we attempt the zypper command.

no files with gitlab in them.

Don’t know if this is helpful:

localhost:/etc/zypp/repos.d # cat gitlab_gitlab-ee.repo
[gitlab_gitlab-ee]
name=gitlab_gitlab-ee
baseurl=https://packages.gitlab.com/gitlab/gitlab-ee/sles/15.2/$basearch
repo_gpgcheck=1
pkg_gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
       https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpgautorefresh=1
type=rpm-md

[gitlab_gitlab-ee-source]
name=gitlab_gitlab-ee-source
baseurl=https://packages.gitlab.com/gitlab/gitlab-ee/sles/15.2/SRPMS
repo_gpgcheck=1
pkg_gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
       https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpgautorefresh=1
type=rpm-md

Mine look like this:

opensuse:~ # cat /etc/zypp/repos.d/gitlab_gitlab-ee.repo 
[gitlab_gitlab-ee]
name=gitlab_gitlab-ee
baseurl=https://packages.gitlab.com/gitlab/gitlab-ee/opensuse/15.2/$basearch
repo_gpgcheck=1
pkg_gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
       https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg
autorefresh=1
type=rpm-md

[gitlab_gitlab-ee-source]
name=gitlab_gitlab-ee-source
baseurl=https://packages.gitlab.com/gitlab/gitlab-ee/opensuse/15.2/SRPMS
repo_gpgcheck=1
pkg_gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
       https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg
autorefresh=1
type=rpm-md

the only difference, I also have autorefresh=1 in both of the config options. Yours seems to be missing this.

EDIT: ah wait, your autorefresh is at the end of the gpgkey line. Move this down to the next line. Then try again zypper ref, and zypper install

As this was my 1st day on this forum the forum limited the number of replies so I now have had to wait for 21 hours.

My file is identical to yours - it is what comes from the package download via curl. The autorefresh is on its own line.

git@localhost:/etc/zypp/repos.d> cat gitlab_gitlab-ee.repo
[gitlab_gitlab-ee]
name=gitlab_gitlab-ee
baseurl=https://packages.gitlab.com/gitlab/gitlab-ee/sles/15.2/$basearch
repo_gpgcheck=1
pkg_gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
   https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg
autorefresh=1
type=rpm-md

[gitlab_gitlab-ee-source]
name=gitlab_gitlab-ee-source
baseurl=https://packages.gitlab.com/gitlab/gitlab-ee/sles/15.2/SRPMS
repo_gpgcheck=1
pkg_gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey
   https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey/gitlab-gitlab-ee-3D645A26AB9FBD22.pub.gpg
autorefresh=1
type=rpm-md

I then ran a zypper search:

localhost:/home/git # zypper se gitlab
Refreshing service 'Basesystem_Module_15_SP2_x86_64'.
Refreshing service 'Desktop_Applications_Module_15_SP2_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP2_x86_64'.
Refreshing service 'SUSE_Package_Hub_15_SP2_x86_64'.
Refreshing service 'Server_Applications_Module_15_SP2_x86_64'.
Refreshing service 'Web_and_Scripting_Module_15_SP2_x86_64'.
Loading repository data...
Reading installed packages...

S | Name                                      | Summary                                              | Type
--+-------------------------------------------+------------------------------------------------------+--------
  | python2-python-gitlab                     | Python module for interacting with the GitLab API    | package
  | python3-python-gitlab                     | Python module for interacting with the GitLab API    | package
  | ruby2.5-rubygem-omniauth-gitlab           | This is the strategy for authenticating to your Gi-> | package
  | ruby2.5-rubygem-omniauth-gitlab-doc       | RDoc documentation for omniauth-gitlab               | package
  | ruby2.5-rubygem-omniauth-gitlab-testsuite | Test suite for omniauth-gitlab                       | package


For an extended search including not yet activated remote resources you may run 'zypper
search-packages' at any time.
Do you want to run 'zypper search-packages' now? [yes/no/always/never] (no): yes

Following packages were found in following modules:

Package                                    Module or Repository                       SUSEConnect Activation Command
-----------------------------------------  -----------------------------------------  --------------------------------------------
python2-python-gitlab                      SUSE Package Hub (PackageHub/15.2/x86_64)  SUSEConnect --product PackageHub/15.2/x86_64
python3-python-gitlab                      SUSE Package Hub (PackageHub/15.2/x86_64)  SUSEConnect --product PackageHub/15.2/x86_64
ruby2.5-rubygem-omniauth-gitlab            SUSE Package Hub (PackageHub/15.2/x86_64)  SUSEConnect --product PackageHub/15.2/x86_64
ruby2.5-rubygem-omniauth-gitlab-doc        SUSE Package Hub (PackageHub/15.2/x86_64)  SUSEConnect --product PackageHub/15.2/x86_64
ruby2.5-rubygem-omniauth-gitlab-testsuite  SUSE Package Hub (PackageHub/15.2/x86_64)  SUSEConnect --product PackageHub/15.2/x86_64

To activate the respective module or product, use SUSEConnect --product.
Use SUSEConnect --help for more details.

And a zypper ref:

localhost:/home/git # zypper ref
Repository 'SLE-Module-Basesystem15-SP2-Pool' is up to date.
Repository 'SLE-Module-Basesystem15-SP2-Updates' is up to date.
Repository 'SLE-Module-Desktop-Applications15-SP2-Pool' is up to date.
Repository 'SLE-Module-Desktop-Applications15-SP2-Updates' is up to date.
Repository 'SLE-Product-SLES15-SP2-Pool' is up to date.
Repository 'SLE-Product-SLES15-SP2-Updates' is up to date.
Repository 'SLE-Module-Packagehub-Subpackages15-SP2-Pool' is up to date.
Repository 'SLE-Module-Packagehub-Subpackages15-SP2-Updates' is up to date.
Retrieving repository 'SUSE-PackageHub-15-SP2-Backports-Pool' metadata .................................[done]
Building repository 'SUSE-PackageHub-15-SP2-Backports-Pool' cache ......................................[done]
Repository 'SUSE-PackageHub-15-SP2-Pool' is up to date.
Repository 'SLE-Module-Server-Applications15-SP2-Pool' is up to date.
Repository 'SLE-Module-Server-Applications15-SP2-Updates' is up to date.
Repository 'SLE-Module-Web-Scripting15-SP2-Pool' is up to date.
Repository 'SLE-Module-Web-Scripting15-SP2-Updates' is up to date.
**Repository 'gitlab_gitlab-ee' is up to date.**

** Repository ‘gitlab_gitlab-ee-source’ is up to date.**
All repositories have been refreshed.

And some more queries:

localhost:/home/git # zypper if gitlab
Refreshing service 'Basesystem_Module_15_SP2_x86_64'.
Refreshing service 'Desktop_Applications_Module_15_SP2_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP2_x86_64'.
Refreshing service 'SUSE_Package_Hub_15_SP2_x86_64'.
Refreshing service 'Server_Applications_Module_15_SP2_x86_64'.
Refreshing service 'Web_and_Scripting_Module_15_SP2_x86_64'.
Loading repository data...
Reading installed packages...


package 'gitlab' not found.
localhost:/home/git # zypper if gitlab_gitlab-ee
Refreshing service 'Basesystem_Module_15_SP2_x86_64'.
Refreshing service 'Desktop_Applications_Module_15_SP2_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP2_x86_64'.
Refreshing service 'SUSE_Package_Hub_15_SP2_x86_64'.
Refreshing service 'Server_Applications_Module_15_SP2_x86_64'.
Refreshing service 'Web_and_Scripting_Module_15_SP2_x86_64'.
Loading repository data...
Reading installed packages...


package 'gitlab_gitlab-ee' not found.
localhost:/home/git # zypper if gitlab-ee
Refreshing service 'Basesystem_Module_15_SP2_x86_64'.
Refreshing service 'Desktop_Applications_Module_15_SP2_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP2_x86_64'.
Refreshing service 'SUSE_Package_Hub_15_SP2_x86_64'.
Refreshing service 'Server_Applications_Module_15_SP2_x86_64'.
Refreshing service 'Web_and_Scripting_Module_15_SP2_x86_64'.
Loading repository data...
Reading installed packages...


package 'gitlab-ee' not found

I then removed (zypper rr) and started over:

localhost:/home/git # curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
Detected operating system as sles/15.2.
Checking for curl...
Detected curl...
Downloading repository file: https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/config_file.repo?os=sles&dist=15.2&source=script
done.
Retrieving repository 'gitlab_gitlab-ee' metadata ......................................................[done]
Building repository 'gitlab_gitlab-ee' cache ...........................................................[done]
Specified repositories have been refreshed.
Retrieving repository 'gitlab_gitlab-ee-source' metadata ...............................................[done]
Building repository 'gitlab_gitlab-ee-source' cache ....................................................[done]
Specified repositories have been refreshed.

The repository is setup! You can now install packages.

No joy:

localhost:/home/git # zypper in gitlab-ee
Refreshing service 'Basesystem_Module_15_SP2_x86_64'.
Refreshing service 'Desktop_Applications_Module_15_SP2_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_15_SP2_x86_64'.
Refreshing service 'SUSE_Package_Hub_15_SP2_x86_64'.
Refreshing service 'Server_Applications_Module_15_SP2_x86_64'.
Refreshing service 'Web_and_Scripting_Module_15_SP2_x86_64'.
Loading repository data...
Reading installed packages...
'gitlab-ee' not found in package names. Trying capabilities.
No provider of 'gitlab-ee' found.
Resolving package dependencies...
Nothing to do.

One more question on the install doc. It says " Next, install the GitLab package. Make sure you have correctly set up your DNS, and change https://gitlab.example.com to the URL at which you want to access your GitLab instance. Installation will automatically configure and start GitLab at that URL." But where do you change it for GitLab to find it?

The place where you purchased your domain if you manage it with them or on your own DNS server etc

The external_url in gitlab.rb should match the DNS entry you create.

As for your problem I have no idea as cannot replicate it. I created new OpenSUSE 15.2 server from clean install and it worked. Your server seems to be corrupted for some reason since its simply not possible to have the repo enabled and not be able to install the package. I suggest you clean install openSUSE and forget attempting to fix your broken install. Maybe you installed it from corrupted ISO download for openSUSE or something. I have no other explanation for it.