I’m running the database with mongoDB and i have converted it into Query data with the help of mongosqld(mongoDB BI connector). And i want to fetch the data in cube server but whenever i do this cube server throws me the error which is in the below image.
Mongosqld.config file
bindIp: "127.0.0.1"
port: 3307
ssl:
mode: "allowSSL"
allowInvalidCertificates: false
PEMKeyFile: "/mongo.pem"
CAFile: "/certificate.pem"
minimumTLSVersion: TLS1_1
mongodb:
net:
uri: "mongodb://localhost:27017"
ssl:
enabled: false
auth:
username: "kp"
password: "kp@123"
source: "admin"
mechanism: SCRAM-SHA-1
gssapiServiceName: mongodb
security:
enabled: true
defaultMechanism: "SCRAM-SHA-1"
defaultSource: "admin"
processManagement:
service:
name: "mongosql"
displayName: "MongoSQL Service"
description: "MongoSQL accesses MongoDB data with SQL"
CUBE env file
# Cube.js environment variables: https://cube.dev/docs/reference/environment-variables
CUBEJS_DB_TYPE=mongobi
CUBEJS_API_SECRET=9c7a834d9be0cd2fb4e7b86a88a2bd1368ffbc614dcf8fa8f836933b00d00c6916fa83b074c66a2b26579266edc93e0e1990b1271f6214ee799dc08b05b6a097
CUBEJS_EXTERNAL_DEFAULT=true
CUBEJS_SCHEDULED_REFRESH_DEFAULT=true
CUBEJS_WEB_SOCKETS=true
CUBEJS_DB_HOST=127.0.0.1
CUBEJS_DB_NAME=(database name)
CUBEJS_DB_USER=kp
CUBEJS_DB_PASSWORD=kp@123
CUBEJS_DB_PORT=3307
CUBEJS_DEV_MODE=true
CUBEJS_REFRESH_WORKER=true
# port=4242
# NODE_ENV=production
CUBEJS_DB_SSL=true
#CUBEJS_DB_SSL_CA=<SSL_CA>
#CUBEJS_DB_SSL_CERT=<SSL_CERT>
#CUBEJS_DB_SSL_CIPHERS=<SSL_CIPHERS>
#CUBEJS_DB_SSL_PASSPHRASE=<SSL_PASSPHRASE>
CUBEJS_DB_SSL_REJECT_UNAUTHORIZED=false
Error is this:
2022-12-28T14:06:22.244+0530 I NETWORK [conn5] connection accepted from 127.0.0.1:63039 #5 (1 connection now open) 2022-12-28T14:06:22.277+0530 E NETWORK [conn5] handshake error: unable to authenticate conversation 0: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-1": (AuthenticationFailed) Authentication failed. 2022-12-28T14:06:22.279+0530 I NETWORK [conn5] end connection 127.0.0.1:63039 (0 connections now open)
Schema is created but still error persists. Here is the image