Bug 493153 - requestPassword: Failed to read password of "USER" because of error: 1
Summary: requestPassword: Failed to read password of "USER" because of error: 1
Status: RESOLVED WORKSFORME
Alias: None
Product: KRdp
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.1.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-15 11:27 UTC by Diego Garcia
Modified: 2025-11-14 03:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Garcia 2024-09-15 11:27:29 UTC
SUMMARY
If I try to run krdp through the "Remote Desktop" settings on plasma after adding a username and password to the user list, trying to connect will just have the client constantly waiting for a connection. 
Running `krdp` directly through the terminal, setting a username and password through the -u and -p flags, doesn't have this issue.

STEPS TO REPRODUCE
1. Go to "Remote Desktop" in settings
2. Add a username and password, then enable service
3. Try to log in with said username and password

OBSERVED RESULT
Client will be stuck waiting for connection forever, journalctl logs show error `requestPassword: Failed to read password of  "USER"  because of error:  1`

EXPECTED RESULT
Client would connect to remote desktop successfully, as does happen when running `krdp` directly from the terminal, setting username and password through the `-u` and `-p` flags

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.9-arch1-2 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630

ADDITIONAL INFORMATION
Journalctl logs:
```
Sep 15 13:06:30 diego-arch systemd[840]: Starting KRDP Server...
Sep 15 13:06:30 diego-arch systemd[840]: Started KRDP Server.
Sep 15 13:06:31 diego-arch krdpserver[2847]: org.kde.krdp: Initializing Freedesktop Portal Session
Sep 15 13:06:31 diego-arch krdpserver[2847]: org.kde.krdp: Listening for connections on QHostAddress(QHostAddress::Any) 3389
Sep 15 13:06:31 diego-arch krdpserver[2847]: requestPassword: Failed to read password of  "ammonium"  because of error:  1
Sep 15 13:06:31 diego-arch krdpserver[2847]: org.kde.krdp: Started Freedesktop Portal session
Sep 15 13:06:31 diego-arch krdpserver[2847]: kpipewire_vaapi_logging: VAAPI: VA-API NVDEC driver [direct backend] in use for device "/dev/dri/renderD128"
Sep 15 13:06:34 diego-arch krdpserver[2847]: org.kde.krdp: Closing Freedesktop Portal Session
Sep 15 13:11:02 diego-arch krdpserver[2847]: org.kde.krdp: Initializing Freedesktop Portal Session
Sep 15 13:11:02 diego-arch krdpserver[2847]: org.kde.krdp: Session setup completed, start processing...
Sep 15 13:11:02 diego-arch krdpserver[2847]: org.kde.krdp: Started Freedesktop Portal session
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:006] [2847:3566] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_CONTINUE_NEEDED [0x00090312]
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_COMPLETE_NEEDED [0x00090313]
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [ERROR][com.winpr.sspi.NTLM] - Error: Could not find user in SAM database
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [WARN][com.winpr.sspi] - CompleteAuthToken status SEC_E_INTERNAL_ERROR [0x80090304]
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [WARN][com.freerdp.core.nla] - CompleteAuthToken status SEC_E_INTERNAL_ERROR [0x80090304]
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [ERROR][com.freerdp.core.transport] - client authentication failure
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [ERROR][com.freerdp.core.peer] - peer_recv_callback: CONNECTION_STATE_INITIAL - rdp_server_accept_nego() fail
Sep 15 13:11:08 diego-arch krdpserver[2847]: [13:11:08:016] [2847:3566] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -1
Sep 15 13:11:08 diego-arch krdpserver[2847]: org.kde.krdp: Unable to check file descriptor
Sep 15 13:11:08 diego-arch krdpserver[2847]: org.kde.krdp: Closing session
Sep 15 13:11:08 diego-arch krdpserver[2847]: org.kde.krdp: Closing Freedesktop Portal Session
```
Comment 1 David Edmundson 2025-10-15 10:54:11 UTC
This is indicates an issue with kwallet.
Can you confirm this is working and not disabled via kwalletmanager and that your configured password is there.
Comment 2 Bug Janitor Service 2025-10-30 03:47:42 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-11-14 03:48:14 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.