[ ] Regression (a behavior that stopped working in a new release)
[ x] Bug report
[ ] Performance issue
[ ] Documentation issue or request
Current behavior
Was running container tag “dev-6578” in AWS ECS using S3 asset storage. Created a new task definition to use “6.5.0” and launched. All S3 assets have been deleted from S3. Squidex has record of them in the db but no asset content.
Expected behavior
Launching new container version would retain S3 assets.
If you go to Profile -> Administration -> EventConsumers you should see that there is an entry with the name AssetPermanentDeleter. What is the status of this entry?
Check the status in MongoDB, how many asset deletion events do you have? Use the folllowing query on the Events2 collection: { "Events.Type": "AssetDeletedEvent" }
Are you sure that the file have ever existed in S3? Can you check S3 logs?
AssetPermanentDeleter 1485 1646163378-161-0-1 (the app in question, after I restored it has approximately 1311 assets). However, I don’t know how accurate this will be since I’ve deleted/restored apps on this database several times.
This count is the same 1485
I’m certain the files existed. I was modifying them before the upgrade and they were visible in the Squidex UI. Now they are not visible in the UI. I had verified their existence in S3 after I initially restored the application into the S3 environment.
I will completely reset my scenario to confirm and get back to you.
Sebastian,
I’ve done this a couple of times now. Here’s what I’m able to reproduce. It’s not actually related to the upgrade at all. It just seems like a really bad bug.
Launch a container using dev-6578.
Create an app and upload some assets.
Confirm the assets are created in S3 in their own app folder.
Delete a single asset from Squidex.
The entire folder for that app in S3 gets deleted.
Launch a container using 6.5.0.
Create an app and upload some assets.
Confirm the assets are created in S3 in their own app folder.
Delete a single asset from Squidex.
The entire folder for that app in S3 gets deleted.
The Consumers “AssetPermanentDelete” only has a single count for each of the single asset deletes I’ve done. It does not account for the 30 or so assets that have been removed between my 3 tests.
The S3 logs aren’t shedding much light. In fact, 30 minutes after I’ve deleted an app, I’m still seeing log entries like this
REST.PUT.OBJECT squidex-assets/d2f0a7c7-315c-4440-b9ae-cfa5f6e888bf/215d7261-93d7-482e-ae09-744e37174663_0_68_66_Pad
where d2f0a7c7-315c-4440-b9ae-cfa5f6e888bf is an app folder that was removed several iterations ago.
I’m happy to try to track down specific information for you. Or DM/Teams call.