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

Error: Process completed with exit code 1. on macOS sometime. #1

Closed
twang2218 opened this issue Oct 27, 2021 · 1 comment
Closed

Error: Process completed with exit code 1. on macOS sometime. #1

twang2218 opened this issue Oct 27, 2021 · 1 comment
Labels
bug Something isn't working thank you! Thank you for submitting this issue!

Comments

@twang2218
Copy link

Recently I use lyricwulf/abc@v1 to handle the system dependencies installation, the yaml section is:

      - name: Install system dependencies
        uses: lyricwulf/abc@v1
        with:
          linux: libv8-dev librsvg2-dev graphviz
          macos: librsvg graphviz
          windows: graphviz

However, I received CI fail on macOS from time to time, some times pass, some times fail. Here is the failed one:

...

aws/tap/aws-sam-cli 1.33.0 -> 1.34.1, azure-cli 2.29.0 -> 2.29.1, gnupg 2.3.2 -> 2.3.3, php 8.0.11_1 -> 8.0.12
==> Downloading https://github.com/aws/aws-sam-cli/releases/download/v1.33.0//aws-sam-cli-1.34.1.sierra.bottle.tar.gz
curl: (22) The requested URL returned error: 404 
Error: aws-sam-cli: Failed to download resource "aws-sam-cli"
Download failed: https://github.com/aws/aws-sam-cli/releases/download/v1.33.0//aws-sam-cli-1.34.1.sierra.bottle.tar.gz

...

==> php
To enable PHP in Apache add the following to httpd.conf and restart Apache:
    LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so

    <FilesMatch \.php$>
        SetHandler application/x-httpd-php
    </FilesMatch>

Finally, check DirectoryIndex includes index.php
    DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:
    /usr/local/etc/php/8.0/

To start php:
  brew services start php
Or, if you don't want/need a background service you can just run:
  /usr/local/opt/php/sbin/php-fpm --nodaemonize
Error: Process completed with exit code 1.

The step failed because one package download failed.

I also noticed that many other packages are upgraded automatically, which majority time cost for this step on macOS platform.

To minimize the download traffic, which might reduce the possibility of failure on download dependencies, I think we might need to disable the auto updating of Homebrew on macOS.

lyricwulf added a commit to lyricwulfx/fluffy-enigma that referenced this issue Nov 2, 2021
lyricwulf added a commit that referenced this issue Nov 3, 2021
@lyricwulf
Copy link
Owner

lyricwulf commented Nov 3, 2021

Thanks for the issue!

Looks like the failing package aws-sam-cli has had the 404 error on several deployments on brew: aws/aws-sam-cli#1987, aws/aws-sam-cli#2659

And after reading a discussion on brew's auto-upgrade and seeing that it is widely unwelcome, I've decided to take a step toward consistency and disable auto-upgrading by default, and added an option to auto-upgrade on all platforms in commit 4842bde.

You should see these changes reflected in v1.2 which (I believe?) should be automatically deployed to the @v1 tag

@lyricwulf lyricwulf added bug Something isn't working thank you! Thank you for submitting this issue! labels Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working thank you! Thank you for submitting this issue!
Projects
None yet
Development

No branches or pull requests

2 participants