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

matrix-client-element cannot be self-built #3834

Open
luixxiul opened this issue Nov 28, 2024 · 0 comments
Open

matrix-client-element cannot be self-built #3834

luixxiul opened this issue Nov 28, 2024 · 0 comments
Labels

Comments

@luixxiul
Copy link
Collaborator

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
My vars.yml file looks like this:


matrix_client_element_enabled: true
matrix_client_element_container_image_self_build: true

Running ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,ensure-matrix-users-created,start -K fails as dos2unix cannot be installed.

TASK [custom/matrix-client-element : Ensure Element Web Docker image is built] ****************************************************************
fatal: [matrix.progressiv.dev]: FAILED! => changed=true 
  cmd:
  - /usr/bin/env
  - docker
  - buildx
  - build
  - --tag=localhost/vectorim/element-web:v1.11.86
  - --file=/matrix/client-element/docker-src/Dockerfile
  - /matrix/client-element/docker-src
  delta: '0:00:02.486921'
  end: '2024-11-28 21:37:46.457536'
  msg: non-zero return code
  rc: 1
  start: '2024-11-28 21:37:43.970615'
  stderr: |-
    #0 building with "default" instance using docker driver
  
    #1 [internal] load build definition from Dockerfile
    #1 transferring dockerfile: 1.06kB done
    #1 WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2)
    #1 DONE 0.0s
  
    #2 [internal] load metadata for docker.io/library/nginx:alpine-slim
    #2 ...
  
    #3 [internal] load metadata for docker.io/library/node:22-bullseye
    #3 DONE 1.3s
  
    #2 [internal] load metadata for docker.io/library/nginx:alpine-slim
    #2 DONE 1.4s
  
    #4 [internal] load .dockerignore
    #4 transferring context: 353B done
    #4 DONE 0.0s
  
    #5 [stage-1 1/4] FROM docker.io/library/nginx:alpine-slim@sha256:c21b5407a5538e72152ae2b221495a5348ee7bc8bd80720aac62206dd65a4579
    #5 CACHED
  
    #6 [builder 1/8] FROM docker.io/library/node:22-bullseye@sha256:ef503384fcee60b98cd1b13e2b0e7577cd5164128f219324ecebdd762c8b8e6e
    #6 CACHED
  
    #7 [internal] load build context
    #7 transferring context: 809.80kB 0.2s done
    #7 DONE 0.2s
  
    #8 [builder 2/8] RUN apt-get update && apt-get install -y git dos2unix
    #8 0.429 Err:1 http://deb.debian.org/debian bullseye InRelease
    #8 0.429   Temporary failure resolving 'deb.debian.org'
    #8 0.430 Err:2 http://deb.debian.org/debian-security bullseye-security InRelease
    #8 0.430   Temporary failure resolving 'deb.debian.org'
    #8 0.430 Err:3 http://deb.debian.org/debian bullseye-updates InRelease
    #8 0.430   Temporary failure resolving 'deb.debian.org'
    #8 0.438 Reading package lists...
    #8 0.458 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'
    #8 0.458 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'deb.debian.org'
    #8 0.458 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
    #8 0.458 W: Some index files failed to download. They have been ignored, or old ones used instead.
    #8 0.470 Reading package lists...
    #8 0.484 Building dependency tree...
    #8 0.486 Reading state information...
    #8 0.491 E: Unable to locate package dos2unix
    #8 ERROR: process "/bin/sh -c apt-get update && apt-get install -y git dos2unix" did not complete successfully: exit code: 100
    ------
     > [builder 2/8] RUN apt-get update && apt-get install -y git dos2unix:
    0.430   Temporary failure resolving 'deb.debian.org'
    0.438 Reading package lists...
    0.458 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'
    0.458 W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'deb.debian.org'
    0.458 W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
    0.458 W: Some index files failed to download. They have been ignored, or old ones used instead.
    0.470 Reading package lists...
    0.484 Building dependency tree...
    0.486 Reading state information...
    0.491 E: Unable to locate package dos2unix
    ------
    WARNING: current commit information was not captured by the build: failed to read current commit information with git rev-parse --is-inside-work-tree
  
     [33m1 warning found (use docker --debug to expand):
    [0m - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 2)
    Dockerfile:9
    --------------------
       7 |     ARG JS_SDK_BRANCH="master"
       8 |
       9 | >>> RUN apt-get update && apt-get install -y git dos2unix
      10 |
      11 |     WORKDIR /src
    --------------------
    ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y git dos2unix" did not complete successfully: exit code: 100
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

Expected behavior
deb.debian.org is resolved and Element Web should be built

Matrix Server:

  • OS: Ubuntu
  • Architecture: amd64

Ansible: irrelevant

Client: irrelevant

Additional context

@luixxiul luixxiul added the bug label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant