Unable to run the sample producer consumer application

Hi, I am trying to run GitHub - okteto/flask-producer-consumer.
I have created the required okteto secret mentioned in the prereq.


But when i try to run the project on Okteto i get the following error:

2023-02-02 03:56:45.45 UTCmongodb-0mongodb{"t":{"$date":"2023-02-02T03:56:45.455+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}}
2023-02-02 03:56:45.45 UTCmongodb-0mongodb{"t":{"$date":"2023-02-02T03:56:45.455+00:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
2023-02-02 04:00:33.00 UTCmongodb-0[pod-event](combined from similar events): Readiness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "ce1523ac75f4594dc46ffdb0e14644728c72e1d604635886625429b6be3bcbbc": OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown

Please let me know how to resolve this, thanks!

Hi @amg-1137,

The problem was under the mongo healthcheck section. mongo replaced its mongo binary with mongosh. We have updated the repo with the fix and you should be able to deploy it without any problems.

Let us know if the problem persists.

hi @jLopezbarb , that seems to have fixed it. Thank you.
Another query i had is there is almost no documentation on how to use this sample code. Is there no documentation available? How do i check the test that is being produced?

Hi again @amg-1137,

We don’t have any documentation for this example (just the README.md). We created it as a way to validate the compose integration with the Okteto platform.