Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lightning node information for my Gateway NOT found at http://<gateway_ip>/config #51

Closed
jo2h2 opened this issue Feb 12, 2021 · 6 comments

Comments

@jo2h2
Copy link

jo2h2 commented Feb 12, 2021

Hello everyone,

maybe someone can give me a good hint as I am lost - I followed https://github.com/chainpoint/chainpoint-gateway to setup a chainpoint gateway and I was successful up to the point where I need to run "make deploy" (see parallel issue #50).

But my real problem is that running http://<gateway_ip>/config against my installation is returning a "Not Found" - it seems
that the "Gateway Public API" is not available at all in my installation or not accessible ?! I am trying it with https://<my_gateway_server>8080/config - without success. And other parameters are not working as well ...

Any idea what I am doing wrong ? Do I need to install another package ? Or do I need to configure something ?

I can share IP / server name in a private message if needed :-).

Thanks a lot !

Best wishes,
Jo ...

@jacohend
Copy link
Contributor

Please check docker service logs -f chainpoint-gateway_chainpoint-gateway --raw to ensure that the gateway initialized properly. If it did, it will be accessible on port 80 instead of 8080.

Please note that you should only run a gateway if you need to submit hashes to bitcoin and retrieve the corresponding chainpoint proof of inclusion.

@jo2h2
Copy link
Author

jo2h2 commented Feb 12, 2021

@jacohend - thanks for your quick reply Jacob !

I checked as requested:

chainpointuser@chainpoint-gateway:~/chainpoint-gateway$ docker service logs -f chainpoint-gateway_chainpoint-gateway --raw
yarn run v1.16.0
$ node server.js
2021-02-12T07:30:37.202Z [info] App : Startup : Version 1.0.1
2021-02-12T07:30:37.204Z [info] App : Startup : Network : mainnet
2021-02-12T07:30:38.301Z [warn] Unable to connect to Cores with a different network setting. This Node is set to 'mainnet'
2021-02-12T07:30:38.302Z [error] App : Startup : Unable to connect to 2 Core(s) as required
Done in 1.91s.

So - it seems that gateway is not properly started ?!

How can I cleanly restart the gateway or what can I do to force that it tries to reconnect ? Or what can I check why the gateway is not starting ?

FYI I have defined a Security Group with following settings - is there any other port or protocol that I need to open ?

  • Inbound rules:
    -- TCP Any 0.0.0.0/0 Ports 22, 80, 443, 8080, 9735, 10009, 26656-26657
    -- ICMP Any 0.0.0.0/0 Type: 8, Code: Any
  • Outbound rules:
    -- ALL | Any | 0.0.0.0/0

And yes - I am setting up the gateway to submit hashes :-).

Thanks and best wishes,
Jo ...

@jacohend
Copy link
Contributor

It looks like maybe you're connecting to testnet cores on mainnet. Be sure that the .env file has an entry that looks like this:
CHAINPOINT_CORE_CONNECT_IP_LIST=18.224.43.241,3.22.27.129
Then run
make stop && sleep 20 && make deploy

@jo2h2
Copy link
Author

jo2h2 commented Feb 13, 2021

This was a good hint !

Changing .env and make ... as suggested produces (but I am not sure why wrong IP list was used as I definitely used mainnet in my selection !?):

}
OperationalError: 2 UNKNOWN: not enough witness outputs to create funding transaction, need 0.0012 BTC only have 0 BTC  available
    at Object.exports.createStatusError (/home/node/app/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:1209:28)
    at InterceptingListener._callNext (/home/node/app/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/home/node/app/node_modules/grpc/src/client_interceptors.js:847:24) {
  cause: Error: 2 UNKNOWN: not enough witness outputs to create funding transaction, need 0.0012 BTC only have 0 BTC  available
      at Object.exports.createStatusError (/home/node/app/node_modules/grpc/src/common.js:91:15)
      at Object.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:1209:28)
      at InterceptingListener._callNext (/home/node/app/node_modules/grpc/src/client_interceptors.js:568:42)
      at InterceptingListener.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:618:8)
      at callback (/home/node/app/node_modules/grpc/src/client_interceptors.js:847:24) {
    code: 2,
    metadata: Metadata { _internal_repr: {}, flags: 0 },
    details: 'not enough witness outputs to create funding ' +
      'transaction, need 0.0012 BTC only have 0 BTC  ' +
      'available'
  },
  isOperational: true,
  code: 2,
  metadata: Metadata { _internal_repr: {}, flags: 0 },
  details: 'not enough witness outputs to create funding ' +
    'transaction, need 0.0012 BTC only have 0 BTC  ' +
    'available'
}
Unable to create a channel with 02b22bde1bec750e01a14f274176af171b218580fb4c4edd859f1276bc5a2ece3f@18.224.43.241:9735 : 2 UNKNOWN: not enough witness outputs to create funding transaction, need 0.0012 BTC only have 0 BTC  available
open peer or channel failed: Unable to create a channel with 02b22bde1bec750e01a14f274176af171b218580fb4c4edd859f1276bc5a2ece3f@18.224.43.241:9735 : 2 UNKNOWN: not enough witness outputs to create funding transaction, need 0.0012 BTC only have 0 BTC  available

*****************************************
Your lightning node is fully synced.
*****************************************
Channel to 03cf279716f127a51d3ef345fb0329493696fd3df2ae402d6c58208adb62ec1962 is pending and may require up to 6 confirmations (~60 minutes) to fully open
OperationalError: 2 UNKNOWN: not enough witness outputs to create funding transaction, need 0.0012 BTC only have 0 BTC  available
    at Object.exports.createStatusError (/home/node/app/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:1209:28)
    at InterceptingListener._callNext (/home/node/app/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/home/node/app/node_modules/grpc/src/client_interceptors.js:847:24) {
  cause: Error: 2 UNKNOWN: not enough witness outputs to create funding transaction, need 0.0012 BTC only have 0 BTC  available
      at Object.exports.createStatusError (/home/node/app/node_modules/grpc/src/common.js:91:15)
      at Object.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:1209:28)
      at InterceptingListener._callNext (/home/node/app/node_modules/grpc/src/client_interceptors.js:568:42)
      at InterceptingListener.onReceiveStatus (/home/node/app/node_modules/grpc/src/client_interceptors.js:618:8)
      at callback (/home/node/app/node_modules/grpc/src/client_interceptors.js:847:24) {
    code: 2,
    metadata: Metadata { _internal_repr: {}, flags: 0 },
    details: 'not enough witness outputs to create funding ' +
      'transaction, need 0.0012 BTC only have 0 BTC  ' +
      'available'
  },
  isOperational: true,
  code: 2,
  metadata: Metadata { _internal_repr: {}, flags: 0 },
  details: 'not enough witness outputs to create funding ' +
    'transaction, need 0.0012 BTC only have 0 BTC  ' +
    'available'
}

So I assume I need to wait for these 60 minutes ?

Or might it be that the transfer I did last night went against testnet wallet ? Or is my wallet independent from mainnet or testnet ?

And - http://<gateway_ip>/config is still not working ? Simply waiting for full sync ? But log states "Your lightning node is fully synced" ... ?!

Thanks and best wishes,
Jo ...

@jacohend
Copy link
Contributor

You'd need to wait for confirmation.

Do you have the transaction id of the transfer? You can check its status on any online block explorer.

@jo2h2
Copy link
Author

jo2h2 commented Feb 26, 2021

Thanks a lot Jacob - after waiting and filling up missing BTC it now works perfectly !

Thank you so much for your good hints !

@jo2h2 jo2h2 closed this as completed Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants