sap-labs-france / ev-server

The Open e-Mobility Charging Station management backend server (check also ev-dashboard and ev-mobile)
https://open-e-mobility.fr/
Apache License 2.0
145 stars 134 forks source link

Error in config json data #4010

Open tinyblock opened 1 year ago

tinyblock commented 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:

WhatsApp Image 2022-12-15 at 12 10 59 PM

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" } }

aliuysal60 commented 1 year ago

You should write your mongodb information in the storage field in json.