spesmilo / spesmilo/electrum

OSError: [Errno 16] Device or resource busy

Open
#4,103 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

  File "/usr/lib/python3.6/site-packages/electrum/util.py", line 792, in run_with_except_hook
    run_original(*args2, **kwargs2)
  File "/usr/lib/python3.6/site-packages/electrum/interface.py", line 233, in run
    socket = self.get_socket()
  File "/usr/lib/python3.6/site-packages/electrum/interface.py", line 180, in get_socket
    s = self.get_simple_socket()
  File "/usr/lib/python3.6/site-packages/electrum/interface.py", line 103, in get_simple_socket
    l = socket.getaddrinfo(self.host, self.port, socket.AF_UNSPEC, socket.SOCK_STREAM)
  File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):

OSError: [Errno 16] Device or resource busy

Reporter

This issue was reported by 17 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
3.1.0 Linux-4.15.8-1-ARCH-x86_64-with-arch standard en_US
3.1.0 Linux-4.15.9-gnu-3-x86_64-with-arch standard en_US
3.1.0 Linux-4.15.9-gnu-3-x86_64-with-arch standard en_US
3.1.3 Linux-4.16.13-2-ARCH-x86_64-with-arch standard en_US
3.1.3 Linux-4.14.51-x86_64-with-glibc2.3.4 standard ru_RU
3.1.1 Linux-4.14.67-x86_64-with-glibc2.3.4 standard en_US
3.1.1 Linux-4.14.67-x86_64-with-glibc2.3.4 standard en_US
3.2.3 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC] Linux-4.18.13-1-default-x86_64-with-glibc2.3.4 standard pl_PL
3.2.3 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC] Linux-4.18.13-1-default-x86_64-with-glibc2.3.4 standard pl_PL
3.2.3 3.6.7 (default, Oct 21 2018, 08:08:16) [GCC 8.2.0] Linux-4.15.0-kali2-amd64-x86_64-with-Kali-kali-rolling-kali-rolling standard ru_UA
3.2.3 3.6.6 (default, Oct 17 2018, 07:23:22) [GCC 6.4.0] Linux-4.9.0-sabayon-x86_64-Intel-R-_Core-TM-i5_CPU_M_520@_2.40GHz-with-gentoo-2.6 standard en_US
3.2.4 3.6.7 (default, Nov 23 2018, 12:11:28) [GCC 8.2.1 20181105 (Red Hat 8.2.1-5)] Linux-4.14.74-1.pvops.qubes.x86_64-x86_64-with-fedora-28-Twenty_Eight 2of3 en_GB
3.2.4 3.6.8 (default, Dec 24 2018, 03:01:30) [GCC 7.3.0] Linux-4.14.94-x86_64-with-glibc2.3.4 standard en_US
3.2.4 3.6.8 (default, Dec 24 2018, 03:01:30) [GCC 7.3.0] Linux-4.14.94-x86_64-with-glibc2.3.4 standard en_US
3.2.4 3.6.8 (default, Dec 24 2018, 03:01:30) [GCC 7.3.0] Linux-4.14.103-x86_64-with-glibc2.3.4 standard en_US
3.2.4 3.6.8 (default, Dec 24 2018, 03:01:30) [GCC 7.3.0] Linux-4.14.104-x86_64-with-glibc2.3.4 standard en_US
3.2.4 3.6.8 (default, Dec 24 2018, 03:01:30) [GCC 7.3.0] Linux-4.14.104-x86_64-with-glibc2.3.4 standard en_US

Additional Information

This error appears on the console every time I launch electrum on Arch Linux, and has done so for at least 6 months or so. It seems to happen before the gui is loaded (i.e. before I'm even prompted to enter a password). Despite the error message, I see no actual problems - I can still send/receive funds just fine.


I just started it


Error occurs immediately upon startup.


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the traceback in electrum/interface.py, especially get_socket(), get_simple_socket(), and the socket.getaddrinfo call, then review util.py's run_with_except_hook. Reproduce startup on Arch Linux and determine the conditions around the reported OSError; the issue is done when startup no longer emits the error without affecting wallet connectivity.

Written by the indexing model from the issue text.

Assessment

Tech stack
arch-linux, linux, python
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.