Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

"ReferenceError: mongoClient is not defined" #540

Closed
NoNAT-Telecom opened this issue Feb 9, 2023 · 3 comments
Closed

"ReferenceError: mongoClient is not defined" #540

NoNAT-Telecom opened this issue Feb 9, 2023 · 3 comments

Comments

@NoNAT-Telecom
Copy link

Estou com esse erro quanto tento abrir uma instancia

{
"error": true,
"code": 500,
"message": "ReferenceError: mongoClient is not defined"
}

A API está instalada em AlmaLinux 8, um WEB Server remoto.

@NoNAT-Telecom
Copy link
Author

Procurando acabei achando que o mongodb não está iniciando devido a um problema de compatibilidade de processador.

"
WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
"

Como eu poderia colocar uma versão mais antiga no processo de instalação do mongo?

@salman0ansari
Copy link
Owner

i am rewriting project #486
mongo will be completely removed.

@NoNAT-Telecom
Copy link
Author

Consegui resolver o problema mudando a versão da imagem do Mongo.

No arquivo "docker-compose.yml" mudar de "mongo:latest" para "mongo:4.4.6"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants