Skip to content

Matomo update check times out at timesΒ #21259

@tsteur

Description

@tsteur

I tried to upgrade to the latest Matomo 5RC a few times by running the update check and Matomo wouldn't suggest the latest Matomo 5 RC update is available.

I started debugging why that is and noticed we have a 2 second HTTP timeout in https://github.com/matomo-org/matomo/blob/5.0.0-rc2/core/UpdateCheck.php#L71

However, https://api.matomo.org/1.0/getLatestVersion/?piwik_version=5.0.0-rc1&php_version=8.1.14&mysql_version=8.0.26&release_channel=latest_5x_beta&url=http%3A%2F%2Fmyest.com%2F.%2Fconsole&trigger=&timezone=Europe%2FLondon took 4 seconds to execute.

5-10 minutes later the request took less than 2 seconds and only few hundred ms.

I'm not sure why the request took so long at times and if there has been a regression in performance and/or if it makes sense to increase the timeout so that when people do want to upgrade, it won't falsely say there's no update available

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions