Reconnecting to Ethereum node seems to not set up working subscription
System Information
- Ethereum client (Geth/Parity) and version: Geth
- Host OS: Docker inside k8s
- Commit (INFO line when starting the node): 48284c25a17144019722a914eaf1f38009a1ff5f
At some point, the Websocket connection to the Ethereum node gets dropped and a new connection is opened. However, this does not seem to recreate/update subscriptions and the node stops receiving new blocks, resulting in a stop of jobs processing. Restarting the Chainlink node returned it to a normal state of processing jobs properly.
Log below.
2019-08-26T08:38:51Z [ERROR] Error in new head subscription, unsubscribed: websocket: close 1006 (abnormal closure): unexpected EOF services/head_tracker.go:168 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.(*HeadTracker).listenForNewHeads
/chainlink/core/services/head_tracker.go:168
2019-08-26T08:38:51Z [ERROR] Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF services/subscription.go:256 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.ManagedSubscription.listenToLogs
/chainlink/core/services/subscription.go:256
2019-08-26T08:38:51Z [ERROR] Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF services/subscription.go:256 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.ManagedSubscription.listenToLogs
/chainlink/core/services/subscription.go:256
2019-08-26T08:38:51Z [ERROR] Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF services/subscription.go:256 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.ManagedSubscription.listenToLogs
/chainlink/core/services/subscription.go:256
2019-08-26T08:38:51Z [ERROR] Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF services/subscription.go:256 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.ManagedSubscription.listenToLogs
/chainlink/core/services/subscription.go:256
2019-08-26T08:38:51Z [ERROR] Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF services/subscription.go:256 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.ManagedSubscription.listenToLogs
/chainlink/core/services/subscription.go:256
2019-08-26T08:38:51Z [ERROR] Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF services/subscription.go:256 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.ManagedSubscription.listenToLogs
/chainlink/core/services/subscription.go:256
2019-08-26T08:38:51Z [ERROR] Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF services/subscription.go:256 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.ManagedSubscription.listenToLogs
/chainlink/core/services/subscription.go:256
2019-08-26T08:38:51Z [ERROR] Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF services/subscription.go:256 err=websocket: close 1006 (abnormal closure): unexpected EOF stacktrace=github.com/smartcontractkit/chainlink/core/logger.Errorw
/chainlink/core/logger/logger.go:119
github.com/smartcontractkit/chainlink/core/services.ManagedSubscription.listenToLogs
/chainlink/core/services/subscription.go:256
2019-08-26T08:38:51Z [WARN] Subscription *rpc.ClientSubscription Unsubscribe timed out. services/subscription.go:239
2019-08-26T08:38:51Z [WARN] Subscription *rpc.ClientSubscription Unsubscribe timed out. services/subscription.go:239
2019-08-26T08:38:51Z [WARN] Subscription *rpc.ClientSubscription Unsubscribe timed out. services/subscription.go:239
2019-08-26T08:38:51Z [INFO] Connecting to node REDACTED in 0s services/head_tracker.go:182
2019-08-26T09:07:51Z [DEBUG] StatsPusher got event synchronization/stats_pusher.go:148 event=10029
2019-08-26T11:30:40Z [INFO] Gracefully exiting... services/application.go:115
This seems to be a duplicate of this issue in Pivotal: https://www.pivotaltracker.com/n/projects/2129823/stories/166843096
We (LinkForest.io) have encountered the same issue multiple times now.
error
websocket: close 1006 (abnormal closure): unexpected EOF
message:
Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF
Same problem. Is this an issue w new version ? Cl node deployment has been flawless up until recently
On Sun, Dec 29, 2019 at 3:26 AM Andrew Paulicek [email protected] wrote:
We have encountered the same issue multiple times now.
error websocket: close 1006 (abnormal closure): unexpected EOF
message:
Error in log subscription: websocket: close 1006 (abnormal closure): unexpected EOF
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/smartcontractkit/chainlink/issues/1573?email_source=notifications&email_token=AMYGTHG3P5J633XWDIQBXHLQ3BULFA5CNFSM4IPPENA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHY3KFQ#issuecomment-569488662, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYGTHFTROKAQNL22JHC7Q3Q3BULFANCNFSM4IPPENAQ .
Closing due to both inactivity and newer versions of chainlink code.
Hi - I am facing this issue now. Any assistance?, i am using latest version of chainlink repo and trying to access XinFin blockchain mainnet (ChainId = 50)
error starting app: the following errors occurred:
- websocket: close 1006 (abnormal closure): unexpected EOF primary websocket (ws://149.28.31.124:8555) call failed github.com/smartcontractkit/chainlink/core/services/eth.wrap /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/eth/node.go:322 github.com/smartcontractkit/chainlink/core/services/eth.node.wrapWS /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/eth/node.go:308 github.com/smartcontractkit/chainlink/core/services/eth.node.PendingNonceAt /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/eth/node.go:165 github.com/smartcontractkit/chainlink/core/services/eth.(*client).PendingNonceAt /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/eth/client.go:225 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.pendingNonceFromEthClient /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:156 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.fastForwardNonceIfNecessary /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:98 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.SyncAll.func1 /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:84 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.pendingNonceFromEthClient /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:157 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.fastForwardNonceIfNecessary /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:98 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.SyncAll.func1 /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:84 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374 GetNextNonce failed to loadInitialNonceFromEthClient github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.fastForwardNonceIfNecessary /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:100 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.SyncAll.func1 /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:84 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374
- websocket: close 1006 (abnormal closure): unexpected EOF primary websocket (ws://149.28.31.124:8555) call failed github.com/smartcontractkit/chainlink/core/services/eth.wrap /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/eth/node.go:322 github.com/smartcontractkit/chainlink/core/services/eth.node.wrapWS /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/eth/node.go:308 github.com/smartcontractkit/chainlink/core/services/eth.node.PendingNonceAt /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/eth/node.go:165 github.com/smartcontractkit/chainlink/core/services/eth.(*client).PendingNonceAt /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/eth/client.go:225 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.pendingNonceFromEthClient /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:156 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.fastForwardNonceIfNecessary /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:98 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.SyncAll.func1 /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:84 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.pendingNonceFromEthClient /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:157 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.fastForwardNonceIfNecessary /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:98 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.SyncAll.func1 /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:84 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374 GetNextNonce failed to loadInitialNonceFromEthClient github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.fastForwardNonceIfNecessary /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:100 github.com/smartcontractkit/chainlink/core/services/bulletprooftxmanager.NonceSyncer.SyncAll.func1 /home/user/MyProjects/Blockchain/Chainlink/chainlink/core/services/bulletprooftxmanager/nonce_syncer.go:84 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1374