When I try to do a back up in admin using the utility it gives me the following error

Failed to save backup with error: Utility gzip not found

I have confirmed the gzip is loaded on the server (And I tested it)

Magento EE 2.0.7

enter image description here

Per Steve's instructions I did the following

php bin/magento support:utility:check -u
Utilities list:
gzip => /bin/gzip
lsof => /usr/sbin/lsof
mysqldump => /usr/bin/mysqldump
nice => /bin/nice
php => /usr/bin/php
tar => /bin/tar
sed => /bin/sed
bash => /bin/bash
mysql => /usr/bin/mysql
  • 1
    See if this helps you figure out why gzip appears to be missing. Jun 26, 2016 at 12:19
  • Steve, I did run the backup command via the CLI and it worked. I also ran the utility you suggested and posted the results. Jun 27, 2016 at 12:56

3 Answers 3


From the Magento root directory run:

php bin/magento support:utility:paths

This will generate var/support/Paths.php file and solve this error.

  • 1
    This works on 2.1.7.
    – dchayka
    Feb 2, 2018 at 20:03
  • 1
    Works for 2.3.4 as well.
    – dchayka
    May 28, 2020 at 14:51

The backup should happen even without Paths.php. Try:

apt install gzip
apt install lsof

You can try to generate the backup via command line:

php bin/magento support:backup:code --name mycodebackup -o /var/www/magento2/var/log/

Note, if your environment does not have a working 'which' command, then this error is generated.

We encountered this on a docker container.


yum install which 

resolved the issue.

Really, the which command should be added to the list of utilities that mage:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.