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

peers dont connect to new build..... #865

Closed
Romeo01234 opened this issue Feb 1, 2019 · 33 comments
Closed

peers dont connect to new build..... #865

Romeo01234 opened this issue Feb 1, 2019 · 33 comments

Comments

@Romeo01234
Copy link

Compiled on Ubuntu 16.04, ran verge-qt. GUI loads fine, peers do not connect and noticed database blockchain restarts at 4 years.

Reran with TOR disabled but still unable to connect to peers.

How to fix issue?

@marpme
Copy link
Member

marpme commented Feb 1, 2019

Please add a debug log for your problems.

  • You have to resync the blockchain since file formats have changed
  • You are currently working on alpha (don't expect everything to work properly)
  • A proper onion seed: xxdis3udbioqp3tw.onion:21102

@jrsikors
Copy link
Contributor

jrsikors commented Feb 1, 2019

you can run verge-qt or verged with -debug flag

@justinvforvendetta
Copy link
Member

please delete your peers.dat while the wallet is shut down.

@jrsikors
Copy link
Contributor

jrsikors commented Feb 1, 2019

also -- when you first open -- do you get ANY blocks and then it stops? Or are you getting 0 blocks.

I came across a situation where I get 1 peer for about 30 seconds, get some blocks, then it disconnects. I'm wondering if you are having same problem or if you are straight up 0 peers.

@Romeo01234
Copy link
Author

Romeo01234 commented Feb 2, 2019

also -- when you first open -- do you get ANY blocks and then it stops? Or are you getting 0 blocks.

I came across a situation where I get 1 peer for about 30 seconds, get some blocks, then it disconnects. I'm wondering if you are having same problem or if you are straight up 0 peers.

Initially 0 blocks, I noticed the 1 peer then a permanent disconnect.
I will try justinvforvendetta above and see if that rectifies the problem. I also compiled without bench, since compilation stopped.

I will let you and justinvforvendetta if I have further issues.

Thanks.

@Romeo01234
Copy link
Author

please delete your peers.dat while the wallet is shut down.

Justin, I will give it a try.

@justinvforvendetta
Copy link
Member

@Romeo01234 did that work?

@Romeo01234
Copy link
Author

@Romeo01234 did that work?

I will try in an 1hr, but will let you know if problem is rectified or persists.

Thanks for responding.

@Romeo01234 Romeo01234 reopened this Feb 2, 2019
@Romeo01234
Copy link
Author

@Romeo01234 did that work?

Just tried it, removing the peers.dat, peers.dat.1139, peers.dat.1c51, peers.dat.afb6.

command issued.
./verge-qt --without-tor

peers connected got 1, syncing headers 0.2%. lost peer, and nothing else happens.

@Romeo01234
Copy link
Author

is there a node list of peers to connect to?

@justinvforvendetta
Copy link
Member

try waiting a few minutes with it open. also if you switch between tor and without tor, you need to delete the peers dat, because it will have tor peers in it still, and vice versa

@Romeo01234
Copy link
Author

try waiting a few minutes with it open. also if you switch between tor and without tor, you need to delete the peers dat, because it will have tor peers in it still, and vice versa

i did that again, deleted everything except wallet.dat.
I am at 0.4%, 0 peers.

I'll try with tor, then without.

Ill see how it goes. Ill leave it on for a few hours, and let you know if the results are favorable or much of the same.

Does the compilation with bench removed effect proper functionality?

Thanks.

@Romeo01234
Copy link
Author

Romeo01234 commented Feb 2, 2019

I noticed when trying to use TOR it states the following:
TOR thread started.
No OBFS4 found, not using it.

I guess this explains why I am unable to connect through TOR proxy.

When not using TOR.
I keep losing peers, sometime I get 3 peer connects. Headers Synced up to 42000 in 42min.

@marpme
Copy link
Member

marpme commented Feb 2, 2019

@Romeo01234 No that doesn't explain anything, can you please post your full debug log.

Additionally could you tell me what openssl version you are on?

@Romeo01234
Copy link
Author

@Romeo01234 No that doesn't explain anything, can you please post your full debug log.

Additionally could you tell me what openssl version you are on?

please provide me a full debug command line entry; i am not a programmer; I have left core wallet running overnight and didnt move from "124000"(syncing Headers).

I am running openssl 1.1.1a, zlib 1.2.8, libevent 2.0.21-stable.

Thanks.

@jrsikors
Copy link
Contributor

jrsikors commented Feb 2, 2019

./verge-qt -without-tor -debug

note that it should be -without-tor , 1 dash not 2.

@Romeo01234
Copy link
Author

Romeo01234 commented Feb 2, 2019

./verge-qt -without-tor -debug

note that it should be -without-tor , 1 dash not 2.

File for download, below.

verge-debug[ubuntu_16.04].log

@jrsikors
Copy link
Contributor

jrsikors commented Feb 2, 2019

and can you please give us a quick run-down of what happened this time. Did you open it -- get 1 peer for a few minutes -- then disconnect to 0 peers and it stopped?

did you open it, get 0 peers for 5 minutes, etc.

@Romeo01234
Copy link
Author

Romeo01234 commented Feb 2, 2019

and can you please give us a quick run-down of what happened this time. Did you open it -- get 1 peer for a few minutes -- then disconnect to 0 peers and it stopped?

did you open it, get 0 peers for 5 minutes, etc.

I open and close verge-qt, i see a connection to peers(for a few secs, up to 3) then the peers drop off. I keep doing that and eventually get some headers downloaded. I have had verge-qt open for few hours and no peers reconnect, once peers drop off, it seems to be permanent.

I deleted the debug.log and tried the same technique. on the 7th try I got some headers again.
Debug file below is much smaller, last entry should display headers downloaded.

verge-debug[ubuntu_16.04].log

Ubuntu-16.04 Kernel is 4.15.0-43-generic

Hope this helps you.

@Romeo01234
Copy link
Author

Romeo01234 commented Feb 4, 2019

Compiled on Debian 9, kernel 4.9.0-8. (A fresh debian 9 install, with openssl 1.1.1a).

Exact same issues as with Ubuntu 16.04.

Just for your info.

@marpme
Copy link
Member

marpme commented Feb 4, 2019

@Romeo01234 btw openssl has a incompatibility with tor, thus tor shutdown automagically because of a openssl bug :(

@Romeo01234
Copy link
Author

Romeo01234 commented Feb 5, 2019

@Romeo01234 btw openssl has a incompatibility with tor, thus tor shutdown automagically because of a openssl bug :(

Is there a work around or future fix?
will --disable-openssl a configure option?

Thanks.

@justinvforvendetta
Copy link
Member

justinvforvendetta commented Feb 5, 2019

you can try downgrading to openssl 1.1.0g, which is the current version in ubuntu 18.04

@marpme
Copy link
Member

marpme commented Feb 5, 2019

Afaik 1.1.0g should be stable enough, but 1.1.1 isn’t. So you would have to manually downgrade OpenSSL for that repo

@swat69
Copy link
Collaborator

swat69 commented Feb 5, 2019

using Debian 9.6/OpenSSL 1.1.0j, this is the result after running 24h,
blocks/headers are increasing very slow:
"version": 5000000,
"protocolversion": 90007,
"blocks": 23919,
"headers": 1248000,
"timeoffset": -511,
"connections": 8,
"proxy": "127.0.0.1:9089",

@swat69
Copy link
Collaborator

swat69 commented Feb 5, 2019

A few new blocks after a restart:
debug.log

@justinvforvendetta
Copy link
Member

that's a very high timeoffset

@Romeo01234
Copy link
Author

you can try downgrading to openssl 1.1.0g, which is the current version in ubuntu 18.04

Hey Justin, I wish my programming skills were better. I will compile with the older openssl series 1.1.0, but just so you know openssl 1.1.1 series is the new stable version. Openssl 1.1.0 series is only receiving security fix updates and support for that version will end "September 2019".

                                    https://www.openssl.org/source/

I encourage you and other developers to read the "Note:"
I am a huge supporter of your project, it would be more conducive if your source code has openssl security patches upgraded.

Thanks.

@marpme
Copy link
Member

marpme commented Feb 5, 2019

Well I also had a -409 timeoffset, seems to be normal due to tor.

@Romeo01234
Copy link
Author

using Debian 9.6/OpenSSL 1.1.0j, this is the result after running 24h,
blocks/headers are increasing very slow:
"version": 5000000,
"protocolversion": 90007,
"blocks": 23919,
"headers": 1248000,
"timeoffset": -511,
"connections": 8,
"proxy": "127.0.0.1:9089",

check if you have ntp installed.
if you are using a linux variant, try:
sudo apt-get install ntp

maybe this will help.

@Romeo01234
Copy link
Author

Romeo01234 commented Feb 5, 2019

you can try downgrading to openssl 1.1.0g, which is the current version in ubuntu 18.04

Good news and strange behavior under Ubuntu 16.04.

Compiled with Openssl 1.1.0j, downloaded Blockchain Jan 24, 2019.

Ran ./verge-qt -without-tor, ran into same problem as previously indicated. 1 peer connects then disconnects.

Ran ./verge-qt, blockchains are downloading. looks good.

Still much work needs to get done to fix issues, but looking good.

I forgot to add i also compiled using boost-1.69

Congrates.

@Romeo01234
Copy link
Author

A few new blocks after a restart:
debug.log

swat69, to make things easier for yourself download the Codebase-5.0 blockchain use link below:
https://vergecurrency.com/developers/wallet-setup-instructions/
scroll up to where is says "Nightly snapshot".

I got to fully sync on Debian kernel-4.9.0-8-amd64 using openssl-1.1.0j.

applying "./verge-qt -without-tor" provides me the same peer connect issue as with Ubuntu 16.04 previously mentioned.

@marpme
Copy link
Member

marpme commented Feb 17, 2019

Should be fixed, closing issue. If you still have the problem please open it up again.

@marpme marpme closed this as completed Feb 17, 2019
justinvforvendetta pushed a commit that referenced this issue Feb 23, 2019
* Remove segwits segments from block template 🥳

* Disabling Segwit components (no pre-segwit)

* Remove segwit switch from code 🧐

* Reenable version bit calculations

* Enabling Chainparams genesis block and merkle root checks

* Improve header parsing and correction for block parsing with older nodes #865 (#870)

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* Fix testnet chain parameters

* Refactor POW a bit for more readability

* Include Blocksignatures as part of our generated blocks
(also being transferred)

* Fix pub-/privkey prefixes for testnet
justinvforvendetta added a commit that referenced this issue Feb 24, 2019
* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* fix shmypo

* Update zeromq to 4.3.1 (#874) (#875)

This is related to the BTC issue
bitcoin/bitcoin#15188
and CVE https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6250

* [WIP] Bugfix block submission (#877)

* Remove segwits segments from block template 🥳

* Disabling Segwit components (no pre-segwit)

* Remove segwit switch from code 🧐

* Reenable version bit calculations

* Enabling Chainparams genesis block and merkle root checks

* Improve header parsing and correction for block parsing with older nodes #865 (#870)

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* Fix testnet chain parameters

* Refactor POW a bit for more readability

* Include Blocksignatures as part of our generated blocks
(also being transferred)

* Fix pub-/privkey prefixes for testnet
justinvforvendetta added a commit that referenced this issue Feb 24, 2019
* Remove segwits segments from block template 🥳

* Disabling Segwit components (no pre-segwit)

* Remove segwit switch from code 🧐

* Reenable version bit calculations

* Enabling Chainparams genesis block and merkle root checks

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* fix shmypo

* Update zeromq to 4.3.1 (#874) (#875)

This is related to the BTC issue
bitcoin/bitcoin#15188
and CVE https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6250

* Improve header parsing and correction for block parsing with older nodes #865 (#870)

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* Fix testnet chain parameters

* Refactor POW a bit for more readability

* Include Blocksignatures as part of our generated blocks
(also being transferred)

* Fix pub-/privkey prefixes for testnet

* [WIP] Bugfix block submission (#877)

* Remove segwits segments from block template 🥳

* Disabling Segwit components (no pre-segwit)

* Remove segwit switch from code 🧐

* Reenable version bit calculations

* Enabling Chainparams genesis block and merkle root checks

* Improve header parsing and correction for block parsing with older nodes #865 (#870)

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* Fix testnet chain parameters

* Refactor POW a bit for more readability

* Include Blocksignatures as part of our generated blocks
(also being transferred)

* Fix pub-/privkey prefixes for testnet

* Remove previous invalidation schemes and replace them with our ones

* Transfer methods into cpp file rather than inline methods

* Enabling full mining capabilities

* Fix compiling issues

* Revert "Merge branch 'bench_tests' into develop"

This reverts commit 3969482, reversing
changes made to 33ce10b.
justinvforvendetta pushed a commit that referenced this issue Feb 28, 2019
* Remove segwits segments from block template 🥳

* Disabling Segwit components (no pre-segwit)

* Remove segwit switch from code 🧐

* Reenable version bit calculations

* Enabling Chainparams genesis block and merkle root checks

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* fix shmypo

* Update zeromq to 4.3.1 (#874) (#875)

This is related to the BTC issue
bitcoin/bitcoin#15188
and CVE https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6250

* Improve header parsing and correction for block parsing with older nodes #865 (#870)

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* fix init/for bench

* add chain to interfaces

* add optional header

* close def

* add walletinit to makefile

* add chain header to init

* add int chain

* update rpc util

* move rawtx to node/tx

* remove header dup

* add zmq headers

* remove zmqrpc hdr

* remove unused boost deps

* add zmqrpc

* add zmq rpc to makefile

* zmqheader

* add zmqrpc to automake

* update walletiinitinterface header

* updates to node txs

* Update init.cpp

* updates

* Update strencodings.h

* add assumptions to compat

* update banman

* update addrdb

* update addrman

* update getcheaphash

* add chain interface

* update net_processing header

* updates to node interface

* updates to zmq notification interface

* update zmq abstract notifier

* update net header

* move handlers to header

* update cclientUIinterface

* clean up, remove regtest

* update logging

* update logger on http server

* isbindany

* vaddednodes

* remove dupe

* close())

* SetLimited -> SetReachable

* add argument

* add arg

* add arg

* update to net

* fixes

* update w header parsing

* update validation header

ugh

* fixes

* fix torcontrol

* loginstance

* +}-(

hue

* pita

* remove arg

* update rest api

* update blockchain rpc header

* cblockindex updates

* more cblockindex

* Fix testnet chain parameters

* Refactor POW a bit for more readability

* Include Blocksignatures as part of our generated blocks
(also being transferred)

* Fix pub-/privkey prefixes for testnet

* [WIP] Bugfix block submission (#877)

* Remove segwits segments from block template 🥳

* Disabling Segwit components (no pre-segwit)

* Remove segwit switch from code 🧐

* Reenable version bit calculations

* Enabling Chainparams genesis block and merkle root checks

* Improve header parsing and correction for block parsing with older nodes #865 (#870)

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* Fix testnet chain parameters

* Refactor POW a bit for more readability

* Include Blocksignatures as part of our generated blocks
(also being transferred)

* Fix pub-/privkey prefixes for testnet

* Develop (#878)

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* fix shmypo

* Update zeromq to 4.3.1 (#874) (#875)

This is related to the BTC issue
bitcoin/bitcoin#15188
and CVE https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6250

* [WIP] Bugfix block submission (#877)

* Remove segwits segments from block template 🥳

* Disabling Segwit components (no pre-segwit)

* Remove segwit switch from code 🧐

* Reenable version bit calculations

* Enabling Chainparams genesis block and merkle root checks

* Improve header parsing and correction for block parsing with older nodes #865 (#870)

* Update randomized authentication for proxy connections

* Adds copyrights to torcontroller
Resolves #867

* Tor Hidden Services v3 (#872)

* Initi v3 tor hidden services

* Support hidden services (V3) for new nodes

* Remove my laziness

* Remove more logs

* Add i2p support (#873)

* add i2p support

if using i2p wrapped daemon.

it would be nice to eventually add i2pd as an option as well.

* Fix testnet chain parameters

* Refactor POW a bit for more readability

* Include Blocksignatures as part of our generated blocks
(also being transferred)

* Fix pub-/privkey prefixes for testnet

* add isbindany back to netaddress header

* update blockchain rpc

* update blockchain rpc header

* fix blockchain rpc header

* Move versionbits info out of versionbits.o

* Remove previous invalidation schemes and replace them with our ones

* Transfer methods into cpp file rather than inline methods

* Enabling full mining capabilities

* Fix compiling issues

* Revert "Merge branch 'bench_tests' into develop"

This reverts commit 3969482, reversing
changes made to 33ce10b.

* Revert "Merge branch 'bench_tests' into develop"

This reverts commit efc7e3b, reversing
changes made to b508db7.

* Fix linking issues for wallet signing

* Update README.md

* Remove the useless rest of a merge conflict 🙉
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

5 participants