diff --git a/typo3/sysext/backend/Classes/Utility/BackendUtility.php b/typo3/sysext/backend/Classes/Utility/BackendUtility.php
index beed0a897ee34ee178b15cbbfbd8ded4211e15cb..911312cb19368ef0b555f79557ebb80fd7deec87 100644
--- a/typo3/sysext/backend/Classes/Utility/BackendUtility.php
+++ b/typo3/sysext/backend/Classes/Utility/BackendUtility.php
@@ -2499,6 +2499,11 @@ class BackendUtility
      */
     public static function setUpdateSignal($set = '', $params = '')
     {
+        // A CLI use does not need to update the pagetree or anything else
+        // Otherwise DataHandler hook in EXT:redirects in SlugService will throw an error
+        if (Environment::isCli()) {
+            return;
+        }
         $beUser = static::getBackendUserAuthentication();
         $modData = $beUser->getModuleData(
             BackendUtility::class . '::getUpdateSignal',