[GH-ISSUE #391] Web RDP to Linux XRDP fails: "read RDCleanPath request: not enough bytes" and distorted graphics #7942

Closed
opened 2026-07-12 11:28:33 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Mitch187 on GitHub (Jun 26, 2026).
Original GitHub issue: https://github.com/fosrl/newt/issues/391

Describe the Bug

am testing the Web RDP feature in Pangolin. While connecting to Windows 11 machines works flawlessly, connecting to Linux clients via XRDP (configured with Pipewire) results in connection and rendering failures.

There are two behaviors observed:

  1. Most of the time (~90%): The connection fails during the initial handshake. The web UI displays the error: read RDCleanPath request: not enough bytes (see attached image rdp - meistens.png).

  2. Occasionally (~10%): The connection is established, but the graphical interface is heavily distorted and unreadable (looks like a misrendered XRDP login screen). If I attempt to enter my credentials blindly in this state, authentication fails (see attached image rdp - manchmal.png).

Note: The graphical distortion seems heavily related to the already reported issue #3266 (RDP image distortion), but I wanted to provide the additional context regarding the RDCleanPath error specifically when targeting Linux/XRDP.

Image Image

Environment

Pangolin Version: 1.19.1

Target OS: Linux Ubuntu XFCE on an LXC Container (with XRDP and Pipewire), working from Windows MSTSC-Client (lokal network)

Target Protocol: RDP

Client OS & Browser: Windows 11 / Chrome 126

To Reproduce

  1. Set up a Linux client with XRDP (and Pipewire for audio).

  2. Configure a Pangolin service/resource to point to this Linux client via RDP (port 3389).

  3. Attempt to connect via the Pangolin Web RDP interface.

  4. Observe the read RDCleanPath request: not enough bytes error.

  5. Retry multiple times until a connection eventually succeeds, and observe the heavily distorted graphical output.

Expected Behavior

Pangolin's Web RDP client should successfully negotiate the RDCleanPath handshake with XRDP and render the Linux desktop/XRDP login screen without distortion, matching the seamless experience provided for Windows 11 hosts.

Originally created by @Mitch187 on GitHub (Jun 26, 2026). Original GitHub issue: https://github.com/fosrl/newt/issues/391 ### Describe the Bug am testing the Web RDP feature in Pangolin. While connecting to Windows 11 machines works flawlessly, connecting to Linux clients via XRDP (configured with Pipewire) results in connection and rendering failures. There are two behaviors observed: 1. Most of the time (~90%): The connection fails during the initial handshake. The web UI displays the error: read RDCleanPath request: not enough bytes (see attached image rdp - meistens.png). 2. Occasionally (~10%): The connection is established, but the graphical interface is heavily distorted and unreadable (looks like a misrendered XRDP login screen). If I attempt to enter my credentials blindly in this state, authentication fails (see attached image rdp - manchmal.png). _Note: The graphical distortion seems heavily related to the already reported issue #3266 (RDP image distortion), but I wanted to provide the additional context regarding the RDCleanPath error specifically when targeting Linux/XRDP._ <img width="1110" height="1445" alt="Image" src="https://github.com/user-attachments/assets/8c09b393-53ea-42c7-bb40-b6b66d6b5f6c" /> <img width="2690" height="1622" alt="Image" src="https://github.com/user-attachments/assets/8fce4a70-8a02-486b-bd2d-72b7b75fc96a" /> ### Environment Pangolin Version: 1.19.1 Target OS: Linux Ubuntu XFCE on an LXC Container (with XRDP and Pipewire), working from Windows MSTSC-Client (lokal network) Target Protocol: RDP Client OS & Browser: Windows 11 / Chrome 126 ### To Reproduce 1. Set up a Linux client with XRDP (and Pipewire for audio). 2. Configure a Pangolin service/resource to point to this Linux client via RDP (port 3389). 3. Attempt to connect via the Pangolin Web RDP interface. 4. Observe the read RDCleanPath request: not enough bytes error. 5. Retry multiple times until a connection eventually succeeds, and observe the heavily distorted graphical output. ### Expected Behavior Pangolin's Web RDP client should successfully negotiate the RDCleanPath handshake with XRDP and render the Linux desktop/XRDP login screen without distortion, matching the seamless experience provided for Windows 11 hosts.
Author
Owner

@Mitch187 commented on GitHub (Jun 26, 2026):

Sorry, an pangolin problem. Post there.

<!-- gh-comment-id:4808951683 --> @Mitch187 commented on GitHub (Jun 26, 2026): Sorry, an pangolin problem. Post there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#7942