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

"Not in chain...Asking for block from..." loop? #61

Closed
nicocesar opened this issue May 29, 2014 · 7 comments

Comments

@nicocesar
Copy link

commented May 29, 2014

I get the following

$ bin/ethereal.sh
2014/05/28 23:48:38 [CHAIN] Last known block height #0
2014/05/28 23:48:38 Last block: f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6
2014/05/28 23:48:38 Starting Ethereum GUI v0.5.0 RC11
2014/05/28 23:48:38 Ready and accepting connections
2014/05/28 23:48:38 [SERV] Retrieving seed nodes
2014/05/28 23:48:38 [SERV] Found DNS Go Peer: 94.242.229.217:30303
2014/05/28 23:48:38 [SERV] Adding peer (94.242.229.217:30303) 1 / 10
2014/05/28 23:48:39 [SERV] Found DNS Bootstrap Peer: 54.200.139.158:30303
2014/05/28 23:48:39 [SERV] Adding peer (54.200.139.158:30303) 2 / 10
2014/05/28 23:48:39 [GUI] Starting GUI
2014/05/28 23:48:39 Requesting blockchain f5232afe... from peer 94.242.229.217:30303
2014/05/28 23:48:39 [PEER] connected 94.242.229.217:30303 [Peer discovery | Block chain relaying | Transaction relaying]
2014/05/28 23:48:41 Not in chain: f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6
2014/05/28 23:48:41 Asking for block from f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6 (1 total) from 94.242.229.217:30303
2014/05/28 23:48:43 Not in chain: f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6
2014/05/28 23:48:43 Asking for block from f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6 (1 total) from 94.242.229.217:30303

... this is from commit 0b4c42d

Is there a way to select my peers? seem that 94.242.229.217:30303 and 54.200.139.158:30303 don't have f5232afe32aba6b366f8aa86a6939437c5e13d1fd71a0f51e77735d3456eb1a6

What are my options?

@obscuren

This comment has been minimized.

Copy link
Member

commented May 29, 2014

Make sure you delete your chain. It's either you spamming the network or someone else is which you're trying to insert into your chain. I'll get some anti spam soon.

@nicocesar

This comment has been minimized.

Copy link
Author

commented May 29, 2014

I already move ~/.ethereum out of the way. Is there anything else I should delete ?
How can I avoid spamming? this is a fresh compilation with no data...

@nicocesar

This comment has been minimized.

Copy link
Author

commented May 29, 2014

just to add something more to the situation. My test in ethchain marks as failed :(

github.com/ethereum/eth-go/ethchain

ethchain/state_test.go:4: imported and not used: "fmt"
ethchain/vm_test.go:65: assignment count mismatch: 2 = 3

@obscuren

This comment has been minimized.

Copy link
Member

commented May 29, 2014

Could you checkout develop and retry? You should definitely not be seeing that

@obscuren obscuren added this to the poc5 milestone May 30, 2014
@nicocesar

This comment has been minimized.

Copy link
Author

commented May 30, 2014

So, I changed github.com/ethereum/go-ethereum/ethereal to develop branch ( commit f0f2050 )

I notice that master and develop are the same now in github.com/ethereum/eth-go (commit 17c825f )

removed /home/ncesar/.ethereal

and now I get a panic: object does not expose a method "addLog"

2014/05/30 13:03:02 Debug logging directory /home/ncesar/.ethereal doesn't exist, creating it
2014/05/30 13:03:12 UPnP failed write udp4: i/o timeout
2014/05/30 13:03:12 f8abf8a7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347940000000000000000000000000000000000000000a012582945fc5ad12c3e7b67c4fc37a68fc0d52d995bb7f7291ff41a2739a7ca1680834000008080830f4240808080a004994f67dc55b09e814ab7ffc8df3686b4afb2bb53e60eae97ef043fe03fb829c0c0
2014/05/30 13:03:12 Last block: c305511e7cb9b33767e50f5e94ecd7b1c51359a04f45183860ec6808d80b0d3f
2014/05/30 13:03:12 Starting Ethereum GUI v0.5.0 RC11
2014/05/30 13:03:12 Ready and accepting connections
2014/05/30 13:03:12 [SERV] Retrieving seed nodes
2014/05/30 13:03:12 [SERV] Found DNS Go Peer: 94.242.229.217:30303
2014/05/30 13:03:12 [SERV] Adding peer (94.242.229.217:30303) 1 / 10
2014/05/30 13:03:12 [SERV] Found DNS Bootstrap Peer: 54.200.139.158:30303
2014/05/30 13:03:12 [SERV] Adding peer (54.200.139.158:30303) 2 / 10
2014/05/30 13:03:12 [GUI] Starting GUI
panic: object does not expose a method "addLog"

goroutine 1 [running]:
runtime.panic(0x7dae00, 0xc210543bb0)
/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
github.com/go-qml/qml.cmust(0x2744a00)
/home/ncesar/src/go-ethereum/src/github.com/go-qml/qml/qml.go:832 +0x7c
github.com/go-qml/qml.(_Common).Call(0xc21097a1d0, 0x9286a0, 0x6, 0xc21097a1e0, 0x1, ...)
/home/ncesar/src/go-ethereum/src/github.com/go-qml/qml/qml.go:687 +0x1ae
github.com/ethereum/go-ethereum/ethereal/ui.(_Gui).Println(0xc2100b0840, 0xc21097a180, 0x1, 0x1)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:295 +0x1eb
github.com/ethereum/eth-go/ethutil.(_Logger).Infoln(0xc2100ad100, 0xc21097a180, 0x1, 0x1)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethutil/config.go:168 +0x8d
github.com/ethereum/go-ethereum/ethereal/ui.(_Gui).Start(0xc2100b0840, 0x7fff52544371, 0x50)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/go-ethereum/ethereal/ui/gui.go:97 +0x6ff
main.main()
/home/ncesar/src/go-ethereum/src/github.com/ethereum/go-ethereum/ethereal/ethereum.go:141 +0x982

goroutine 3 [syscall]:
os/signal.loop()
/usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31

goroutine 4 [syscall]:
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 6 [syscall]:
github.com/go-qml/qml._Cfunc_applicationExec(0x106f990)
github.com/go-qml/qml/_obj/_cgo_defun.c:58 +0x31
github.com/go-qml/qml.guiLoop()
/home/ncesar/src/go-ethereum/src/github.com/go-qml/qml/bridge.go:43 +0x132
created by github.com/go-qml/qml.Init
/home/ncesar/src/go-ethereum/src/github.com/go-qml/qml/qml.go:44 +0xa0

goroutine 7 [finalizer wait]:
runtime.park(0x49e700, 0x1064758, 0x1045248)
/usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66
runfinq()
/usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84
runtime.goexit()
/usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 8 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc2100856c0)
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:117 +0x1c5
created by github.com/syndtr/goleveldb/leveldb.openDB
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db.go:116 +0x429

goroutine 9 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compaction(0xc2100856c0)
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:447 +0x75f
created by github.com/syndtr/goleveldb/leveldb.openDB
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db.go:119 +0x46a

goroutine 10 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).writeJournal(0xc2100856c0)
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db_write.go:36 +0x142
created by github.com/syndtr/goleveldb/leveldb.openDB
/home/ncesar/src/go-ethereum/src/github.com/syndtr/goleveldb/leveldb/db.go:120 +0x481

goroutine 12 [select]:
github.com/ethereum/eth-go/ethchain.(_TxPool).queueHandler(0xc2100b0120)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethchain/transaction_pool.go:184 +0x2c8
created by github.com/ethereum/eth-go/ethchain.(_TxPool).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethchain/transaction_pool.go:255 +0x2e

goroutine 16 [IO wait]:
net.runtime_pollWait(0x7ff422ce1108, 0x72, 0x0)
/usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(_pollDesc).Wait(0xc210532220, 0x72, 0x7ff422cde148, 0xb)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(_pollDesc).WaitRead(0xc210532220, 0xb, 0x7ff422cde148)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(_netFD).accept(0xc2105321c0, 0xa10538, 0x0, 0x7ff422cde148, 0xb)
/usr/lib/go/src/pkg/net/fd_unix.go:382 +0x2c2
net.(_TCPListener).AcceptTCP(0xc2105008a0, 0x0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/tcpsock_posix.go:233 +0x47
net.(_TCPListener).Accept(0xc2105008a0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/pkg/net/tcpsock_posix.go:243 +0x27
github.com/ethereum/eth-go.(_Ethereum).peerHandler(0xc210080000, 0x7ff422ce6610, 0xc2105008a0)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethereum.go:429 +0x2d
created by github.com/ethereum/eth-go.(*Ethereum).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethereum.go:356 +0x2a5

goroutine 17 [chan receive]:
github.com/ethereum/eth-go.(_Ethereum).ReapDeadPeerHandler(0xc210080000)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethereum.go:338 +0x67
created by github.com/ethereum/eth-go.(_Ethereum).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/ethereum.go:364 +0x18e

goroutine 19 [IO wait]:
net.runtime_pollWait(0x7ff422ce1060, 0x77, 0x0)
/usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(_pollDesc).Wait(0xc21004cb50, 0x77, 0x7ff422cde148, 0x72)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(_pollDesc).WaitWrite(0xc21004cb50, 0x72, 0x7ff422cde148)
/usr/lib/go/src/pkg/net/fd_poll_runtime.go:90 +0x30
net.(_netFD).connect(0xc21004caf0, 0x0, 0x0, 0x7ff422ce01c8, 0xc2100ad3a0, ...)
/usr/lib/go/src/pkg/net/fd_unix.go:86 +0x166
net.(_netFD).dial(0xc21004caf0, 0x7ff422ce6648, 0x0, 0x7ff422ce6648, 0xc2100aac90, ...)
/usr/lib/go/src/pkg/net/sock_posix.go:121 +0x2fd
net.socket(0x93ade0, 0x3, 0x2, 0x1, 0x0, ...)
/usr/lib/go/src/pkg/net/sock_posix.go:91 +0x40b
net.internetSocket(0x93ade0, 0x3, 0x7ff422ce6648, 0x0, 0x7ff422ce6648, ...)
/usr/lib/go/src/pkg/net/ipsock_posix.go:136 +0x161
net.dialTCP(0x93ade0, 0x3, 0x0, 0xc2100aac90, 0xecb1ab0ee, ...)
/usr/lib/go/src/pkg/net/tcpsock_posix.go:155 +0xef
net.dialSingle(0x93ade0, 0x3, 0xc210531da0, 0x14, 0x0, ...)
/usr/lib/go/src/pkg/net/dial.go:225 +0x3d8
net.func·015(0xecb1ab0ee, 0x1570420e, 0x1066740, 0x6fc23ac00, 0xecb1ab0ee, ...)
/usr/lib/go/src/pkg/net/dial.go:158 +0xde
net.dial(0x93ade0, 0x3, 0x7ff422ce65e0, 0xc2100aac90, 0x7ff418273e38, ...)
/usr/lib/go/src/pkg/net/fd_unix.go:40 +0x45
net.(*Dialer).Dial(0xc210087dc0, 0x93ade0, 0x3, 0xc210531da0, 0x14, ...)
/usr/lib/go/src/pkg/net/dial.go:165 +0x3e0
net.DialTimeout(0x93ade0, 0x3, 0xc210531da0, 0x14, 0x6fc23ac00, ...)
/usr/lib/go/src/pkg/net/dial.go:145 +0xaa
github.com/ethereum/eth-go.func·010()
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:168 +0x5f
created by github.com/ethereum/eth-go.NewOutboundPeer
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:182 +0x14f

goroutine 20 [select]:
github.com/ethereum/eth-go.(_Peer).HandleOutbound(0xc21051d540)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:226 +0x246
created by github.com/ethereum/eth-go.(_Peer).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:507 +0x2a0

goroutine 21 [sleep]:
time.Sleep(0x1dcd6500)
/usr/lib/go/src/pkg/runtime/time.goc:31 +0x31
github.com/ethereum/eth-go.(_Peer).HandleInbound(0xc21051d540)
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:268 +0x5f
created by github.com/ethereum/eth-go.(_Peer).Start
/home/ncesar/src/go-ethereum/src/github.com/ethereum/eth-go/peer.go:509 +0x2ba

@nicocesar

This comment has been minimized.

Copy link
Author

commented May 30, 2014

commit be27309 has the same addLog issue.

BTW, @obscuren since it's not a ' "Not in chain...Asking for block from..." loop? ' anymore, should we close this issue and open a new one?

@obscuren

This comment has been minimized.

Copy link
Member

commented May 31, 2014

Yes. Closed

@obscuren obscuren closed this May 31, 2014
fjl pushed a commit to fjl/go-ethereum that referenced this issue Oct 23, 2014
…hereum#61

* CLI ethereum should no longer require the Qt/QML package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.