Skip to content
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

Bug: Migration from v2.8 to 4.x failed #2064

Closed
kbeaugrand opened this issue May 12, 2023 · 0 comments
Closed

Bug: Migration from v2.8 to 4.x failed #2064

kbeaugrand opened this issue May 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kbeaugrand
Copy link
Member

Expected Behavior

When migrating from v2.x to v4.x, the application should migrate its data correctly.

Current Behavior

Migration of the application has failed. When migrating the device model commands, the following message appears:
MessageText: null value in column "Name" of relation "DeviceModelCommands" violates not-null constraint.

All tables in the storage account remain empty after the test and the portal is not operational until the models are reinserted into the database.

Steps to Reproduce

  1. Install v2.x portal
  2. create some LoRaWAN models
  3. Migrate the portal to v4.x

Context (Environment)

Portal version: 4.11.0
LoRaWAN Stack version: N/A

Logs

2023-05-12T08:51:26.990449625Z An exception occurred in the database while saving changes for context type 'AzureIoTHub.Portal.Infrastructure.PortalDbContext'.
2023-05-12T08:51:26.991984038Z Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
2023-05-12T08:51:26.992006438Z ---> Npgsql.PostgresException (0x80004005): 23502: null value in column "Name" of relation "DeviceModelCommands" violates not-null constraint

Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🚧 In Progress
Development

No branches or pull requests

1 participant