Skip to content

[BUG] Lutris Method - Errno 104 - Connection Reset by Peer #117

Open

Description

@eximo84

Does an issue for this already exist?

  • I have searched the existing issues
  • I have ensured my environment (operating system, app launcher, etc) is up to date

Operating System and Version

CachyOS

Launcher

Lutris (Recommended)

Launcher Installation

AppImage

Other Install

No response

Wine Version

ElementalWarrior (Recommended)

Affinity Version

2.x

Desktop Environment

KDE Plasma Wayland

Description

Running the lutris method, downloaded the required parts. Fails during setup

Steps to reproduce

  1. Add new item
  2. Locate yaml
  3. Locate exe
  4. Fail

Expected behaviour

Not to fail :)

Screenshots

n/a

Logs

[Errno 104] Connection reset by peer

Traceback (most recent call last):

  File "/usr/lib/python3.14/site-packages/lutris/util/jobs.py", line 30, in target
    result = self.function(*a, **kw)

  File "/usr/lib/python3.14/site-packages/lutris/installer/interpreter.py", line 329, in dispatch
    return method(params)

  File "/usr/lib/python3.14/site-packages/lutris/installer/commands.py", line 289, in merge
    self._killable_process(shutil.copy, src, dst)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.14/site-packages/lutris/installer/commands.py", line 537, in _killable_process
    with multiprocessing.Pool(1) as process:
         ~~~~~~~~~~~~~~~~~~~~^^^

  File "/usr/lib/python3.14/multiprocessing/context.py", line 119, in Pool
    return Pool(processes, initializer, initargs, maxtasksperchild,
                context=self.get_context())

  File "/usr/lib/python3.14/multiprocessing/pool.py", line 215, in __init__
    self._repopulate_pool()
    ~~~~~~~~~~~~~~~~~~~~~^^

  File "/usr/lib/python3.14/multiprocessing/pool.py", line 306, in _repopulate_pool
    return self._repopulate_pool_static(self._ctx, self.Process,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
                                        self._processes,
                                        ^^^^^^^^^^^^^^^^
    ...<3 lines>...
                                        self._maxtasksperchild,
                                        ^^^^^^^^^^^^^^^^^^^^^^^
                                        self._wrap_exception)
                                        ^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.14/multiprocessing/pool.py", line 329, in _repopulate_pool_static
    w.start()
    ~~~~~~~^^

  File "/usr/lib/python3.14/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
                  ~~~~~~~~~~~^^^^^^

  File "/usr/lib/python3.14/multiprocessing/context.py", line 300, in _Popen
    return Popen(process_obj)

  File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__
    super().__init__(process_obj)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^

  File "/usr/lib/python3.14/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
    ~~~~~~~~~~~~^^^^^^^^^^^^^

  File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 51, in _launch
    self.sentinel, w = forkserver.connect_to_new_process(self._fds)
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^

  File "/usr/lib/python3.14/multiprocessing/forkserver.py", line 106, in connect_to_new_process
    connection.answer_challenge(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
            wrapped_client, self._forkserver_authkey)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.14/multiprocessing/connection.py", line 970, in answer_challenge
    message = connection.recv_bytes(256)         # reject large message

  File "/usr/lib/python3.14/multiprocessing/connection.py", line 222, in recv_bytes
    buf = self._recv_bytes(maxlength)

  File "/usr/lib/python3.14/multiprocessing/connection.py", line 447, in _recv_bytes
    buf = self._recv(4)

  File "/usr/lib/python3.14/multiprocessing/connection.py", line 412, in _recv
    chunk = read(handle, to_read)

ConnectionResetError: [Errno 104] Connection reset by peer

Lutris log:
[INFO:2026-01-22 21:26:44,645:application]: Starting Lutris 0.5.19
[INFO:2026-01-22 21:26:44,675:startup]: "card1" is AMD Radeon RX 9070 XT (1002:7550 1da2:e491 amdgpu) Driver 25.3.3
[INFO:2026-01-22 21:28:18,532:files_box]: All files available
[INFO:2026-01-22 21:28:18,532:installerwindow]: All files are available, continuing install
[INFO:2026-01-22 21:28:18,533:installerwindow]: Launching installer commands
[INFO:2026-01-22 21:28:18,534:wine]: Creating a win64 prefix in /run/media/dave/KingstonA400SSD/Lutris/affinity-suite
[INFO:2026-01-22 21:28:18,534:wine]: Winepath: /home/dave/.local/share/lutris/runners/wine/ElementalWarriorWine-x86_64/bin/wine
[INFO:2026-01-22 21:28:31,419:wine]: win64 Prefix created in /run/media/dave/KingstonA400SSD/Lutris/affinity-suite
[WARNING:2026-01-22 21:28:31,757:battlenet]: The Battle.net source is unavailable because Google protobuf could not be loaded: No module named 'google'
[INFO:2026-01-22 21:28:31,824:application]: Starting Lutris 0.5.19
[INFO:2026-01-22 21:28:31,849:startup]: "card1" is AMD Radeon RX 9070 XT (1002:7550 1da2:e491 amdgpu) Driver 25.3.3
[ERROR:2026-01-22 21:28:31,887:jobs]: Error while completing task <function ScriptInterpreter._iter_commands.<locals>.dispatch at 0x7f074ff22610>: <class 'ConnectionResetError'> [Errno 104] Connection reset by peer
[ERROR:2026-01-22 21:28:31,890:interpreter]: Last install command failed, show error

Config

No response

Self-service

  • I'd be willing to fix this issue myself.

Activity

  1. assasin172 commented on Jan 23, 2026

    @assasin172

    +1 Same exact issue when trying to install via lutris on CachyOS

  2. CedricPerzik commented on Jan 27, 2026

    @CedricPerzik

    I have tried every possible install combination and also fail with the same [Errno 104] Connection Reset by Peer error.

    Also using CachyOS

    
      File "/usr/lib/python3.14/site-packages/lutris/util/jobs.py", line 30, in target
        result = self.function(*a, **kw)
    
      File "/usr/lib/python3.14/site-packages/lutris/installer/interpreter.py", line 329, in dispatch
        return method(params)
    
      File "/usr/lib/python3.14/site-packages/lutris/installer/commands.py", line 289, in merge
        self._killable_process(shutil.copy, src, dst)
        ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
    
      File "/usr/lib/python3.14/site-packages/lutris/installer/commands.py", line 537, in _killable_process
        with multiprocessing.Pool(1) as process:
             ~~~~~~~~~~~~~~~~~~~~^^^
    
      File "/usr/lib/python3.14/multiprocessing/context.py", line 119, in Pool
        return Pool(processes, initializer, initargs, maxtasksperchild,
                    context=self.get_context())
    
      File "/usr/lib/python3.14/multiprocessing/pool.py", line 215, in __init__
        self._repopulate_pool()
        ~~~~~~~~~~~~~~~~~~~~~^^
    
      File "/usr/lib/python3.14/multiprocessing/pool.py", line 306, in _repopulate_pool
        return self._repopulate_pool_static(self._ctx, self.Process,
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
                                            self._processes,
                                            ^^^^^^^^^^^^^^^^
        ...<3 lines>...
                                            self._maxtasksperchild,
                                            ^^^^^^^^^^^^^^^^^^^^^^^
                                            self._wrap_exception)
                                            ^^^^^^^^^^^^^^^^^^^^^
    
      File "/usr/lib/python3.14/multiprocessing/pool.py", line 329, in _repopulate_pool_static
        w.start()
        ~~~~~~~^^
    
      File "/usr/lib/python3.14/multiprocessing/process.py", line 121, in start
        self._popen = self._Popen(self)
                      ~~~~~~~~~~~^^^^^^
    
      File "/usr/lib/python3.14/multiprocessing/context.py", line 300, in _Popen
        return Popen(process_obj)
    
      File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__
        super().__init__(process_obj)
        ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
    
      File "/usr/lib/python3.14/multiprocessing/popen_fork.py", line 20, in __init__
        self._launch(process_obj)
        ~~~~~~~~~~~~^^^^^^^^^^^^^
    
      File "/usr/lib/python3.14/multiprocessing/popen_forkserver.py", line 51, in _launch
        self.sentinel, w = forkserver.connect_to_new_process(self._fds)
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
    
      File "/usr/lib/python3.14/multiprocessing/forkserver.py", line 106, in connect_to_new_process
        connection.answer_challenge(
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
                wrapped_client, self._forkserver_authkey)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    
      File "/usr/lib/python3.14/multiprocessing/connection.py", line 970, in answer_challenge
        message = connection.recv_bytes(256)         # reject large message
    
      File "/usr/lib/python3.14/multiprocessing/connection.py", line 222, in recv_bytes
        buf = self._recv_bytes(maxlength)
    
      File "/usr/lib/python3.14/multiprocessing/connection.py", line 447, in _recv_bytes
        buf = self._recv(4)
    
      File "/usr/lib/python3.14/multiprocessing/connection.py", line 412, in _recv
        chunk = read(handle, to_read)
    
    ConnectionResetError: [Errno 104] Connection reset by peer
    
    Lutris log:
    [INFO:2026-01-27 14:54:55,326:application]: Starting Lutris 0.5.19
    [INFO:2026-01-27 14:54:55,625:startup]: "card1" is NVIDIA RTX A5000 (10de:2231 1028:147e nvidia) Driver 590.48.01
    [INFO:2026-01-27 14:54:55,638:startup]: "card2" is AMD Ryzen 9 9900X 12-Core Processor (1002:13c0 1849:364e amdgpu) Driver None
    [INFO:2026-01-27 14:54:55,856:startup]: "card0" is NVIDIA RTX A5000 (10de:2231 1028:147e nvidia) Driver 590.48.01
    [INFO:2026-01-27 14:55:55,961:file_box]: Download completed
    [INFO:2026-01-27 14:55:55,961:files_box]: All files available
    [INFO:2026-01-27 14:55:55,961:installerwindow]: All files are available, continuing install
    [INFO:2026-01-27 14:55:55,961:installerwindow]: Launching installer commands
    [INFO:2026-01-27 14:55:55,962:wine]: Creating a win64 prefix in /home/ced/Games/affinity-suite
    [INFO:2026-01-27 14:55:55,962:wine]: Winepath: /home/ced/.local/share/lutris/runners/wine/ElementalWarriorWine-x86_64/bin/wine
    [INFO:2026-01-27 14:56:06,729:wine]: win64 Prefix created in /home/ced/Games/affinity-suite
    [INFO:2026-01-27 14:56:07,198:application]: Starting Lutris 0.5.19
    [INFO:2026-01-27 14:56:07,469:startup]: "card1" is NVIDIA RTX A5000 (10de:2231 1028:147e nvidia) Driver 590.48.01
    [INFO:2026-01-27 14:56:07,482:startup]: "card2" is AMD Ryzen 9 9900X 12-Core Processor (1002:13c0 1849:364e amdgpu) Driver None
    [INFO:2026-01-27 14:56:07,716:startup]: "card0" is NVIDIA RTX A5000 (10de:2231 1028:147e nvidia) Driver 590.48.01
    [ERROR:2026-01-27 14:56:07,761:jobs]: Error while completing task <function ScriptInterpreter._iter_commands.<locals>.dispatch at 0x7faa5f1a09e0>: <class 'ConnectionResetError'> [Errno 104] Connection reset by peer
    [ERROR:2026-01-27 14:56:07,763:interpreter]: Last install command failed, show error
    [INFO:2026-01-27 14:56:15,238:interpreter]: Cancelling installation of Affinity Suite
    [INFO:2026-01-27 14:58:23,429:file_box]: Download completed
    [INFO:2026-01-27 14:58:23,429:files_box]: All files available
    [INFO:2026-01-27 14:58:23,429:installerwindow]: All files are available, continuing install
    [INFO:2026-01-27 14:58:23,429:installerwindow]: Launching installer commands
    [INFO:2026-01-27 14:58:23,431:wine]: Creating a win64 prefix in /home/ced/Games/affinity-suite
    [INFO:2026-01-27 14:58:23,431:wine]: Winepath: /home/ced/.local/share/lutris/runners/wine/ElementalWarriorWine-x86_64/bin/wine
    [INFO:2026-01-27 14:58:34,204:wine]: win64 Prefix created in /home/ced/Games/affinity-suite
    [INFO:2026-01-27 14:58:34,687:application]: Starting Lutris 0.5.19
    [INFO:2026-01-27 14:58:34,951:startup]: "card1" is NVIDIA RTX A5000 (10de:2231 1028:147e nvidia) Driver 590.48.01
    [INFO:2026-01-27 14:58:34,963:startup]: "card2" is AMD Ryzen 9 9900X 12-Core Processor (1002:13c0 1849:364e amdgpu) Driver None
    [INFO:2026-01-27 14:58:35,168:startup]: "card0" is NVIDIA RTX A5000 (10de:2231 1028:147e nvidia) Driver 590.48.01
    [ERROR:2026-01-27 14:58:35,209:jobs]: Error while completing task <function ScriptInterpreter._iter_commands.<locals>.dispatch at 0x7faa5f1a19b0>: <class 'ConnectionResetError'> [Errno 104] Connection reset by peer
    [ERROR:2026-01-27 14:58:35,210:interpreter]: Last install command failed, show error```
    
  3. philippvonlovenberg commented on Jan 30, 2026

    @philippvonlovenberg

    I ran into the exact same issue.

    Environment

    • CachyOS
    • lutris 0.5.19-8 (installed via pacman)

    The problem occurs with Guide v1 (both scripts) as well as Guide v2.

    This Lutris forum thread pointed me in the right direction and was very helpful:
    https://forums.lutris.net/t/errno-104-connection-reset-by-peer/25137

    It appears to be a Lutris issue related to changes in Python 3.14, currently affecting at least CachyOS and possibly Fedora 43.

    Fix / Workaround

    I was able to fix the issue (Affinity Studio now works as expected) by editing /usr/bin/lutris :

    """Main entry point for Lutris"""
    import multiprocessing
    import gettext
    import locale
    import os
    import sys
    from os.path import dirname, normpath, realpath
    
    
    LAUNCH_PATH = dirname(realpath(__file__))
    multiprocessing.set_start_method("fork")
    
    

    After that, Lutris starts normally and the Guide v2 script works without issues.

    Error log (before fix)

    errorlog.txt

  4. thomasfrobieter commented on Feb 4, 2026

    @thomasfrobieter

    I had the same issue when installing Lutris via RPM on Fedora, no problems with the Flathub version of Lutris.

    Here is another workaround documented: https://forums.lutris.net/t/errno-104-connection-reset-by-peer/25137/7

  5. Gamedirection commented on Aug 22, 2026

    @Gamedirection
    Collaborator

    Thanks philippvonlovenberg for tracking down the actual cause, this is a confirmed Lutris bug from a Python 3.14 change, not something wrong with the Affinity install scripts. We've documented the fix on the wiki: https://github.com/seapear/AffinityOnLinux/wiki/Install-Guide-Lutris#install-fails-with-errno-104-connection-reset-by-peer

    Short version: if you installed Lutris via your distro's package manager (not Flatpak), edit /usr/bin/lutris and add multiprocessing.set_start_method("fork") right after the imports, then retry. If you're on the Flatpak build already, this fix doesn't apply, and you shouldn't be hitting this bug in the first place, let us know if you are.

    Marking this as resolved, please reopen if the fix doesn't work for your setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions