Skip to content

CI-Build: Bundling stage is broken

The bundle stage of the gitlab ci build is broken, since wget and unzip cannot be installed due to an outdated apt registry.

Log:

Running with gitlab-runner 17.1.0 (fe451d5a)
  on main-runner e83d79b0, system ID: s_ed678212d990
Preparing the "docker" executor
00:01
Using Docker executor with image git.fortiss.org:5001/af3/maven-releng:latest ...
Authenticating with credentials from job payload (GitLab Registry)
Pulling docker image git.fortiss.org:5001/af3/maven-releng:latest ...
Using docker image sha256:3d0d68d64549b420a8e8fdce68d45c7e033ca76296e2bcdd5bbef1688f113201 for git.fortiss.org:5001/af3/maven-releng:latest with digest git.fortiss.org:5001/af3/maven-releng@sha256:9c25f2de38dd13fe46fe0b729c43d06b2be45136c42ca6107f78ea901b575101 ...
Preparing environment
00:00
Running on runner-e83d79b0-project-1335-concurrent-0 via git...
Getting source from Git repository
00:01
Fetching changes...
Reinitialized existing Git repository in /builds/af3/maven-releng/.git/
Checking out e2a8d79d as detached HEAD (ref is master)...
Removing bundles/emf-generator/target/
Removing releng/org.fortiss.af3.update/target/
Removing releng/org.fortiss.tooling.update/target/
Removing workspace/
Skipping Git submodules setup
Downloading artifacts
00:04
Downloading artifacts for test (100972)...
Downloading artifacts from coordinator... ok        host=git.fortiss.org id=100972 responseStatus=200 OK token=glcbt-64
Executing "step_script" stage of the job script
00:02
Using docker image sha256:3d0d68d64549b420a8e8fdce68d45c7e033ca76296e2bcdd5bbef1688f113201 for git.fortiss.org:5001/af3/maven-releng:latest with digest git.fortiss.org:5001/af3/maven-releng@sha256:9c25f2de38dd13fe46fe0b729c43d06b2be45136c42ca6107f78ea901b575101 ...
$ if [[ $JRE_TYPE == "bundled" ]]; then bash docker/jre-bundle.bash products/af3/org.fortiss.af3.phoenix.product/target/products/; fi
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  unzip wget zip
0 upgraded, 3 newly installed, 0 to remove and 82 not upgraded.
Need to get 684 kB of archives.
After this operation, 2,243 kB of additional disk space will be used.
Err:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 wget amd64 1.20.3-1ubuntu2
  404  Not Found [IP: 185.125.190.81 80]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 unzip amd64 6.0-25ubuntu1.1 [168 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 zip amd64 3.0-11build1 [167 kB]
Fetched 335 kB in 0s (1,247 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/w/wget/wget_1.20.3-1ubuntu2_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
docker/jre-bundle.bash: line 20: unzip: command not found
docker/jre-bundle.bash: line 26: wget: command not found
tar (child): products/af3/org.fortiss.af3.phoenix.product/target/products//jre.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
cp: cannot create regular file 'products/af3/org.fortiss.af3.phoenix.product/target/products//tmp/AutoFOCUS3/NOTICE': No such file or directory
docker/jre-bundle.bash: line 42: cd: products/af3/org.fortiss.af3.phoenix.product/target/products//tmp/: No such file or directory
rm: cannot remove 'products/af3/org.fortiss.af3.phoenix.product/target/products//jre.*': No such file or directory
docker/jre-bundle.bash: line 20: unzip: command not found
docker/jre-bundle.bash: line 33: wget: command not found
docker/jre-bundle.bash: line 34: unzip: command not found
mv: cannot stat 'products/af3/org.fortiss.af3.phoenix.product/target/products//tmp/AutoFOCUS3/*jre/': No such file or directory
cp: cannot create regular file 'products/af3/org.fortiss.af3.phoenix.product/target/products//tmp/AutoFOCUS3/NOTICE': No such file or directory
docker/jre-bundle.bash: line 42: cd: products/af3/org.fortiss.af3.phoenix.product/target/products//tmp/: No such file or directory
rm: cannot remove 'products/af3/org.fortiss.af3.phoenix.product/target/products//jre.*': No such file or directory
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1
Edited by Andreas Bayha