I wanted to update today a site that I am working on from version 2.3 to 2.3.1.
The update ran without any problems until it stopped and showed an unkown error. When I checked the site on FTP all the files were deleted from the site's main folder. I had to restore the whole site from a backup. In the console log I can see an error:
An error occurred while executing job "update {"components":[{"name":"magento/product-community-edition","version":"2.3.1"}]}": Could not complete update {"components":[{"name":"magento/product-community-edition","version":"2.3.1"}]} successfully: Command "update" failed: Loading composer repositories with package information
What was the cause of this problem?
Here is the full console log (up to the 20 000 character limit):
[2019-04-02 14:44:08 UTC] Job "setup:maintenance:enable []" has started Enabled maintenance mode [2019-04-02 14:44:08 UTC] Job "setup:maintenance:enable []" has been successfully completed [2019-04-02 14:44:08 UTC] Job "setup:cache:disable []" has started There is nothing to change in cache status [2019-04-02 14:44:08 UTC] Job "setup:cache:disable []" has been successfully completed [2019-04-02 17:45:02 EEST] Job "update {"components":[{"name":"magento/product-community-edition","version":"2.3.1"}]}" has been started [2019-04-02 17:45:02 EEST] Starting composer update... [2019-04-02 17:45:23 EEST] ./composer.json has been updated [2019-04-02 17:46:01 EEST] Update is already in progress. [2019-04-02 17:47:02 EEST] Update is already in progress. [2019-04-02 17:48:02 EEST] Update is already in progress. [2019-04-02 17:49:01 EEST] Update is already in progress. [2019-04-02 17:50:02 EEST] Update is already in progress. [2019-04-02 17:51:02 EEST] Update is already in progress. [2019-04-02 17:52:02 EEST] Update is already in progress. [2019-04-02 17:53:02 EEST] Update is already in progress. [2019-04-02 17:54:02 EEST] Update is already in progress. [2019-04-02 17:55:02 EEST] Update is already in progress. [2019-04-02 17:58:40 EEST] An error occurred while executing job "update {"components":[{"name":"magento/product-community-edition","version":"2.3.1"}]}": Could not complete update {"components":[{"name":"magento/product-community-edition","version":"2.3.1"}]} successfully: Command "update" failed: Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 19 installs, 263 updates, 0 removals - Updating symfony/polyfill-ctype (v1.10.0 => v1.11.0): Downloading (connecting...)Downloading (0%)Downloading (100%) - Updating symfony/polyfill-mbstring (v1.10.0 => v1.11.0): Downloading (connecting...)Downloading (0%) Downloading (30%)Downloading (55%)Downloading (85%)Downloading (100%) - Updating zendframework/zend-validator (2.10.2 => 2.11.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (85%)Downloading (100%) - Updating zendframework/zend-uri (2.6.1 => 2.7.0): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (65%)Downloading (90%)Downloading (100%) - Updating zendframework/zend-http (2.8.2 => 2.8.4): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating symfony/process (v4.1.8 => v4.1.11): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (25%)Downloading (40%)Downloading (55%)Downloading (65%)Downloading (80%)Downloading (95%)Downloading (100%) - Updating symfony/finder (v4.1.8 => v4.2.4): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (50%)Downloading (55%)Downloading (100%) - Updating symfony/filesystem (v4.1.8 => v4.2.4): Downloading (connecting...)Downloading (0%) Downloading (35%)Downloading (70%)Downloading (100%) - Updating symfony/console (v4.1.8 => v4.1.11): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating justinrainbow/json-schema (5.2.7 => 5.2.8): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (50%)Downloading (55%)Downloading (75%)Downloading (80%)Downloading (100%) - Updating composer/xdebug-handler (1.3.0 => 1.3.2): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (55%)Downloading (95%)Downloading (100%) - Updating composer/spdx-licenses (1.5.0 => 1.5.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (20%)Downloading (95%)Downloading (100%) - Updating composer/semver (1.4.2 => 1.5.0): Downloading (connecting...)Downloading (0%) Downloading (35%)Downloading (70%)Downloading (95%)Downloading (100%) - Updating composer/ca-bundle (1.1.3 => 1.1.4): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating composer/composer (1.7.3 => 1.8.4): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (55%)Downloading (60%)Downloading (70%)Downloading (75%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating colinmollenhour/php-redis-session-abstract (v1.4.0 => v1.4.1): Downloading (connecting...)Downloading (0%) Downloading (50%)Downloading (65%)Downloading (100%) - Updating magento/framework (102.0.0 => 102.0.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/inventory-composer-installer (1.0.3 => 1.1.0): Downloading (connecting...)Downloading (0%) Downloading (100%) - Updating donatj/phpuseragentparser (v0.11.1 => v0.13.0): Downloading (connecting...)Downloading (0%) Downloading (35%)Downloading (75%)Downloading (100%) - Updating symfony/inflector (v4.1.8 => v4.2.4): Downloading (connecting...)Downloading (0%) Downloading (75%)Downloading (100%) - Updating symfony/property-access (v4.1.8 => v4.2.4): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (30%)Downloading (35%)Downloading (50%)Downloading (65%)Downloading (85%)Downloading (100%) - Updating symfony/polyfill-php70 (v1.10.0 => v1.11.0): Downloading (connecting...)Downloading (0%) Downloading (85%)Downloading (100%) - Updating symfony/options-resolver (v4.1.8 => v4.2.4): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (100%) - Updating myclabs/php-enum (1.6.4 => 1.6.6): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (50%)Downloading (100%) - Updating symfony/polyfill-util (v1.10.0 => v1.11.0): Downloading (connecting...)Downloading (0%) Downloading (100%) - Updating symfony/polyfill-php56 (v1.10.0 => v1.11.0): Downloading (connecting...)Downloading (0%) Downloading (95%)Downloading (100%) - Updating paragonie/constant_time_encoding (v2.2.2 => v2.2.3): Downloading (connecting...)Downloading (0%) Downloading (30%)Downloading (35%)Downloading (65%)Downloading (70%)Downloading (100%) - Updating zendframework/zend-filter (2.8.0 => 2.9.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (20%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (85%)Downloading (95%)Downloading (100%) - Updating zendframework/zend-inputfilter (2.8.2 => 2.10.0): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (35%)Downloading (65%)Downloading (75%)Downloading (100%) - Updating zendframework/zend-form (2.12.0 => 2.13.0): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating zendframework/zend-math (2.7.0 => 2.7.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (100%) - Installing symfony/contracts (v1.0.2): Downloading (connecting...)Downloading (0%) Downloading (55%)Downloading (60%)Downloading (100%) - Updating zendframework/zend-db (2.9.3 => 2.10.0): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/module-store (101.0.0 => 101.0.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (20%)Downloading (30%)Downloading (40%)Downloading (50%)Downloading (60%)Downloading (70%)Downloading (100%) - Updating magento/module-ui (101.1.0 => 101.1.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/module-user (101.1.0 => 101.1.1): Downloading (connecting...)Downloading (0%) Downloading (30%)Downloading (35%)Downloading (70%)Downloading (75%)Downloading (95%)Downloading (100%) - Updating magento/module-config (101.1.0 => 101.1.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (100%) - Updating magento/module-media-storage (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (65%)Downloading (90%)Downloading (100%) - Updating magento/module-theme (101.0.0 => 101.0.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (20%)Downloading (25%)Downloading (35%)Downloading (45%)Downloading (55%)Downloading (70%)Downloading (80%)Downloading (90%)Downloading (100%) - Updating magento/module-widget (101.1.0 => 101.1.1): Downloading (connecting...)Downloading (0%) Downloading (40%)Downloading (80%)Downloading (95%)Downloading (100%) - Updating magento/module-variable (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (85%)Downloading (100%) - Updating magento/module-backend (101.0.0 => 101.0.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (20%)Downloading (30%)Downloading (35%)Downloading (50%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/module-translation (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (50%)Downloading (75%)Downloading (100%) - Updating magento/module-developer (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (30%)Downloading (100%) - Updating magento/module-security (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (90%)Downloading (100%) - Updating magento/module-sales (102.0.0 => 102.0.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/module-wishlist (101.1.0 => 101.1.1): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (40%)Downloading (50%)Downloading (75%)Downloading (85%)Downloading (100%) - Updating magento/module-tax (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (25%)Downloading (35%)Downloading (40%)Downloading (50%)Downloading (55%)Downloading (65%)Downloading (70%)Downloading (80%)Downloading (95%)Downloading (100%) - Updating magento/module-shipping (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (45%)Downloading (50%)Downloading (85%)Downloading (90%)Downloading (100%) - Updating magento/module-sales-sequence (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (55%)Downloading (100%) - Updating magento/module-quote (101.1.0 => 101.1.1): Downloading (connecting...)Downloading (0%) Downloading (100%) - Updating magento/module-payment (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (60%)Downloading (70%)Downloading (80%)Downloading (90%)Downloading (100%) - Updating magento/module-directory (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (45%)Downloading (65%)Downloading (100%) - Updating magento/module-url-rewrite (101.1.0 => 101.1.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (90%)Downloading (100%) - Updating magento/module-cms-url-rewrite (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (40%)Downloading (100%) - Updating magento/module-cms (103.0.0 => 103.0.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/module-email (101.0.0 => 101.0.1): Downloading (connecting...)Downloading (0%) Downloading (40%)Downloading (85%)Downloading (100%) - Updating magento/module-catalog (103.0.0 => 103.0.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/module-customer (102.0.0 => 102.0.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/module-require-js (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (100%) - Updating magento/module-eav (102.0.0 => 102.0.1): Downloading (connecting...)Downloading (0%) Downloading (100%) - Updating magento/module-product-alert (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (100%) - Updating magento/module-review (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (30%)Downloading (35%)Downloading (60%)Downloading (85%)Downloading (100%) - Updating magento/module-newsletter (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (5%)Downloading (10%)Downloading (95%)Downloading (100%) - Updating magento/module-page-cache (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (10%)Downloading (55%)Downloading (100%) - Updating magento/module-authorization (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (100%) - Updating magento/module-integration (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (25%)Downloading (45%)Downloading (70%)Downloading (90%)Downloading (95%)Downloading (100%) - Updating magento/module-checkout (100.3.0 => 100.3.1): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (20%)Downloading (35%)Downloading (40%)Downloading (55%)Downloading (60%)Downloading (75%)Downloading (80%)Downloading (95%)Downloading (100%) - Updating magento/module-sales-rule (101.1.0 => 101.1.1): Downloading (connecting...)Downloading (0%) Downloading (15%)Downloading (35%)Downloading (55%)Downloading (75%)Downloading (95%)Downloading (100%)