docker-ripe-atlas icon indicating copy to clipboard operation
docker-ripe-atlas copied to clipboard

atlas - source not found

Open sebastianschauenburg opened this issue 5 months ago • 3 comments

When starting the container, the probe does not turn up (REGINIT exit with error). Currently running on Debian 12 (Bookworm). Looking into the container logs, I notice some other errors, which I wanted to report:

/usr/local/bin/atlas: 23: source: not found
/usr/local/bin/atlas: 24: source: not found
/usr/local/bin/atlas: 25: source: not found
/usr/local/bin/atlas: 26: source: not found
/usr/local/bin/atlas: 27: source: not found

This refers to these lines from /usr/local/atlas/bin/ATLAS:

source $ATLAS_STATIC/bin/support.lib.sh
source $ATLAS_STATIC/bin/class.lib.sh
source $ATLAS_STATIC/bin/array.lib.sh
source $ATLAS_STATIC/bin/json.lib.sh
source $ATLAS_STATIC/bin/atlas_log.lib.sh

So by default the container uses dash, which does not have source. With dpkg-reconfigure dash it can be changed back to bash (by default) or the shell scripts need to be updated. For compatibility, I'd suggest to change the default shell for this container.

Looking further into the Dockerfile and then at the Debian package, the sourced scripts do not appear to be available, since this returns nothing: dpkg -L atlasswprobe|grep 'lib.sh'.

Does anyone else also experience this issue?

sebastianschauenburg avatar Sep 09 '24 10:09 sebastianschauenburg