Open tinyblock opened 1 year ago
Hi All
We are trying to setup on local system till now all steps followed mentioned in read.me file but when trying to run facing error:
MongoParseError: Invalid scheme, Expected connection string to start with "mongodb://" or "mongodb+srv://"
Attched screenshot below:
JSON file code:
{ "EVDatabase": { "url": "", "key": "" }, "Crypto": { "key": "", "algorithm": "" }, "CentralSystems": [ { "type": "ocpp", "implementation": "soap", "protocol": "http", "host": "localhost", "port": 8000, "debug": false }, { "type": "ocpp", "implementation": "json", "protocol": "ws", "host": "localhost", "port": 8010, "keepaliveinterval": 30, "debug": false } ], "CentralSystemRestService": { "protocol": "http", "host": "localhost", "port": 80, "userTokenKey": "YourSecretKey", "userTokenLifetimeHours": 12, "userDemoTokenLifetimeDays": 365, "userTechnicalTokenLifetimeDays": 365, "passwordWrongNumberOfTrial": 3, "passwordBlockedWaitTimeMin": 5, "captchaSecretKey": "YourCaptchaSecretKey", "captchaScore": 0.25, "debug": false }, "CentralSystemFrontEnd": { "protocol": "http", "host": "localhost", "port": 80 }, "OCPIService": { "protocol": "http", "host": "localhost", "port": 9090, "debug": false }, "OICPService": { "protocol": "http", "host": "localhost", "port": 9080, "debug": false }, "CentralSystemServer": { "protocol": "http", "host": "localhost", "port": 80 }, "ODataService": { "protocol": "http", "host": "localhost", "port": 9292, "debug": false }, "WSDLEndpoint": { "baseSecureUrl": "" }, "JsonEndpoint": { "baseSecureUrl": "ws://192.168.0.10:8010", "targetPort" : 8010 }, "OCPIEndpoint": { "baseUrl": "" }, "AsyncTask": { "active": true, "nbrTasksInParallel": 4 }, "Storage": { "implementation": "mongodb", "uri": "YourConnectionURI", "debug": false, "poolSize": 10 }, "Notification": { "Email": { "enabled": true }, "RemotePushNotification": { "enabled": true } }, "Firebase": { "type": "", "projectID": "", "privateKeyID": "", "privateKey": "", "clientEmail": "", "clientID": "", "authURI": "", "tokenURI": "", "authProviderX509CertURL": "", "clientX509CertURL": "" }, "Axios": { "retries": 0, "timeoutSecs": 30 }, "Email": { "disableBackup": false, "smtp": { "from": "", "host": "", "port": 465, "secure": true, "requireTLS": false, "user": "", "password": "" }, "smtpBackup": { "from": "", "host": "", "port": 465, "secure": true, "requireTLS": false, "user": "", "password": "" } }, "Authorization": { "debug": false }, "ChargingStation": { "heartbeatIntervalOCPPSSecs": 60, "heartbeatIntervalOCPPJSecs": 3600, "pingIntervalOCPPJSecs": 60, "monitoringIntervalOCPPJSecs": 600, "notifBeforeEndOfChargeEnabled": true, "notifBeforeEndOfChargePercent": 85, "notifEndOfChargeEnabled": true, "notifStopTransactionAndUnlockConnector": false, "maxLastSeenIntervalSecs": 540 }, "Migration": { "active": true }, "Scheduler": { "active": false, "tasks": [ { "name": "OICPPushEVSEDataTask", "active": false, "periodicity": "/10 ", "config": { "partial": false } }, { "name": "OICPPushEvseStatusTask", "active": false, "periodicity": "/5 ", "config": { "partial": false } } ] }, "Trace": { "traceIngressHttp": false, "traceEgressHttp": false, "traceOcpp": false, "traceDatabase": false, "traceNotification": false }, "Logging": { "logLevel": "D" } }
You should write your mongodb information in the storage field in json.
Hi All
We are trying to setup on local system till now all steps followed mentioned in read.me file but when trying to run facing error:
MongoParseError: Invalid scheme, Expected connection string to start with "mongodb://" or "mongodb+srv://"
Attched screenshot below:
JSON file code:
{ "EVDatabase": { "url": "", "key": "" }, "Crypto": { "key": "", "algorithm": "" }, "CentralSystems": [ { "type": "ocpp", "implementation": "soap", "protocol": "http", "host": "localhost", "port": 8000, "debug": false }, { "type": "ocpp", "implementation": "json", "protocol": "ws", "host": "localhost", "port": 8010, "keepaliveinterval": 30, "debug": false } ], "CentralSystemRestService": { "protocol": "http", "host": "localhost", "port": 80, "userTokenKey": "YourSecretKey", "userTokenLifetimeHours": 12, "userDemoTokenLifetimeDays": 365, "userTechnicalTokenLifetimeDays": 365, "passwordWrongNumberOfTrial": 3, "passwordBlockedWaitTimeMin": 5, "captchaSecretKey": "YourCaptchaSecretKey", "captchaScore": 0.25, "debug": false }, "CentralSystemFrontEnd": { "protocol": "http", "host": "localhost", "port": 80 }, "OCPIService": { "protocol": "http", "host": "localhost", "port": 9090, "debug": false }, "OICPService": { "protocol": "http", "host": "localhost", "port": 9080, "debug": false }, "CentralSystemServer": { "protocol": "http", "host": "localhost", "port": 80 }, "ODataService": { "protocol": "http", "host": "localhost", "port": 9292, "debug": false }, "WSDLEndpoint": { "baseSecureUrl": "" }, "JsonEndpoint": { "baseSecureUrl": "ws://192.168.0.10:8010", "targetPort" : 8010 }, "OCPIEndpoint": { "baseUrl": "" }, "AsyncTask": { "active": true, "nbrTasksInParallel": 4 }, "Storage": { "implementation": "mongodb", "uri": "YourConnectionURI", "debug": false, "poolSize": 10 }, "Notification": { "Email": { "enabled": true }, "RemotePushNotification": { "enabled": true } }, "Firebase": { "type": "", "projectID": "", "privateKeyID": "", "privateKey": "", "clientEmail": "", "clientID": "", "authURI": "", "tokenURI": "", "authProviderX509CertURL": "", "clientX509CertURL": "" }, "Axios": { "retries": 0, "timeoutSecs": 30 }, "Email": { "disableBackup": false, "smtp": { "from": "", "host": "", "port": 465, "secure": true, "requireTLS": false, "user": "", "password": "" }, "smtpBackup": { "from": "", "host": "", "port": 465, "secure": true, "requireTLS": false, "user": "", "password": "" } }, "Authorization": { "debug": false }, "ChargingStation": { "heartbeatIntervalOCPPSSecs": 60, "heartbeatIntervalOCPPJSecs": 3600, "pingIntervalOCPPJSecs": 60, "monitoringIntervalOCPPJSecs": 600, "notifBeforeEndOfChargeEnabled": true, "notifBeforeEndOfChargePercent": 85, "notifEndOfChargeEnabled": true, "notifStopTransactionAndUnlockConnector": false, "maxLastSeenIntervalSecs": 540 }, "Migration": { "active": true }, "Scheduler": { "active": false, "tasks": [ { "name": "OICPPushEVSEDataTask", "active": false, "periodicity": "/10 ", "config": { "partial": false } }, { "name": "OICPPushEvseStatusTask", "active": false, "periodicity": "/5 ", "config": { "partial": false } } ] }, "Trace": { "traceIngressHttp": false, "traceEgressHttp": false, "traceOcpp": false, "traceDatabase": false, "traceNotification": false }, "Logging": { "logLevel": "D" } }