无法使用 Drush 10 更新 Drupal 9 db 和语言环境

如何解决无法使用 Drush 10 更新 Drupal 9 db 和语言环境

我在本地使用 drush 没有任何问题,但在我的主机上,语言环境和数据库更新出现错误。我检查了很多东西,什么也没有。奇怪的是,像 config import/export、sql:dump、drush status 这样的命令工作正常,并且有一个工作 sql 连接。

完整输出:

php74 vendor/bin/drush locale:import pl ../translations/custom-translations.pl.po --type=customized --override=all --debug
 [preflight] Config paths: /home/pathtomywebsite/vendor/drush/drush/drush.yml
 [preflight] Alias paths: /home/pathtomywebsite/web/drush/sites,/home/pathtomywebsite/drush/sites
 [preflight] Commandfile search paths: /home/pathtomywebsite/vendor/drush/drush/src
 [debug] Bootstrap further to find locale:import [0.07 sec,8.75 MB]
 [debug] Trying to bootstrap as far as we can [0.07 sec,8.75 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalRoot() [0.07 sec,8.75 MB]
 [debug] Change working directory to /home/pathtomywebsite/web [0.07 sec,8.75 MB]
 [debug] Initialized Drupal 9.2.0 root directory at /home/pathtomywebsite/web [0.07 sec,8.75 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalSite() [0.07 sec,9.08 MB]
 [debug] Initialized Drupal site default at sites/default [0.08 sec,9.31 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalConfiguration() [0.08 sec,9.31 MB]
 [debug] Add service modifier [0.08 sec,9.49 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalDatabase() [0.08 sec,9.96 MB]
 [debug] Successfully connected to the Drupal database. [0.08 sec,9.96 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalFull() [0.08 sec,9.96 MB]
 [debug] Start bootstrap of the Drupal Kernel. [0.08 sec,9.96 MB]
 [debug] Finished bootstrap of the Drupal Kernel. [0.15 sec,16.23 MB]
 [debug] Add a command: twig-tweak:validate [0.2 sec,21.52 MB]
 [debug] Add a command: twig-tweak:debug [0.2 sec,21.52 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigCommands [0.22 sec,23.4 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigExportCommands [0.22 sec,23.43 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigImportCommands [0.22 sec,23.44 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\BatchCommands [0.22 sec,23.45 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\CliCommands [0.22 sec,23.45 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\DrupalCommands [0.22 sec,23.46 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\DeployHookCommands [0.22 sec,23.47 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\EntityCommands [0.22 sec,23.48 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\ImageCommands [0.22 sec,23.49 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\JsonapiCommands [0.22 sec,23.5 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\LanguageCommands [0.22 sec,23.5 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\LocaleCommands [0.22 sec,23.51 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\MessengerCommands [0.22 sec,23.53 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\MigrateRunnerCommands [0.22 sec,23.54 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\QueueCommands [0.22 sec,23.59 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\RoleCommands [0.22 sec,23.6 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\StateCommands [0.23 sec,23.62 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\TwigCommands [0.23 sec,23.64 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\UserCommands [0.23 sec,23.64 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\ViewsCommands [0.23 sec,23.69 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\WatchdogCommands [0.23 sec,23.71 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\pm\PmCommands [0.23 sec,23.74 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\pm\ThemeCommands [0.23 sec,23.76 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommands [0.23 sec,23.76 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommentsCommands [0.23 sec,23.77 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeSessionsCommands [0.23 sec,23.77 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserFieldsCommands [0.23 sec,23.77 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserTableCommands [0.23 sec,23.78 MB]
 [debug] Add a commandfile class: Drupal\entity_reference_revisions\Commands\EntityReferenceRevisionsCommands [0.23 sec,23.78 MB]
 [debug] Add a commandfile class: Drupal\token\Commands\TokenCommands [0.23 sec,23.79 MB]
 [debug] Add a commandfile class: Drupal\pathauto\Commands\PathautoCommands [0.23 sec,23.79 MB]
 [debug] Done with bootstrap max in Application::bootstrapAndFind(): trying to find locale:import again. [0.23 sec,23.8 MB]
 [debug] Starting bootstrap to none [0.23 sec,23.91 MB]
 [debug] Drush bootstrap phase 0 [0.23 sec,23.91 MB]
 [debug] Try to validate bootstrap phase 0 [0.24 sec,23.91 MB]
 [info] Executing: /home/pathtomywebsite/vendor/drush/drush/drush batch-process 15 --uri=default --root=/home/pathtomywebsite/web [0.27 sec,25.74 MB]
> 
>                                                                                
>   Command batch-process was not found. Drush was unable to query the database  
>   . As a result,many commands are unavailable. Re-run your command with --de  
>   bug to see relevant log messages.                                            
>                                                                                
> 

In ProcessBase.php line 155:
                              
  [InvalidArgumentException]  
  Output is empty.            
                              

Exception trace:
  at /home/pathtomywebsite/vendor/consolidation/site-process/src/ProcessBase.php:155
 Consolidation\SiteProcess\ProcessBase->getOutputAsJson() at /home/pathtomywebsite/vendor/drush/drush/includes/batch.inc:157
 _drush_backend_batch_process() at /home/pathtomywebsite/vendor/drush/drush/includes/batch.inc:80
 drush_backend_batch_process() at /home/pathtomywebsite/vendor/drush/drush/src/Drupal/Commands/core/LocaleCommands.php:268
 Drush\Drupal\Commands\core\LocaleCommands->import() at n/a:n/a
 call_user_func_array() at /home/pathtomywebsite/vendor/consolidation/annotated-command/src/CommandProcessor.php:257
 Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() at /home/pathtomywebsite/vendor/consolidation/annotated-command/src/CommandProcessor.php:212
 Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() at /home/pathtomywebsite/vendor/consolidation/annotated-command/src/CommandProcessor.php:176
 Consolidation\AnnotatedCommand\CommandProcessor->process() at /home/pathtomywebsite/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:311
 Consolidation\AnnotatedCommand\AnnotatedCommand->execute() at /home/pathtomywebsite/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /home/pathtomywebsite/vendor/symfony/console/Application.php:1027
 Symfony\Component\Console\Application->doRunCommand() at /home/pathtomywebsite/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /home/pathtomywebsite/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /home/pathtomywebsite/vendor/drush/drush/src/Runtime/Runtime.php:118
 Drush\Runtime\Runtime->doRun() at /home/pathtomywebsite/vendor/drush/drush/src/Runtime/Runtime.php:48
 Drush\Runtime\Runtime->run() at /home/pathtomywebsite/vendor/drush/drush/drush.php:72
 require() at /home/pathtomywebsite/vendor/drush/drush/drush:4

刷状态:

php74 vendor/bin/drush status
 Drupal version   : 9.2.0                                                              
 Site URI         : http://default                                                     
 DB driver        : mysql                                                              
 DB hostname      : localhost                                                          
 DB port          : 3306                                                               
 DB username      : ****                                                     
 DB name          : ****                                                     
 Database         : Connected                                                          
 Drupal bootstrap : Successful                                                         
 Default theme    : ttp                                                                
 Admin theme      : seven                                                              
 PHP binary       : /usr/local/php7.4/bin/php                                          
 PHP config       : /usr/local/php7.4/php.ini                                          
 PHP OS           : Linux                                                              
 Drush script     : /home/pathtomywebsite/vendor/drush/drush/drush     
 Drush version    : 10.5.0                                                             
 Drush temp       : /tmp                                                               
 Drush configs    : /home/pathtomywebsite/vendor/drush/drush/drush.yml 
 Install profile  : standard                                                           
 Drupal root      : /home/pathtomywebsite/web                          
 Site path        : sites/default                                                      
 Files,Public    : sites/default/files                                                
 Files,Temp      : /tmp

sql:connection 返回 mysql 的工作字符串。我卡住了,也许有人有类似的问题?

来自 updatedb 命令的调试输出:

php74 vendor/bin/drush updatedb

In Process.php line 266:
                                                                                                                                                                                           
  The command "/home/pathtomywebsite/vendor/drush/drush/drush updatedb:status --no-entity-updates --uri=default --root=/home/pathtomywebsite/web" failed.  
                                                                                                                                                                                           
  Exit Code: 1(General error)                                                                                                                                                              
                                                                                                                                                                                           
  Working directory:                                                                                                                                                                       
                                                                                                                                                                                           
  Output:                                                                                                                                                                                  
  ================                                                                                                                                                                         
                                                                                                                                                                                           
                                                                                                                                                                                           
  Error Output:                                                                                                                                                                            
  ================                                                                                                                                                                         
                                                                                                                                                                                           
  In BootstrapHook.php line 32:                                                                                                                                                            
                                                                                                                                                                                           
    Bootstrap failed. Run your command with -vvv for more information.                                                                                                                     
                                                                                                                                                                                           

user@server:~/somepath$ php74 vendor/bin/drush updatedb -vvv
 [preflight] Config paths: /home/pathtomywebsite/vendor/drush/drush/drush.yml
 [preflight] Alias paths: /home/pathtomywebsite/web/drush/sites,/home/pathtomywebsite/drush/sites
 [preflight] Commandfile search paths: /home/pathtomywebsite/vendor/drush/drush/src
 [debug] Starting bootstrap to full [0.06 sec,8.78 MB]
 [debug] Drush bootstrap phase 5 [0.06 sec,8.78 MB]
 [debug] Try to validate bootstrap phase 5 [0.06 sec,8.78 MB]
 [debug] Try to bootstrap at phase 5 [0.06 sec,8.78 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalRoot() [0.06 sec,8.78 MB]
 [debug] Change working directory to /home/pathtomywebsite/web [0.06 sec,8.78 MB]
 [debug] Initialized Drupal 9.2.0 root directory at /home/pathtomywebsite/web [0.06 sec,9.17 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalSite() [0.06 sec,9.17 MB]
 [debug] Initialized Drupal site default at sites/default [0.06 sec,9.34 MB]
 [debug] Try to validate bootstrap phase 5 [0.06 sec,9.34 MB]
 [debug] Try to bootstrap at phase 5 [0.06 sec,9.34 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalConfiguration() [0.06 sec,9.34 MB]
 [debug] Add service modifier [0.07 sec,9.55 MB]
 [debug] Try to validate bootstrap phase 5 [0.07 sec,9.55 MB]
 [debug] Try to bootstrap at phase 5 [0.07 sec,10.06 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalDatabase() [0.07 sec,10.06 MB]
 [debug] Successfully connected to the Drupal database. [0.07 sec,10.06 MB]
 [debug] Try to validate bootstrap phase 5 [0.07 sec,10.06 MB]
 [debug] Try to bootstrap at phase 5 [0.07 sec,10.06 MB]
 [debug] Drush bootstrap phase: bootstrapDrupalFull() [0.07 sec,10.06 MB]
 [debug] Start bootstrap of the Drupal Kernel. [0.07 sec,10.06 MB]
 [info] entity_reference_revisions should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file. [0.1 sec,12.42 MB]
 [debug] Found drush.services.yml for token Drush commands [0.1 sec,12.57 MB]
 [info] twig_tweak should have an extra.drush.services section in its composer.json. See http://docs.drush.org/en/10.x/commands/#specifying-the-services-file. [0.1 sec,12.57 MB]
 [debug] Found drush.services.yml for pathauto Drush commands [0.1 sec,12.57 MB]
 [debug] Get container builder [0.1 sec,12.59 MB]
 [debug] Service modifier alter. [0.11 sec,12.69 MB]
 [debug] process drush.console.services console.command [0.17 sec,17.37 MB]
 [debug] Found tagged service twig_tweak.validate [0.17 sec,17.37 MB]
 [debug] Found tagged service twig_tweak.debug [0.17 sec,17.37 MB]
 [debug] process drush.command.services drush.command [0.17 sec,17.37 MB]
 [debug] Found tagged service config.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service config.export.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service config.import.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service batch.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service cli.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service drupal.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service deploy_hook.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service entity.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service image.commands [0.17 sec,17.37 MB]
 [debug] Found tagged service jsonapi.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service language.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service locale.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service messenger.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service migrate_runner.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service queue.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service role.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service state.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service twig.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service user.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service views.commands [0.17 sec,17.38 MB]
 [debug] Found tagged service watchdog.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service pm.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service theme.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service sanitize.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service sanitize.comments.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service sanitize.sessions.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service sanitize.userfields.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service sanitize.usertable.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service entity_reference_revisions.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service token.commands [0.17 sec,17.39 MB]
 [debug] Found tagged service pathauto.commands [0.17 sec,17.39 MB]
 [debug] process drush.command_info_alterer.services drush.command_info_alterer [0.17 sec,17.39 MB]
 [debug] process drush.generator.services drush.generator [0.17 sec,17.39 MB]
 [debug] Finished bootstrap of the Drupal Kernel. [0.3 sec,26.24 MB]
 [debug] Add a command: twig-tweak:validate [0.4 sec,36.8 MB]
 [debug] Add a command: twig-tweak:debug [0.4 sec,36.8 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigCommands [0.42 sec,38.48 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigExportCommands [0.42 sec,38.52 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\config\ConfigImportCommands [0.42 sec,38.52 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\BatchCommands [0.42 sec,38.53 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\CliCommands [0.42 sec,38.54 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\DrupalCommands [0.42 sec,38.54 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\DeployHookCommands [0.42 sec,38.56 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\EntityCommands [0.42 sec,38.56 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\ImageCommands [0.42 sec,38.57 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\JsonapiCommands [0.42 sec,38.58 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\LanguageCommands [0.42 sec,38.59 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\LocaleCommands [0.42 sec,38.6 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\MessengerCommands [0.42 sec,38.62 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\MigrateRunnerCommands [0.42 sec,38.62 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\QueueCommands [0.43 sec,38.67 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\RoleCommands [0.43 sec,38.68 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\StateCommands [0.43 sec,38.71 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\TwigCommands [0.43 sec,38.72 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\UserCommands [0.43 sec,38.73 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\ViewsCommands [0.43 sec,38.77 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\core\WatchdogCommands [0.43 sec,38.8 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\pm\PmCommands [0.43 sec,38.83 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\pm\ThemeCommands [0.43 sec,38.84 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommands [0.43 sec,38.85 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeCommentsCommands [0.43 sec,38.85 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeSessionsCommands [0.43 sec,38.85 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserFieldsCommands [0.43 sec,38.86 MB]
 [debug] Add a commandfile class: Drush\Drupal\Commands\sql\SanitizeUserTableCommands [0.43 sec,38.86 MB]
 [debug] Add a commandfile class: Drupal\entity_reference_revisions\Commands\EntityReferenceRevisionsCommands [0.43 sec,38.87 MB]
 [debug] Add a commandfile class: Drupal\token\Commands\TokenCommands [0.43 sec,38.87 MB]
 [debug] Add a commandfile class: Drupal\pathauto\Commands\PathautoCommands [0.43 sec,38.87 MB]
 [info] Executing: /home/pathtomywebsite/vendor/drush/drush/drush updatedb:status --no-entity-updates --uri=default --root=/home/pathtomywebsite/web [0.56 sec,41.87 MB]

In Process.php line 266:
                                                                                                                                                                                           
  [Symfony\Component\Process\Exception\ProcessFailedException]                                                                                                                             
  The command "/home/pathtomywebsite/vendor/drush/drush/drush updatedb:status --no-entity-updates --uri=default --root=/home/pathtomywebsite/web" failed.  
                                                                                                                                                                                           
  Exit Code: 1(General error)                                                                                                                                                              
                                                                                                                                                                                           
  Working directory:                                                                                                                                                                       
                                                                                                                                                                                           
  Output:                                                                                                                                                                                  
  ================                                                                                                                                                                         
                                                                                                                                                                                           
                                                                                                                                                                                           
  Error Output:                                                                                                                                                                            
  ================                                                                                                                                                                         
                                                                                                                                                                                           
  In BootstrapHook.php line 32:                                                                                                                                                            
                                                                                                                                                                                           
    Bootstrap failed. Run your command with -vvv for more information.                                                                                                                     
                                                                                                                                                                                           

Exception trace:
  at /home/pathtomywebsite/vendor/symfony/process/Process.php:266
 Symfony\Component\Process\Process->mustRun() at /home/pathtomywebsite/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php:67
 Drush\Commands\core\UpdateDBCommands->updatedb() at n/a:n/a
 call_user_func_array() at /home/pathtomywebsite/vendor/consolidation/annotated-command/src/CommandProcessor.php:257
 Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback() at /home/pathtomywebsite/vendor/consolidation/annotated-command/src/CommandProcessor.php:212
 Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter() at /home/pathtomywebsite/vendor/consolidation/annotated-command/src/CommandProcessor.php:176
 Consolidation\AnnotatedCommand\CommandProcessor->process() at /home/pathtomywebsite/vendor/consolidation/annotated-command/src/AnnotatedCommand.php:311
 Consolidation\AnnotatedCommand\AnnotatedCommand->execute() at /home/pathtomywebsite/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /home/pathtomywebsite/vendor/symfony/console/Application.php:1027
 Symfony\Component\Console\Application->doRunCommand() at /home/pathtomywebsite/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /home/pathtomywebsite/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /home/pathtomywebsite/vendor/drush/drush/src/Runtime/Runtime.php:118
 Drush\Runtime\Runtime->doRun() at /home/pathtomywebsite/vendor/drush/drush/src/Runtime/Runtime.php:48
 Drush\Runtime\Runtime->run() at /home/pathtomywebsite/vendor/drush/drush/drush.php:72
 require() at /home/pathtomywebsite/vendor/drush/drush/drush:4

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)> insert overwrite table dwd_trade_cart_add_inc > select data.id, > data.user_id, > data.course_id, > date_format(
错误1 hive (edu)> insert into huanhuan values(1,'haoge'); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive> show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 <configuration> <property> <name>yarn.nodemanager.res