Re: [SSH] Guacamole only allows <1MB file uploads

2017-02-15 Thread Mike Jumper
On Wed, Feb 15, 2017 at 7:15 PM, prannon  wrote:
>
> I do use nginx to proxy my Guacamole. That was the issue!
>
> Resolved by adding the following to my /etc/nginx/conf.d/domain.conf file.
>

Nabble apparently stripped out the Nginx config portion from its email
to the list. For the sake of those subscribed normally (and for the
sake of the mail archives) here is the portion which was stripped:

server {

listen 80;
...
...
client_max_body_size 1M;

location {
otherstuff
}

}

For reference:

http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size

- Mike


Re: [SSH] Guacamole only allows <1MB file uploads

2017-02-15 Thread prannon
I do use nginx to proxy my Guacamole. That was the issue!

Resolved by adding the following to my /etc/nginx/conf.d/domain.conf file.






--
View this message in context: 
http://apache-guacamole-incubating-users.2363388.n4.nabble.com/SSH-Guacamole-only-allows-1MB-file-uploads-tp410p412.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at 
Nabble.com.


Re: [SSH] Guacamole only allows <1MB file uploads

2017-02-15 Thread Mike Jumper
On Wed, Feb 15, 2017 at 6:54 PM, prannon  wrote:

> Hello,
>
> Guacamole only allows for files less than 1 mb to be uploaded over an SSH
> connection in my setup. Anything over 1 mb gives me a permissions error. I
> have been unable to find any permissions errors in my tomcat log, in debug
> output from guacd, or in my SSH secure log when set to debug.
>
> I'm using the MySQL + LDAP authentication plugins, and the behavior seems
> to
> be present regardless of whether these plugins are enabled or not, used in
> combination, or not.
>
> My current theory is that there is some sort of file size limitation in
> tomcat that is preventing me from being able to upload files larger than a
> certain size, but I'm not sure what that limit specification is or how to
> modify it. My attempts to modify any sort of filesize limit via web.xml
> files have been unsuccessful so far.
>
> (referring to this as a guide on file size limitations:
> http://tecadmin.net/increase-tomcat-upload-file-size-limit/)
>
>
Yes, that's one of the possibilities, though I believe Tomcat's default
limit is 2 MB.

If you're using Nginx to proxy the Guacamole connection, that's a more
likely cause, as it's default upload limit is 1 MB, which matches what
you're seeing exactly.

Other than that, Guacamole itself imposes no such limits.

- Mike


[SSH] Guacamole only allows <1MB file uploads

2017-02-15 Thread prannon
Hello, 

Guacamole only allows for files less than 1 mb to be uploaded over an SSH
connection in my setup. Anything over 1 mb gives me a permissions error. I
have been unable to find any permissions errors in my tomcat log, in debug
output from guacd, or in my SSH secure log when set to debug. 

I'm using the MySQL + LDAP authentication plugins, and the behavior seems to
be present regardless of whether these plugins are enabled or not, used in
combination, or not. 

My current theory is that there is some sort of file size limitation in
tomcat that is preventing me from being able to upload files larger than a
certain size, but I'm not sure what that limit specification is or how to
modify it. My attempts to modify any sort of filesize limit via web.xml
files have been unsuccessful so far. 

(referring to this as a guide on file size limitations:
http://tecadmin.net/increase-tomcat-upload-file-size-limit/)

Looking to the guacamole forums for guidance and consultation. Let me know
if any specific information is needed. Please advise, and thanks in advance!

Currently using 0.9.10-incubating. Additional details below:


cat /etc/redhat-release 
CentOS release 6.8 (Final)

uname -a
Linux hostname 2.6.32-642.13.1.el6.i686 #1 SMP Wed Jan 11 20:21:04 UTC 2017
i686 i686 i386 GNU/Linux

rpm -qa | grep tomcat
tomcat-el-2.2-api-7.0.73-1.el6.noarch
tomcat-jsp-2.2-api-7.0.73-1.el6.noarch
tomcat-7.0.73-1.el6.noarch
tomcat-servlet-3.0-api-7.0.73-1.el6.noarch
tomcat-lib-7.0.73-1.el6.noarch


-Prannon



--
View this message in context: 
http://apache-guacamole-incubating-users.2363388.n4.nabble.com/SSH-Guacamole-only-allows-1MB-file-uploads-tp410.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at 
Nabble.com.


Re: Problem guacd timed out.

2017-02-15 Thread Mike Jumper
As both guacd and the web application are reporting that the other is not
responding, the most likely explanation from my experience would be:

1) There is something on the network between the browser and the Guacamole
server which is eating/buffering the data stream (such as a proxy or
certain virus scanning software)
2) guacd is waiting for a response from the client before sending further
data
3) With the client waiting for guacd, and guacd waiting for the client,
both timeout at the same time.

Do you know if there might be a proxy between the browser in question and
the Guacamole server?

- Mike


On Wed, Feb 15, 2017 at 9:46 AM, Jorge Camara 
wrote:

> Hi  people.
>
> I did not receive any response and would appreciate it if I had.
> I would also like to know if anyone has at least been through this.
>
> Best Regards.
> Jorge
>
>
>
> 2017-02-06 10:08 GMT-02:00 Jorge Camara :
>
>> Hi,
>>
>> I made a new install of Ubuntu 16.04.1 LTS and Guacamole
>> 0.9.11-incubating released on February 3rd.
>>
>> Since the last version, I have occasionally had trouble connecting to
>> some servers at random.
>>
>> An example is as we can see below. I clicked to connect to a server and
>> it stays in this screen:
>>
>>
>> [image: Imagem inline 1]
>>
>> After a while this screen appears:
>>
>> [image: Imagem inline 2]
>>
>>
>> If I click on "reconnect" the connection will go normally. But if I wait
>> a few minutes and try to reconnect to the same server, the same problems
>> happen again.
>>
>> Below is the output of the guacd log in debug mode and tomcat8.
>>
>> I'm just using tomcat8, with mysql. Apache or nginx is not installed.
>>
>>
>>
>> Output of /var/log/syslog:
>>
>> Feb  6 09:40:41 ubuntuimg guacd[395]: Creating new client for protocol
>> "rdp"
>> Feb  6 09:40:41 ubuntuimg guacd[395]: Connection ID is
>> "$5dd567e7-f7f0-4011-8c6a-c442d45266e3"
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "console" omitted. Using
>> default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "console-audio" omitted.
>> Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "ignore-cert" omitted.
>> Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "disable-auth" omitted.
>> Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: No security mode specified.
>> Defaulting to RDP.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: User resolution is 1440x804 at 96
>> DPI
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "dpi" omitted. Using
>> default value of 96.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Using resolution of 1440x804 at 96
>> DPI
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "read-only" omitted.
>> Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-wallpaper"
>> omitted. Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-theming" omitted.
>> Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-font-smoothing"
>> omitted. Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-full-window-drag"
>> omitted. Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter
>> "enable-desktop-composition" omitted. Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-menu-animations"
>> omitted. Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "color-depth" omitted.
>> Using default value of 16.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "disable-audio" omitted.
>> Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-printing"
>> omitted. Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-drive" omitted.
>> Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "drive-path" omitted.
>> Using default value of "".
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "create-drive-path"
>> omitted. Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-sftp" omitted.
>> Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-hostname" omitted.
>> Using default value of "wadc02.webaula.dc".
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-port" omitted.
>> Using default value of "22".
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-username" omitted.
>> Using default value of "".
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-password" omitted.
>> Using default value of "".
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-passphrase"
>> omitted. Using default value of "".
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Resize method: none
>> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-audio-input"
>> omitted. Using default value of 0.
>> Feb  6 09:40:41 ubuntuimg guacd[408]: User 
>> 

Re: Problem guacd timed out.

2017-02-15 Thread Jorge Camara
Hi  people.

I did not receive any response and would appreciate it if I had.
I would also like to know if anyone has at least been through this.

Best Regards.
Jorge



2017-02-06 10:08 GMT-02:00 Jorge Camara :

> Hi,
>
> I made a new install of Ubuntu 16.04.1 LTS and Guacamole 0.9.11-incubating
> released on February 3rd.
>
> Since the last version, I have occasionally had trouble connecting to some
> servers at random.
>
> An example is as we can see below. I clicked to connect to a server and it
> stays in this screen:
>
>
> [image: Imagem inline 1]
>
> After a while this screen appears:
>
> [image: Imagem inline 2]
>
>
> If I click on "reconnect" the connection will go normally. But if I wait a
> few minutes and try to reconnect to the same server, the same problems
> happen again.
>
> Below is the output of the guacd log in debug mode and tomcat8.
>
> I'm just using tomcat8, with mysql. Apache or nginx is not installed.
>
>
>
> Output of /var/log/syslog:
>
> Feb  6 09:40:41 ubuntuimg guacd[395]: Creating new client for protocol
> "rdp"
> Feb  6 09:40:41 ubuntuimg guacd[395]: Connection ID is
> "$5dd567e7-f7f0-4011-8c6a-c442d45266e3"
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "console" omitted. Using
> default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "console-audio" omitted.
> Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "ignore-cert" omitted.
> Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "disable-auth" omitted.
> Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: No security mode specified.
> Defaulting to RDP.
> Feb  6 09:40:41 ubuntuimg guacd[408]: User resolution is 1440x804 at 96 DPI
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "dpi" omitted. Using
> default value of 96.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Using resolution of 1440x804 at 96
> DPI
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "read-only" omitted. Using
> default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-wallpaper"
> omitted. Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-theming" omitted.
> Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-font-smoothing"
> omitted. Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-full-window-drag"
> omitted. Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter
> "enable-desktop-composition" omitted. Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-menu-animations"
> omitted. Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "color-depth" omitted.
> Using default value of 16.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "disable-audio" omitted.
> Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-printing" omitted.
> Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-drive" omitted.
> Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "drive-path" omitted.
> Using default value of "".
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "create-drive-path"
> omitted. Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-sftp" omitted.
> Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-hostname" omitted.
> Using default value of "wadc02.webaula.dc".
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-port" omitted. Using
> default value of "22".
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-username" omitted.
> Using default value of "".
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-password" omitted.
> Using default value of "".
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "sftp-passphrase" omitted.
> Using default value of "".
> Feb  6 09:40:41 ubuntuimg guacd[408]: Resize method: none
> Feb  6 09:40:41 ubuntuimg guacd[408]: Parameter "enable-audio-input"
> omitted. Using default value of 0.
> Feb  6 09:40:41 ubuntuimg guacd[408]: User 
> "@3f701d9c-192d-4f76-aa82-dbe1fee96e31"
> joined connection "$5dd567e7-f7f0-4011-8c6a-c442d45266e3" (1 users now
> present)
> Feb  6 09:40:41 ubuntuimg guacd[408]: Recording of session will be saved
> to "/etc/guacamole/rec//wadc02.11".
> Feb  6 09:40:41 ubuntuimg guacd[408]: Loading keymap "base"
> Feb  6 09:40:41 ubuntuimg guacd[408]: Loading keymap "en-us-qwerty"
> Feb  6 09:41:11 ubuntuimg guacd[408]: User is not responding.
> Feb  6 09:41:11 ubuntuimg guacd[408]: User 
> "@3f701d9c-192d-4f76-aa82-dbe1fee96e31"
> disconnected (0 users remain)
> Feb  6 09:41:11 ubuntuimg guacd[408]: Last user of connection
> "$5dd567e7-f7f0-4011-8c6a-c442d45266e3" disconnected
>
>
> Output /var/log/tomcat8/catalina.out
>
> 09:40:41.223 [http-nio-8080-exec-9] INFO  o.a.g.tunnel.TunnelRequestService
> - User "jorge" connected to connection