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

Unhandled error: "builtins.IndexError: tuple index out of range" #1750

Closed
Ulawun opened this issue Dec 9, 2024 · 4 comments
Closed

Unhandled error: "builtins.IndexError: tuple index out of range" #1750

Ulawun opened this issue Dec 9, 2024 · 4 comments

Comments

@Ulawun
Copy link

Ulawun commented Dec 9, 2024

Hello :-)

The ghcr.io/joinmarket-webui/jam-standalone container is running,
JoinMarket is running,
but doesn't mix continuously.
I'm a maker and charge no (absolute) fees.
JoinMarket mixed twice, which this is one month ago.
For one month now there's no further mixing :-(

I'm running bitcoin core and
the ghcr.io/joinmarket-webui/jam-standalone container on one computer.
Computer: Linux Mint 21.3 Virginia 64-bit
Bitcoin core: v27.1.0
Docker: 24.0.7, build: ubuntu...
ghcr.io/joinmarket-webui/jam-standalone: v0.3.0

Initially I transferred BTC to wallet A.
Then JoinMarket mixed twice to wallet B.
Then it stopped mixing till now (for one month).

I restarted the backend several times,
but that didn't change the symptoms.

Every view hours (a view times a day) I get the same
unhandled error: "builtins.IndexError: tuple index out of range".
A snippet of the logs looks like this:

...
2024-12-06 23:24:06,871 [INFO] Lost IRC connection to: darkirc6tqgpnwd3blln3yfv5ckl47eg7llfxkmtovrv7c7iwohhb6ad.onion . Should reconnect automatically soon.
2024-12-06 23:25:33,684 [INFO] Lost IRC connection to: darkirc6tqgpnwd3blln3yfv5ckl47eg7llfxkmtovrv7c7iwohhb6ad.onion . Should reconnect automatically soon.
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/twisted/python/log.py", line 96, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python3.9/dist-packages/twisted/python/log.py", line 80, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python3.9/dist-packages/twisted/python/context.py", line 117, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python3.9/dist-packages/twisted/python/context.py", line 82, in callWithContext
return func(*args, **kw)
--- ---
File "/usr/local/lib/python3.9/dist-packages/twisted/internet/posixbase.py", line 482, in _doReadOrWrite
why = selectable.doRead()
File "/usr/local/lib/python3.9/dist-packages/twisted/internet/tcp.py", line 248, in doRead
return self._dataReceived(data)
File "/usr/local/lib/python3.9/dist-packages/twisted/internet/tcp.py", line 253, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/usr/local/lib/python3.9/dist-packages/twisted/internet/endpoints.py", line 151, in dataReceived
return self._wrappedProtocol.dataReceived(data)
File "/usr/local/lib/python3.9/dist-packages/txtorcon/socks.py", line 529, in dataReceived
self._machine.feed_data(data)
File "/usr/local/lib/python3.9/dist-packages/txtorcon/socks.py", line 136, in feed_data
self.got_data()
File "/usr/local/lib/python3.9/dist-packages/automat/_methodical.py", line 284, in got_data
value = output(oself, *a, **k)
File "/usr/local/lib/python3.9/dist-packages/automat/_methodical.py", line 322, in call
return self.method(oself, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/txtorcon/socks.py", line 311, in _relay_data
self._sender.dataReceived(d)
File "/usr/local/lib/python3.9/dist-packages/twisted/protocols/tls.py", line 324, in dataReceived
self._checkHandshakeStatus()
File "/usr/local/lib/python3.9/dist-packages/twisted/protocols/tls.py", line 251, in _checkHandshakeStatus
self._tlsShutdownFinished(Failure())
File "/usr/local/lib/python3.9/dist-packages/twisted/protocols/tls.py", line 377, in _tlsShutdownFinished
if _representsEOF(reason.value):
File "/usr/local/lib/python3.9/dist-packages/twisted/protocols/tls.py", line 121, in _representsEOF
errorQueue = exceptionObject.args[0]
builtins.IndexError: tuple index out of range
...

Is there any solution ?
Thanks in advance :-)

@BTCBellyButton
Copy link
Contributor

BTCBellyButton commented Jan 7, 2025

Same issue here, running just JM 0.9.11 as a maker (no jam, no docker, Ubuntu 24.04.1 ):

Jan 07 10:50:05 jump sh[4609]: 2025-01-07 10:50:05,515 [INFO]  Lost IRC connection to: irc-cf73.darkscience.net . Should reconnect automatically soon.
Jan 07 10:50:15 jump sh[4609]: Unhandled Error
Jan 07 10:50:15 jump sh[4609]: Traceback (most recent call last):
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/python/log.py", line 96, in callWithLogger
Jan 07 10:50:15 jump sh[4609]:     return callWithContext({"system": lp}, func, *args, **kw)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/python/log.py", line 80, in callWithContext
Jan 07 10:50:15 jump sh[4609]:     return context.call({ILogContext: newCtx}, func, *args, **kw)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/python/context.py", line 117, in callWithContext
Jan 07 10:50:15 jump sh[4609]:     return self.currentContext().callWithContext(ctx, func, *args, **kw)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/python/context.py", line 82, in callWithContext
Jan 07 10:50:15 jump sh[4609]:     return func(*args, **kw)
Jan 07 10:50:15 jump sh[4609]: --- <exception caught here> ---
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/internet/posixbase.py", line 482, in _doReadOrWrite
Jan 07 10:50:15 jump sh[4609]:     why = selectable.doRead()
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/internet/tcp.py", line 248, in doRead
Jan 07 10:50:15 jump sh[4609]:     return self._dataReceived(data)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/internet/tcp.py", line 253, in _dataReceived
Jan 07 10:50:15 jump sh[4609]:     rval = self.protocol.dataReceived(data)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/internet/endpoints.py", line 151, in dataReceived
Jan 07 10:50:15 jump sh[4609]:     return self._wrappedProtocol.dataReceived(data)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/txtorcon/socks.py", line 529, in dataReceived
Jan 07 10:50:15 jump sh[4609]:     self._machine.feed_data(data)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/txtorcon/socks.py", line 136, in feed_data
Jan 07 10:50:15 jump sh[4609]:     self.got_data()
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/automat/_methodical.py", line 284, in got_data
Jan 07 10:50:15 jump sh[4609]:     value = output(oself, *a, **k)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/automat/_methodical.py", line 322, in __call__
Jan 07 10:50:15 jump sh[4609]:     return self.method(oself, *args, **kwargs)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/txtorcon/socks.py", line 311, in _relay_data
Jan 07 10:50:15 jump sh[4609]:     self._sender.dataReceived(d)
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/protocols/tls.py", line 324, in dataReceived
Jan 07 10:50:15 jump sh[4609]:     self._checkHandshakeStatus()
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/protocols/tls.py", line 251, in _checkHandshakeStatus
Jan 07 10:50:15 jump sh[4609]:     self._tlsShutdownFinished(Failure())
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/protocols/tls.py", line 377, in _tlsShutdownFinished
Jan 07 10:50:15 jump sh[4609]:     if _representsEOF(reason.value):
Jan 07 10:50:15 jump sh[4609]:   File "/home/go/joinmarket/jmvenv/lib/python3.10/site-packages/twisted/protocols/tls.py", line 121, in _representsEOF
Jan 07 10:50:15 jump sh[4609]:     errorQueue = exceptionObject.args[0]
Jan 07 10:50:15 jump sh[4609]: builtins.IndexError: tuple index out of range

@Fonta1n3
Copy link

Fonta1n3 commented Jan 8, 2025

I get the same on macOS when initiating a coinjoin via the API, running v0.9.11. Will try downgrading.

@Fonta1n3
Copy link

Fonta1n3 commented Jan 8, 2025

Downgrading resulted in other install issues.. Sticking with current version and am able to replicate it repeatedly on different machines.

@PulpCattel
Copy link
Member

I'm closing this as a duplicate of #1644. Feel free to reopen if it's something else.

@PulpCattel PulpCattel closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2025
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

4 participants