Skip to content

gitlab-ctl diff-config: error: cannot run less: No such file or directory

Summary

When installing GitLab via docker-compose and running gitlab-ctl diff-config, I get the following error:

error: cannot run less: No such file or directory

Steps to reproduce

  1. install GitLab via docker-compose
  2. enter the container: docker exec -it gitlab /bin/bash
  3. execute: gitlab-ctl diff-config

What is the current bug behavior?

I'm getting:

error: cannot run less: No such file or directory

What is the expected correct behavior?

I should see the diff between my used config and the config shiped with a version piped to less.

Relevant logs

Relevant logs
root@8849b7c0d685:/# gitlab-ctl diff-config
error: cannot run less: No such file or directory

Details of package version

Provide the package version installation details
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                           Version                              Architecture                         Description
+++-==============================================================-====================================-====================================-=================================================================================================================================
un  gitlab-ce                                                                                                                    (no description available)
ii  gitlab-ee                                                      12.9.3-ee.0                          amd64                                GitLab Enterprise Edition (including NGINX, Postgres, Redis)

Environment details

  • Operating System: CentOS Linux release 7.7.1908 (Core)
  • Installation Target, remove incorrect values:
    • Docker: Docker version 19.03.8, build afacb8b
    • docker-compose:
docker-compose version 1.24.1, build 4667896b
docker-py version: 3.7.3
CPython version: 3.6.8
OpenSSL version: OpenSSL 1.1.0j  20 Nov 2018
  • Installation Type, remove incorrect values:
    • New Installation
  • Is there any other software running on the machine: nope
  • Is this a single or multiple node installation? single
  • Resources
    • CPU: 16
    • Memory total: 64GB

Configuration details

Provide the relevant sections of `/etc/gitlab/gitlab.rb`