Cadence Development setup - uber-cadence

I was trying to setup the cadence server in local though https://github.com/uber/cadence/blob/master/CONTRIBUTING.md
Tried to setup cadence-web via docker. Below are the commands executed to start the docker
docker pull ubercadence/web:latest
docker run -p 8088:8088 <image-id>
But I am getting an error while trying to fetch domain
{ TchannelSocketError: tchannel socket error (ECONNREFUSED from connect): connect ECONNREFUSED 127.0.0.1:7933
at createError (/usr/app/node_modules/error/typed.js:40:22)
at Object.createError [as SocketError] (/usr/app/node_modules/error/wrapped.js:99:19)
at TChannelConnection.onSocketError (/usr/app/node_modules/tchannel/connection.js:918:30)
at Socket.onSocketError (/usr/app/node_modules/tchannel/connection.js:479:14)
at Socket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
type: 'tchannel.socket',
name: 'TchannelSocketError',
message:
'tchannel socket error (ECONNREFUSED from connect): connect ECONNREFUSED 127.0.0.1:7933',
hostPort: null,
direction: 'out',
remoteAddr: null,
socketRemoteAddr: '127.0.0.1:7933',
causeMessage: 'connect ECONNREFUSED 127.0.0.1:7933',
origMessage: 'connect ECONNREFUSED 127.0.0.1:7933',
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
fullType: 'tchannel.socket~!~error.wrapped-io.connect.ECONNREFUSED' }
fetchDomainListNextPage retry: 0 error: tchannel socket error (ECONNREFUSED from connect): connect ECONNREFUSED 127.0.0.1:7933
fetchDomainListNextPage retry: 1 error: tchannel socket error (ECONNREFUSED from connect): connect ECONNREFUSED 127.0.0.1:7933
fetchDomainListNextPage retry: 2 error: tchannel socket error (ECONNREFUSED from connect): connect ECONNREFUSED 127.0.0.1:7933
Please let me know if anyone knows how to resolve this, Thanks.

Related

Raspberry pi cant listen to port 80 (express.js)

so I am using raspberry pi as web server and if I want to start express app there's an error:
events.js:291
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied 0.0.0.0:80
at Server.setupListenHandle [as _listen2] (net.js:1293:21)
at listenInCluster (net.js:1358:12)
at Server.listen (net.js:1444:7)
at Function.listen (/home/malinapi/Documents/node_modules/express/lib/application.js:635:24)
at Object.<anonymous> (/home/malinapi/Documents/app.js:9:5)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
Emitted 'error' event on Server instance at:
at emitErrorNT (net.js:1337:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '0.0.0.0',
port: 80
}
Raspberry pi: 4, model b
Any server listening on ports 1024 and below must initially be opened as root and not as an ordinary user. I'm guessing it is running as the user malinapi.
It is either that or you already have something running on port 80

Difference between java script and node ..?

Error: querySrv ETIMEOUT _mongodb._tcp.cluster0.00g3e.mongodb.net
at QueryReqWrap.onresolve [as oncomplete] (dns.js:210:19) {
errno: undefined,
code: 'ETIMEOUT',
syscall: 'querySrv',
hostname: '_mongodb._tcp.cluster0.00g3e.mongodb.net'
}

Error: connect ECONNREFUSED 127.0.0.1:6379

I have coding like this
const redis = require("redis");
const client = redis.createClient();
client.on("connect", function() {
console.log("You are now connected");
});
client.set("student", "Laylaa", function(err, reply) {
console.log(reply);
});
but there is an error like this..
events.js:291
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:16)
Emitted 'error' event on RedisClient instance at:
at RedisClient.on_error (E:\TEKNIK INFORMATIKA\Latihan redis\node_modules\redis\index.js:341:14)
at Socket. (E:\TEKNIK INFORMATIKA\Latihan redis\node_modules\redis\index.js:222:14)
at Socket.emit (events.js:314:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 6379
}
is there a solution? Thanks
You need to first start the redis server by executing:
redis-server
in a terminal, after redis has been installed and before launching the Node.js client.
You could also add a script to your package.json:
"scripts": {
"redis": "redis-server"
}
and run:
npm run redis
On Linux Ubuntu you’ll need to run
sudo apt-get install redis-server
and Redis will automatically be up and running.Once it’s started, Redis listens on port 6379
.

Error: getaddrinfo EAI_AGAIN undefined (ldapjs)

So, i tried to deploy my Express.Js app to my vps, but I get some error that refined to Error: getaddrinfo EAI_AGAIN undefined. The weird part is, it is doing just fine if I run this app on my localhost. Any body knows how to resolve this issue?
Here are the error log that I get.
events.js:187
throw er; // Unhandled 'error' event
^
Error: getaddrinfo EAI_AGAIN undefined
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26)
Emitted 'error' event on Client instance at:
at Backoff.<anonymous> (/home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1228:12)
at Backoff.emit (events.js:210:5)
at Backoff.backoff (/home/user/deploy-folder/app-api/node_modules/ldapjs/node_modules/backoff/lib/backoff.js:41:14)
at /home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1214:15
at f (/home/user/deploy-folder/app-api/node_modules/ldapjs/node_modules/once/once.js:25:25)
at Socket.onResult (/home/user/deploy-folder/app-api/node_modules/ldapjs/lib/client/client.js:1016:7)
at Object.onceWrapper (events.js:300:26)
at Socket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) {
errno: 'EAI_AGAIN',
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'undefined'
I assume that by now you discovered the error, but in this particular case it seems that the variable you are using to setup ldap is not stated or resolves to undefined.
The proper way to do it according to the documentation is this:
var ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://127.0.0.1:1389'
});

Failed to install redis-commander in debian strech

I tried to install redis-commander but when i run redis-commander i am getting the following errors
redis-commander
{ Error: ENOENT : no such file or directory, open '/root/.redis-commander'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/root/.redis-commander' }
No config found or was invalid.
Using default configuration.
No Save: true
listening on 0.0.0.0 : 8081
events.js:137
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 0.0.0.0:8081
at Object._errnoException (util.js:1003:13)
at _exceptionWithHostPort (util.js:1024:20)
at Server.setupListenHandle [as _listen2] (net.js:1366:14)
at listenInCluster (net.js:1407:12)
at doListen (net.js:1522:7)
at process._tickCallback (internal/process/next_tick.js:152:19)
root#debian:/home/midhun#
Means address (port) already in use by some other process