Skip to content

🐛 Bug Report: Doctor Always Fails to Check for Updates #7717

Closed

Description

@ItzNotABug

👟 Reproduction steps

  1. Run docker exec appwrite doctor
  2. In the end, the command always fails to check for the latest app version

Its possible this is the cause here -
https://github.com/appwrite/appwrite/blob/9e4250ad9fcb6b383c7edfd398e263de8fea8a5b/src/Appwrite/Platform/Tasks/Doctor.php#L251C9-L268C10

I can see the variables being set via docker exec appwrite env -

_APP_VERSION=1.4.12
_APP_HOME=https://appwrite.io

The implementation -

$version = \json_decode(@\file_get_contents(App::getEnv('_APP_HOME', 'http://localhost') . '/version'), true);

seems to be getting contents from this url or file (based on the parameters) - https://appwrite.io/version.
If this is a network fetch, this results in a 404.

👍 Expected behavior

Provide info. if there's an update available or not. Maybe use the Github Releases to look for the latest release tag.

👎 Actual Behavior

Throws an error via console - Failed to check for a newer version.

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

Localhost & Ubuntu 22.04.3 LTS.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    bug
    on Mar 3, 2024
  2. stnguyen90 commented on Mar 4, 2024

    @stnguyen90
    Contributor

    @ItzNotABug, thanks for raising this issue! 🙏🏼 We used to have version checks in the Appwrite Console and the Doctor command before we upgraded the Console. We still have plans to bring that back and will probably fix the problem in the Doctor when we do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions