Bug #87174

.... typo3temp/var/cache/code/cache_core/site-configuration.php): Access is denied

Added by Eckard Gehrke 10 months ago. Updated 3 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-12-16
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

after upgrade from 8.7.13 I am getting now this error very frequently in the log:

Core: Error handler (BE): PHP Warning: rename(C:/dev_95/typo3temp/var/cache/code/cache_core/5c16b9b2bd900101327003.temp,C:/dev_95/typo3temp/var/cache/code/cache_core/site-configuration.php): Access is denied. (code: 5) in C:\dev_95\typo3\sysext\core\Classes\Cache\Backend\SimpleFileBackend.php line 234

Looking to the files it seems to be just an empty php files:

[] #

No other "Access is denied" errors fopr other files appear.

Best regards
Eckard.

History

#1 Updated by Riccardo De Contardi 9 months ago

I get the same errors on a XAMPP environment (windows 10); my installation is TYPO3 9.5.3, completely fresh installation (nothing installed except system extensions and empty default page)

#2 Updated by Eckard Gehrke 8 months ago

  • Category deleted (Backend API)
  • PHP Version set to 7.3

Hi,
has anybody else the same problem and found a solution in the meantime?
It seems to be a windows problem.
When a file is locked it cannot be renamed:

\typo3\sysext\core\Classes\Cache\Backend\SimpleFileBackend.php line 237
I found a suggestion
(https://stackoverflow.com/questions/12894822/access-denied-error-on-rename-call-when-uploading-files-in-symfony)

try {
rename($temporaryCacheEntryPathAndFilename,$cacheEntryPathAndFilename);
} catch(\Exception $e) {
if (copy($temporaryCacheEntryPathAndFilename,$cacheEntryPathAndFilename)) {
unlink($temporaryCacheEntryPathAndFilename);
}
}

But that does not solve the issue here.

Best regards
Eckard.

#3 Updated by Markus Dübbert 4 months ago

  • TYPO3 Version changed from 9 to 8
  • PHP Version changed from 7.3 to 7.1

I get the same error:

Core: Error handler (BE): PHP Warning: rename(/var/www/html/web/typo3temp/var/Cache/Data/flux/5d1587584590b881734967.temp,/var/www/html/web/typo3temp/var/Cache/Data/flux/flux_content_types): No such file or directory in /var/www/html/vendor/typo3/cms/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php line 236

the error occured after deinstalling/installing an extension.
see also
https://forge.typo3.org/issues/84123
https://forge.typo3.org/issues/55099

local ddev installation on windows 10

is there a solution for this yet?

update:
the problem for me is:
https://github.com/docker/for-win/issues/525

#4 Updated by Tymoteusz Motylewski 3 months ago

for me on xampp with win 10
a workaround like

 $res = @rename($temporaryCacheEntryPathAndFilename, $cacheEntryPathAndFilename);
       if (!$res) {
           $e = copy($temporaryCacheEntryPathAndFilename, $cacheEntryPathAndFilename);
            unlink($temporaryCacheEntryPathAndFilename);

       }

worked.

see also https://github.com/doctrine/common/pull/874

#5 Updated by Stephan Salzmann 3 months ago

Markus Dübbert wrote:

local ddev installation on windows 10

If you start the docker-desktop with administrative priviliges the error disappears.

Also available in: Atom PDF