我在 Ubuntu 22.04 系统上安装了 Xrdp。它运行良好,但在服务启动时,它的日志文件 xrdp.log 中确实会产生难以理解的错误消息。以下是从日志文件中摘录的,显示了一次这样的服务启动:
[20240109-16:12:43] [INFO ] starting xrdp with pid 462779
[20240109-16:12:43] [INFO ] address [0.0.0.0] port [3389] mode 1
[20240109-16:12:43] [INFO ] listening to port 3389 on 0.0.0.0
[20240109-16:12:43] [INFO ] setting send buffer to 4194304 bytes
[20240109-16:12:43] [INFO ] send buffer set to 8388608 bytes
[20240109-16:12:43] [INFO ] xrdp_listen_pp done
[20240109-16:12:43] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.171.161.23 port 64136
[20240109-16:12:43] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240109-16:12:43] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240109-16:12:43] [ERROR] libxrdp_force_read: bad header length 3
[20240109-16:12:43] [ERROR] [ITU-T X.224] Connection Sequence: CR-TPDU (Connection Request) failed
[20240109-16:12:43] [ERROR] xrdp_sec_incoming: xrdp_iso_incoming failed
[20240109-16:12:43] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[20240109-16:12:43] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
[20240109-16:12:43] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.171.161.23 port 64137
[20240109-16:12:43] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20240109-16:12:43] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20240109-16:12:43] [ERROR] libxrdp_force_read: bad header length 3
[20240109-16:12:43] [ERROR] [ITU-T X.224] Connection Sequence: CR-TPDU (Connection Request) failed
[20240109-16:12:43] [ERROR] xrdp_sec_incoming: xrdp_iso_incoming failed
[20240109-16:12:43] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[20240109-16:12:43] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
有 5 条错误消息,几行之后重复出现。每次启动时都会发生这种情况。我尝试LogLevel=DEBUG
在配置文件 xrdp.ini 中进行设置,但这似乎只能记录所有配置值 - 它无法进一步阐明错误消息。
我还尝试将日志级别设置为 TRACE。这导致 INFO 日志消息减少,并且不包含 ERROR 日志消息。相反,当我将日志级别恢复为 INFO 时,情况是一样的:INFO 日志消息减少,并且没有 ERROR 日志消息。第二次重新启动 xrdp 服务(未更改任何配置)导致 5 条 ERROR 日志消息部分恢复:只有一条块,而不是 2 条相同的块。
我尝试用 Google 搜索其中一些错误消息,但没有找到任何相关信息。我应该担心它们吗?我真的应该在 GitHub 上向 Xrdp 维护者提出这个问题吗?