Issue recording RDP sessions

Hello, I’ve been testing features like copy/paste and file transfers on RDP sessions, however there seems to be an issue with retrieving video logs.

This is what it shows when I try to view a previous RDP session (with Firefox) and when trying another browser like Chrome the same issue, however the display is a bit different (despite the video box being visible, it won’t play at all)

When checking /var/log/trasa.log I get these messages, the timestamp is consistent with the time the session was started.

time="2021-04-28T14:23:16+01:00" level=info msg="trasa: reading from guacd terminated.<nil>" func=github.com/seknox/trasa/server/accessproxy/rdpproxy.catchInitialErrors.func1 file="rdpproxy/session.go:274"
time="2021-04-28T14:23:16+01:00" level=info msg="trasa: reading from client terminated.<nil>" func=github.com/seknox/trasa/server/accessproxy/rdpproxy.catchInitialErrors.func2 file="rdpproxy/session.go:297"
time="2021-04-28T14:23:16+01:00" level=info msg="trasa: IO goroutines are terminated.<nil>" func=github.com/seknox/trasa/server/accessproxy/rdpproxy.catchInitialErrors file="rdpproxy/session.go:305"
time="2021-04-28T14:26:14+01:00" level=error msg="could not convert guac file to m4v. Error: No such container: guacd\n: exit status 1" func=github.com/seknox/trasa/server/accessproxy/rdpproxy.logSession file="rdpproxy/newguac.go:120"
time="2021-04-28T14:27:03+01:00" level=error msg="open /var/trasa/sessions/trasa-guac-logs/8c55173e-ef60-49af-9b6b-0dd7d653127f/2021/4/28/501fe663-65cb-4252-b19e-759c87256a29.guac: no such file or directory" func=github.com/seknox/trasa/server/api/logs.GetRawLog file="logs/hndlSessionLog.go:88"
time="2021-04-28T14:27:03+01:00" level=error msg="open /var/trasa/sessions/trasa-guac-logs/8c55173e-ef60-49af-9b6b-0dd7d653127f/2021/4/28/501fe663-65cb-4252-b19e-759c87256a29.guac: no such file or directory" func=github.com/seknox/trasa/server/api/logs.GetVideoLog file="logs/hndlSessionLog.go:39"

@sshah I checked /etc/trasa/config/config.toml and verified that on [proxy] section, guacdEnabled is set to false

Also I am not running docker

Hi,

time="2021-04-28T14:26:14+01:00" level=error msg="could not convert guac file to m4v. Error: No such container: guacd\n: exit status 1" func=github.com/seknox/trasa/server/accessproxy/rdpproxy.logSession file="rdpproxy/newguac.go:120"

This error suggests that guacd container is not present. Seems like you are testing it on Apache guacamole’s guacd and not with guacd that we provide. Guacenc is required to record the proxy session video. Currently, TRASA server expects and invokes guacenc converter command by calling guacd container. The docker image we provide contains both guacd and guacenc. Can you confirm that this is the case?

I checked /etc/trasa/config/config.toml and verified that on [proxy] section, guacdEnabled is set to false

If this configuration is set to true then TRASA server will not start if guacd is not running. So not related to your current issue.

Yes I am not running docker at this point, due to the no internet on the client internal network, then I suppose the alternative would be running Apache Guacamole as a http service and see how it goes?

Which will require me to figure out how to run Apache Guacamole pointing to TRASA

Umm I’m not sure what you want to achieve with this !?

Didn’t loading the docker image from exported tar file work for you?
Since we have programmed TRASA server to work best with guacd container that we maintain, you might also encounter other incompatibilities down the road so it’s better to run guacd container.

Was trying to think in a workaround, but guess I will run the guacd container then.
Will give feedback asap

So I saved the image on my work machine with the following command docker save -o guacd.tar seknox/guacd:latest and exported to the linux server

next I have loaded the image like this docker load guacd.tar on the server, now with the docker create command I am in doubt about the parameters I should pass

Once you’ve loaded with docker load, then you run it as

sudo docker run -d --rm --name guacd \
        -p 127.0.0.1:4822:4822 \
        -v /tmp/trasa/accessproxy/guac:/tmp/trasa/accessproxy/guac \
        --user root  seknox/guacd:latest

I get this error :

$ sudo docker run -d --rm --name guacd -p 127.0.0.1:4822:4822 -v /tmp/trasa/accessproxy/guac:/tmp/trasa/accessproxy/guac --user root seknox/guacd:v0.0.1
Unable to find image 'seknox/guacd:v0.0.1' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: dial udp [::1]:53: socket: address family not supported by protocol.
See 'docker run --help'.

hmm nevermind, I had copied that from the installation guide, without noticing the image tag, it is now running, will make some tests and will get back with feedback asap.

Thank you very much

@sshah after stopping the guacd service running with guacamole, I ran the docker command to start the container, and restarted TRASA server, and it went smoothly , thank you very much for the support.

1 Like

Glad that it worked! :+1:

hi @sshah can u help me too?
my RDP session wont logging

this is trasa log
time=“2021-08-13T10:34:46+07:00” level=error msg=“could not delete guac file: remove /tmp/trasa/accessproxy/guac/094d4b34-5548-4c1f-8b21-a7d4478b7bf0.guac: no such file or directory” func=github.com/seknox/trasa/server/accessproxy/rdpproxy.GWStore.uploadSessionLog file=“rdpproxy/store.go:45”
time=“2021-08-13T10:34:46+07:00” level=error msg=“could not convert m4v file to mp4. ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers\n built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)\n configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n libavutil 56. 31.100 / 56. 31.100\n libavcodec 58. 54.100 / 58. 54.100\n libavformat 58. 29.100 / 58. 29.100\n libavdevice 58. 8.100 / 58. 8.100\n libavfilter 7. 57.100 / 7. 57.100\n libavresample 4. 0. 0 / 4. 0. 0\n libswscale 5. 5.100 / 5. 5.100\n libswresample 3. 5.100 / 3. 5.100\n libpostproc 55. 5.100 / 55. 5.100\n/tmp/trasa/accessproxy/guac/094d4b34-5548-4c1f-8b21-a7d4478b7bf0.guac.m4v: No such file or directory\n: exit status 1” func=github.com/seknox/trasa/server/accessproxy/rdpproxy.logSession file=“rdpproxy/newguac.go:120”

im using guacd docker… was using 0.0.1 but i tried to lates still have same problem
this is docker logs
guacd[7]: INFO: Guacamole proxy daemon (guacd) version 1.3.0 started
guacd[7]: INFO: Listening on host 0.0.0.0, port 4822
guacd[7]: INFO: Creating new client for protocol “rdp”
guacd[7]: INFO: Connection ID is “$b95e7674-2af3-4dfb-9f02-9e979eacf28e”
guacd[9]: INFO: Security mode: NLA
guacd[9]: INFO: Resize method: none
guacd[9]: INFO: User “@63e7294a-73f8-4d65-907b-30ec2af98435” joined connection “$b95e7674-2af3-4dfb-9f02-9e979eacf28e” (1 users now present)
guacd[9]: ERROR: Unable to create directory “/tmp/trasa/accessproxy/guac/shared/6f80735f-c189-4697-ace9-f9216f523611”: Permission denied
guacd[9]: ERROR: Creation of recording failed: Permission denied
guacd[9]: INFO: Loading keymap “base”
guacd[9]: INFO: Loading keymap “en-us-qwerty”
guacd[9]: INFO: Connected to RDPDR 1.13 as client 0x0003
guacd[9]: INFO: Connected to RDPDR 1.13 as client 0x0002
guacd[9]: INFO: RDPDR user logged on
guacd[9]: ERROR: File open refused (-2): “”
guacd[9]: ERROR: File open refused (-2): “”
guacd[9]: ERROR: File open refused (-2): “”
guacd[9]: INFO: User “@63e7294a-73f8-4d65-907b-30ec2af98435” disconnected (0 users remain)
guacd[9]: INFO: Last user of connection “$b95e7674-2af3-4dfb-9f02-9e979eacf28e” disconnected
guacd[9]: INFO: Internal RDP client disconnected
guacd[7]: INFO: Connection “$b95e7674-2af3-4dfb-9f02-9e979eacf28e” removed.

fixed it thanks :smiley: it was my docker

1 Like

Iam also experiencing the same error. The video is not getting played.

the guacd service is running. Kindly let me know to fix this issue.