Whenever i try to create a method in Backendless Pro is says Opps, Internal error occurred

Whenever i try to create codeless method it says internal error has occured.

42%20AM

here is my docker logs:

:~$ sudo docker service logs bl-swarm_bl-web-console bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | Initializing configs... bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | Check is Consul is ready for work... bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | Can not read values by "config" key { Error: Status Code 404 (Not Found) bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at new ResponseError (/opt/backendless/console/node_modules/backendless-consul-config-provider/node_modules/backendless-request/lib/index.js:38:116) bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at checkStatus (/opt/backendless/console/node_modules/backendless-consul-config-provider/node_modules/backendless-request/lib/index.js:229:23) bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at <anonymous> bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at process._tickCallback (internal/process/next_tick.js:189:7) bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | status: 404, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | headers: bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | { vary: 'Accept-Encoding', bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 'x-consul-index': '49400', bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 'x-consul-knownleader': 'true', bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 'x-consul-lastcontact': '0', bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | date: 'Mon, 03 Dec 2018 06:40:26 GMT', bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 'content-length': '0', bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | connection: 'close' }, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | message: 'Status Code 404 (Not Found)', bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | code: undefined } bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | Start loading Config from Consul... bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | Config has been successful loaded from Consul bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | Configs: { bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "gaTrackingId": "UA-37519430-4", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "initializing": {}, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "allowedHosts": "http://localhost/;http://10.0.1.183/;http://10.0.1.57/;http://localhost:82/;http://backendless.com/;http://test.backendless.com/;https://localhost/;https://backendless.com/;https://test.backendless.com/;https://www.backendless.com/;http://www.backendless.com/;http://tc.themidnightcoders.com/;http://tc.themidnightcoders.com:7770/", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "appInfo": { bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "appId": "AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "coderunnerKey": "B33AE94D-AB61-A7C2-FF4B-614F1E23FD00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "host": "api.backendless.com", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "restKey": "4291F188-E54C-5A0E-FFC6-1E872A360F00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "path": "/AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500/B33AE94D-AB61-A7C2-FF4B-614F1E23FD00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "servicePath": "services/AppInfo/", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "fullURL": "https://api.backendless.com/AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500/B33AE94D-AB61-A7C2-FF4B-614F1E23FD00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "serviceURL": "https://api.backendless.com/AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500/4291F188-E54C-5A0E-FFC6-1E872A360F00/services/AppInfo/" bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | }, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "loggers": { bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "console": true, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "file": { bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "datePattern": "yyyy-MM-dd", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "filename": "/opt/backendless/console/logs/.log" bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | } bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | }, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "marketplace": false, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "port": "80", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "referrals": { bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "appId": "E99A1BF9-5B6D-ABEE-FF75-759BE1177D00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "coderunnerKey": "F57A5041-5CB3-7D6D-FF6C-83B5AE6BEE00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "host": "api.backendless.com", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "fullURL": "https://api.backendless.com/E99A1BF9-5B6D-ABEE-FF75-759BE1177D00/F57A5041-5CB3-7D6D-FF6C-83B5AE6BEE00" bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | }, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "rootUrl": "http://localhost", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "v3Path": "3.x", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "redis": { bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "cache": { bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "port": 6379, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "host": "bl-redis" bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | } bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | }, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "apiProtocol": "http", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "apiHost": "bl-server", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "apiPort": 9000, bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "repoPath": "/opt/backendless/repo", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "apiUrl": "http://bl-server:9000", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "staticPath": "static", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "landingPage": { bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "appId": "AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "coderunnerKey": "B33AE94D-AB61-A7C2-FF4B-614F1E23FD00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "host": "api.backendless.com", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "restKey": "4291F188-E54C-5A0E-FFC6-1E872A360F00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "path": "/AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500/B33AE94D-AB61-A7C2-FF4B-614F1E23FD00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "servicePath": "services/LandingPage/", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "fullURL": "https://api.backendless.com/AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500/B33AE94D-AB61-A7C2-FF4B-614F1E23FD00", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "serviceURL": "https://api.backendless.com/AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500/4291F188-E54C-5A0E-FFC6-1E872A360F00/services/LandingPage/", bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | "filesURL": "https://api.backendless.com/AB3B9D45-AE16-1347-FFFC-5A3AEBBD6500/B33AE94D-AB61-A7C2-FF4B-614F1E23FD00/files/landing-pages" bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | } bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | } bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:40:28.759Z - warn: Initialize a new Redis Client bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:40:28.832Z - info: ---- bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:40:28.832Z - info: Backendless.Console is running, talking to API server on http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:40:28.840Z - info: Open http://localhost:80 in a browser to view the app. bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:41:50.124Z - info: Load Console Status bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:41:50.125Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:41:50.447Z - info: Loaded Console Status: version=5.2.17, apiURL=http://localhost:9000, fileDownloadURL=http://localhost:9000, billingURL=http://billingtest4.backendless.com, mediaServer=, mode=enterprise, marketplace=false, v3Path=3.x, gaTrackingId=UA-37519430-4, product-version-client=5.2.0, product-version-server=5.2.0, last-commit-hash=8fd163457daea4ed8bba051f082fbe413a14a8cd, last-commit-date=Mon Nov 19 21:25:23 2018 +0100, backendless-console-sdk=2.6.3, backendless-request=0.0.11, backendless-consul-config-provider=1.0.4 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:41:50.703Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:42:50.133Z - info: Reset Console Status Request bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:56:38.863Z - info: Load Console Status bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:56:38.863Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:56:38.911Z - info: Loaded Console Status: version=5.2.17, apiURL=http://localhost:9000, fileDownloadURL=http://localhost:9000, billingURL=http://billingtest4.backendless.com, mediaServer=, mode=enterprise, marketplace=false, v3Path=3.x, gaTrackingId=UA-37519430-4, product-version-client=5.2.0, product-version-server=5.2.0, last-commit-hash=8fd163457daea4ed8bba051f082fbe413a14a8cd, last-commit-date=Mon Nov 19 21:25:23 2018 +0100, backendless-console-sdk=2.6.3, backendless-request=0.0.11, backendless-consul-config-provider=1.0.4 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:56:39.301Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:56:59.671Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:56:59.805Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:00.034Z - info: UTILS:BACKUP backup /opt/backendless/repo/af83527a-711e-c7b5-ffa4-8e1da0144900/files/servercode/CODELESS/default/DRAFT/services/CodelessShoppingCartService bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:00.070Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:00.071Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:00.071Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:01.370Z - info: UTILS:BACKUP destroy backup /opt/backendless/repo/af83527a-711e-c7b5-ffa4-8e1da0144900/files/servercode/CODELESS/default/DRAFT/services/CodelessShoppingCartService bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:25.663Z - info: CODELESS:CREATE-METHOD REQUEST appId=AF83527A-711E-C7B5-FFA4-8E1DA0144900, serviceId=BC958D03-0E7C-7782-FFD6-2A023040BF00, name=data, path=/getAmnData, type=GET, params=[] bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:25.664Z - info: CODELESS:CREATE-METHOD METHOD name=data, description=undefined, complexTypes=[], params=[], route=GET /getAmnData bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:25.666Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:25.743Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:25.788Z - error: 981487c160279b55423af7335792f4b4 message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=9000, id=981487c160279b55423af7335792f4b4 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:57:38.864Z - info: Reset Console Status Request bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:58:42.524Z - info: CODELESS:CREATE-METHOD REQUEST appId=AF83527A-711E-C7B5-FFA4-8E1DA0144900, serviceId=BC958D03-0E7C-7782-FFD6-2A023040BF00, name=data, path=/getAmnData, type=GET, params=[] bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:58:42.525Z - info: CODELESS:CREATE-METHOD METHOD name=data, description=undefined, complexTypes=[], params=[], route=GET /getAmnData bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:58:42.525Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T06:58:42.570Z - error: 3031a18225d709e919c196cb9a6d2793 message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=9000, id=3031a18225d709e919c196cb9a6d2793 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:04:26.398Z - info: CODELESS:CREATE-METHOD REQUEST appId=AF83527A-711E-C7B5-FFA4-8E1DA0144900, serviceId=BC958D03-0E7C-7782-FFD6-2A023040BF00, name=testD, path=/testD, type=GET, params=[] bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:04:26.398Z - info: CODELESS:CREATE-METHOD METHOD name=testD, description=undefined, complexTypes=[], params=[], route=GET /testD bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:04:26.399Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:04:26.418Z - error: fba1b0a69b3f85746873750e1cfa992c message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=9000, id=fba1b0a69b3f85746873750e1cfa992c bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:37.085Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:37.093Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:37.097Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:44.023Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:44.552Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:46.373Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:46.379Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:46.380Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:46.733Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:08:46.955Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:09:04.602Z - info: CODELESS:CREATE-METHOD REQUEST appId=AF83527A-711E-C7B5-FFA4-8E1DA0144900, serviceId=BC958D03-0E7C-7782-FFD6-2A023040BF00, name=ATemp, path=/ATemp, type=GET, params=[] bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:09:04.603Z - info: CODELESS:CREATE-METHOD METHOD name=ATemp, description=undefined, complexTypes=[], params=[], route=GET /ATemp bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:09:04.603Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:09:04.617Z - error: db38da6c514d3fe1a5342f4fd14f1f7a message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=9000, id=db38da6c514d3fe1a5342f4fd14f1f7a bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:24:26.526Z - info: UTILS:BACKUP backup /opt/backendless/repo/af83527a-711e-c7b5-ffa4-8e1da0144900/files/servercode/CODELESS/AmnimoBackendless/DRAFT bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:24:26.534Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:24:28.052Z - info: UTILS:BACKUP destroy backup /opt/backendless/repo/af83527a-711e-c7b5-ffa4-8e1da0144900/files/servercode/CODELESS/AmnimoBackendless/DRAFT bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:24:28.053Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:24:42.788Z - info: CODELESS:CREATE-METHOD REQUEST appId=AF83527A-711E-C7B5-FFA4-8E1DA0144900, serviceId=F9803F74-9668-3139-FF01-98F2B48BFA00, name=getDummyData, path=/getDummyData, type=GET, params=[] bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:24:42.788Z - info: CODELESS:CREATE-METHOD METHOD name=getDummyData, description=undefined, complexTypes=[], params=[], route=GET /getDummyData bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:24:42.790Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:24:42.803Z - error: 1673b1969a39d0895709f58fe672eaae message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=9000, id=1673b1969a39d0895709f58fe672eaae bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:25:37.974Z - info: CODELESS:CREATE-METHOD REQUEST appId=AF83527A-711E-C7B5-FFA4-8E1DA0144900, serviceId=F9803F74-9668-3139-FF01-98F2B48BFA00, name=getDummyData, path=/getDummyData, type=GET, params=[] bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:25:37.975Z - info: CODELESS:CREATE-METHOD METHOD name=getDummyData, description=undefined, complexTypes=[], params=[], route=GET /getDummyData bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:25:37.975Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:25:37.988Z - error: cd2d2cec75ae0d8b1fb120cec6983288 message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=9000, id=cd2d2cec75ae0d8b1fb120cec6983288 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:25:50.371Z - info: CODELESS:CREATE-METHOD REQUEST appId=AF83527A-711E-C7B5-FFA4-8E1DA0144900, serviceId=F9803F74-9668-3139-FF01-98F2B48BFA00, name=getDummyData, path=/getDummyData, type=GET, params=[] bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:25:50.371Z - info: CODELESS:CREATE-METHOD METHOD name=getDummyData, description=undefined, complexTypes=[], params=[], route=GET /getDummyData bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:25:50.372Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:25:50.396Z - error: ad37c86927e4af19c63623b75c48b276 message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=9000, id=ad37c86927e4af19c63623b75c48b276 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:29:29.444Z - info: UTILS:BACKUP backup /opt/backendless/repo/3f5ef772-f4dd-f5a1-ff7c-795dc2eb1400/files/servercode/CODELESS/SmartTrap/DRAFT bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:29:29.451Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:29:30.391Z - info: UTILS:BACKUP destroy backup /opt/backendless/repo/3f5ef772-f4dd-f5a1-ff7c-795dc2eb1400/files/servercode/CODELESS/SmartTrap/DRAFT bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:29:30.392Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:29:48.907Z - info: CODELESS:CREATE-METHOD REQUEST appId=3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400, serviceId=2EAF1A12-3844-C0E1-FFDE-85F990D7E400, name=getDummyData, path=/getDummyData, type=GET, params=[] bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:29:48.907Z - info: CODELESS:CREATE-METHOD METHOD name=getDummyData, description=undefined, complexTypes=[], params=[], route=GET /getDummyData bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:29:48.908Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:29:48.928Z - error: 56a1fa2e384410aa208aa40644ac5b0f message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14), errno=ECONNREFUSED, code=ECONNREFUSED, syscall=connect, address=127.0.0.1, port=9000, id=56a1fa2e384410aa208aa40644ac5b0f bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:30:49.552Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:30:49.587Z - info: UTILS:BACKUP backup /opt/backendless/repo/3f5ef772-f4dd-f5a1-ff7c-795dc2eb1400/files/servercode/CODELESS/SmartTrap/DRAFT/services/SmartTrap bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:30:49.593Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:30:49.594Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:30:49.594Z - info: Create a new API Client, api server url: http://bl-server:9000 bl-swarm_bl-web-console.1.afsbus56muvl@BackendLessServer | 2018-12-03T07:30:49.793Z - info: UTILS:BACKUP destroy backup /opt/backendless/repo/3f5ef772-f4dd-f5a1-ff7c-795dc2eb1400/files/servercode/CODELESS/SmartTrap/DRAFT/services/SmartTrap

Docker logs (part 2)

:~$ sudo docker service logs bl-swarm_bl-coderunner-js bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:21.550 CodeRunner(tm) Backendless JavaScript CodeRunner v5.0.0 bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:21.635 Check is Consul is ready for work... bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:25.992 Can not read values by "config" key { Error: Status Code 404 (Not Found) bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | at new ResponseError (/usr/local/lib/node_modules/backendless-coderunner/node_modules/backendless-request/lib/index.js:38:116) bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | at checkStatus (/usr/local/lib/node_modules/backendless-coderunner/node_modules/backendless-request/lib/index.js:229:23) bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | at <anonymous> bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | at process._tickCallback (internal/process/next_tick.js:189:7) bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | status: 404, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | headers: bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | { vary: 'Accept-Encoding', bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 'x-consul-index': '49172', bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 'x-consul-knownleader': 'true', bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 'x-consul-lastcontact': '0', bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | date: 'Mon, 03 Dec 2018 06:40:25 GMT', bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 'content-length': '0', bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | connection: 'close' }, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | message: 'Status Code 404 (Not Found)', bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | code: undefined } bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:25.993 Start loading Config from Consul... bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:26.035 Config has been successful loaded from Consul bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:26.041 Run Options is: { bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "managementHttpPort": "2992", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "workers": { bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "cache": { bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "limit": 20 bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | }, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "concurrent": 4, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "heartbeat": { bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "interval": 5, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "timeout": 10 bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | } bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | }, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "backendless": { bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "msgBroker": { bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "host": "bl-redis", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "port": 6379, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "max_attempts": 5 bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | }, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "apiHost": "bl-server", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "apiPort": 9000, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "apiProtocol": "http", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "repoPath": "/opt/backendless/repo", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "apiServer": "http://bl-server:9000" bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | }, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "app": { bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "id": "", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "apiKey": "", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "exclude": [ bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "+(git|.idea|lib|test|docs|bin|deploy)/**", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "+(LICENSE|*.md|*.json|.*)", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "node_modules/**", bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "examples/services/wsdl-proxy/**" bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | ] bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | }, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "sandbox": true, bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | "verbose": false bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | } bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:26.546 Starting Backendless Cloud Code Runner for JS bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:26.546 Backendless Repository Path is set to [/opt/backendless/repo] bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:26.632 Management Server is listening on http://0.0.0.0:2992 bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 06:40:26.633 Ready and waiting for Server Code tasks.. bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:26.750 [822] Worker started in 128.346ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:26.767 [822] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] [ANALYSE CODE] codePath: /opt/backendless/repo/af83527a-711e-c7b5-ffa4-8e1da0144900/files/servercode/CODELESS/AmnimoBackendless/DRAFT bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:26.769 [822] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] Building Model.. bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:26.895 [822] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] ServerCode Model built in 126ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:26.895 [822] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] Services (1): bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:26.896 [822] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] AmnimoBackendless (services/AmnimoBackendless/index.js) bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:26.899 [822] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] Processing finished in 145.879ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.345 [822] Worker killed. bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.473 [832] Worker started in 208.523ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.488 [832] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] [ANALYSE CODE] codePath: /opt/backendless/repo/af83527a-711e-c7b5-ffa4-8e1da0144900/files/servercode/CODELESS/AmnimoBackendless/DRAFT bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.490 [832] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] Building Model.. bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.618 [832] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] ServerCode Model built in 128ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.618 [832] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] Services (1): bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.618 [832] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] AmnimoBackendless (services/AmnimoBackendless/index.js) bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.623 [832] [AF83527A-711E-C7B5-FFA4-8E1DA0144900] Processing finished in 148.024ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:24:27.799 [832] Worker killed. bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:29.626 [934] Worker started in 125.146ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:29.638 [934] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] [ANALYSE CODE] codePath: /opt/backendless/repo/3f5ef772-f4dd-f5a1-ff7c-795dc2eb1400/files/servercode/CODELESS/SmartTrap/DRAFT bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:29.640 [934] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] Building Model.. bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:29.744 [934] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] ServerCode Model built in 104ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:29.744 [934] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] Services (1): bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:29.744 [934] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] SmartTrap (services/SmartTrap/index.js) bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:29.747 [934] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] Processing finished in 119.218ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:29.941 [934] Worker killed. bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:30.054 [944] Worker started in 225.858ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:30.072 [944] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] [ANALYSE CODE] codePath: /opt/backendless/repo/3f5ef772-f4dd-f5a1-ff7c-795dc2eb1400/files/servercode/CODELESS/SmartTrap/DRAFT bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:30.075 [944] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] Building Model.. bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:30.227 [944] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] ServerCode Model built in 152ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:30.227 [944] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] Services (1): bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:30.228 [944] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] SmartTrap (services/SmartTrap/index.js) bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:30.231 [944] [3F5EF772-F4DD-F5A1-FF7C-795DC2EB1400] Processing finished in 173.443ms bl-swarm_bl-coderunner-js.1.w6by9sam2c8d@BackendLessServer | 07:29:30.316 [944] Worker killed.

as you see:

2018-12-03T07:04:26.418Z - error: fba1b0a69b3f85746873750e1cfa992c message=connect ECONNREFUSED 127.0.0.1:9000, stack=Error: connect ECONNREFUSED 127.0.0.1:9000 

so is it your local server or it it is some remote service or maybe a virtual machine?

Ya its a virtual machine.

so I suppose you are using some IP to access to the server. if true you have to go to
http://your-ip:8500/ui/#/dc1/kv/config/server/publicHost/edit you will see http://take.ms/Dp5vwC updated this key and put there your IP or public domain. than goto backendless installation folder and run ./backendless_stop.sh make sure that all services are stoped call ./backendless_status.sh if all services are stoped you will see next message:

Sergeys-MBP:backendless ksv$ ./backendless_status.sh
Usage: "backendless_status.sh [<full>]"
Nothing found in stack: bl-swarm

after that start all services again by running backendless_start.sh

Could you help me to get to this page http://take.ms/Dp5vwC ?
when i try to go to http://my-ip:8500/ui/#/dc1/kv/config/server/publicHost/edit it says This site can’t be reached.

Sorry the port was not open so i was not able to navigate to it.
I updated it added public domain and followed the steps.
But still its giving same error

as there is no option as publicHost, I added the key in host.
33%20PM

just use the link I have provided in the previous message:
http://your-ip:8500/ui/#/dc1/kv/config/server/publicHost/edit
key should be config/server/publicHost

Ya sorry I was trying it in http://my-ip:8500/ui/#/dc1/kv/host/edit.
but now i added the key in http://my-ip:8500/ui/#/dc1/kv/config/server/publicHost/edit and restarted backendless.

now when i click on save method it loads for some time and then says network error.
02%20PM

@sergey.kuk As its on VM do i need to open any ports?

@staff Can anyone help me on this?

have you restarted you browser before?

run docker service logs bl-swarm_bl-web-console

you have to open 9000 port

1 Like

ok. I will open port 9000, any other ports to be opened?

5000 for real time service
6380 to debug business logic

1 Like

Thank you @sergey.kuk its working now.