Docker "manifest unknown"
Cannot make stack because I cannot access the needed Docker image:
docker: Error response from daemon: manifest for gitlab-registry.cern.ch/lhcb-core/lbdocker/el9-build:v4.57 not found: manifest unknown: manifest unknown.
I'm running on a university machine (i.e., not Lxplus) with Ubuntu:
❯ uname -a
Linux sneezy 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
It does not appear to be a problem with my Docker installation:
❯ docker run --rm -it hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
...
Reproducer:
❯ curl https://gitlab.cern.ch/rmatev/lb-stack-setup/raw/master/setup.py | python3 - stack_new
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7926 100 7926 0 0 17652 0 --:--:-- --:--:-- --:--:-- 17652
INFO Platform x86_64-ubuntu1804 is not supported natively, checking for docker...
INFO ...using docker.
INFO Creating new stack setup in stack_new ...
INFO
Now do
cd "stack_new"
$EDITOR utils/config.json
make
❯ cd stack_new
❯ make
INFO Cloning Alignment...
INFO Cloning Moore...
INFO Cloning Allen...
INFO Cloning Rec...
INFO Cloning Lbcom...
INFO Cloning LHCb...
INFO Cloning Detector...
INFO Cloning Gaudi...
INFO Cloning AppConfig...
INFO Cloning PRConfig...
INFO Cloning ParamFiles...
INFO Fetching Detector, Gaudi, LHCb, Lbcom, Rec, Allen, Moore, Alignment, DBASE/AppConfig, DBASE/PRConfig, PARAM/ParamFiles, utils
WARNING Build at least Gaudi for C++/Python intellisense to work
INFO stack.code-workspace was updated
INFO Build Alignment, Moore, LHCb, Detector, Gaudi, Rec, Lbcom, Allen to get full Python intellisense.
Unable to find image 'gitlab-registry.cern.ch/lhcb-core/lbdocker/el9-build:v4.57' locally
docker: Error response from daemon: manifest for gitlab-registry.cern.ch/lhcb-core/lbdocker/el9-build:v4.57 not found: manifest unknown: manifest unknown.
See 'docker run --help'.
Traceback (most recent call last):
File "/data/home/michaelkw/stack_new/utils/setup-make.py", line 683, in main
write_vscode_settings(repos, dp_repos, project_deps, config)
File "/data/home/michaelkw/stack_new/utils/vscode.py", line 303, in write_vscode_settings
create_clang_format(config)
File "/data/home/michaelkw/stack_new/utils/vscode.py", line 36, in create_clang_format
check_call([
File "/data/home/michaelkw/miniconda/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/data/home/michaelkw/stack_new/utils/build-env', '/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2683/stable/linux-64/bin/python', '-c', "from LbDevTools import createClangFormat\ncreateClangFormat('.clang-format')"]' returned non-zero exit status 125.
/data/home/michaelkw/stack_new/.output/configuration-x86_64_v2-el9-gcc13-opt.mk:1: Error occurred in updating VSCode settings
make: Nothing to be done for 'all'.
Additional context:
After some searching, I found a description of LbDocker and tried to get the image manually:
❯ source /cvmfs/lhcb.cern.ch/lib/LbEnv
********************************************************************************
* ---- LbEnv ---- *
********************************************************************************
--- CMAKE_PREFIX_PATH is set to:
/cvmfs/lhcb.cern.ch/lib/lhcb
/cvmfs/lhcb.cern.ch/lib/lcg/releases
/cvmfs/lhcb.cern.ch/lib/lcg/app/releases
/cvmfs/lhcb.cern.ch/lib/lcg/external
/cvmfs/lhcb.cern.ch/lib/contrib
/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/3067/stable/linux-64/lib/python3.9/site-packages/LbDevTools/data/cmake
--------------------------------------------------------------------------------
❯ lb-docker-run
Unable to find image 'gitlab-registry.cern.ch/lhcb-core/lbdocker/centos7-build:v4' locally
v4: Pulling from lhcb-core/lbdocker/centos7-build
85ec7c549d38: Pull complete
468cbb2f3703: Pull complete
711055539fed: Pull complete
13206524df29: Pull complete
b0ddf6bbb07f: Pull complete
284e96ebdc7d: Pull complete
16ab4af6fad0: Pull complete
35ca308c6f13: Pull complete
c7d0b855aae2: Pull complete
Digest: sha256:efda5fef7dda6d9eb4077ee2ecc7450d67ec74cddf6a8e9455f44c34cd2fbdc6
Status: Downloaded newer image for gitlab-registry.cern.ch/lhcb-core/lbdocker/centos7-build:v4
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for michaelkw:
Sorry, try again.
[sudo] password for michaelkw:
Sorry, try again.
[sudo] password for michaelkw:
sudo: 3 incorrect password attempts
I'm typing in my password correctly (I'm quite sure), so think the errors are a consequence of not having sudo
privileges. I don't know why it wants sudo
privileges to run. In any case, the above errors building the stack still occur after doing this.