lightningd / plugins

Community curated plugins for core-lightning
BSD 3-Clause "New" or "Revised" License
269 stars 129 forks source link

historian: Several 'No parser registered' errors #210

Closed aido closed 3 years ago

aido commented 3 years ago

Hi,

The historian plugin regularly gives the following errors:

2021-01-29T22:59:21.832Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T00:40:15.489Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T00:40:15.490Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T00:40:15.490Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T00:50:26.176Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T01:40:26.166Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T02:19:23.336Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T02:47:05.762Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T02:47:05.790Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T02:47:05.791Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
2021-01-30T02:58:14.100Z INFO    plugin-historian.py: Exception parsing gossip message: No parser registered for type 4103
grubles commented 3 years ago

I'm running into this on Fedora 33 and c-lightning v0.9.3. Might be related.

2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined
2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined
2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined
2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined                                          2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined
2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined
2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined                                         
2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined
2021-02-01T15:59:12.210Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined                
2021-02-01T15:59:12.211Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined                                          2021-02-01T15:59:12.211Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined
2021-02-01T15:59:12.211Z INFO    plugin-historian.py: Exception parsing gossip message: name 'parser' is not defined 

when trying `lightning-cli historian-stats` 

2021-02-01T16:00:19.525Z INFO    plugin-historian.py: Traceback (most recent call last):
2021-02-01T16:00:19.525Z INFO    plugin-historian.py:   File \"/home/user/.local/lib/python3.9/site-packages/pyln/client/plugin.py\", line 621, in _dispatch_request
2021-02-01T16:00:19.525Z INFO    plugin-historian.py:     result = self._exec_func(method.func, request)
2021-02-01T16:00:19.525Z INFO    plugin-historian.py:   File \"/home/user/.local/lib/python3.9/site-packages/pyln/client/plugin.py\", line 603, in _exec_func
2021-02-01T16:00:19.526Z INFO    plugin-historian.py:     return func(*ba.args, **ba.kwargs)
2021-02-01T16:00:19.526Z INFO    plugin-historian.py:   File \"/data/lightningdir/bitcoin/plugins/historian.py\", line 189, in stats
2021-02-01T16:00:19.526Z INFO    plugin-historian.py:     'latest_node_announcement': session.query(NodeAnnouncement).order_by(desc(NodeAnnouncement.timestamp)).limit(1)[0],
2021-02-01T16:00:19.526Z INFO    plugin-historian.py:   File \"/home/user/.local/lib/python3.9/site-packages/sqlalchemy/orm/query.py\", line 3154, in __getitem__
2021-02-01T16:00:19.526Z INFO    plugin-historian.py:     return list(self[item : item + 1])[0]
2021-02-01T16:00:19.526Z INFO    plugin-historian.py: IndexError: list index out of range
2021-02-01T16:00:19.526Z INFO    plugin-historian.py: 
aido commented 3 years ago

Hi @grubles

Your first issue will probably be fixed by https://github.com/lightningd/plugins/pull/207

see also: https://github.com/lightningd/plugins/commit/5236850245d6d42041c84b578b50cc7aa0bb6a0c#commitcomment-46379126

GuutBoy commented 3 years ago

I fixed it like so https://github.com/lightningd/plugins/pull/215

GuutBoy commented 3 years ago

@grubles specifically I fixed this with #206 but it might be a symptom of what was fixed in #207. Not sure.

aido commented 3 years ago

Hi @GuutBoy

Latest version of historian plugin now giving following info several times:

2021-02-03T22:40:16.761Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.761Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.761Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.761Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.761Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.762Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.762Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.762Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.762Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.762Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.762Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
2021-02-03T22:40:16.763Z INFO    plugin-historian.py: Exception parsing gossip message: 'NoneType' object has no attribute 'from_gossip'
GuutBoy commented 3 years ago

Oh yeah, forgot that one. #217 fixes that.