You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by bullett <ab...@nottinghamplayhouse.co.uk> on 2020/04/01 10:23:56 UTC

RDP printing not working, v1.1.0

Hi all.

I'm struggling to get Guacamole's print-to-PDF function to work on my
recently set up v1.1.0, Docker-based installation.

I'm using RDP connections to W8.1, W10 and Server 2012 hosts. The hosts see
the redirected printer in the RDP session, but if I try to print to it, the
session freezes for about 10-15 seconds, then times out. During that pause,
Guacd logs stop on 'Running gs'. No further logs are recorded until the
session is started again.

My installation is reverse proxied through nginx. To rule out interference
or misconfiguration, I reconfigured everything without the proxy and
connected to Guacamole directly via IP. I got the same results.

Can anyone suggest what to try next?
Thanks in advance.
Bullett

The in-browser session sees this message:
/"The connection has been closed because the server is taking too long to
respond. This is usually caused by network problems, such as a spotty
wireless signal, or slow network speeds. Please check your network
connection and try again or contact your system administrator."/

Guacd logs:
guacd[6]: INFO: Creating new client for protocol "rdp"guacd[6]: INFO:
Connection ID is "$c4e6a871-1bb4-436e-a96f-cb3332b9c0cd"guacd[16037]: INFO:    
Security mode: RDPguacd[16037]: INFO:     Resize method: noneguacd[16037]:
INFO:     User "@7e24e3b9-e5b5-4cdd-ac57-dad116bcac54" joined connection
"$c4e6a871-1bb4-436e-a96f-cb3332b9c0cd" (1 users now present)guacd[16037]:
INFO:     Loading keymap "base"guacd[16037]: INFO:     Loading keymap
"en-us-qwerty"guacd[16037]: INFO:     Connected to RDPDR 1.13 as client
0x0006guacd[16037]: INFO:     Connected to RDPDR 1.13 as client
0x0005guacd[16037]: INFO:     RDPDR user logged onguacd[16037]: INFO:    
Print job createdguacd[16037]: INFO:     Created PDF filter process
PID=16083guacd[16083]: INFO:     Running gsguacd[16037]: ERROR:    User is
not responding.guacd[16037]: INFO:     User
"@7e24e3b9-e5b5-4cdd-ac57-dad116bcac54" disconnected (0 users
remain)guacd[16037]: INFO:     Last user of connection
"$c4e6a871-1bb4-436e-a96f-cb3332b9c0cd" disconnectedguacd[6]: INFO: Creating
new client for protocol "rdp"guacd[6]: INFO: Connection ID is
"$6b13e391-862f-4222-b1fb-0599b4ab2422"guacd[16087]: INFO:     Security
mode: RDPguacd[16087]: INFO:     Resize method: noneguacd[16087]: INFO:    
User "@6239fa8b-44cf-49fa-aa44-86f7c45fc378" joined connection
"$6b13e391-862f-4222-b1fb-0599b4ab2422" (1 users now present)guacd[16087]:
INFO:     Loading keymap "base"guacd[16087]: INFO:     Loading keymap
"en-us-qwerty"guacd[16087]: INFO:     Connected to RDPDR 1.13 as client
0x0006guacd[16037]: WARNING:  Client did not terminate in a timely manner.
Forcibly terminating client and any child processes.guacd[6]: INFO:
Connection "$c4e6a871-1bb4-436e-a96f-cb3332b9c0cd" removed.guacd[16087]:
INFO:     Connected to RDPDR 1.13 as client 0x0005guacd[16087]: INFO:    
RDPDR user logged on
Guacamole logs:
11:31:39.714 [http-nio-8080-exec-76] INFO 
o.a.g.r.auth.AuthenticationService - User "guacadmin" successfully
authenticated from [172.16.0.250, 192.168.16.1, 192.168.16.5].11:31:42.185
[http-nio-8080-exec-60] INFO  o.a.g.environment.LocalEnvironment -
GUACAMOLE_HOME is "/root/.guacamole".11:31:42.316 [http-nio-8080-exec-73]
INFO  o.a.g.tunnel.TunnelRequestService - User "guacadmin" connected to
connection "3".11:32:26.854 [Thread-657] ERROR
o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Connection to guacd terminated
abnormally: Connection to guacd timed out.11:32:26.855 [Thread-657] INFO 
o.a.g.tunnel.TunnelRequestService - User "guacadmin" disconnected from
connection "3". Duration: 44539 milliseconds11:32:39.670
[http-nio-8080-exec-60] INFO  o.a.g.tunnel.TunnelRequestService - User
"guacadmin" connected to connection "3".
Windows host print log:
/"The document Print Document, owned by , failed to print on printer Remote
(redirected 5). Try to print the document again, or restart the print
spooler. Data type: NT EMF 1.008. Size of the spool file in bytes: 65536.
Number of bytes printed: 0. Total number of pages in the document: 1. Number
of pages printed: 0. Client computer: \\. Win32 error code returned by the
print processor: 1167. The device is not connected."/



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

Re: RDP printing not working, v1.1.0

Posted by bullett <ab...@nottinghamplayhouse.co.uk>.
Thanks for the heads up.
If there's any testing, or additional log reporting I can help with, let me
know.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: RDP printing not working, v1.1.0

Posted by Nick Couchman <vn...@apache.org>.
On Sun, Apr 12, 2020 at 8:58 AM bullett <ab...@nottinghamplayhouse.co.uk>
wrote:

> Does anyone have any suggestions of what I can look at?
> I've tinkered around with enough settings for Guacamole that I'm beginning
> to suspect my client machines. Is there anything I should be looking at in
> particular?
>
>
It's quite possible you're hitting this issue:

https://issues.apache.org/jira/browse/GUACAMOLE-997

It's being actively worked, but no definite solution, yet.

-Nick

Re: RDP printing not working, v1.1.0

Posted by bullett <ab...@nottinghamplayhouse.co.uk>.
Does anyone have any suggestions of what I can look at?
I've tinkered around with enough settings for Guacamole that I'm beginning
to suspect my client machines. Is there anything I should be looking at in
particular?



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: RDP printing not working, v1.1.0

Posted by bullett <ab...@nottinghamplayhouse.co.uk>.
Everything fails. I've tried all the common apps I use. (Word, Excel,
Notepad, Adobe Acrobat, Chrome...)

Another thing I've noticed is that after sending the print job, often (but
not always), the print dialog disappears, but I get no more screen updates.
However, I can still click and send commands - when I reconnect, things I
clicked have responded. Stuff like closing and opening windows, for example.

Communication at least seems to be going one way before the client
disconnects.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: RDP printing not working, v1.1.0

Posted by Nick Couchman <vn...@apache.org>.
On Wed, Apr 1, 2020 at 12:48 PM bullett <ab...@nottinghamplayhouse.co.uk>
wrote:

> Hi Nick
>
> Yes, gs is in the docker image I have running. Version 9.27.
>
> I'm using the official 'guacamole/guacamole' and 'guacamole/guacd' images,
> but I've also tested with oznu's popular all-in-one image and got the same
> results and errors.
>
>
Okay, my next question would be, does it happen for anything/everything a
user tries to print, or only some things?  So, can you successfully do a
test page or a small Notepad "Hello, world" document?  Or do those fail?

-Nick

Re: RDP printing not working, v1.1.0

Posted by bullett <ab...@nottinghamplayhouse.co.uk>.
Hi Nick

Yes, gs is in the docker image I have running. Version 9.27.

I'm using the official 'guacamole/guacamole' and 'guacamole/guacd' images,
but I've also tested with oznu's popular all-in-one image and got the same
results and errors.

B.



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: RDP printing not working, v1.1.0

Posted by Nick Couchman <vn...@apache.org>.
>
>
> guacd[6]: INFO: Creating new client for protocol "rdp"
> guacd[6]: INFO: Connection ID is "$c4e6a871-1bb4-436e-a96f-cb3332b9c0cd"
> guacd[16037]: INFO:     Security mode: RDP
> guacd[16037]: INFO:     Resize method: none
> guacd[16037]: INFO:     User "@7e24e3b9-e5b5-4cdd-ac57-dad116bcac54" joined connection "$c4e6a871-1bb4-436e-a96f-cb3332b9c0cd" (1 users now present)
> guacd[16037]: INFO:     Loading keymap "base"
> guacd[16037]: INFO:     Loading keymap "en-us-qwerty"
> guacd[16037]: INFO:     Connected to RDPDR 1.13 as client 0x0006
> guacd[16037]: INFO:     Connected to RDPDR 1.13 as client 0x0005
> guacd[16037]: INFO:     RDPDR user logged on
> guacd[16037]: INFO:     Print job created
> guacd[16037]: INFO:     Created PDF filter process PID=16083
> guacd[16083]: INFO:     Running gs
>
>
Is Ghostscript (gs) installed on your Guacamole Server system?  You can
check this by manually trying to run "gs" on the system where guacd is
installed.

-Nick