Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "android" and "android-app" no longer build in the release branch #34

Closed
regisb opened this issue Nov 28, 2024 · 0 comments · Fixed by #35
Closed

The "android" and "android-app" no longer build in the release branch #34

regisb opened this issue Nov 28, 2024 · 0 comments · Fixed by #35

Comments

@regisb
Copy link
Contributor

regisb commented Nov 28, 2024

Building image docker.io/overhangio/openedx-android:18.0.0                                                                                                                              
docker buildx build --tag=docker.io/overhangio/openedx-android:18.0.0 --output=type=docker --target=common --cache-from=type=registry,ref=docker.io/overhangio/openedx-android:18.0.0-ca
che /home/regis/.local/share/tutor/env/plugins/android/build                                                                                                                            
[+] Building 2.8s (9/20)                                                                                                                                       docker-container:max4cpu 
 => [internal] load build definition from Dockerfile                                                                                                                               0.0s 
 => => transferring dockerfile: 2.86kB                                                                                                                                             0.0s 
 => resolve image config for docker-image://docker.io/docker/dockerfile:1                                                                                                          0.4s 
 => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5                                                    0.0s 
 => => resolve docker.io/docker/dockerfile:1@sha256:865e5dd094beca432e8c0a1d5e1c465db5f998dca4e439981029b3b81fb39ed5                                                               0.0s 
 => [internal] load metadata for docker.io/library/ubuntu:23.10                                                                                                                    0.2s 
 => [internal] load .dockerignore                                                                                                                                                  0.0s 
 => => transferring context: 2B                                                                                                                                                    0.0s 
 => importing cache manifest from docker.io/overhangio/openedx-android:18.0.0-cache                                                                                                0.8s 
 => => inferred cache manifest type: application/vnd.oci.image.index.v1+json                                                                                                       0.0s 
 => CACHED [base 1/3] FROM docker.io/library/ubuntu:23.10@sha256:fd7fe639db24c4e005643921beea92bc449aac4f4d40d60cd9ad9ab6456aec01                                                  0.1s 
 => => resolve docker.io/library/ubuntu:23.10@sha256:fd7fe639db24c4e005643921beea92bc449aac4f4d40d60cd9ad9ab6456aec01                                                              0.1s 
 => ERROR [code 1/1] ADD --keep-git-dir https://github.com/openedx/openedx-app-android.git#open-release/redwood.3 /app/openedx-app-android                                         1.4s 
 => ERROR [base 2/3] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked     --mount=type=cache,target=/var/lib/apt,sharing=locked apt update &&     apt upgrade -y &&     0.9s 
------                                                                                                                                                                                  
 > [code 1/1] ADD --keep-git-dir https://github.com/openedx/openedx-app-android.git#open-release/redwood.3 /app/openedx-app-android:                                                    
0.364 7cf0887817f63fe14069e509f6c184e0bc09cc04  refs/tags/open-release/redwood.3                                                                                                        
0.819 From https://github.com/openedx/openedx-app-android                                                                                                                               
0.819  * [new tag]         open-release/redwood.3 -> open-release/redwood.3                 
0.888 Initialized empty Git repository in /var/lib/buildkit/runc-overlayfs/snapshots/snapshots/7415/fs/.git/                                                                            
0.892 commit                                                                                
------                                                                                      
------                                                                                      
 > [base 2/3] RUN --mount=type=cache,target=/var/cache/apt,sharing=locked     --mount=type=cache,target=/var/lib/apt,sharing=locked apt update &&     apt upgrade -y &&     apt install 
-y wget unzip git openjdk-17-jre openjdk-17-jdk:                
0.117                                                                                       
0.117 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0.117 
0.205 Ign:1 http://security.ubuntu.com/ubuntu mantic-security InRelease
0.229 Err:2 http://security.ubuntu.com/ubuntu mantic-security Release
0.229   404  Not Found [IP: 185.125.190.83 80] 
0.344 Ign:3 http://archive.ubuntu.com/ubuntu mantic InRelease
0.445 Ign:4 http://archive.ubuntu.com/ubuntu mantic-updates InRelease
0.547 Ign:5 http://archive.ubuntu.com/ubuntu mantic-backports InRelease
0.649 Err:6 http://archive.ubuntu.com/ubuntu mantic Release
0.649   404  Not Found [IP: 91.189.91.81 80]
0.751 Err:7 http://archive.ubuntu.com/ubuntu mantic-updates Release
0.852   404  Not Found [IP: 91.189.91.81 80]
0.857 Reading package lists...
0.868 E: The repository 'http://security.ubuntu.com/ubuntu mantic-security Release' does not have a Release file.
0.868 E: The repository 'http://archive.ubuntu.com/ubuntu mantic Release' does not have a Release file.
0.868 E: The repository 'http://archive.ubuntu.com/ubuntu mantic-updates Release' does not have a Release file.
0.868 E: The repository 'http://archive.ubuntu.com/ubuntu mantic-backports Release' does not have a Release file.
------
Dockerfile:6
--------------------
   5 |     ENV DEBIAN_FRONTEND=noninteractive
   6 | >>> RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
   7 | >>>     --mount=type=cache,target=/var/lib/apt,sharing=locked apt update && \
   8 | >>>     apt upgrade -y && \
   9 | >>>     apt install -y wget unzip git openjdk-17-jre openjdk-17-jdk
  10 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt update &&     apt upgrade -y &&     apt install -y wget unzip git openjdk-17-jre openjdk-17-jdk" did not complete successfully: exit cod
e: 100
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx-android:18.0.0 --output=type=docker --target=common --cache-from=type=registry,ref=docker.io
/overhangio/openedx-android:18.0.0-cache /home/regis/.local/share/tutor/env/plugins/android/build

It looks like the apt repositories for ubuntu 23.10 are no longer available. Indeed, I don't see mantic here:
http://archive.ubuntu.com/ubuntu/dists/
http://security.ubuntu.com/ubuntu/dists/

The latest 23.10 Docker image was pushed 6 months ago: https://hub.docker.com/_/ubuntu/tags?name=23.10

I guess the apt repositories are no longer available because the release is not supported anymore: https://endoflife.date/ubuntu

We should upgrade to 24.04 (LTS), just like @Abdul-Muqadim-Arbisoft did in main: see PR and issue #25.

regisb pushed a commit that referenced this issue Nov 28, 2024
@regisb regisb closed this as completed in cb789e8 Nov 28, 2024
@github-project-automation github-project-automation bot moved this from Pending Triage to Done in Tutor project management Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant