magic-wormhole/magic-wormhole-mailbox-server

log_client_version failure in self._usage_db.execute

kaie opened this issue · 1 comments

kaie commented

Debian 10, installed versions
magic-wormhole 0.11.2-1
magic-wormhole-transit-relay 0.1.2-1
python3-magic-wormhole-mailbox-server 0.3.1-2

Running wormhole with --transit-helper and --relay-url pointing to my own server.

Failure seen on mailbox-server:

  File "/usr/lib/python3/dist-packages/wormhole_mailbox_server/server.py", line 186, in log_client_version
    self._usage_db.execute("INSERT INTO `client_versions`"
builtins.AttributeError: 'NoneType' object has no attribute 'execute'

Apparently self._usage_db is undefined?

I hacked it to work by editing wormhole_mailbox_server/server.py
and in function log_client_version
I disabled the self._usage_db.execute() and self._usage_db.commit() calls
(because I have the impression this is just for logging purposes, but not required for transfer functionality).

With these lines disabled, I can successfully transfer through my server.

kaie commented

I see you already fixed this with
60c924a