Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: samply/blaze
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e9894b6654e16f3d7b02ae681ffa08ceea26622f
Choose a base ref
...
head repository: samply/blaze
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8679ae7fb9dc628215f772a9e221af31d50e9c6a
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Nov 14, 2024

  1. Fix Server Initialization Error

    In order to initialize properly, the server needs the Job IG resource
    files in specific locations (see below).
    Since those files are prepped only if they did not exist before, we need
    do delete them every time we make a `make clean`.
    
    Context:
    
    * the Job IG resource files are generated by `make -C job-ig build`, and
    saved in the folder `job-ig/fsh-generated/resources`.
    
    * then, when `clojure -X:deps prep` is executed, the resource files are
    copied to the individual resources
    path's (e.g.
    `modules/job-re-index/resources/blaze/job/re_index/CodeSystem-ReIndexJobOutput.json`)
    via `build/copy-profiles`. But this only happens if the folders don't
    already exist. See
    https://clojure.org/reference/deps_edn#prep_lib
    
    If the server cannot find the files in their right locations, it will
    fail to initialize with the following error:
    ```
    2024-11-11T16:30:08.301Z d2e461cd82fc main ERROR [blaze.core:21] - Error
    while initializing Blaze.
    
        Error on key :blaze/admin-api when building system
    
        Cause:
    
        Config:
          ADMIN_INDEX_DB_DIR = /app/data/admin-index,
          ADMIN_TRANSACTION_DB_DIR = /app/data/admin-transaction,
          HOME = /,
          HOSTNAME = d2e461cd82fc,
          INDEX_DB_DIR = /app/data/index,
          JAVA_HOME = /opt/java/openjdk,
          JAVA_VERSION = jdk-21.0.5+11,
          JRE_CACERTS_PATH = /opt/java/openjdk/lib/security/cacerts,
          LANG = en_US.UTF-8,
          LANGUAGE = en_US:en,
          LC_ALL = en_US.UTF-8,
          LD_PRELOAD = libjemalloc.so.2,
    PATH =
    /opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin,
          PWD = /app,
          RESOURCE_DB_DIR = /app/data/resource,
          SHLVL = 0,
          STORAGE = standalone,
          TRANSACTION_DB_DIR = /app/data/transaction
    ```
    allentiak committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    8679ae7 View commit details
    Browse the repository at this point in the history
Loading