Georgi Yankov created GUACAMOLE-1142:
----------------------------------------
Summary: Insufficient verbosity for FreeRDP logging failures.
Key: GUACAMOLE-1142
URL: https://issues.apache.org/jira/browse/GUACAMOLE-1142
Project: Guacamole
Issue Type: Improvement
Components: guacd
Affects Versions: 1.2.0
Environment: Ubuntu 20.04 LTS Server
Reporter: Georgi Yankov
I lost quite a bit of time today due to an issue. It would have been resolved
WAY faster, if the logging for the FreeRDP was more verbose.
Issue was as follow:
Tomcat9 from package manager, for the guacamole-client, v1.2, running under
TOMCAT:TOMCAT;
guacamole-server v1.2, running as systemd service under USER1:USER1.
Issue was, that i had set the USER1 home directory as `/var/lib/tomcat9`, which
was with TOMCAT:TOMCAT ownership.
As such, when trying to create a RDP session through the guacamole, it was
failing in the GUI with generic error, and in the `guacd` logs with the
following:
```
guacd[86198]: INFO: Creating new client for protocol "rdp"
guacd[86198]: INFO: Connection ID is "$7a42dbb9-c455-456d-b3c7-de3e55d996f1"
guacd[86239]: WARNING: FreeRDP initialization may fail: The current user's home
directory ("/var/lib/tomcat9") is not writable, but FreeRDP generally requires
a writable home directory for storage of configuration files and certificates.
guacd[86239]: INFO: Security mode: TLS
guacd[86239]: INFO: Resize method: none
guacd[86239]: INFO: User "@d9c76574-ff04-41eb-8f09-e045a2e202a4" joined
connection "$7a42dbb9-c455-456d-b3c7-de3e55d996f1" (1 users now present)
guacd[86239]: INFO: Loading keymap "base"
guacd[86239]: INFO: Loading keymap "en-us-qwerty"
guacd[86239]: ERROR: Error connecting to RDP server
guacd[86239]: INFO: User "@d9c76574-ff04-41eb-8f09-e045a2e202a4" disconnected
(0 users remain)
guacd[86239]: INFO: Last user of connection
"$7a42dbb9-c455-456d-b3c7-de3e55d996f1" disconnected
guacd[86198]: INFO: Connection "$7a42dbb9-c455-456d-b3c7-de3e55d996f1" removed.
```
As you can see, there is a simple `ERROR`, which means ABSOLUTELY nothing. Its
terribly descriptive.
But thats not all.
The main issue is, that the `WARNING` present, is also misleading. The cause of
the issue was in fact permissions, because the user under which `guacd` runs,
needs to have write permissions for its $HOME directory, to create the FreeRDP
`.config` folder.
Meaning, the `WARNING` should actually be `ERROR` and a bit more descriptive.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)