Opencode Upgrade Fails #2336

Closed
opened 2026-02-16 17:35:11 -05:00 by yindo · 6 comments
Owner

Originally created by @aussetg on GitHub (Oct 29, 2025).

Description

~/ ❱ opencode upgrade

  █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
  █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
  ▀▀▀▀ █▀▀▀ ▀▀▀ ▀  ▀ ▀▀▀ ▀▀▀▀ ▀▀▀  ▀▀▀

┌  Upgrade
│
●  Using method: curl
│
●  From 0.15.23 → 0.15.25
│
■  Upgrade failed
│
######################################################################## 100.0%
│  [opencode-linux-x64.zip]
│    End-of-central-directory signature not found.  Either this file is not
│    a zipfile, or it constitutes one disk of a multi-part archive.  In the
│    latter case the central directory and zipfile comment will be found on
│    the last disk(s) of this archive.
│  unzip:  cannot find zipfile directory in one of opencode-linux-x64.zip or
│          opencode-linux-x64.zip.zip, and cannot find opencode-linux-x64.zip.ZIP, period.
│
│
└  Done

It also for some reason creates a local opencodetmp folder with opencode-linux-x64.zip inside.

OpenCode version

0.15.23

Steps to reproduce

  1. Be on opencode 0.15.23 on Linux
  2. Run opencode upgrade
  3. Do not profit, do not collect 100$

Screenshot and/or share link

No response

Operating System

Linux on WSL2

Terminal

Wezterm

Originally created by @aussetg on GitHub (Oct 29, 2025). ### Description ``` ~/ ❱ opencode upgrade █▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀ █░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀ ┌ Upgrade │ ● Using method: curl │ ● From 0.15.23 → 0.15.25 │ ■ Upgrade failed │ ######################################################################## 100.0% │ [opencode-linux-x64.zip] │ End-of-central-directory signature not found. Either this file is not │ a zipfile, or it constitutes one disk of a multi-part archive. In the │ latter case the central directory and zipfile comment will be found on │ the last disk(s) of this archive. │ unzip: cannot find zipfile directory in one of opencode-linux-x64.zip or │ opencode-linux-x64.zip.zip, and cannot find opencode-linux-x64.zip.ZIP, period. │ │ └ Done ``` It also for some reason creates a local opencodetmp folder with opencode-linux-x64.zip inside. ### OpenCode version 0.15.23 ### Steps to reproduce 1. Be on opencode 0.15.23 on Linux 2. Run `opencode upgrade` 3. Do not profit, do not collect 100$ ### Screenshot and/or share link _No response_ ### Operating System Linux on WSL2 ### Terminal Wezterm
yindo added the bug label 2026-02-16 17:35:11 -05:00
yindo closed this issue 2026-02-16 17:35:11 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 29, 2025):

This issue might be a duplicate of existing issues. Please check:

  • The exact same error with "End-of-central-directory signature not found" was reported in #3539 itself, but I also found numerous related upgrade issues including rate limiting (#1491), package manager detection problems (#3127), and various zip/download corruption issues (#1103, #967, #2444)

However, this specific "End-of-central-directory signature not found" error with the unzip command failing on Linux WSL2 appears to be unique, suggesting the downloaded zip file is corrupted during the upgrade process.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 29, 2025): This issue might be a duplicate of existing issues. Please check: - The exact same error with "End-of-central-directory signature not found" was reported in #3539 itself, but I also found numerous related upgrade issues including rate limiting (#1491), package manager detection problems (#3127), and various zip/download corruption issues (#1103, #967, #2444) However, this specific "End-of-central-directory signature not found" error with the unzip command failing on Linux WSL2 appears to be unique, suggesting the downloaded zip file is corrupted during the upgrade process. Feel free to ignore if none of these address your specific case.
Author
Owner

@benceferdinandy-signifyd commented on GitHub (Oct 29, 2025):

macos brew upgrades also failing:

==> Downloading https://github.com/sst/opencode/releases/download/v0.15.25/opencode-darwin-arm64.zip
curl: (56) The requested URL returned error: 404

Error: opencode: Failed to download resource "opencode (0.15.25)"
Download failed: https://github.com/sst/opencode/releases/download/v0.15.25/opencode-darwin-arm64.zip

@benceferdinandy-signifyd commented on GitHub (Oct 29, 2025): macos brew upgrades also failing: ==> Downloading https://github.com/sst/opencode/releases/download/v0.15.25/opencode-darwin-arm64.zip curl: (56) The requested URL returned error: 404 Error: opencode: Failed to download resource "opencode (0.15.25)" Download failed: https://github.com/sst/opencode/releases/download/v0.15.25/opencode-darwin-arm64.zip
Author
Owner

@pmarreck commented on GitHub (Oct 29, 2025):

#TODO add test coverage for upgrades (lol)

@pmarreck commented on GitHub (Oct 29, 2025): #TODO add test coverage for upgrades (lol)
Author
Owner

@aussetg commented on GitHub (Oct 29, 2025):

Considering the latest release on Github is v0.15.24 it's not super surprising that the "zip" for v0.15.25 is corrupted haha

@aussetg commented on GitHub (Oct 29, 2025): Considering the latest release on Github is v0.15.24 it's not super surprising that the "zip" for v0.15.25 is corrupted haha
Author
Owner

@madflow commented on GitHub (Oct 29, 2025):

The tag exists but no release. Probably a b0rked release in some lonely ci pipeline. Let's wait, shall we?

@madflow commented on GitHub (Oct 29, 2025): The tag exists but no release. Probably a b0rked release in some lonely ci pipeline. Let's wait, shall we?
Author
Owner

@rekram1-node commented on GitHub (Oct 29, 2025):

Can yall try again this happened because the release script failed halfway through, I retried it and 0.15.26 was released this should be fixed?

@rekram1-node commented on GitHub (Oct 29, 2025): Can yall try again this happened because the release script failed halfway through, I retried it and 0.15.26 was released this should be fixed?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2336