pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

rsync operation stuck in jetbrains-gateway

Open JakkuSakura opened this issue 5 months ago • 3 comments

Describe the bug

This is a recurring issue. If I use rsync operation in jetbrains-gateway IDEs, it will stuck. If I manually run the rsync command shown with -vvv, the deployment will proceed.

If I run with ssh, no rsync stuck issue

To Reproduce

Steps to reproduce the behavior, please include where possible:

  1. connect jetbrains-gateway to a server, say use PyCharm
  2. run a rsync operation to upload some files to another server
  3. it will stuck
  • Operation code & usage
  # Set up rsync flags
  rsync_flags = ['-avizh']
  # Perform the rsync operation
  rsync(
      name=f'Sync {src_path} to {dest_path}',
      src=source_str,
      dest=str(dest_path),
      flags=rsync_flags
  )
  • Target system information JetBrains Getway Client -- MacOS Host -- Manjaro Linux Remoe -- Manjaro Linux

Expected behavior

It runs smoothly

Meta

  • Include output of pyinfra --support.
    If you are having issues with pyinfra or wish to make feature requests, please
    check out the GitHub issues at https://github.com/Fizzadar/pyinfra/issues .
    When adding an issue, be sure to include the following:

    System: Linux
      Platform: Linux-6.12.28-1-MANJARO-x86_64-with-glibc2.41
      Release: 6.12.28-1-MANJARO
      Machine: x86_64
    pyinfra: v3.3.1
      click: v8.1.8
      coverage: v7.6.12
      coverage: v7.6.12
      distro: v1.9.0
      gevent: v24.11.1
      jinja2: v3.1.5
      packaging: v24.2
      paramiko: v3.1.0
      pytest: v8.3.4
      pytest: v8.3.4
      pytest-cov: v6.0.0
      pytest-cov: v6.0.0
      python-dateutil: v2.9.0.post0
      pywinrm: v0.5.0
      pyyaml: v6.0.2
      pyyaml: v6.0.2
      setuptools: v75.8.1
      typeguard: v4.4.2
      typing-extensions: v4.12.2
    Executable: /home/jakku/Dev/SakuraCapital/SakuraInfra/.venv/bin/pyinfra
    Python: 3.12.9 (CPython, Clang 19.1.6 )
  • How was pyinfra installed (source/pip)? pip
  • Include pyinfra-debug.log (if one was created)
  • Consider including output with -vv and --debug.
Image

JakkuSakura avatar Jul 17 '25 08:07 JakkuSakura

Does it also get stuck if you run the pyinfra command outside of the IDE? Need to understand if the IDE is specifically the problem here or something else.

Fizzadar avatar Aug 06 '25 09:08 Fizzadar

It works all the time if running outside the IDE

JakkuSakura avatar Aug 07 '25 01:08 JakkuSakura

I suspect that it has a weird ssh-agent setup

JakkuSakura avatar Sep 10 '25 06:09 JakkuSakura