Image Rebuild Error

Setup Info
Registered Posts: 4 ✭✭

Hi,

Our instance are running with DSS version as 13.4.0. I tried rebuilding the image to remove lower versions of python like 2.7,3.6,3.7,3.8 using the below command. Unfortunately its failing at below stage.

./bin/dssadmin build-base-image --type container-exec --without-py27 --without-py37 --without-py38 --with-py39 --with-py310 --with-py311

Any idea on how to fix this?

Error:

[ 3/36] RUN . /etc/os-release && case "$VERSION_ID" in 7*) echo $'[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/$releasever/$basearch/\ngpgcheck=0\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key\nmodule_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 8*) dnf -qy module enable nginx:1.22;; *) echo 2>&1 'OS version not supported'; exit 1;; esac:
1.656 Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Dockerfile:4

3 |
4 | >>> RUN . /etc/os-release && case "$VERSION_ID" in 5 | >>> 7*) echo $'[nginx-stable]\n6 | >>> name=nginx stable repo\n7 | >>> baseurl=http://nginx.org/packages/centos/$releasever/$basearch/\n8 | >>> gpgcheck=0\n9 | >>> enabled=1\n10 | >>> gpgkey=https://nginx.org/keys/nginx_signing.key\n11 | >>> module_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 12 | >>> 8*) dnf -qy module enable nginx:1.22;; 13 | >>> *) echo 2>&1 'OS version not supported'; exit 1;; 14 | >>> esac
15 |

Operating system used: Almalinux

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • PartnerApplicant, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 102 ✭✭✭✭✭✭

    Hey,

    Your issue seems to be about the mirror ? Have you verified if is this image compatible with your distrib ?

    Does it work on an earlier dataiku version, if so which one ?

    Best,

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,319 Neuron

    Can you try adding these statements?

    --mode build-push --distrib almalinux8
  • Registered Posts: 4 ✭✭

    Am still seeing the same error even after adding these. No luck!


    #8 ERROR: process "/bin/sh -c . /etc/os-release && case "$VERSION_ID" in 7*) echo $'[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/$releasever/$basearch/\ngpgcheck=0\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key\nmodule_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 8*) dnf -qy module enable nginx:1.22;; *) echo 2>&1 'OS version not supported'; exit 1;; esac" did not complete successfully: exit code: 1

    [ 3/36] RUN . /etc/os-release && case "$VERSION_ID" in 7*) echo $'[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/$releasever/$basearch/\ngpgcheck=0\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key\nmodule_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 8*) dnf -qy module enable nginx:1.22;; *) echo 2>&1 'OS version not supported'; exit 1;; esac:
    1.229 runc run failed: unable to start container process: error during container init: exec: "/bin/sh": stat /bin/sh: no such file or directory

    Dockerfile:4

    3 |
    4 | >>> RUN . /etc/os-release && case "$VERSION_ID" in 5 | >>> 7*) echo $'[nginx-stable]\n6 | >>> name=nginx stable repo\n7 | >>> baseurl=http://nginx.org/packages/centos/$releasever/$basearch/\n8 | >>> gpgcheck=0\n9 | >>> enabled=1\n10 | >>> gpgkey=https://nginx.org/keys/nginx_signing.key\n11 | >>> module_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 12 | >>> 8*) dnf -qy module enable nginx:1.22;; 13 | >>> *) echo 2>&1 'OS version not supported'; exit 1;; 14 | >>> esac
    15 |

  • Registered Posts: 4 ✭✭

    This works from UI but for not from CLI. We never tried with previous versions from CLI.

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,319 Neuron

    It's a different error now. Can you post more lines from the install.log? The actual error is likely to be further up.

  • Registered Posts: 4 ✭✭

    Here are the logs:

    #8 [ 3/36] RUN . /etc/os-release && case "$VERSION_ID" in 7*) echo $'[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/$releasever/$basearch/\ngpgcheck=0\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key\nmodule_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 8*) dnf -qy module enable nginx:1.22;; ) echo 2>&1 'OS version not supported'; exit 1;; esac
    #8 1.229 runc run failed: unable to start container process: error during container init: exec: "/bin/sh": stat /bin/sh: no such file or directory
    #8 ERROR: process "/bin/sh -c . /etc/os-release && case "$VERSION_ID" in 7
    ) echo $'[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/$releasever/$basearch/\ngpgcheck=0\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key\nmodule_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 8*) dnf -qy module enable nginx:1.22;; *) echo 2>&1 'OS version not supported'; exit 1;; esac" did not complete successfully: exit code: 1

    [ 3/36] RUN . /etc/os-release && case "$VERSION_ID" in 7*) echo $'[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/$releasever/$basearch/\ngpgcheck=0\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key\nmodule_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 8*) dnf -qy module enable nginx:1.22;; *) echo 2>&1 'OS version not supported'; exit 1;; esac:
    1.229 runc run failed: unable to start container process: error during container init: exec: "/bin/sh": stat /bin/sh: no such file or directory

    Dockerfile:4

    3 |
    4 | >>> RUN . /etc/os-release && case "$VERSION_ID" in 5 | >>> 7*) echo $'[nginx-stable]\n6 | >>> name=nginx stable repo\n7 | >>> baseurl=http://nginx.org/packages/centos/$releasever/$basearch/\n8 | >>> gpgcheck=0\n9 | >>> enabled=1\n10 | >>> gpgkey=https://nginx.org/keys/nginx_signing.key\n11 | >>> module_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 12 | >>> 8*) dnf -qy module enable nginx:1.22;; 13 | >>> *) echo 2>&1 'OS version not supported'; exit 1;; 14 | >>> esac
    15 |

    ERROR: failed to solve: process "/bin/sh -c . /etc/os-release && case "$VERSION_ID" in 7*) echo $'[nginx-stable]\nname=nginx stable repo\nbaseurl=http://nginx.org/packages/centos/$releasever/$basearch/\ngpgcheck=0\nenabled=1\ngpgkey=https://nginx.org/keys/nginx_signing.key\nmodule_hotfixes=true' > /etc/yum.repos.d/nginx.repo;; 8*) dnf -qy module enable nginx:1.22;; *) echo 2>&1 'OS version not supported'; exit 1;; esac" did not complete successfully: exit code: 1
    Saved to /data/dataiku/dss_data/tmp/exec-docker-base-image.349qphmo/Dockerfile
    Traceback (most recent call last):
    File "/opt/dataiku-dss-13.4.0/resources/container-exec/build-images.py", line 1336, in <module>
    build_image(builder, opts, base_tag)
    File "/opt/dataiku-dss-13.4.0/resources/container-exec/build-images.py", line 1163, in build_image
    run_wait_check(docker_cmd)
    File "/opt/dataiku-dss-13.4.0/resources/container-exec/build-images.py", line 1126, in run_wait_check
    raise Exception("Command failed: %s - code %s" % (cmd, retcode))
    Exception: Command failed: ['docker', 'build', '-t', 'dku-exec-base-apcztpmvb0akq3aao5z486c3:dss-13.4.0', '/data/dataiku/dss_data/tmp/exec-docker-base-image.349qphmo'] - code 1

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.