[X ] Checked the logs and have provided the logs if I found something suspicious there
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
After container reboot, the Squidex docker image has been update from 4.5.1 to 5.0.0.
After that there are errors in mongo DB access.
For instance MongoDB.Driver.MongoConnectionException
“An exception occurred while receiving a message from the server.”
at MongoDB.Driver.Core.Connections.BinaryConnection.ReceiveBufferAsync()
Moreover many links between content and assets are broken.
Change history is not available anymore in content. Still there is schemas.
Expected behavior
I expected that mongo database created in a previous version of Squidex would be compatible with future major versions.
Changlog for 4.6.0 mentions a bugfix which requires mongodb 4.2 , ours is 4.4.
Apart from that, I see nothing saying that v5.0.0 is incompatible with old mongo DB created with 4.5.1
Minimal reproduction of the problem
Install Squidex V4.5.1.
Add schemas, content and assets.
Have content linked to assets.
Upgrade to 5.0.0
Environment
[ ] Self hosted with docker
[ ] Self hosted with IIS
[X ] Self hosted with other version (azure app service)
[ ] Cloud version
Version: [5.0.0]
Browser:
[X] Chrome (desktop)
[X] Chrome (Android)
[X] Chrome (iOS)
[ ] Firefox
[ ] Safari (desktop)
[ ] Safari (iOS)
[ ] IE
[ ] Edge
Others:
Is this the expected behavior or should Squidex v5.0.0 work fine with a mongo database created with Squidex 4.5.1? Thank you.
What I did is that I reconfigured my squidex container to force the docker image version to 4.5.1; then I restarted it: then I restored my last backup before the issue to a new app.
On this restored app, everything is working fine : images are back in place, content history is shown again.
So I presume there is a hitch between Squidex 5.0.0 db schema and 4.5.1 db schema.
I am not sure, what goes wrong. But 5.0.0 is still in beta, so I don’t know what is wrong. But the Beta does not make any changes to the mongodb connection itself.
the upgrade occured on 2020-09-02 03:18:32 (see 2020_09_02_RD0050F2817953_docker.log )
first exception occured on 2020-09-02 10:20:44 (see 2020_09_02_RD0050F2817953_default_docker.42.log) : Microsoft.Azure.Storage.StorageException
then on 2020-09-02 10h37 there is Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException
then on 2020-09-02 13:26 there is MongoDB.Driver.MongoConnectionException (see 2020_09_02_RD0050F2817953_default_docker.23.log )
I have the same issue after the upgrade it was used the last beta (because beta is published as “latest” in docker hub). And I will break all reference to assets. And same as Greg after downgrade to 4.6 (using specific version in docker-compose file) I cannot access most of the part my app. I think it will be better to replace the latest version in dockerhub with 4.6 and use a different tag for beta version. Because I do not expect this and as I found here I am not only one.
But something positive restore with build-in backup is pretty nice.
I’m experiencing the same issue - and I try to figure out how to fix this. My backup is too old, and creating a new backup on the version 5 beta (which has content there, but broken references) fails. I cannot reference assets to fix it manually either. Both just assigning assets or creating a new app and assigning assets doesn’t work.
Do I have any other options than to build the app manually on version 4.6 by copy pasting, @Sebastian ?
@Sebastian do you have any tips in how to upgrade to the latest version? I backed up our MongoDB file share just in case, and tried to upgrade from dev-4827 to 5.2.1 - but that resulted in assets not showing and all but 2 schemas not showing. When reverting to dev-4827, it seems both assets and schemas still works as expected.
E.g. if there is a version in between the two that could work out as a transition version?
There is no version in between. You can send me your backup and I can have a look, but it should just work. Perhaps the migration was not running in your case?
Sure, I can send a backup for one of the apps. However, we have 4 apps and one of the apps started to fail creating backups after the miss upgrade when we went for the dev beta 5 latest version: