[SOLVED] Assets are gone after upgrade from 5.3.0 to 5.4.0

I have…

  • [ ] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.

I’m submitting a…

  • [x ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

All my folders and assets are not listed in squidex anymore, after we updated the container image from 5.3.0 to 5.4.0 - All the assets are still in the blob container on Azure.

The strange thing is the filter bar is showing there is some assets:

But the api request does not return anything:
image

The container logs does not show any errors.

All the assets that I reference from a content item is also gone.

Expected behavior

I expect all my folders and assets to be there

Minimal reproduction of the problem

Upload assets when on version 5.3.0
Upgrade to 5.4.0

Environment

  • [ x] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [VERSION]

Browser:

  • [ x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ x] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Do you have a 5.3 backup of your database that you send me?

Unfortunately I don’t. I only have a app-backup which I used to restore the app, so everythings fine again.

There is also something funky going on with folders now, or at least a different behavior. When I create a folder, it does not appear right away. Nor does the folders list in the Assets page.

The only way I can get in the folder is to click this little icon:

Then I’m here:

If I press the Parent folder, then the view changes to what we are used to

Is there anything else I can provide to help you solve this?

Can you send me your current backup of your database? (with mongodump)

Do you have all your assets in folders?

I will create a backup of my current database for you.

No, not all assets. But currently we’re using it as a whitelabel solution to store customer-specific assets in folders. But we also have some generelt assets for all customers. These assets are not in any folder.

I have found the issue. This version runs a migration that does not make sense if you have started with 5.3.

But you can set this flag to true and then restart your instance to repair your DB: https://github.com/Squidex/squidex/blob/master/backend/src/Squidex/appsettings.json#L704

Yup! That was it! Thanks a lot :slight_smile:

Any idea why the behavior with the folders that i mentioned?

The other problem is a UI bug.

1 Like

Can you try dev-5312 tag?

1 Like

Yup, that fixes the folder bug for me

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.