CASS icon indicating copy to clipboard operation
CASS copied to clipboard

ELASTICSEARCH_ENDPOINT not working in Docker Standalone (cassproject/cass)

Open FunkMonkey opened this issue 3 years ago • 6 comments

The server always uses http://localhost:9200, because the environment variable is overwritten by pm2.standalone.config.js.

The values in the docker-compose.yml are thus also unused.

FunkMonkey avatar Jun 15 '22 05:06 FunkMonkey

Maybe this is connected to version 1.5.10 standalone simply not working at all. It keeps waiting for elasticsearch, which is why I assumed I must be able to setup my own elasticsearch instance, but looking at #223 it seems, that the normal standalone variant should already startup its own elasticsearch, so http://localhost:9200 should always be fine there

FunkMonkey avatar Jun 15 '22 06:06 FunkMonkey

@FunkMonkey I've experienced something similar in the past, if elasticsearch doesn't have enough resources to start (RAM/storage) it just silently fails and CASS ends up waiting indefinitely.

miledivovic avatar Jun 15 '22 16:06 miledivovic

@miledivovic going back to version 1.5.6 fixed this problem for me, so I don't think it has anything to do with resources

FunkMonkey avatar Jun 28 '22 11:06 FunkMonkey

This might also be related to the elasticsearch upgrade. If on a version earlier than 7.17, then Elasticsearch needs to upgrade to 7.17 before upgrading to 8.23. To do so, set the version to 7.17 in docker-compose, let it upgrade, and then set to 8.23.

gloverkari avatar Jun 29 '22 16:06 gloverkari

Let's strip environment variables from the pm2 files, especially when they match the defaults.

  • [ ] Strip environment variables from the pm2 files, especially when they match the defaults.

Lomilar avatar Jun 29 '22 17:06 Lomilar

Additionally, the upgrade to 8.23 shouldn't require any database upgrades. Just API changes.

Lomilar avatar Jun 29 '22 17:06 Lomilar