Cleanup Job failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • criffoh
    Member
    • Jun 2020
    • 55

    Cleanup Job failed

    The Cleanup task doesn't work and shows up as a failed y administration. It can be see in the log:

    Is there are a fix for this?

    ERROR: JobManager: Failed job running, job '664fb5659cd6a6f16'. Espo\Hooks\Attachment\RemoveFile::afterRemove(): Argument #2 ($options) must be of type Espo\ORM\Repository\Option\RemoveOptions, array given, called in /application/Espo/Core/HookManager.php on line 108; at /application/Espo/Hooks/Attachment/RemoveFile.php:56. :: #0 /application/Espo/Core/HookManager.php(108): Espo\Hooks\Attachment\RemoveFile->afterRemove(Object(Espo\Entities\Attachment), Array, Array) #1 /application/Espo/Core/Repositories/Database.php(200): Espo\Core\HookManager->process('Attachment', 'afterRemove', Object(Espo\Entities\Attachment), Array) #2 /application/Espo/Repositories/Attachment.php(117): Espo\Core\Repositories\Database->afterRemove(Object(Espo\Entities\Attachment), Array) #3 /application/Espo/ORM/Repository/RDBRepository.php(234): Espo\Repositories\Attachment->afterRemove(Object(Espo\Entities\Attachment), Array) #4 /application/Espo/ORM/EntityManager.php(279): Espo\ORM\Repository\RDBRepository->remove(Object(Espo\Entities\Attachment), Array) #5 /application/Espo/Classes/Jobs/Cleanup.php(330): Espo\ORM\EntityManager->removeEntity(Object(Espo\Entities\Attachment)) #6 /application/Espo/Classes/Jobs/Cleanup.php(109): Espo\Classes\Jobs\Cleanup->cleanupAttachments() #7 /application/Espo/Core/Job/JobRunner.php(247): Espo\Classes\Jobs\Cleanup->run(Object(Espo\Core\Job\Job\Data)) #8 /application/Espo/Core/Job/JobRunner.php(210): Espo\Core\Job\JobRunner->runJob(Object(Espo\Classes\Jobs\Cleanup), Object(Espo\Entities\Job)) #9 /application/Espo/Core/Job/JobRunner.php(139): Espo\Core\Job\JobRunner->runJobNamed(Object(Espo\Entities\Job)) #10 /application/Espo/Core/Job/JobRunner.php(89): Espo\Core\Job\JobRunner->runInternal(Object(Espo\Entities\Job), true) #11 /application/Espo/Core/Job/JobManager.php(176): Espo\Core\Job\JobRunner->runThrowingException(Object(Espo\Entities\Job)) #12 /application/Espo/Core/Console/Commands/RunJob.php(103): Espo\Core\Job\JobManager->runJob(Object(Espo\Entities\Job)) #13 /application/Espo/Core/Console/CommandManager.php(95): Espo\Core\Console\Commands\RunJob->run(Object(Espo\Core\Console\Command\Params), Object(Espo\Core\Console\IO)) #14 /application/Espo/Core/ApplicationRunners/Command.php(51): Espo\Core\Console\CommandManager->run(Array) #15 /application/Espo/Core/Application/RunnerRunner.php(87): Espo\Core\ApplicationRunners\Command->run() #16 /application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run('Espo\\Core\\Appli...', NULL) #17 /command.php(35): Espo\Core\Application->run('Espo\\Core\\Appli...') #18 {main} [] []
    [2024-05-23 21:31:43] ERROR: JobManager: Failed job running, job '664fb5b94bab37996'. Espo\Hooks\Attachment\RemoveFile::afterRemove(): Argument #2 ($options) must be of type Espo\ORM\Repository\Option\RemoveOptions, array given, called in /application/Espo/Core/HookManager.php on line 108; at /application/Espo/Hooks/Attachment/RemoveFile.php:56. :: #0 /application/Espo/Core/HookManager.php(108): Espo\Hooks\Attachment\RemoveFile->afterRemove(Object(Espo\Entities\Attachment), Array, Array) #1 /application/Espo/Core/Repositories/Database.php(200): Espo\Core\HookManager->process('Attachment', 'afterRemove', Object(Espo\Entities\Attachment), Array) #2 /application/Espo/Repositories/Attachment.php(117): Espo\Core\Repositories\Database->afterRemove(Object(Espo\Entities\Attachment), Array) #3 /application/Espo/ORM/Repository/RDBRepository.php(234): Espo\Repositories\Attachment->afterRemove(Object(Espo\Entities\Attachment), Array) #4 /application/Espo/ORM/EntityManager.php(279): Espo\ORM\Repository\RDBRepository->remove(Object(Espo\Entities\Attachment), Array) #5 /application/Espo/Classes/Jobs/Cleanup.php(330): Espo\ORM\EntityManager->removeEntity(Object(Espo\Entities\Attachment)) #6 /application/Espo/Classes/Jobs/Cleanup.php(109): Espo\Classes\Jobs\Cleanup->cleanupAttachments() #7 /application/Espo/Core/Job/JobRunner.php(247): Espo\Classes\Jobs\Cleanup->run(Object(Espo\Core\Job\Job\Data)) #8 /application/Espo/Core/Job/JobRunner.php(210): Espo\Core\Job\JobRunner->runJob(Object(Espo\Classes\Jobs\Cleanup), Object(Espo\Entities\Job)) #9 /application/Espo/Core/Job/JobRunner.php(139): Espo\Core\Job\JobRunner->runJobNamed(Object(Espo\Entities\Job)) #10 /application/Espo/Core/Job/JobRunner.php(89): Espo\Core\Job\JobRunner->runInternal(Object(Espo\Entities\Job), true) #11 /application/Espo/Core/Job/JobManager.php(176): Espo\Core\Job\JobRunner->runThrowingException(Object(Espo\Entities\Job)) #12 /application/Espo/Core/Console/Commands/RunJob.php(103): Espo\Core\Job\JobManager->runJob(Object(Espo\Entities\Job)) #13 /application/Espo/Core/Console/CommandManager.php(95): Espo\Core\Console\Commands\RunJob->run(Object(Espo\Core\Console\Command\Params), Object(Espo\Core\Console\IO)) #14 /application/Espo/Core/ApplicationRunners/Command.php(51): Espo\Core\Console\CommandManager->run(Array) #15 /application/Espo/Core/Application/RunnerRunner.php(87): Espo\Core\ApplicationRunners\Command->run() #16 /application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run('Espo\\Core\\Appli...', NULL) #17 /command.php(35): Espo\Core\Application->run('Espo\\Core\\Appli...') #18 {main} [] []​
  • yuri
    Member
    • Mar 2014
    • 8621

    #2
    We have bug report rules (3 sticky posts so that it should be hard to miss). This post does not conform to the rules.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8621

      #3
      It's likely your instance is broken. Some files are from an old version, some from a newer version. Remove the application folder (except application/Espo/Modules) and replace with a folder from a downloaded from GitHub package.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      Working...