[ 
https://issues.apache.org/jira/browse/GUACAMOLE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17027534#comment-17027534
 ] 

Chase Lau commented on GUACAMOLE-506:
-------------------------------------

I've tried recreating this on the latest Guacamole build and can confirm 
something is up. I tested by changing `network.websocket.max-connections` in 
Firefox to 0 and then attempting to print. The print job will actually 
complete, but then I'm immediately disconnected from the session. Last few logs 
are here:

{{Jan 31 08:14:06 XXX server[1116]: 08:14:06.696 [http-nio-8080-exec-8] INFO 
o.a.g.tunnel.TunnelRequestService - User "chase" disconnected from connection 
"36". Duration: 69508 milliseconds}}
{{Jan 31 08:14:06 }}{{XXX}}{{ server[1116]: 08:14:06.704 
[http-nio-8080-exec-17] INFO o.a.g.tunnel.TunnelRequestService - User "chase" 
disconnected from connection "36". Duration: 69515 milliseconds}}
{{Jan 31 08:14:06 }}{{XXX}}{{ server[1116]: 08:14:06.704 [http-nio-8080-exec-8] 
ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel request failed: 
Connection to guacd timed out.}}
{{Jan 31 08:14:06 }}{{XXX}}{{ server[1116]: 08:14:06.955 
[http-nio-8080-exec-35] WARN o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel 
request rejected: No such tunnel.}}

> Printing does not work via HTTP, only via websocket
> ---------------------------------------------------
>
>                 Key: GUACAMOLE-506
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-506
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-client, RDP
>    Affects Versions: 0.9.13-incubating, 0.9.14
>            Reporter: Jonathan Hunter
>            Priority: Minor
>
> Printing does not work (for me, at least) when using guacamole via an Apache 
> reverse proxy *in HTTP mode*. I think that this counts as a bug - since 
> everything else i.e. normal interactive use of guacamole RDP/VNC/SSH/etc. 
> sessions work fine in this configuration, i.e. without websockets, just http 
> reverse proxying.
>   
>  The following two steps got printing going for me, but I think printing 
> _should_ work via HTTP...
>  * Install Apache's mod_proxy_wstunnel (on Debian this is 'sudo a2enmod 
> proxy_wstunnel')
>  * Add a line in Apache's config to websocket-proxy the relevant URL. (Note 
> that this line must come *before* the config entry that proxies the rest of 
> guacamole, since Apache's ProxyPass command operates on a first match wins 
> basis.)
>  
>  (I did look at Chapter 4 of the documentation, and in particular the 
> 'Proxying with websocket' section, but I found I did not need the 
> ProxyPassReverse statement shown there; nor did I need to place it within a 
> <Location> section, in my config at least.)
>   
>  My Apache config now looks like this:
> {quote}{{        ProxyPass /remoteaccess/websocket-tunnel        
> {color:#d04437}ws{color}://docker.host:5678/guacamole/websocket-tunnel}}
>  {{        ProxyPass /remoteaccess/                       {color:#d04437} 
> {color}[{color:#d04437}http{color}://docker.host:5678/guacamole/]}}
> {quote}
>  
>  and printing now works perfectly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to