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

Issue with embarked config.json file #424

Closed
thsbt opened this issue Jan 31, 2022 · 2 comments · Fixed by #427
Closed

Issue with embarked config.json file #424

thsbt opened this issue Jan 31, 2022 · 2 comments · Fixed by #427
Assignees
Labels
type:bug Something isn't working
Milestone

Comments

@thsbt
Copy link

thsbt commented Jan 31, 2022

Hi,

I'm currently using ARLAS WUI 19.2.2 and faced an issue:

I created a dashboard through Arlas Builder and I exported its configuration files : config.json and config.map.json.

Now, I would like to run only ARLAS WUI (without ARLAS Builder, ARLAS Persistence, etc.). I saw on your documentation that my dashboard configuration files can be mounted in ARLAS WUI through a Docker volume: https://docs.arlas.io/arlas-wui-configuration/#file_1

According to your code, these mounted configuration files are taken into account when the env var ARLAS_PERSISTENCE_URL is not set:

scripts/start.sh

...
## PERSISTENCE
if [ -z "${ARLAS_PERSISTENCE_URL}" ]; then
  ARLAS_PERSISTENCE_URL="''"
  export ARLAS_PERSISTENCE_URL
  echo "NO ARLAS-persistence URL is specified. ARLAS-wui will load its own config.json file"
else
  echo ${ARLAS_PERSISTENCE_URL} "is used for 'persistence.url'"
fi
...

However, several lines above, when the env var ARLAS_PERSISTENCE_URL is not set, you set it with a default value 😢 . Consequently, the mounted configuration files cannot be used:

scripts/start.sh

...
if [ -z "${ARLAS_PERSISTENCE_URL}" ]; then
  ARLAS_PERSISTENCE_URL="http://localhost:9997"
  export ARLAS_PERSISTENCE_URL
  echo "The default ARLAS-persistence url '${ARLAS_PERSISTENCE_URL}' is used"
else
  echo ${ARLAS_PERSISTENCE_URL} "is used for 'arlas.persistence-server.url'"
fi
...

As a workaround, I go into my ARLAS WUI container and remove these lines in the /usr/share/nginx/html/settings.yaml:

persistence:
 url: 'http://localhost:9997'

In that way, my dashboard configuration files are loaded.

Thanks for your help !

sebbousquet added a commit that referenced this issue Jan 31, 2022
Causing trouble with embarked config files

Fix #424
sebbousquet added a commit that referenced this issue Jan 31, 2022
Causing trouble with embarked config files

Fix #424
@sebbousquet sebbousquet added the type:bug Something isn't working label Jan 31, 2022
@sebbousquet
Copy link
Member

Hello,

Thanks for the feedback.

We have published a new version of the docker image that fixes this issue :

gisaia/arlas-wui:19.2.3

Hope this helps

@thsbt
Copy link
Author

thsbt commented Feb 1, 2022

Thanks ! It works fine now 😄

@thsbt thsbt closed this as completed Feb 1, 2022
@sebbousquet sebbousquet added this to the 20.0.0 milestone Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants