Cannot perform component install via the Web Setup Wizard

I’m, having major rollback issues. When trying to install a component via the Web Setup Wizard I run into the following issue.

- Installing iceshop/icecatlive (2.1.6): Downloading (connecting...)Downloading (0%) Downloading (75%)Downloading (100%)
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files

In PluginManager.php(195) : eval()'d code line 188:

chmod(): Operation not permitted 

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] []...

[2019-06-24 18:50:01 UTC] There was an error in previous Update attempt.
[2019-06-24 18:51:02 UTC] There was an error in previous Update attempt.
[2019-06-24 18:52:02 UTC] There was an error in previous Update attempt.
[2019-06-24 18:53:02 UTC] There was an error in previous Update attempt.
[2019-06-24 18:54:02 UTC] There was an error in previous Update attempt.
[2019-06-24 18:55:02 UTC] There was an error in previous Update attempt.
[2019-06-24 18:56:02 UTC] There was an error in previous Update attempt.
[2019-06-24 18:56:20 UTC] WARNING: There is a problem with backup files! Performing rollback from these files may cause the Magento application to be unstable
[2019-06-24 18:56:20 UTC] Backup file does not exist for "db"
[2019-06-24 18:57:03 UTC] Job "rollback {"backup_file_name":"{magento_root}/var/backups/1561401533_filesystem_code.tgz"}" has been started
[2019-06-24 18:57:03 UTC] Restoring archive from "{magento_root}/var/backups/1561401533_filesystem_code.tgz" ...
[2019-06-24 18:57:18 UTC] An error occurred while executing job "rollback {"backup_file_name":"{magento_root}/var/backups/1561401533_filesystem_code.tgz"}": tar-based phar "{magento_root}/var/backups/1561401533_filesystem_code.tar" cannot be created, filename "vendor/magento/module-inventory-admin-ui/Test/Mftf/Test/AdminMassActionTransferInventoryToSourceTransferringNotifyQuantityForDifferentTypesOfProductsTest.xml" is too long for tar file format
[2019-06-24 18:57:18 UTC] Job "rollback {"backup_file_name":"{magento_root}/var/backups/1561401533_filesystem_media.tgz"}" has been started
[2019-06-24 18:57:18 UTC] Restoring archive from "{magento_root}/var/backups/1561401533_filesystem_media.tgz" ...
[2019-06-24 18:57:18 UTC] Job "rollback {"backup_file_name":"{magento_root}/var/backups/1561401533_filesystem_media.tgz"}" has successfully completed
[2019-06-24 18:58:03 UTC] There was an error in previous Update attempt.
[2019-06-24 18:59:04 UTC] There was an error in previous Update attempt.
[2019-06-24 19:00:02 UTC] There was an error in previous Update attempt.

There’s 2 or 3 potential issues here, according to the log:

  • Cannot Backup: One of the filenames you’re trying to backup is longer than a .tar file supports. Running a Database only backup would be fine here
  • Cannot Rollback: You might not be able to rollback if you’ve never backed up your store before

You’ll find another post here similar to what you’re going through. You can read what was tried here: Web Setup Wizard stuck after failed rollback

If you’re super stuck, then simply restore your snapshot (assuming you use DigitalOcean).

Thanks these two commands worked. :slight_smile:

Ran from the Magento root directory as the “Magento” user:

mv var/.update_error.flag var/.tmp_update_error.flag
mv var/.update_queue.json var/.tmp_update_queue.json