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

support: seems not working on macOS: Error: Action failed with error Unexpected HTTP response: 404 #652

Open
3 tasks done
razonyang opened this issue Aug 14, 2024 · 13 comments
Assignees
Labels
support User support

Comments

@razonyang
Copy link

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

Hi, I encountered an issue using this action on macos-latest runner, but not working.

image

Relevant links

Public repository:
YAML config:
YAML workflow:


name: GitHub Pages

on:
  push:
    branches:
      - main  # Set a branch to deploy
  pull_request:

jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
        version: ['0.123.0', '0.124.0', '0.125.0', '0.126.0', '0.127.0', '0.128.0', '0.131.0', '0.132.0']
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4

      - name: Setup Hugo
        uses: peaceiris/actions-hugo@v3
        with:
          hugo-version: ${{ matrix.version }}
          extended: true

      - name: Build
        run: hugo

Relevant log output

Run peaceiris/actions-hugo@v3
  with:
    hugo-version: 0.1[2](https://github.com/razonyang/hugomods-images-test/actions/runs/10381019819/job/28741834062#step:3:2)3.0
    extended: true
Hugo version: 0.12[3](https://github.com/razonyang/hugomods-images-test/actions/runs/10381019819/job/28741834062#step:3:3).0
Error: Action failed with error Unexpected HTTP response: [4](https://github.com/razonyang/hugomods-images-test/actions/runs/10381019819/job/28741834062#step:3:4)04

Additional context.

.

@razonyang razonyang added the support User support label Aug 14, 2024
@TheGroundZero
Copy link

This has now started to fail in my Github Workflows

Run peaceiris/actions-hugo@v3
  with:
    hugo-version: latest
    extended: true
  
Hugo version: 0.138.0
Error: Action failed with error Unexpected HTTP response: 404

@MrHinsh
Copy link

MrHinsh commented Nov 18, 2024

Error: Action failed with error Unexpected HTTP response: 404

image

https://github.com/nkdAgility/NKDAgility.com/actions/runs/11896955846?pr=115

##[debug]Evaluating condition for step: 'Setup Hugo'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Setup Hugo
##[debug]Loading inputs
##[debug]Loading env
Run peaceiris/actions-hugo@v3
  
Hugo version: 0.138.0
##[debug]Hugo extended: true
##[debug]Operating System: Linux
##[debug]Processor Architecture: 64bit
##[debug]toolURL: https://github.com/gohugoio/hugo/releases/download/v0.138.0/hugo_extended_0.138.0_Linux-64bit.tar.gz
##[debug]homeDir: /home/runner
##[debug]workDir: /home/runner/actions_hugo
##[debug]binDir: /home/runner/actions_hugo/bin
##[debug]tempDir: /home/runner/actions_hugo/_temp
##[debug]Downloading https://github.com/gohugoio/hugo/releases/download/v0.138.0/hugo_extended_0.138.0_Linux-64bit.tar.gz
##[debug]Destination /home/runner/work/_temp/e86f1ea7-8f8c-4f16-ae9[2](https://github.com/nkdAgility/NKDAgility.com/actions/runs/11896955846/job/33150777634#step:6:2)-f7e811f80a06
##[debug]Failed to download from "https://github.com/gohugoio/hugo/releases/download/v0.1[3](https://github.com/nkdAgility/NKDAgility.com/actions/runs/11896955846/job/33150777634#step:6:3)8.0/hugo_extended_0.138.0_Linux-6[4](https://github.com/nkdAgility/NKDAgility.com/actions/runs/11896955846/job/33150777634#step:6:4)bit.tar.gz". Code(404) Message(Not Found)
Error: Action failed with error Unexpected HTTP response: 404

@MrHinsh
Copy link

MrHinsh commented Nov 18, 2024

Release 0.138.0 was deleted! gohugoio/hugo#13066

I'm guessing that we need to wait for the cache to expire and the Action to update to the least build of hugo that replaces 0.138.0.

@TheGroundZero
Copy link

Also note: my workflow contains hugo-version: latest yet version 0.138.0 is used instead of 0.139.0 (released ca. 30 minutes ago)

@MrHinsh
Copy link

MrHinsh commented Nov 18, 2024

@TheGroundZero its probably cached...

@peaceiris is there a way to invalidate the cache without picking a specific version?

@joobisb
Copy link

joobisb commented Dec 15, 2024

faced the same issue as well with the latest tag, this was fixed by using a specific version

hugo-version: '0.134.1'

@simonemargio
Copy link

I encountered the same issue when using hugo-version: latest.
As a temporary solution, I reverted to the previous week's version of Hugo, which I still have locally to manage my sites.

Specifically, using hugo-version: 0.139.4 has resolved the problem for now.

@cafkafk
Copy link

cafkafk commented Dec 15, 2024

This release broke the latest version by not including assets https://github.com/gohugoio/hugo/releases/tag/v0.139.5, which was because of gohugoio/hugo#13147. Seems using 0.139.4 is recommended

@ALF-eV
Copy link

ALF-eV commented Dec 15, 2024

Using 0.139.4 is a manual solution for pipelines currently using latest we'll have to remember to revert later on. Not ideal. Is it hard to add the missing assets?

@MagicLegend
Copy link

Current problems with latest seems to be caused by gohugoio/hugo#13147. v0.139.5 does not include any assets, which the action is trying to fetch.

##[debug]Failed to download from "https://github.com/gohugoio/hugo/releases/download/v0.139.5/hugo_extended_0.139.5_Linux-64bit.tar.gz". Code(404) Message(Not Found)

nicolinuxfr added a commit to nicolinuxfr/nicolasfurno.fr that referenced this issue Dec 15, 2024
404 sur la version latest, cf peaceiris/actions-hugo#652
jyap808 added a commit to jyap808/jyap808.github.io that referenced this issue Dec 16, 2024
AnXh3L0 added a commit to OpenInternet/Infuse that referenced this issue Dec 16, 2024
Temporary fix happening because of peaceiris/actions-hugo#652
@AnimMouse
Copy link

Now fixed with v0.140.0 release.

@ElementRef
Copy link

runs-on: ubuntu-latest
hugo-version: '0.140.0'

Works Fine

@ElementRef
Copy link

runs-on: macos-latest
hugo-version: '0.128.0'
hugo-version: '0.139.4'
hugo-version: '0.140.0'
hugo-version: '0.140.1'

Does Not Work

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

No branches or pull requests