Cannot use SplFileObject with directories

Created on 2 March 2023, over 1 year ago
Updated 8 March 2023, over 1 year ago

Problem/Motivation

When running drush updatedb, we have been encountering the following error:

 [notice] Database updates start.
> 
> In ExtensionDiscovery.php line 445:
>                                              
>   Cannot use SplFileObject with directories  
>                                              
> 

In SiteProcess.php line 214:
                                                                               
  The command "/var/lib/tugboat/vendor/bin/drush updatedb --no-cache-clear --  
  yes --uri=SITENAME --root=/var/lib/tugboat/web" failed.                           
                                                                               
  Exit Code: 1(General error)                                                  
                                                                               
  Working directory:                                                           
                                                                               
  Output:                                                                      
  ================                                                             
                                                                               
                                                                               
  Error Output:                                                                
  ================                                                             
                                                                               
  In ExtensionDiscovery.php line 445:                                          
                                                                               
    Cannot use SplFileObject with directories  

Steps to reproduce

This has been hard to reproduce consistently, but we have been tracking occurrences of this error since January 2023. The site we are seeing this on is on 9.5.x, but I am marking this issue against 10.0.x so that an MR can be created there first.

Proposed resolution

TBD

πŸ› Bug report
Status

Needs work

Version

10.0 ✨

Component
ExtensionΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States markdorison

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024