[Linux] Help > Check for Updates always fails: linux/version.json returns 404
Version: 2.4.1 stable, Linux x86_64 flatpak
Steps to reproduce
- Open Snapmaker Orca on Linux.
- Click Help > Check for Updates.
Actual result A dialog always shows:
request to server update soft fail with body:,error:,status:404
The log shows:
config/get rejected: code 604000, msg 配置不存在, fallback to static version.json
Error getting: `check_new_version_sf`: HTTP 404,
Expected result The app reports the latest version, or says that it is already up to date.
Cause
request_version_from_config() is rejected with code 604000, so the app falls back to
check_new_version_sf(). The static manifest it requests exists for Windows and macOS,
but not for Linux:
| Platform | URL | Result |
|---|---|---|
| Windows | https://meta-cfg.snapmaker.com/upgrade/orca/win/en/version.json | 200 |
| macOS | https://meta-cfg.snapmaker.com/upgrade/orca/mac/en/version.json | 200 |
| Linux | https://meta-cfg.snapmaker.com/upgrade/orca/linux/en/version.json | 404 |
| Linux | https://meta-cfg.snapmaker.com/upgrade/orca/linux/zh_CN/version.json | 404 |
The v2.4.2-alpha source still uses /upgrade/orca/linux/, so this needs a server-side
manifest or a client change.
Suggested fix
Publish linux/en and linux/zh_CN manifests. Alternatively, have Linux builds check
GitHub Releases, or show a clear message that in-app update checks are not available
on Linux.
I checked the four URLs again today and got the same result as you: 200 for win/en and mac/en, 404 for linux/en and linux/zh_CN.
One thing to add to the cause: a server-side manifest alone would not fix it. In check_new_version_sf() the parser only handles platform_type win and mac; for anything else it logs don't support linux upgrade and returns without a dialog. The config/get path rejects other platform types too. So with linux/en/version.json published, Help > Check for Update would stop showing the 404 and show nothing instead.
I opened #1222 with the client change you listed as the alternative: on Linux the check reads the latest stable release from GitHub Releases, where the AppImage and the flatpaks are already published, and uses the existing dialogs (new version with a Download button that opens the release page, or "This is the newest version."). I did not build the app; what I ran and what I did not is in the PR.
Confirmed on our side — and thanks @jinlaohu for the report with the URL matrix, and @alandebortolo for digging one level deeper.
The chain checks out: the server has no Linux manifests (/upgrade/orca/linux/en|zh_CN/version.json — still 404 today, while win/en is 200), the URL path is declared in AppConfig.cpp, and — the key point from the analysis — even with a server-side manifest published, the update parser only handles platform_type win and mac: for Linux it logs "don't support linux upgrade" and returns silently (GUI_App.cpp). So a server-side fix alone would just turn the 404 dialog into no dialog at all.
Status: we're taking #1222 through testing on our side; if it passes, we'll queue it up for merge. The PR has Linux read the latest stable from GitHub Releases (where the AppImage and the flatpaks are published anyway) and reuse the existing update dialogs.