On Monday, June 3, 2019, 6:12:00 PM GMT+2, Mike Jumper <[email protected]> 
wrote: 

> Using your user-mapping.xml and a fresh build from staging/1.1.0, things are 
> working fine for me. Same for a build from master. No errors, three 
> connections upon login.
> There must be some other reason that your deployment of the newer build is 
> not deploying/loading correctly vs. your deployment of the older build. The 
> difference in version does not correlate with the error.

I'm sorry, but I'm stuck here. I'm still getting an HTTP/500.

Here are all the steps I'm running:

# git clone -o guacamole-client https://github.com/apache/guacamole-client.git
Cloning into 'guacamole-client'...
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 65587 (delta 8), reused 14 (delta 3), pack-reused 65554
Receiving objects: 100% (65587/65587), 17.64 MiB | 11.82 MiB/s, done.
Resolving deltas: 100% (31861/31861), done.

# cd guacamole-client
# mvn package
(build log is here https://pastebin.com/pLyxNtjJ and here 
https://drive.google.com/file/d/1i1OFnRh90mZLXuh4vsLuDKdwzaEZV3ho/view?usp=sharing
 )
# /etc/init.d/tomcat-9-hman stop
(this is my Apache Tomcat instance)
# rm /var/lib/tomcat-9-hman/webapps/guacamole-1.1.0.war
# rm -fr /var/lib/tomcat-9-hman/webapps/guacamole-1.1.0/
# cp guacamole/target/guacamole-1.1.0.war /var/lib/tomcat-9-hman/webapps/
# cp extensions/guacamole-auth-ldap/target/guacamole-auth-ldap-1.1.0.jar 
/etc/guacamole/extensions/

# cat /etc/guacamole/guacamole.properties
guacd-hostname: 10.215.144.124
guacd-port: 4822

# cat /etc/guacamole/guacd.conf
[daemon]
log_level = debug

[server]
bind_host = 10.215.144.124

# cat /etc/guacamole/logback.xml
<configuration>

    <!-- Appender for debugging -->
    <appender name="GUAC-DEBUG" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - 
%msg%n</pattern>
        </encoder>
    </appender>

    <!-- Log at DEBUG level -->
    <root level="debug">
        <appender-ref ref="GUAC-DEBUG"/>
    </root>

</configuration>

# cat /etc/guacamole/user-mapping.xml
<user-mapping>

    <authorize username="testme" password="testpwd">

        <connection name="Alcatel PBX">
            <protocol>telnet</protocol>
            <param name="hostname">alcatel-ocx</param>
        </connection>

    </authorize>

</user-mapping>

# cat /etc/tomcat-9-hman/logging.properties | grep -v ^# | grep -v ^$
handlers = 1catalina.org.apache.juli.AsyncFileHandler, 
2localhost.org.apache.juli.AsyncFileHandler, 
3manager.org.apache.juli.AsyncFileHandler, 
4host-manager.org.apache.juli.AsyncFileHandler, java.util.logging.ConsoleHandler
.handlers = 1catalina.org.apache.juli.AsyncFileHandler, 
java.util.logging.ConsoleHandler
1catalina.org.apache.juli.AsyncFileHandler.level = FINE
1catalina.org.apache.juli.AsyncFileHandler.directory = /var/log/tomcat-9-hman
1catalina.org.apache.juli.AsyncFileHandler.prefix = catalina.
1catalina.org.apache.juli.AsyncFileHandler.maxDays = 90
2localhost.org.apache.juli.AsyncFileHandler.level = FINE
2localhost.org.apache.juli.AsyncFileHandler.directory = /var/log/tomcat-9-hman
2localhost.org.apache.juli.AsyncFileHandler.prefix = localhost.
2localhost.org.apache.juli.AsyncFileHandler.maxDays = 90
3manager.org.apache.juli.AsyncFileHandler.level = FINE
3manager.org.apache.juli.AsyncFileHandler.directory = /var/log/tomcat-9-hman
3manager.org.apache.juli.AsyncFileHandler.prefix = manager.
3manager.org.apache.juli.AsyncFileHandler.maxDays = 90
4host-manager.org.apache.juli.AsyncFileHandler.level = FINE
4host-manager.org.apache.juli.AsyncFileHandler.directory = 
/var/log/tomcat-9-hman
4host-manager.org.apache.juli.AsyncFileHandler.prefix = host-manager.
4host-manager.org.apache.juli.AsyncFileHandler.maxDays = 90
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 
2localhost.org.apache.juli.AsyncFileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level 
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers
 = 3manager.org.apache.juli.AsyncFileHandler
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level
 = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers
 = 4host-manager.org.apache.juli.AsyncFileHandler

# /etc/init.d/tomcat-9-hman start
# /etc/init.d/guacd restart

(I now try to connect with a web browser, logging in as "testme", and I get an 
Internal Server Error)

# tail /var/log/tomcat-9-hman/localhost_access_log.2019-06-04.txt
10.215.144.48 - - [04/Jun/2019:08:23:02 +0200] "GET 
/guacamole-1.1.0/fonts/carlito/Carlito-Regular.woff HTTP/2.0" 200 269832
10.215.144.48 - - [04/Jun/2019:08:23:02 +0200] "GET 
/guacamole-1.1.0/fonts/carlito/Carlito-Bold.woff HTTP/2.0" 200 281212
10.215.144.48 - - [04/Jun/2019:08:23:02 +0200] "GET 
/guacamole-1.1.0/images/logo-144.png HTTP/2.0" 200 9167
10.215.144.48 - - [04/Jun/2019:08:23:02 +0200] "GET 
/guacamole-1.1.0/api/patches?token=6D97A93832FFD1C0DDBE3B72E80F32EF5F879489984B97DEA012FFD0136BBDF3
 HTTP/2.0" 200 340
10.215.144.48 - - [04/Jun/2019:08:23:03 +0200] "GET 
/guacamole-1.1.0/api/languages?token=6D97A93832FFD1C0DDBE3B72E80F32EF5F879489984B97DEA012FFD0136BBDF3
 HTTP/2.0" 200 177
10.215.144.48 - - [04/Jun/2019:08:23:03 +0200] "GET 
/guacamole-1.1.0/images/guac-tricolor.png HTTP/2.0" 200 14890
10.215.144.48 - - [04/Jun/2019:08:23:03 +0200] "GET 
/guacamole-1.1.0/images/progress.png HTTP/2.0" 200 473
10.215.144.48 - - [04/Jun/2019:08:23:03 +0200] "GET 
/guacamole-1.1.0/translations/en.json HTTP/2.0" 200 42128
10.215.144.48 - - [04/Jun/2019:08:23:03 +0200] "POST 
/guacamole-1.1.0/api/tokens HTTP/2.0" 403 236
10.215.144.48 - - [04/Jun/2019:08:23:13 +0200] "POST 
/guacamole-1.1.0/api/tokens HTTP/2.0" 500 200

I'm sorry, but I'm no Apache Tomcat expert. I barely use it. I don't know how 
to log more verbose messages, ie. how to find the reason for the HTTP/500 reply.

Any ideas?

Vieri
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to