Informatievlaanderen / VSDS-LDESServer4J

Linked Data Event Streams Server for Java
https://informatievlaanderen.github.io/VSDS-LDESServer4J
European Union Public License 1.2
10 stars 9 forks source link

ERROR XJ004: Database '/tmp/Databases/SpatialMetadata' not found.. LDES Server crashed #529

Closed xdxxxdx closed 1 year ago

xdxxxdx commented 1 year ago

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Follow the step-by-step scenario of the E2E scenario: https://github.com/Informatievlaanderen/VSDS-LDES-E2E-testing/tree/main/demos/022.server-upgrade-with-ldio
  2. Till the step to run: docker compose up new-ldes-server -d

Expected behavior new-ldes-server up and running

Current behavior new-ldes-server crashed 2023-04-19 12:15:00 ERROR XJ004: Database '/tmp/Databases/SpatialMetadata' not found. logs: ldesServerUpgrade.txt

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

xdxxxdx commented 1 year ago

Remove:

volumes:
  - ../../data/epsg:/tmp/Database

In the docker file. Got another error: 2023-04-20 11:44:26 2023-04-20T09:44:26.496Z ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed Full log:Error2.txt

Tomvbe commented 1 year ago

now your epsg database is fine but you have an error on the config Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'ldes.collectionname' This is because the configuration of the server changed this sprint (cfr commit of Ruben on 17/04 on the docker-compose file). So you are using new config on an older server version that expects old config

xdxxxdx commented 1 year ago

Remove:

volumes:
  - ../../data/epsg:/tmp/Database

From: https://github.com/Informatievlaanderen/VSDS-LDES-E2E-testing/blob/main/demos/022.server-upgrade-with-ldio/docker-compose.yml

Works for E2E repo commit tag: 9c3d00247970e0dc7732c09fdb9a6f0a3a358d72 (sprint 24)

Tomvbe commented 1 year ago

great, that volume helps with performance as we provide a epsg database from ../../data/epsg but for some reason that path could not be found on your local computer and caused an issue. So you can fix the issue by either omitting the volume (makes things work but slower) or make sure that directory exists.