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

Retry if setup-matlab fails #67

Closed
zaikunzhang opened this issue May 16, 2023 · 3 comments
Closed

Retry if setup-matlab fails #67

zaikunzhang opened this issue May 16, 2023 · 3 comments

Comments

@zaikunzhang
Copy link

zaikunzhang commented May 16, 2023

Does there exist an option to retry if setup-matlab fails? setup-matlab@v2-beta randomly (not very often) fails due to the failure of sudo apt. See the following for an example. I guess a retry would likely succeed. Thanks.

Workflow file: https://github.com/zequipe/prima/actions/runs/4982550105/workflow
Workflow run: https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600
Error log:

Preparing system for MATLAB
  /usr/bin/sudo -E bash /home/runner/work/_temp/54c86e1c-82a3-4664-a4a6-b5a51f9b1cbf r2023a
  Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
  Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease
  Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
  Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease
  Hit:5 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
  Hit:6 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
  Reading package lists...
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Skipping libasound2, it is already installed and upgrade is not set.
  libasound2 set to manually installed.
  Skipping libcairo-gobject2, it is already installed and upgrade is not set.
  libcairo-gobject2 set to manually installed.
  Skipping libcairo2, it is already installed and upgrade is not set.
  libcairo2 set to manually installed.
  Skipping libcap2, it is already installed and upgrade is not set.
  libcap2 set to manually installed.
  Skipping libcrypt1, it is already installed and upgrade is not set.
  libcrypt1 set to manually installed.
  Skipping libice6, it is already installed and upgrade is not set.
  libice6 set to manually installed.
  Skipping libnspr4, it is already installed and upgrade is not set.
  Skipping libodbc2, it is already installed and upgrade is not set.
  libodbc2 set to manually installed.
  Skipping libodbcinst2, it is already installed and upgrade is not set.
  libodbcinst2 set to manually installed.
  Skipping libuuid1, it is already installed and upgrade is not set.
  libuuid1 set to manually installed.
  Skipping libxcomposite1, it is already installed and upgrade is not set.
  libxcomposite1 set to manually installed.
  Skipping libxcursor1, it is already installed and upgrade is not set.
  libxcursor1 set to manually installed.
  Skipping libxdamage1, it is already installed and upgrade is not set.
  libxdamage1 set to manually installed.
  Skipping libxfixes3, it is already installed and upgrade is not set.
  libxfixes3 set to manually installed.
  Skipping libxft2, it is already installed and upgrade is not set.
  libxft2 set to manually installed.
  Skipping libxinerama1, it is already installed and upgrade is not set.
  libxinerama1 set to manually installed.
  Skipping libxrandr2, it is already installed and upgrade is not set.
  libxrandr2 set to manually installed.
  Skipping libxt6, it is already installed and upgrade is not set.
  libxt6 set to manually installed.
  Skipping libxtst6, it is already installed and upgrade is not set.
  libxtst6 set to manually installed.
  Skipping libxxf86vm1, it is already installed and upgrade is not set.
  libxxf86vm1 set to manually installed.
  Skipping procps, it is already installed and upgrade is not set.
  procps set to manually installed.
  Skipping xkb-data, it is already installed and upgrade is not set.
  xkb-data set to manually installed.
  Skipping ca-certificates, it is already installed and upgrade is not set.
  Skipping libc6, it is already installed and upgrade is not set.
  libc6 set to manually installed.
  Skipping libcups2, it is already installed and upgrade is not set.
  libcups2 set to manually installed.
  Skipping libdrm2, it is already installed and upgrade is not set.
  libdrm2 set to manually installed.
  Skipping libgbm1, it is already installed and upgrade is not set.
  libgbm1 set to manually installed.
  Skipping libgdk-pixbuf-2.0-0, it is already installed and upgrade is not set.
  libgdk-pixbuf-2.0-0 set to manually installed.
  Skipping libglib2.0-0, it is already installed and upgrade is not set.
  libglib2.0-0 set to manually installed.
  Skipping libgstreamer1.0-0, it is already installed and upgrade is not set.
  libgstreamer1.0-0 set to manually installed.
  Skipping libgtk-3-0, it is already installed and upgrade is not set.
  Skipping libnss3, it is already installed and upgrade is not set.
  Skipping libpam0g, it is already installed and upgrade is not set.
  libpam0g set to manually installed.
  Skipping libpango-1.0-0, it is already installed and upgrade is not set.
  libpango-1.0-0 set to manually installed.
  Skipping libpangocairo-1.0-0, it is already installed and upgrade is not set.
  libpangocairo-1.0-0 set to manually installed.
  Skipping libpangoft2-1.0-0, it is already installed and upgrade is not set.
  libpangoft2-1.0-0 set to manually installed.
  Skipping libpython3.[10](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:11), it is already installed and upgrade is not set.
  libpython3.10 set to manually installed.
  Skipping libwayland-client0, it is already installed and upgrade is not set.
  libwayland-client0 set to manually installed.
  Skipping locales, it is already installed and upgrade is not set.
  Skipping sudo, it is already installed and upgrade is not set.
  Skipping zlib1g, it is already installed and upgrade is not set.
  zlib1g set to manually installed.
  The following additional packages will be installed:
    libflac8 libopus0 liborc-0.4-0 libvorbisenc2
  Suggested packages:
    libvisual-0.4-plugins opus-tools
  Recommended packages:
    gstreamer1.0-plugins-base
  The following NEW packages will be installed:
    libflac8 libgstreamer-plugins-base1.0-0 libopus0 liborc-0.4-0 libsndfile1
    libvorbisenc2 locales-all
  0 upgraded, 7 newly installed, 0 to remove and 48 not upgraded.
  Need to get 12.4 MB of archives.
  After this operation, 239 MB of additional disk space will be used.
  Ign:1 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libflac8 amd64 1.3.3-2ubuntu0.1
  Ign:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 liborc-0.4-0 amd64 1:0.4.32-2
  Ign:3 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libgstreamer-plugins-base1.0-0 amd64 1.20.1-1
  Ign:4 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libopus0 amd64 1.3.1-0.1build2
  Ign:5 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libvorbisenc2 amd64 1.3.7-1build2
  Ign:6 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libsndfile1 amd64 1.0.31-2build1
  Ign:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 locales-all amd64 2.35-0ubuntu3.1
  Ign:1 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libflac8 amd64 1.3.3-2ubuntu0.1
  Ign:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 liborc-0.4-0 amd64 1:0.4.32-2
  Ign:3 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libgstreamer-plugins-base1.0-0 amd64 1.20.1-1
  Ign:4 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libopus0 amd64 1.3.1-0.1build2
  Ign:5 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libvorbisenc2 amd64 1.3.7-1build2
  Ign:6 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libsndfile1 amd64 1.0.31-2build1
  Ign:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 locales-all amd64 2.35-0ubuntu3.1
  Ign:1 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libflac8 amd64 1.3.3-2ubuntu0.1
  Ign:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 liborc-0.4-0 amd64 1:0.4.32-2
  Ign:3 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libgstreamer-plugins-base1.0-0 amd64 1.20.1-1
  Ign:4 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libopus0 amd64 1.3.1-0.1build2
  Ign:5 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libvorbisenc2 amd64 1.3.7-1build2
  Ign:6 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libsndfile1 amd64 1.0.31-2build1
  Ign:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 locales-all amd64 2.35-0ubuntu3.1
  Ign:1 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libflac8 amd64 1.3.3-2ubuntu0.1
  Err:2 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 liborc-0.4-0 amd64 1:0.4.32-2
    Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.[15](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:16)4.[17](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:18)4.[20](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:21)8 80]
  Err:3 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libgstreamer-plugins-base1.0-0 amd64 1.20.1-1
    Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  Err:4 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libopus0 amd64 1.3.1-0.1build2
    Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  Err:5 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libvorbisenc2 amd64 1.3.7-1build2
    Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  Err:6 http://azure.archive.ubuntu.com/ubuntu jammy/main amd64 libsndfile1 amd64 1.0.[31](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:32)-2build1
    Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  Err:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 locales-all amd64 2.35-0ubuntu3.1
    Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  Err:1 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libflac8 amd64 1.3.3-2ubuntu0.1
    Could not connect to azure.archive.ubuntu.com:80 (52.154.174.208), connection timed out [IP: 52.154.174.208 80]
  E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/f/flac/libflac8_1.3.3-2ubuntu0.1_amd64.deb  Could not connect to azure.archive.ubuntu.com:80 (52.154.174.208), connection timed out [IP: 52.154.174.208 80]
  E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/o/orc/liborc-0.4-0_0.4.[32](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:33)-2_amd64.deb  Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/g/gst-plugins-base1.0/libgstreamer-plugins-base1.0-0_1.20.1-1_amd64.deb  Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/o/opus/libopus0_1.3.1-0.1build2_amd64.deb  Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/libv/libvorbis/libvorbisenc2_1.3.7-1build2_amd64.deb  Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/libs/libsndfile/libsndfile1_1.0.31-2build1_amd64.deb  Unable to connect to azure.archive.ubuntu.com:http: [IP: 52.154.174.208 80]
  E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/universe/g/glibc/locales-all_2.[35](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:36)-0ubuntu3.1_amd64.deb  Unable to connect to azure.archive.ubuntu.com:http: [IP: [52](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:53).1[54](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:55).1[74](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:75).208 [80](https://github.com/zequipe/prima/actions/runs/4982550105/jobs/8918377600#step:9:81)]
  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Error: The process '/usr/bin/sudo' failed with exit code [100]
@zaikunzhang
Copy link
Author

zaikunzhang commented May 16, 2023

Update: the error seems to occur at a much higher frequency today. See

https://github.com/libsprima/prima/actions/runs/4988072482

@mcafaro
Copy link
Member

mcafaro commented May 16, 2023

This is a known issue with apt-get on GitHub Actions: actions/runner-images#675

We will look into possible mitigations.

@zaikunzhang
Copy link
Author

Thank you @mcafaro for looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants