guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Youhei Ootsuki <youhei.oots...@gmail.com>
Subject Re: what is java.lang.NullPointerException
Date Wed, 25 Oct 2017 08:07:59 GMT
Hi, Jumper


Thank you very much for your email.


The log where "HTTP 500 ERROR" occurred is as follows



----- syslog

Oct 25 15:21:54 two guacd[6247]: Creating new client for protocol "ssh"
Oct 25 15:21:54 two guacd[6247]: Connection ID is
"$3b5e60da-2291-48da-a7d6-543b555116ce"
Oct 25 15:21:54 two guacd[12638]: User
"@7ce6e1e7-8a48-4502-959a-5f41e3d96c1e" joined connection
"$3b5e60da-2291-48da-a7d6-543b555116ce" (1 users now present)
Oct 25 15:21:57 two guacd[12638]: SSH connection successful.
Oct 25 15:22:24 two guacd[12638]: User is not responding.
Oct 25 15:22:24 two guacd[12638]: User
"@7ce6e1e7-8a48-4502-959a-5f41e3d96c1e" disconnected (0 users remain)
Oct 25 15:22:24 two guacd[12638]: Last user of connection
"$3b5e60da-2291-48da-a7d6-543b555116ce" disconnected
Oct 25 15:22:24 two guacd[12638]: SSH connection ended.
Oct 25 15:22:25 two guacd[6247]: Connection
"$3b5e60da-2291-48da-a7d6-543b555116ce" removed.


----- catalina.out

15:21:33.091 [ajp-nio-0.0.0.0-8009-exec-7] WARN
o.a.g.r.auth.AuthenticationService - Authentication attempt from
221.244.32.154 for user "youhei-otsuki" failed.
15:21:42.037 [ajp-nio-0.0.0.0-8009-exec-1] INFO
o.a.g.r.auth.AuthenticationService - User "youhei-otsuki" successfully
authenticated from 221.244.32.154.
15:21:54.516 [ajp-nio-0.0.0.0-8009-exec-1] INFO
o.a.g.tunnel.TunnelRequestService - User "youhei-otsuki" connected to
connection "Catalyst 3750 V2(ssh)".
15:21:54.516 [ajp-nio-0.0.0.0-8009-exec-1] INFO
o.a.g.t.h.RestrictedGuacamoleHTTPTunnelServlet - Using HTTP tunnel (not
WebSocket). Performance may be sub-optimal.
15:22:16.441 [ajp-nio-0.0.0.0-8009-exec-1] INFO
o.a.g.tunnel.TunnelRequestService - User "youhei-otsuki" disconnected from
connection "Catalyst 3750 V2(ssh)". Duration: 21925 milliseconds
15:22:16.442 [ajp-nio-0.0.0.0-8009-exec-9] INFO
o.a.g.tunnel.TunnelRequestService - User "youhei-otsuki" disconnected from
connection "Catalyst 3750 V2(ssh)". Duration: 21926 milliseconds




----- localhost.2017-10-25.log

25-Oct-2017 15:21:54.435 重大 [ajp-nio-0.0.0.0-8009-exec-8]
org.apache.catalina.core.StandardWrapperValve.invoke サーブレット default
のServlet.service()が例外を投げました
 java.lang.UnsupportedOperationException: HTTP upgrade is not supported by
this protocol
    at
org.apache.coyote.AbstractProcessor.doHttpUpgrade(AbstractProcessor.java:705)
    at
org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:470)
    at org.apache.coyote.Request.action(Request.java:393)
    at org.apache.catalina.connector.Request.upgrade(Request.java:2002)
    at
org.apache.catalina.connector.RequestFacade.upgrade(RequestFacade.java:1115)
    at
javax.servlet.http.HttpServletRequestWrapper.upgrade(HttpServletRequestWrapper.java:376)
    at
org.apache.tomcat.websocket.server.UpgradeUtil.doUpgrade(UpgradeUtil.java:235)
    at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:77)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66)
    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:193)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
    at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
    at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:486)
    at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
    at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
    at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    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)




I am looking forward to hearing from you.

Sincerely yours,


-- Yo





2017-10-25 15:57 GMT+09:00 Mike Jumper <mike.jumper@guac-dev.org>:

> The access logs are of very limited utility, providing little
> information beyond the status code (500). Please provide the log
> output from:
>
> 1) Guacamole itself (this will likely be in "catalina.out", but could
> also be in journalctl or elsewhere, depending on how Tomcat is
> installed/packaged in your case)
> 2) guacd (this will be syslog, likely /var/log/messages,
> /var/log/syslog, or journalctl, depending on your distribution)
>
> Thanks,
>
> - Mike
>
>
> On Tue, Oct 24, 2017 at 11:47 PM, Youhei Ootsuki
> <youhei.ootsuki@gmail.com> wrote:
> > Hi,
> >
> >
> > Would you like to read this log ?
> >
> > Suddenly "HTTP 500 ERROR" is occurring.
> >
> > The setting at that time is as follows
> >
> > ------- setting ---------
> >
> >         <connection name="Catalyst 3750 V2(ssh)">
> >             <protocol>ssh</protocol>
> >             <param name="hostname">*********</param>
> >             <param name="port">22</param>
> >             <param name="enable-sftp">true</param>
> >             <param name="username">*********</param>
> >             <param name="password">*********</param>
> >             <!-- param name="color-scheme">black-white</param -->
> >         </connection>
> >
> > -------
> >
> >
> >
> > ------- log -------
> >
> >
> > 25/Oct/2017:15:21:10 "GET /GUAC/api/patches HTTP/1.1" 200
> > 25/Oct/2017:15:21:10 "GET /GUAC/api/languages HTTP/1.1" 200
> > 25/Oct/2017:15:21:10 "POST /GUAC/api/tokens HTTP/1.1" 403
> > 25/Oct/2017:15:21:33 "POST /GUAC/api/tokens HTTP/1.1" 403
> > 25/Oct/2017:15:21:42 "POST /GUAC/api/tokens HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "POST /GUAC/api/tokens HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET
> > /GUAC/api/session/data/default/connectionGroups/ROOT/tree?token=
> 5B2E50C517D0B38A68B5824EA84D5D6B4F1FDC6430834B581C7275195DAAB5F0
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET
> > /GUAC/api/patches?token=5B2E50C517D0B38A68B5824EA84D5D
> 6B4F1FDC6430834B581C7275195DAAB5F0
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET
> > /GUAC/api/session/data/default/users/youhei-otsuki?token=
> 5B2E50C517D0B38A68B5824EA84D5D6B4F1FDC6430834B581C7275195DAAB5F0
> > HTTP/1.1" 200
> >
> >
> > 25/Oct/2017:15:21:42 "GET /GUAC/images/magnifier.png HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET /GUAC/images/protocol-icons/guac-text.png
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET /GUAC/images/protocol-icons/guac-monitor.png
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET /GUAC/images/action-icons/guac-logout-dark.png
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET /GUAC/images/arrows/down.png HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET /GUAC/images/user-icons/guac-user.png
> HTTP/1.1"
> > 200
> > 25/Oct/2017:15:21:42 "GET
> > /GUAC/api/session/data/default/self/permissions?token=
> 5B2E50C517D0B38A68B5824EA84D5D6B4F1FDC6430834B581C7275195DAAB5F0
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET
> > /GUAC/api/session/data/default/activeConnections?token=
> 5B2E50C517D0B38A68B5824EA84D5D6B4F1FDC6430834B581C7275195DAAB5F0
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET /GUAC/images/action-icons/guac-home-dark.png
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:42 "GET /GUAC/images/action-icons/guac-config-dark.png
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/settings/touchscreen.png
> HTTP/1.1"
> > 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/settings/touchpad.png HTTP/1.1"
> 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/settings/tablet-keys.png
> HTTP/1.1"
> > 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/settings/zoom-in.png HTTP/1.1"
> 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/settings/zoom-out.png HTTP/1.1"
> 200
> > 25/Oct/2017:15:21:54 "POST /GUAC/api/tokens HTTP/1.1" 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/share.png HTTP/1.1" 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/action-icons/guac-back.png
> HTTP/1.1"
> > 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/drive.png HTTP/1.1" 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/layouts/en-us-qwerty.json HTTP/1.1" 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/app/element/templates/blank.html
> HTTP/1.1"
> > 200
> >
> >
> >
> >
> > 25/Oct/2017:15:21:54 "GET
> > /GUAC/api/session/data/default/connections/Catalyst%
> 203750%20V2(ssh)?token=5B2E50C517D0B38A68B5824EA84D5D
> 6B4F1FDC6430834B581C7275195DAAB5F0
> > HTTP/1.1" 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/x.png HTTP/1.1" 200
> > 25/Oct/2017:15:21:54 "GET /GUAC/images/logo-144.png HTTP/1.1" 200
> > 25/Oct/2017:15:21:54 "GET
> > /GUAC/websocket-tunnel?token=5B2E50C517D0B38A68B5824EA84D5D
> 6B4F1FDC6430834B581C7275195DAAB5F0&GUAC_DATA_SOURCE=default&
> GUAC_ID=Catalyst%203750%20V2(ssh)&GUAC_TYPE=c&GUAC_WIDTH=
> 1475&GUAC_HEIGHT=864&GUAC_DPI=96&GUAC_AUDIO=audio%2FL8&GUAC_
> AUDIO=audio%2FL16&GUAC_IMAGE=image%2Fjpeg&GUAC_IMAGE=image%2Fpng
> > HTTP/1.1" 500
> > 25/Oct/2017:15:21:54 "GET
> > /GUAC/api/session/tunnels/3f75fd9f-1dc5-469c-a50e-
> 7d11d1c465b9/activeConnection/connection/sharingProfiles?token=
> 5B2E50C517D0B38A68B5824EA84D5D6B4F1FDC6430834B581C7275195DAAB5F0
> > HTTP/1.1" 404
> > 25/Oct/2017:15:22:09 "POST /GUAC/api/tokens HTTP/1.1" 200
> > 25/Oct/2017:15:22:09 "GET /GUAC/images/action-icons/guac-home.png
> HTTP/1.1"
> > 200
> > 25/Oct/2017:15:22:09 "GET /GUAC/images/circle-arrows.png HTTP/1.1" 200
> > 25/Oct/2017:15:22:09 "GET /GUAC/images/action-icons/guac-logout.png
> > HTTP/1.1" 200
> > 25/Oct/2017:15:22:16 "DELETE
> > /GUAC/api/tokens/5B2E50C517D0B38A68B5824EA84D5D
> 6B4F1FDC6430834B581C7275195DAAB5F0
> > HTTP/1.1" 204
> > 25/Oct/2017:15:22:16 "POST /GUAC/api/tokens HTTP/1.1" 403
> >
> >
> >
> >
> > Don’t hesitate to contact me if you have any questions.
> >
> > I would appreciate your prompt reply.
> >
> > Thanks,
> >
> >
> > 2017-10-22 21:49 GMT+09:00 Youhei Ootsuki <youhei.ootsuki@gmail.com>:
> >>
> >> Hi,
> >>
> >> Thank you very much for your reply.
> >>
> >> I got a log file
> >>
> >> Do I need any additional information?
> >>
> >> Please contact , if there is something
> >>
> >>
> >>
> >>
> >> 2017-10-17 11:40 GMT+09:00 Nick Couchman <vnick@apache.org>:
> >>>
> >>> On Mon, Oct 9, 2017 at 8:28 AM, Youhei Ootsuki <
> youhei.ootsuki@gmail.com>
> >>> wrote:
> >>>>
> >>>> Hi,
> >>>>
> >>>>
> >>>>
> >>>> Thank you very much for your reply.
> >>>>
> >>>>
> >>>> > At what point in the process do you get the error?
> >>>>
> >>>> I can login to My Guacamole server. ( HTTPS )
> >>>> but, I can not connect to the remote server with SSH.
> >>>>
> >>>> However, RDP connection is possible.( Another remote server )
> >>>> and, SSH connection to myself is also possible( Guacamole server to
> >>>> Guacamole server on ssh )
> >>>>
> >>>> SSH connection to Cisco IOS is also possible.
> >>>>
> >>>>
> >>>>
> >>>> SSH connection to the latest Linux such as Debian 9, Centos 7 is
> >>>> impossible.
> >>>>
> >>>
> >>> That's very strange.  I don't use Debian much, but I do use CentOS 7.4
> >>> and RHEL 7.4 routinely, and connect to these hosts with Guacamole
> without a
> >>> problem.
> >>>
> >>> Can you enable debugging mode for guacd (guacamole server) and capture
> >>> the logs when the connection fails?  You can either change the
> startup, or
> >>> stop the service and run guacd manually with the -L debug flag and the
> -f
> >>> flag and capture the output during a connection failure:
> >>> /usr/sbin/guacd -L debug -f
> >>>
> >>> (Use the appropriate path to guacd, wherever you have it installed.)
> >>>
> >>> -Nick
> >>
> >>
> >
>

Mime
View raw message