Re: Unable to get RDP working, after installing freerdp and binary packages

2018-08-10 Thread doyouhas



vnick wrote
> Okay, that should be completely compatible.  Can you confirm what version
> of guacd you have installed?

Sorry, should have mentioned that off the top0.9.14
*cat /var/log/syslog | grep "guacd"*
Aug 10 10:12:43 guacamole-vm guacd[16729]: Guacamole proxy daemon (guacd)
version 0.9.14 started



vnick wrote
> No, you don't want to do this via the init script, you want to actually
> run
> the binary like this.  You could modify the init script and add the
> startup
> options, but for debugging it's probably just easiest to start the binary
> directly - /usr/sbin/guacd -L debug -f, assuming that's where guacd is
> installed.  Could be in /usr/local/sbin, instead.  "which guacd" might
> help.

Wow I'm such a dunce.smh..sometimes I swear im half retarded

*sudo /usr/local/sbin/guacd -L debug -f*
guacd[17853]: INFO: Guacamole proxy daemon (guacd) version 0.9.14 started
guacd[17853]: DEBUG:Unable to bind socket to host ::1, port 4822: Address
family not supported by protocol
guacd[17853]: DEBUG:Successfully bound socket to host 127.0.0.1, port 4822
guacd[17853]: INFO: Listening on host 127.0.0.1, port 4822
guacd[17853]: INFO: Creating new client for protocol "rdp"
guacd[17853]: INFO: Connection ID is "$8ad9aa34-e7d1-4c5f-b947-8874936f8163"
guacd[17899]: WARNING:  Support for protocol "rdp" is not installed
guacd[17853]: INFO: Connection "$8ad9aa34-e7d1-4c5f-b947-8874936f8163"
removed.
guacd[17853]: INFO: Creating new client for protocol "rdp"
guacd[17853]: INFO: Connection ID is "$be3d4d0e-7829-4659-b0bd-2f2331d4a6b6"
guacd[17917]: WARNING:  Support for protocol "rdp" is not installed
guacd[17853]: INFO: Connection "$be3d4d0e-7829-4659-b0bd-2f2331d4a6b6"
removed.



vnick wrote
> Also, you mentioned this is installed in AWS, I think, and you said you've
> verified that you can make the RDP connection from the system running
> guacd
> to the xrdp system, correct?  That kind of eliminates the AWS security
> groups as the culprit, but probably worth verifying just to make sure.

Nah im testing configuration locally with VirtualBox with the intention of
pushing this to AWS. 



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


Unable to get RDP working, after installing freerdp and binary packages

2018-08-10 Thread doyouhas
Hello party people..I am really about to tear my eyes out dealing with
this issue.

I am working on deploying a guacamole setup to my AWS account, however,
after leaving instances running accidentally on a few occasions, I figure it
would be better to get the configuration down on a local network before
deploying on the cloud.


So.


I have two Xubuntu 18.03 VMs running in virtual box. One of them has xrdp
installed and the other guacamole server installed. During the build process
for guacamole server, I installed most of the optional dependencies,
including libfreerdp-dev and binary packages. When I ran the .configure
script, it informed me all protocols were enabled except telnet. After
deploying the war file to tomcat, however, guacamole kicks back a message
stating the connection has timed out. Now here is the super annoying
part.I know this is not an issue with rdp because I installed remmina
(multi protocol remote desktop tool, for any unfamiliar with ubuntu
packages) and was able to initiate an rdp connection from the guacamole
machine with zero issue. Same thing when I connect from my host machine to
the xrdp host, zero issue. I set the basic parameters in the
user-mapping.xml file: hostname, port, username, password. I wont be back to
my main machine for a few hours so I cannot post log details at the moment.
I can provide those shortly.

Any pointers in the right direction would be swell.thanks :





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


Re: Guacamole web application crashes when trying to use DB auth

2018-08-12 Thread doyouhas
Sorry, not sure why my properties and log excerpt didnt show up in my
postlets try that again

*guacamole.properties:*
# Hostname and port of guacamole proxy
guacd-hostname: localhost
guacd-port: 4822

# MySQL properties
mysql-hostname: 192.168.56.101
mysql-port: 3306
mysql-database: guacamole_db
mysql-username: guacamole_user
mysql-password: partytime
mysql-user-required: true

*catalina[date].log*
12-Aug-2018 14:34:14.001 SEVERE [http-nio-8080-exec-4]
com.sun.jersey.spi.container.ContainerResponse.logException Mapped exception
to response: 500 (Internal Server Error)
 org.apache.guacamole.rest.APIException
at
org.apache.guacamole.rest.RESTExceptionWrapper.invoke(RESTExceptionWrapper.java:202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at
com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
at
com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
at
com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
at
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)





--
Sent from: 

Guacamole view connection URLs

2018-08-17 Thread doyouhas
Hello,

I have another question for you guys. I am trying to integrate my
application with guacamole, providing a way for my customer to easily spin
up training environments for their students. I am creating a dashboard for
instructors to view all of their current registrations. Once a registration
has been verified, spin up an EC2 instance, and allow the students to
connect via guacamole. Ideally, I would like to insert a link into the
instructor dashboard with the URL to launch the guacamole viewer for said
instance, so the instructor does not need to keep multiple tabs open. 

I'm assuming the link to open any given connection is not set in the
database and is generated on demand? So if I wanted to grab that URL, I
would need a guac API call? I would appreciate if someone could tell me a
way to grab those links without going through the API, as my app is written
in python.

Thanks



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


"Communications link failure" Exception being thrown.... Dear god help

2018-10-23 Thread doyouhas
I have pasted the relevant contents of the catalina.out file to the link
below, as in the past some people have complained about code formatting.
When I began testing my application, I was actually running a mysql server
on an ec2 instance instead of running against an RDS instance. So my
database currently is residing in an Aurora serverless cluster. I haven't
experienced this exception before. That is the only major differences
between my earlier test configurations. I am really stuck here, I have no
idea where to begin troubleshooting this issue. Checked the syslog, no
relevant messages logged there. I get the classic "blank screen" situation
that I have posted about in the past. Any help on this would be greatly
appreciated.

--Zach

http://dpaste.com/0GJ63JE




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


Re: "Communications link failure" Exception being thrown.... Dear god help

2018-10-23 Thread doyouhas
I wish you had a little more faith in me than that. Yes I made sure I was
able to establish a connection with the cluster by using the mysql client
with the same credentials I provided to guacamole. I was able to get into
the console no problem.



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


JDBC connection string

2018-11-01 Thread doyouhas
Hey guys,

Can someone familiar with the source let me know where the JDBC connection
string is generated? I am still trying to troubleshoot my RDS connection
issue. Appreciate if someone could help point me in the right direction.



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


Re: "Communications link failure" Exception being thrown.... Dear god help

2018-10-29 Thread doyouhas
Alright guys. I have an update to this story. I put together a small java
class for the purpose of testing JDBC functionality on the EC2 instance in
question. I was able to execute a query successfully against my database
using the same MySQL jar that resides in my /etc/guacamole/lib folder. So I
am fairly confident now there is an issue with my configuration, the RDS
cluster is not the issue. I tried to do the bare minimum config according to
the docs. The current layout of my /etc/guacamole directory:

/etc/guacamole/lib/mysql-connector-java-8.0.12.jar
/etc/guacamole/extensions/guacamole-auth-jdbc-mysql-0.9.14.jar

My guacamole.properties file is as follows:

# Guacd settings
guacd-hostname: localhost
guacd-port: 4822

# MySQL properties
mysql-hostname: 
mysql-port: 3306
mysql-database: 
mysql-username: 
mysql-password: 



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


Re: "Error connecting to RDP server" Linux machine

2018-11-06 Thread doyouhas
I was able to get the instances to connect via guacamole by changing the
xrdp.ini file authentication to rdp instead of negotiate. Only problem now
is that the connection is stable for a few minutes before crapping the bed.
It will stay stuck in that loop of working, then disconnecting, until I
logout. Im using the latest guac verion, 0.9.14.



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


Re: "Error connecting to RDP server" Linux machine

2018-11-06 Thread doyouhas
Found the issue. Wasn't setting the requisite nginx proxy rules *face palm*.
Cannot believe I overlooked something so basic. Had you not brought it up, I
never would have thought to check that. You saved me from bashing my brains
dude. Seriously. Thank you, thank you, thank you. HTTPS is now working after
inserting those rules. Cheers.



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


Re: "Error connecting to RDP server" Linux machine

2018-11-06 Thread doyouhas
Bizarre. I was finallysomehowable to get a stable connection via
guacacmole, for about twenty minutes. As soon as I added another connection,
my original connection timed out and it went in a loop where one session
would be disconnected and the other would connect. What gives?



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


Re: "Error connecting to RDP server" Linux machine

2018-11-06 Thread doyouhas
Sorry if I didn't explain the situation more clearly. The connections are not
pointed at the same machine, they are pointed at different machines (ec2
instances). I have literally zero problem maintaining a consistent
connection connecting with a standard RDP client to the exact same instance.



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


Re: "Error connecting to RDP server" Linux machine

2018-11-06 Thread doyouhas
Spoke too soon. I'm back to the same problem of when I'm logged in with one
user, as soon as the next user logs in (to a totally different machine),
guacamole kicks the first user. What gives, this behavior is truly bizarre.



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


Re: "Error connecting to RDP server" Linux machine

2018-11-06 Thread doyouhas
Not seeing anything specifically related to HTTPS/fallback. Since you
mentioned that, however, I went ahead and disabled HTTPS on my nginx proxy
and that seems like it may be the culprit. I have a connection going right
now and it has been solid for the past five minutes. What settings do I need
to look at regarding HTTPS?



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


"Error connecting to RDP server" Linux machine

2018-11-06 Thread doyouhas
Hey guys,

I'm really confused as to why I am receiving the aforementioned error when
trying to initiate an RDP connection. I have tested that I am able to
connect to this machine when using the Microsoft Remote Desktop client on
Mac. However when trying to access that same instance using Guacamole, I get
that error thrown. Really confused hereany pointers in the right
direction would be appreciated. 



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


Re: Guacamole Connection Sharing: URL generation

2018-11-14 Thread doyouhas
Freaking sweet. Dude do you ever sleep? :D Thank you for the prompt reply!



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