Problem/Motivation

Seeing this error once per cron

Error: Call to a member function getResourceFileItems() on null in Drupal\dkan_dataset_archiver_remote_storage\Service\RemoteStorageService->syncToRemote() (line 188 of /var/www/html/docroot/modules/contrib/dkan_dataset_archiver/modules/dkan_dataset_archiver_remote_storage/src/Service/RemoteStorageService.php)
#0 /var/www/html/docroot/modules/contrib/dkan_dataset_archiver/modules/dkan_dataset_archiver_remote_storage/src/Plugin/QueueWorker/SyncToRemote.php(65): Drupal\dkan_dataset_archiver_remote_storage\Service\RemoteStorageService->syncToRemote()
#1 /var/www/html/docroot/core/lib/Drupal/Core/Cron.php(208): Drupal\dkan_dataset_archiver_remote_storage\Plugin\QueueWorker\SyncToRemote->processItem()
#2 /var/www/html/docroot/core/lib/Drupal/Core/Cron.php(173): Drupal\Core\Cron->processQueue()
#3 /var/www/html/docroot/core/lib/Drupal/Core/Cron.php(100): Drupal\Core\Cron->processQueues()
#4 /var/www/html/vendor/drush/drush/src/Commands/core/DrupalCommands.php(58): Drupal\Core\Cron->run()
#5 [internal function]: Drush\Commands\core\DrupalCommands->cron()
#6 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#7 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#8 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(175): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#9 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(389): Consolidation\AnnotatedCommand\CommandProcessor->process()
#10 /var/www/html/vendor/symfony/console/Command/Command.php(341): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#11 /var/www/html/vendor/symfony/console/Application.php(1117): Symfony\Component\Console\Command\Command->run()
#12 /var/www/html/vendor/drush/drush/src/Application.php(201): Symfony\Component\Console\Application->doRunCommand()
#13 /var/www/html/vendor/symfony/console/Application.php(356): Drush\Application->doRunCommand()
#14 /var/www/html/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRun()
#15 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(113): Symfony\Component\Console\Application->run()
#16 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#17 /var/www/html/vendor/drush/drush/drush.php(140): Drush\Runtime\Runtime->run()
#18 {main}

Acceptance Criteria

Testing steps

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

swirt created an issue. See original summary.

  • swirt committed 0f53bc3a on 1.0.x
    fix #3606612 Make file mover more defensive
    
swirt’s picture

Status: Active » Fixed

This has been fixed and is rolling out to all three branches.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • swirt committed 90056c40 on 1.1.x
    fix #3606612 Make file mover more defensive
    

  • swirt committed 7f905fe1 on 0.333.x
    fix #3606612 Make file mover more defensive
    
swirt’s picture

Crediting @Chri5tia for reviewing this change.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.