digitalfabrik / entitlementcard

App for 'Digitale Berechtigungskarten', generally benefit card for volunteers or socially vulnerable groups in Germany. App for Android & iOS + Backend + Administration Web Portal – 100% Open Source.
MIT License
36 stars 3 forks source link

fix missing project on createOrUpdateRegion #1602

Closed f1sh1918 closed 2 months ago

f1sh1918 commented 2 months ago

Describe the bug Currently the backend service can't start because there is no koblenz project. Normally this project will be created via config.yml that is generated in salt. Currently lots of information are missing, so we could also temporary add a migration to add the project or insert it directly in the database

To Reproduce Steps to reproduce the behavior:

  1. install new package version 8.1
  2. Restart backend service

Expected behavior Service starts properly after installation

Additional context Some log information

Aug 27 13:30:20 entitlementcard-test.tuerantuer.org backend[818972]: [main] INFO Exposed - Checking mapping consistence took 223ms
Aug 27 13:30:20 entitlementcard-test.tuerantuer.org backend[818972]: Exception in thread "main" java.lang.Error: Required project 'koblenz.sozialpass.app' not found!
Aug 27 13:30:20 entitlementcard-test.tuerantuer.org backend[818972]:         at app.ehrenamtskarte.backend.regions.database.SetupKt.insertOrUpdateRegions$createOrUpdateRegion(Setup.kt:22)
Aug 27 13:30:20 entitlementcard-test.tuerantuer.org backend[818972]:         at app.ehrenamtskarte.backend.regions.database.SetupKt.access$insertOrUpdateRegions$createOrUpdateRegion(Setup.kt:1)
Aug 27 13:30:20 entitlementcard-test.tuerantuer.org backend[818972]:         at app.ehrenamtskarte.backend.regions.database.SetupKt$insertOrUpdateRegions$1.invoke(Setup.kt:63)
Aug 27 13:30:20 entitlementcard-test.tuerantuer.org backend[818972]:         at app.ehrenamtskarte.backend.regions.database.SetupKt$insertOrUpdateRegions$1.invoke(Setup.kt:40)
Aug 27 13:30:20 entitlementcard-test.tuerantuer.org backend[818972]:         at org.jetbrains.exposed.sql.transactions.ThreadLocalTransactionManagerKt$transaction$1.invoke(ThreadLocalTransactionManager.k>
f1sh1918 commented 2 months ago

Create a salt issue because the config for koblenz is missing there https://tasks.tuerantuer.org/work_packages/3575

f1sh1918 commented 2 months ago

merged and deployed