Skip to content

PHP Warning: unlink() ... No such file or directoryΒ #457

@seirerman

Description

@seirerman

Bug Report

Current Behavior
I get a lot of errors like this in my log:

PHP Warning: unlink(/var/html/t3/web/typo3temp/assets/tx_staticfilecache/https_www.domain.com_443/path/to/some/page/.htaccess): No such file or directory in /var/html/t3/vendor/lochmueller/staticfilecache/Classes/Service/RemoveService.php line 41

Sometimes hundreds of them for different files at the same time, flooding the log.

It's a big site with dozens of editors working simultaneously. My theory is that when an editor saves a record and triggers SFC to delete a lot of cache files (which could take a few seconds) and then another editor (maybe even the same?) does the same right after that, some of the files have already been deleted and SFC can't find them anymore.

I haven't been able to reproduce this, yet.

Environment

  • TYPO3 version(s): 13.4.19
  • staticfilecache version: 15.2.3
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions