Skip to content

Possibility to use a local Mirror #291

@mritzmann

Description

@mritzmann

Is your feature request related to a problem?
The download servers are sometimes extremely slow. Today, for example, there is a malfunction that has been going on since this morning. A download takes more than half an hour. In the past there have also been timeouts.

$ wget https://download.nextcloud.com/server/releases/nextcloud-18.0.6.zip
--2020-07-17 09:58:13--  https://download.nextcloud.com/server/releases/nextcloud-18.0.6.zip
Resolving download.nextcloud.com (download.nextcloud.com)... 95.217.64.181, 2a01:4f9:2a:3119::181
Connecting to download.nextcloud.com (download.nextcloud.com)|95.217.64.181|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108507253 (103M) [application/zip]
Saving to: ‘nextcloud-18.0.6.zip’
nextcloud-18.0.6.zip              0%[                                     ] 712.00K  52.8KB/s    eta 29m 26s

My automation together with updater.phar allows me to automatically schedule and install updates.

  • But since the download takes more than 30 minutes, the update cannot really be planned. The scheduled update (or maintenance window) is thus postponed by 30 minutes, because the download takes a long time.
  • If I update multiple installations manually, I always have to wait very long.
  • The problem is not unique but a recurring problem. See: [1], [2], [3], [4]
  • Even if Nextcloud GmbH fixes the problem: This can happen again in the future.

Describe the solution you'd like
Anyone who updates their Nextcloud creates an additional load. People who update multiple Nextcloud installations create the load multiple times. I would like to reduce the load on Nextcloud's download servers (this also reduces my bandwidth) and run a mirror for myself inside my network or provide a locally available zip-file.

My feature request:

  • New argument for updater.phar: Possibility to specify my own download URL.
  • New argument for updater.phar: Possibility to specify a already downloaded zip-file on my local filesystem.

Examples:

$ php ~/www/updater/updater.phar --no-interaction --package="https://example.com/nextcloud-18.0.7.zip"
$ php ~/www/updater/updater.phar --no-interaction --package="file:///home/john/nextcloud-18.0.7.zip"

If the files are fetched by curl, both should work. Otherwise you need two different arguments.

To avoid problems and support efforts from the community/nextcloud the checksume should still be downloaded from the official Nextcloud download server. This ensures that the zip file is the right one.

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