-
Notifications
You must be signed in to change notification settings - Fork 224
Troubleshooting
This can happen e.g. in CI/CD environments. Try to run with --no-interactive
flag.
Most the time the write permissions are not available to overwrite the phar file.
Try to add write permissions with chmod command.
Example: chmod +w /usr/local/bin/n98-magerun2.phar
If you see this message then a n98-magerun2 command needs a proper installed Magento environment.
Try to run bin/magento
in your environment to see if Magento works.
This message indicates that command list of the Magento environment could not be loaded. That's an indicator that your Magento installation is maybe broken. In that case you can only use the build-in command of n98-magerun2.
You try to run n98-magerun with root permissions. That's not a good idea because you could produce permission issues in your file system if e.g. cache files are generated with root permissions.
Additionally it's not recommended to work as root for security reasons.
If you really decide to run the tool with root permissions then it's possible to disable the warning by adding a
custom /etc/n98-magerun2.yaml
with the following content:
application:
check-root-user: false