-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqliteMathTranslator throws an exception on ubuntu in .Net 6 / EFCore 6 preview 6 #25314
Comments
Might be related to #25182 |
Apologies for the close/reopen, thought this was resolved, but it still happens. |
Just to add to the issue, this is causing real problems. Here's where I am now:
So now I'm in a position where the only way I can add new migrations is to upgrade my project to EF6 preview 6, add the migration, then downgrade to EF6 preview 4, so I can deploy to linux. 😭 |
@Webreaper Or stay on EF Core 5? |
A few problems with that:
But mainly #1. :) |
Marking as a bug in 6.0 so we can investigate. |
@Webreaper I noticed that your repo is now on 6.0.0-preview.7, does that mean the issue above no longer happens? If it does, can you provide some quick instructions on reproing this with your project? |
Hi @roji - no, it's not happening any more. I'm not sure why it stopped happening. I think it might have possibly been because I had a hooky combination of dependencies (I'd had a hodge-podge of different versions to work around various issues). It caused all sorts of issues, and broke migrations for me. I realigned everything on preview 7 and the latest EF core, and I think it's all good now, so it may have just been some form of dependency mash-up/DLL-hell sort of thing. You can probably close now, as I can't repro it any more (sorry, should have closed it myself when it went away - but forgot). If it crops up for anyone else they can always re-open if they find this issue. PS: I haven't forgotten about creating a repro project for that table-join issue we were discussing; will try and get to that this week! :) |
I upgraded my project to use .Net 6 preview-6, and EFCore 6 preview-6. It worked fine on MacOS. However, when I built and deployed the project to Linux/Ubuntu via docker, it crashed with:
My project a Blazor server app, and is using the Sqlite Provider. During the upgrade I'd added a new DateOnly field to my model.
Reverting to 6.0.0-preview.5.21301.9 and converting the DateOnly field to a DateTime field resolved the issue.
This is the revert commit that fixed the problem: Webreaper/Damselfly@5d17766
Possible Cause: DateOnly field in DBContext
I have not tested to see whether it works with EFCore 6-preview-6 without
DateOnly
yet. I will attempt that later this week, which should indicate if this is specifically related to preview-6 itself, or toDateOnly
fields. I'll update the issue when I get a chance to try it.EDIT: I was able to try the build with EFCore 6 preview-6, but without
DateOnly
being used, and the SqliteMatchTranslator exception still occurs. So it looks like this is a preview-6 issue, andDateOnly
is a red-herring.Include provider and version information
EF Core version: 6.0.0-preview.6.21352.1
Database provider: Microsoft.EntityFrameworkCore.Sqlite
Target framework: .Net 6.0 preview-6
Operating system: Synology Linux (an Ubuntu derivative) - in docker.
IDE: Visual Studio for Mac 8.10.6 (build 10)
The text was updated successfully, but these errors were encountered: