I'm deploying Node.js app that uses Mongodb. In kontena.yml I have 3 services: "app", "mongo", "lb-server".
mongo and lb-server runs perfectly. Except I cannot run "app". It just throws error written in title.
I know that
Mongoid::Criteria is from mongoid gem. But I don't use any ruby. I can run this docker image locally perfectly fine.
kontena stack logs shows logs from mongo and lb-server, but no logs from "app". Adding "--debug" doesn't give anything meaningful.
On cloud.kontena.io, it says "app" is running, but Instances is not green. Also, it's unhealthy.
$ kontena stack upgrade node-todo
[done] Reading stack node-todo metadata from Kontena Master
[done] Upgrading stack node-todo
[done] Triggering deployment of stack node-todo
[done] Waiting for deployment to start
[done] Deploying service mongo
[done] Deploying service lb-server
[done] Deploying service app
undefined method `host_node' for #<Mongoid::Criteria:0x0055c916ee6508>
Here is a part of kontena.yml.
# wait_for_port: 8080
# interval: 20min
- NODE_TODO_TITLE="Hello From Kontena"
Did anybody have experience with this kind of issue?