Discussion
Greenfield Technology Aktiengesellschaft
DE
Last activity: 17 May 2022 14:27 EDT
Constellation Container does not start: "storage service endpoint not initialised"
I had the issue that the Constellation container did not start - stating that the storage service was not initialized and hence the certificate and key files could not be read. Reason is a weak assumption in /usr/src/app/src/utils.js:
exports.inContainer = function () {
let containerised = false;
try {
const cgroups = childProcess.execSync("cat /proc/1/cgroup").toString('utf8');
...
containerised = !!cgroups.match(new RegExp('[0-9]+\:[a-z_-]+\:\/docker\/', 'i'));
}
...
return containerised;
}
/proc/1/cgroup does not always contain the keyword "docker" when running inside a container. Suggestion is to rather check for the existence of "/.dockerenv".
Possible workaround: Derive your own container image and provide your own version of utils.js.