Skip to content

[Bug]: Update to RC fails with status code 302 (sent by github) #53354

@solracsf

Description

@solracsf

⚠️ This issue respects the following points: ⚠️

Bug description

# php /var/www/nextcloud/updater/updater.phar --no-backup
Nextcloud Updater - version: v29.0.0-23-g6a5f9ec

Current version is 30.0.11.

Update to Nextcloud 30.0.12 RC1 available. (channel: "beta")
Following file will be downloaded automatically: https://github.com/nextcloud-releases/server/releases/download/v30.0.12rc1/nextcloud-30.0.12rc1.zip

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✘] Downloading failed
Download failed - HTTP status code: 302 - URL: https://github.com/nextcloud-releases/server/releases/download/v30.0.12rc1/nextcloud-30.0.12rc1.zip

Update failed. To resume or retry just execute the updater again.

Steps to reproduce

  1. Launch updater.phar

Expected behavior

No error on 302 redirect

Nextcloud Server version

30

Additional info

# curl -I https://github.com/nextcloud-releases/server/releases/download/v30.0.12rc1/nextcloud-30.0.12rc1.zip
HTTP/2 302
date: Thu, 05 Jun 2025 15:03:17 GMT
content-type: text/html; charset=utf-8
content-length: 0
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/329554786/4e0b79c7-9c7e-44e8-a639-1d726d210e8f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20250605%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250605T150317Z&X-Amz-Expires=300&X-Amz-Signature=eb3a44ac47983a1919c64bc8f5cd682caaa0984bd749bcdc7d03ac897b05d077&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dnextcloud-30.0.12rc1.zip&response-content-type=application%2Foctet-stream
cache-control: no-cache
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions