No buffer space available #5

Open
opened 2026-01-03 17:49:10 +00:00 by oliga · 1 comment

After credentals + country origine I have this error
Try Docker (machine 1 et machine 2) + Python (pip installed)... the same

An unexpected error occurred: [Errno 105] No buffer space available
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /usr/local/lib/python3.11/site-packages/spotizerr_auth/main.py:381 in main                       │
│                                                                                                  │
│   378 │   │   │   │   │   console.print("❌ [bold red]Cannot continue without a valid 'credent   │
│   379 │   │   │   │   │   sys.exit(1)                                                            │
│   380 │   │   else:                                                                              │
│ ❱ 381 │   │   │   get_spotify_session_and_wait_for_credentials()                                 │
│   382 │   │                                                                                      │
│   383 │   │   if not cred_file.exists():                                                         │
│   384 │   │   │   console.print("❌ [bold red]Failed to obtain 'credentials.json'. Exiting.[/]   │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ account_name = 'pol'                                                                         │ │
│ │  auth_status = {                                                                             │ │
│ │                │   'auth_enabled': True,                                                     │ │
│ │                │   'authenticated': False,                                                   │ │
│ │                │   'user': None,                                                             │ │
│ │                │   'registration_enabled': False,                                            │ │
│ │                │   'sso_enabled': False,                                                     │ │
│ │                │   'sso_providers': []                                                       │ │
│ │                }                                                                             │ │
│ │   auth_token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwicm9sZSI6Im… │ │
│ │     base_url = 'http://localhost:7171'                                                       │ │
│ │    cred_file = PosixPath('credentials.json')                                                 │ │
│ │            e = OSError(105, 'No buffer space available')                                     │ │
│ │       region = 'FR'                                                                          │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ /usr/local/lib/python3.11/site-packages/spotizerr_auth/main.py:72 in                             │
│ get_spotify_session_and_wait_for_credentials                                                     │
│                                                                                                  │
│    69 │                                                                                          │
│    70 │   # Start the patched ZeroconfServer. It will run silently in the background.            │
│    71 │   # No need to manage threads here anymore.                                              │
│ ❱  72 │   zeroconf_server = ZeroconfServer.Builder().create()                                    │
│    73 │                                                                                          │
│    74 │   device_name = "Spotizerr Auth Tool" # A clear, static name for the user                │
│    75 │   instructions = f"""                                                                    │
│                                                                                                  │
│ ╭──────────────────── locals ─────────────────────╮                                              │
│ │ credential_file = PosixPath('credentials.json') │                                              │
│ ╰─────────────────────────────────────────────────╯                                              │
│                                                                                                  │
│ /usr/local/lib/python3.11/site-packages/librespot/zeroconf.py:312 in create                      │
│                                                                                                  │
│   309 │   │   │   return self                                                                    │
│   310 │   │                                                                                      │
│   311 │   │   def create(self) -> ZeroconfServer:                                                │
│ ❱ 312 │   │   │   return ZeroconfServer(                                                         │
│   313 │   │   │   │   ZeroconfServer.Inner(self.device_type, self.device_name,                   │
│   314 │   │   │   │   │   │   │   │   │    self.device_id, self.preferred_locale,                │
│   315 │   │   │   │   │   │   │   │   │    self.conf), self.listen_port)                         │
│                                                                                                  │
│ ╭────────────────────────────────── locals ───────────────────────────────────╮                  │
│ │ self = <librespot.zeroconf.ZeroconfServer.Builder object at 0x7fd4ef023890> │                  │
│ ╰─────────────────────────────────────────────────────────────────────────────╯                  │
│                                                                                                  │
│ /usr/local/lib/python3.11/site-packages/librespot/zeroconf.py:73 in __init__                     │
│                                                                                                  │
│    70 │   │   │   │   │   │    name="zeroconf-http-server",                                      │
│    71 │   │   │   │   │   │    daemon=True).start()                                              │
│    72 │   │                                                                                      │
│ ❱  73 │   │   self.__zeroconf = zeroconf.Zeroconf()                                              │
│    74 │   │                                                                                      │
│    75 │   │   advertised_ip_str = self._get_local_ip()                                           │
│    76                                                                                            │
│                                                                                                  │
│ ╭───────────────────────────────────── locals ─────────────────────────────────────╮             │
│ │       inner = <librespot.zeroconf.ZeroconfServer.Inner object at 0x7fd4efe63a50> │             │
│ │ listen_port = 47088                                                              │             │
│ │        self = <librespot.zeroconf.ZeroconfServer object at 0x7fd4ef47b110>       │             │
│ ╰──────────────────────────────────────────────────────────────────────────────────╯             │
│                                                                                                  │
│ /usr/local/lib/python3.11/site-packages/zeroconf/_core.py:179 in __init__                        │
│                                                                                                  │
│   176 │   │   │   raise RuntimeError("Option `apple_p2p` is not supported on non-Apple platfor   │
│   177 │   │                                                                                      │
│   178 │   │   self.unicast = unicast                                                             │
│ ❱ 179 │   │   listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version,   │
│   180 │   │   log.debug("Listen socket %s, respond sockets %s", listen_socket, respond_sockets   │
│   181 │   │                                                                                      │
│   182 │   │   self.engine = AsyncEngine(self, listen_socket, respond_sockets)                    │
│                                                                                                  │
│ ╭──────────────────────────── locals ─────────────────────────────╮                              │
│ │  apple_p2p = False                                              │                              │
│ │ interfaces = <InterfaceChoice.All: 2>                           │                              │
│ │ ip_version = <IPVersion.V4Only: 1>                              │                              │
│ │       self = <zeroconf._core.Zeroconf object at 0x7fd4ef02ed90> │                              │
│ │    unicast = False                                              │                              │
│ ╰─────────────────────────────────────────────────────────────────╯                              │
│                                                                                                  │
│ /usr/local/lib/python3.11/site-packages/zeroconf/_utils/net.py:383 in create_sockets             │
│                                                                                                  │
│   380 │                                                                                          │
│   381 │   for i in normalized_interfaces:                                                        │
│   382 │   │   if not unicast:                                                                    │
│ ❱ 383 │   │   │   if add_multicast_member(cast(socket.socket, listen_socket), i):                │
│   384 │   │   │   │   respond_socket = new_respond_socket(i, apple_p2p=apple_p2p)                │
│   385 │   │   │   else:                                                                          │
│   386 │   │   │   │   respond_socket = None                                                      │
│                                                                                                  │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │             apple_p2p = False                                                                │ │
│ │                     i = '172.17.0.1'                                                         │ │
│ │            interfaces = <InterfaceChoice.All: 2>                                             │ │
│ │            ip_version = <IPVersion.V4Only: 1>                                                │ │
│ │         listen_socket = <socket.socket fd=5, family=2, type=2, proto=0, laddr=('0.0.0.0',    │ │
│ │                         5353)>                                                               │ │
│ │ normalized_interfaces = [                                                                    │ │
│ │                         │   '172.21.0.1',                                                    │ │
│ │                         │   '172.23.0.1',                                                    │ │
│ │                         │   '172.31.0.1',                                                    │ │
│ │                         │   '192.168.16.1',                                                  │ │
│ │                         │   '177.28.0.1',                                                    │ │
│ │                         │   '172.22.0.1',                                                    │ │
│ │                         │   '192.168.48.1',                                                  │ │
│ │                         │   '172.19.0.1',                                                    │ │
│ │                         │   '192.168.32.1',                                                  │ │
│ │                         │   '127.0.0.1',                                                     │ │
│ │                         │   ... +17                                                          │ │
│ │                         ]                                                                    │ │
│ │        respond_socket = <socket.socket fd=25, family=2, type=2, proto=0,                     │ │
│ │                         laddr=('172.28.0.1', 5353)>                                          │ │
│ │       respond_sockets = [                                                                    │ │
│ │                         │   <socket.socket fd=6, family=2, type=2, proto=0,                  │ │
│ │                         laddr=('172.21.0.1', 5353)>,                                         │ │
│ │                         │   <socket.socket fd=7, family=2, type=2, proto=0,                  │ │
│ │                         laddr=('172.23.0.1', 5353)>,                                         │ │
│ │                         │   <socket.socket fd=8, family=2, type=2, proto=0,                  │ │
│ │                         laddr=('172.31.0.1', 5353)>,                                         │ │
│ │                         │   <socket.socket fd=9, family=2, type=2, proto=0,                  │ │
│ │                         laddr=('192.168.16.1', 5353)>,                                       │ │
│ │                         │   <socket.socket fd=10, family=2, type=2, proto=0,                 │ │
│ │                         laddr=('177.28.0.1', 5353)>,                                         │ │
│ │                         │   <socket.socket fd=11, family=2, type=2, proto=0,                 │ │
│ │                         laddr=('172.22.0.1', 5353)>,                                         │ │
│ │                         │   <socket.socket fd=12, family=2, type=2, proto=0,                 │ │
│ │                         laddr=('192.168.48.1', 5353)>,                                       │ │
│ │                         │   <socket.socket fd=13, family=2, type=2, proto=0,                 │ │
│ │                         laddr=('172.19.0.1', 5353)>,                                         │ │
│ │                         │   <socket.socket fd=14, family=2, type=2, proto=0,                 │ │
│ │                         laddr=('192.168.32.1', 5353)>,                                       │ │
│ │                         │   <socket.socket fd=15, family=2, type=2, proto=0,                 │ │
│ │                         laddr=('127.0.0.1', 5353)>,                                          │ │
│ │                         │   ... +10                                                          │ │
│ │                         ]                                                                    │ │
│ │               unicast = False                                                                │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                                  │
│ /usr/local/lib/python3.11/site-packages/zeroconf/_utils/net.py:293 in add_multicast_member       │
│                                                                                                  │
│   290 │   │   │   listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value)        │
│   291 │   │   else:                                                                              │
│   292 │   │   │   _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface   │
│ ❱ 293 │   │   │   listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value   │
│   294 │   except OSError as e:                                                                   │
│   295 │   │   _errno = get_errno(e)                                                              │
│   296 │   │   if _errno == errno.EADDRINUSE:                                                     │
│                                                                                                  │
│ ╭───────────────────────────────────────── locals ─────────────────────────────────────────╮     │
│ │        _errno = 105                                                                      │     │
│ │        _value = b'\xe0\x00\x00\xfb\xac\x11\x00\x01'                                      │     │
│ │    err_einval = {22}                                                                     │     │
│ │     interface = '172.17.0.1'                                                             │     │
│ │         is_v6 = False                                                                    │     │
│ │ listen_socket = <socket.socket fd=5, family=2, type=2, proto=0, laddr=('0.0.0.0', 5353)> │     │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────╯     │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
OSError: [Errno 105] No buffer space available
After credentals + country origine I have this error Try Docker (machine 1 et machine 2) + Python (pip installed)... the same ``` An unexpected error occurred: [Errno 105] No buffer space available ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ /usr/local/lib/python3.11/site-packages/spotizerr_auth/main.py:381 in main │ │ │ │ 378 │ │ │ │ │ console.print("❌ [bold red]Cannot continue without a valid 'credent │ │ 379 │ │ │ │ │ sys.exit(1) │ │ 380 │ │ else: │ │ ❱ 381 │ │ │ get_spotify_session_and_wait_for_credentials() │ │ 382 │ │ │ │ 383 │ │ if not cred_file.exists(): │ │ 384 │ │ │ console.print("❌ [bold red]Failed to obtain 'credentials.json'. Exiting.[/] │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ account_name = 'pol' │ │ │ │ auth_status = { │ │ │ │ │ 'auth_enabled': True, │ │ │ │ │ 'authenticated': False, │ │ │ │ │ 'user': None, │ │ │ │ │ 'registration_enabled': False, │ │ │ │ │ 'sso_enabled': False, │ │ │ │ │ 'sso_providers': [] │ │ │ │ } │ │ │ │ auth_token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwicm9sZSI6Im… │ │ │ │ base_url = 'http://localhost:7171' │ │ │ │ cred_file = PosixPath('credentials.json') │ │ │ │ e = OSError(105, 'No buffer space available') │ │ │ │ region = 'FR' │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ /usr/local/lib/python3.11/site-packages/spotizerr_auth/main.py:72 in │ │ get_spotify_session_and_wait_for_credentials │ │ │ │ 69 │ │ │ 70 │ # Start the patched ZeroconfServer. It will run silently in the background. │ │ 71 │ # No need to manage threads here anymore. │ │ ❱ 72 │ zeroconf_server = ZeroconfServer.Builder().create() │ │ 73 │ │ │ 74 │ device_name = "Spotizerr Auth Tool" # A clear, static name for the user │ │ 75 │ instructions = f""" │ │ │ │ ╭──────────────────── locals ─────────────────────╮ │ │ │ credential_file = PosixPath('credentials.json') │ │ │ ╰─────────────────────────────────────────────────╯ │ │ │ │ /usr/local/lib/python3.11/site-packages/librespot/zeroconf.py:312 in create │ │ │ │ 309 │ │ │ return self │ │ 310 │ │ │ │ 311 │ │ def create(self) -> ZeroconfServer: │ │ ❱ 312 │ │ │ return ZeroconfServer( │ │ 313 │ │ │ │ ZeroconfServer.Inner(self.device_type, self.device_name, │ │ 314 │ │ │ │ │ │ │ │ │ self.device_id, self.preferred_locale, │ │ 315 │ │ │ │ │ │ │ │ │ self.conf), self.listen_port) │ │ │ │ ╭────────────────────────────────── locals ───────────────────────────────────╮ │ │ │ self = <librespot.zeroconf.ZeroconfServer.Builder object at 0x7fd4ef023890> │ │ │ ╰─────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ /usr/local/lib/python3.11/site-packages/librespot/zeroconf.py:73 in __init__ │ │ │ │ 70 │ │ │ │ │ │ name="zeroconf-http-server", │ │ 71 │ │ │ │ │ │ daemon=True).start() │ │ 72 │ │ │ │ ❱ 73 │ │ self.__zeroconf = zeroconf.Zeroconf() │ │ 74 │ │ │ │ 75 │ │ advertised_ip_str = self._get_local_ip() │ │ 76 │ │ │ │ ╭───────────────────────────────────── locals ─────────────────────────────────────╮ │ │ │ inner = <librespot.zeroconf.ZeroconfServer.Inner object at 0x7fd4efe63a50> │ │ │ │ listen_port = 47088 │ │ │ │ self = <librespot.zeroconf.ZeroconfServer object at 0x7fd4ef47b110> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ /usr/local/lib/python3.11/site-packages/zeroconf/_core.py:179 in __init__ │ │ │ │ 176 │ │ │ raise RuntimeError("Option `apple_p2p` is not supported on non-Apple platfor │ │ 177 │ │ │ │ 178 │ │ self.unicast = unicast │ │ ❱ 179 │ │ listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, │ │ 180 │ │ log.debug("Listen socket %s, respond sockets %s", listen_socket, respond_sockets │ │ 181 │ │ │ │ 182 │ │ self.engine = AsyncEngine(self, listen_socket, respond_sockets) │ │ │ │ ╭──────────────────────────── locals ─────────────────────────────╮ │ │ │ apple_p2p = False │ │ │ │ interfaces = <InterfaceChoice.All: 2> │ │ │ │ ip_version = <IPVersion.V4Only: 1> │ │ │ │ self = <zeroconf._core.Zeroconf object at 0x7fd4ef02ed90> │ │ │ │ unicast = False │ │ │ ╰─────────────────────────────────────────────────────────────────╯ │ │ │ │ /usr/local/lib/python3.11/site-packages/zeroconf/_utils/net.py:383 in create_sockets │ │ │ │ 380 │ │ │ 381 │ for i in normalized_interfaces: │ │ 382 │ │ if not unicast: │ │ ❱ 383 │ │ │ if add_multicast_member(cast(socket.socket, listen_socket), i): │ │ 384 │ │ │ │ respond_socket = new_respond_socket(i, apple_p2p=apple_p2p) │ │ 385 │ │ │ else: │ │ 386 │ │ │ │ respond_socket = None │ │ │ │ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │ │ │ apple_p2p = False │ │ │ │ i = '172.17.0.1' │ │ │ │ interfaces = <InterfaceChoice.All: 2> │ │ │ │ ip_version = <IPVersion.V4Only: 1> │ │ │ │ listen_socket = <socket.socket fd=5, family=2, type=2, proto=0, laddr=('0.0.0.0', │ │ │ │ 5353)> │ │ │ │ normalized_interfaces = [ │ │ │ │ │ '172.21.0.1', │ │ │ │ │ '172.23.0.1', │ │ │ │ │ '172.31.0.1', │ │ │ │ │ '192.168.16.1', │ │ │ │ │ '177.28.0.1', │ │ │ │ │ '172.22.0.1', │ │ │ │ │ '192.168.48.1', │ │ │ │ │ '172.19.0.1', │ │ │ │ │ '192.168.32.1', │ │ │ │ │ '127.0.0.1', │ │ │ │ │ ... +17 │ │ │ │ ] │ │ │ │ respond_socket = <socket.socket fd=25, family=2, type=2, proto=0, │ │ │ │ laddr=('172.28.0.1', 5353)> │ │ │ │ respond_sockets = [ │ │ │ │ │ <socket.socket fd=6, family=2, type=2, proto=0, │ │ │ │ laddr=('172.21.0.1', 5353)>, │ │ │ │ │ <socket.socket fd=7, family=2, type=2, proto=0, │ │ │ │ laddr=('172.23.0.1', 5353)>, │ │ │ │ │ <socket.socket fd=8, family=2, type=2, proto=0, │ │ │ │ laddr=('172.31.0.1', 5353)>, │ │ │ │ │ <socket.socket fd=9, family=2, type=2, proto=0, │ │ │ │ laddr=('192.168.16.1', 5353)>, │ │ │ │ │ <socket.socket fd=10, family=2, type=2, proto=0, │ │ │ │ laddr=('177.28.0.1', 5353)>, │ │ │ │ │ <socket.socket fd=11, family=2, type=2, proto=0, │ │ │ │ laddr=('172.22.0.1', 5353)>, │ │ │ │ │ <socket.socket fd=12, family=2, type=2, proto=0, │ │ │ │ laddr=('192.168.48.1', 5353)>, │ │ │ │ │ <socket.socket fd=13, family=2, type=2, proto=0, │ │ │ │ laddr=('172.19.0.1', 5353)>, │ │ │ │ │ <socket.socket fd=14, family=2, type=2, proto=0, │ │ │ │ laddr=('192.168.32.1', 5353)>, │ │ │ │ │ <socket.socket fd=15, family=2, type=2, proto=0, │ │ │ │ laddr=('127.0.0.1', 5353)>, │ │ │ │ │ ... +10 │ │ │ │ ] │ │ │ │ unicast = False │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │ │ │ │ /usr/local/lib/python3.11/site-packages/zeroconf/_utils/net.py:293 in add_multicast_member │ │ │ │ 290 │ │ │ listen_socket.setsockopt(_IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, _value) │ │ 291 │ │ else: │ │ 292 │ │ │ _value = socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(cast(str, interface │ │ ❱ 293 │ │ │ listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value │ │ 294 │ except OSError as e: │ │ 295 │ │ _errno = get_errno(e) │ │ 296 │ │ if _errno == errno.EADDRINUSE: │ │ │ │ ╭───────────────────────────────────────── locals ─────────────────────────────────────────╮ │ │ │ _errno = 105 │ │ │ │ _value = b'\xe0\x00\x00\xfb\xac\x11\x00\x01' │ │ │ │ err_einval = {22} │ │ │ │ interface = '172.17.0.1' │ │ │ │ is_v6 = False │ │ │ │ listen_socket = <socket.socket fd=5, family=2, type=2, proto=0, laddr=('0.0.0.0', 5353)> │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ OSError: [Errno 105] No buffer space available ```

just made a new update to spotizerr-phoenix and spotizerr-auth-phoenix

give the new update a try, hopefully the new updates fix your issue or at least gives you a better idea through the logging

just made a new update to spotizerr-phoenix and spotizerr-auth-phoenix - new release v0.0.15 of `spotizerr-auth-phoenix` will give you the ability to custom device info/name with preset defaults - includes logging for debugging purposes - full spotizerr-phoenix release notes: https://lavaforge.org/spotizerrphoenix/spotizerr-phoenix/releases/tag/v4.0.16 give the new update a try, hopefully the new updates fix your issue or at least gives you a better idea through the logging
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
spotizerrphoenix/spotizerr-auth-phoenix#5
No description provided.