Project

General

Profile

Actions

Bug #91664

open

TYPO3 9.5 "Cannot unserialize TYPO3\CMS\Core\Locking\FileLockStrategy" during cache reading

Added by Carsten Hülsmann almost 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2020-06-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

after several issues related to the caches (we're using LazyObjects) now there's an issue with the reading from cache.
Error page is attached.

As reference for the model structure you can look into https://forge.typo3.org/issues/91364 where I added the models that are used to be stored in cache (ticket is from the original issue related to v10).
Since 9.5.17 these issues are also in v9.

The error always occurs after the page rendering itself worked once, but it seems to be also a general issue cause this also happens if we run a Command that deletes the cache entries for specific products.

Happy to answer any additional questions that may come up to get this solved asap - cause it prevents us from updating our app we currently run on 9.5.16 which did not had these issues.


Files

TYPO3 Exception.html (4.08 MB) TYPO3 Exception.html Carsten Hülsmann, 2020-06-17 08:25

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #91364: Extbase/CachingFramework - Serialization on 'Closure' is not allowedNew2020-05-12

Actions
Related to TYPO3 Core - Bug #91766: Bug after security update 6.2.50| Uncaught TYPO3 Exception: #1588784142: Cannot unserialize TYPO3\CMS\Core\Log\Writer\AbstractWriterClosed2020-07-08

Actions
Actions #1

Updated by Carsten Hülsmann almost 4 years ago

  • Related to Bug #91364: Extbase/CachingFramework - Serialization on 'Closure' is not allowed added
Actions #3

Updated by Oliver Hader almost 4 years ago

Is there a possibility to get a slim version of that extension (narrowed down to the actual problem causing this problem)?
There also should be an error on serializing FileLockStrategy - this was introduced with #88573 in terms of security hardening.

Actions #4

Updated by Carsten Hülsmann almost 4 years ago

Oliver Hader wrote:

Is there a possibility to get a slim version of that extension (narrowed down to the actual problem causing this problem)?
There also should be an error on serializing FileLockStrategy - this was introduced with #88573 in terms of security hardening.

I'm not sure if this will be possible. The extension is just part of a whole TYPO3 project.
There are services that rely on env vars - which are required to render a page (e.g. to fetch additional Data from a PIM on the fly).
I'll check what I can do, to narrow it down as far as I can without breaking the other stuff.

Regarding the missing error on "serializing" - we had that before the latest update (unfortunately I can't say anymore if it was actually a FileLockStrategy issue). Then everything seemed to work well but than this issue appeared.

Just a heads up: I'm currently clarifying if I'm allowed to share the whole Extension.

Actions #5

Updated by Carsten Hülsmann almost 4 years ago

@Oliver
Instead of sharing the whole extension here (which wouldn't work as mentioned above) and to narrow it down is nearly impossible in this project so I wouldn't like to share it for now.

However I build a work around now by putting the rendered view into the cache instead of the product object including it's relations.
Unfortunately I've seen this error also occuring by manually starting scheduler tasks - so I believe this is not neccessarily related to the Product Object itself but maybe a configuration issue (which I couldn't find by now).

In case I am able to reproduce this issue (e.g. in the Scheduler) I can mention it here or in another ticket.

Actions #6

Updated by Devid Messner almost 4 years ago

I had the same problem when updating to version TYPO3 9.5.19
The cause was the passing of a domain object to a typoscript USER_INT function via FluidViewHelper "f:cObject".

<f:cObject typoscriptObjectPath="lib.UserIntFunc" data="{domainObject: object}" />

The object in the attribute "data" is no longer serialized correctly.
Maybe this information helps to locate the problem.

Actions #7

Updated by Jacco van der Post over 3 years ago

I get this bug on

<v:render.uncache partial="..

TYPO3 9.5.18, 9.5.19 and 9.5.20
VHS 6.0.3

Clearing frontend cache helps

Actions #8

Updated by Vasyl Mosiychuk over 3 years ago

For me too, it is not resolved! I still get this error...

Actions #9

Updated by Benni Mack over 2 years ago

  • Related to Bug #91766: Bug after security update 6.2.50| Uncaught TYPO3 Exception: #1588784142: Cannot unserialize TYPO3\CMS\Core\Log\Writer\AbstractWriter added
Actions

Also available in: Atom PDF