Re: Error 404 with Guacamole 1.5.2

2023-07-17 Thread Nick Couchman
>
> journalctl --since 09:17
> juil. 15 09:17:47 ordi4 server[1272619]: 09:17:47.453 [http-nio-8080-exec-4]
> WARN  o.a.g.e.AuthenticationProviderFacade - The "mysql" authentication 
> provider has encountered an internal error which will halt the authentication
> process. If this is unexpected or you are the developer of this 
> authentication provider, you may wish to enable debug-level logging. If this 
> is expected and
> you wish to ignore such failures in the future, please set 
> "skip-if-unavailable: mysql" within your guacamole.properties.
> juil. 15 09:17:47 ordi4 server[1272619]: 09:17:47.462 [http-nio-8080-exec-4]
> ERROR o.a.g.rest.RESTExceptionMapper - Unexpected internal error:
> juil. 15 09:17:47 ordi4 server[1272619]: ### Error querying database.  Cause: 
> java.sql.SQLNonTransientConnectionException: Could not connect to 
> address=(host=localhost)(port=3306)(type=master) : (conn=40850) Trying to 
> connect with ssl, but ssl not enabled in the server

Have you checked your MySQL configuration to make sure that SSL is
enabled? You can also try setting "mysql-ssl-mode" in your
guacamole.properties file to "disabled" and see if that helps.

>
> mysql-connector-java.jar comes from the following mageia package : 
> mysql-connector-java-8.0.22-2.mga8
>
>
> While I am writing this email, I wonder if I should not try to install a more 
> recent version of mysql-connector-java (mysql-connector-j-8.0.33 is the 
> latest one) instead of the one coming from MariaDB connector/J3.1.4
>
> Even though in my guacamole.properties, there is :
> mysql-driver: mariadb
> mysql-hostname: localhost
> ...
>

Yes, you could also try updating the MySQL Connector/J - but I'd try
the SSL settings, first.

-Nick

-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org



Re: Error 404 with Guacamole 1.5.2

2023-07-17 Thread Xuo

Hi,

After more than 3 weeks without any internet connection (except through 
my phone), I can now try to debug again my issue.
To summarize, you were right. If I keep only one single extension, the 
error disappears.

Now, I've got another one.

journalctl --since 09:17
juil. 15 09:17:47 ordi4 server[1272619]: 09:17:47.453 
[http-nio-8080-exec-4]
WARN  o.a.g.e.AuthenticationProviderFacade - The "mysql" authentication 
provider has encountered an internal error which will halt the 
authentication
process. If this is unexpected or you are the developer of this 
authentication provider, you may wish to enable debug-level logging. If 
this is expected and
you wish to ignore such failures in the future, please set 
"skip-if-unavailable: mysql" within your guacamole.properties.
juil. 15 09:17:47 ordi4 server[1272619]: 09:17:47.462 
[http-nio-8080-exec-4]

ERROR o.a.g.rest.RESTExceptionMapper - Unexpected internal error:
juil. 15 09:17:47 ordi4 server[1272619]: ### Error querying database.  
Cause: java.sql.SQLNonTransientConnectionException: Could not connect to 
address=(host=localhost)(port=3306)(type=master) : (conn=40850) Trying 
to connect with ssl, but ssl not enabled in the server


And some more lines.
I've search during the whole week-end without success.
If you have any idea, I'll be glad to test it.

directory /etc/guacamole/extensions :
-rw-r--r-- 1 guacuser guacuser 10814736 mai   20 07:59 
guacamole-auth-jdbc-mysql-1.5.2.jar
-rw-r--r-- 1 guacuser guacuser  4819527 mai   20 07:59 
guacamole-auth-totp-1.5.2.jar


directory /etc/guacamole/lib :
-rw-r--r-- 1 guacuser guacuser  626233 juil. 15 10:48 
mariadb-java-client-2.7.9.jar

-rw-r--r-- 1 guacuser guacuser 2493165 juil. 15 09:37 mysql-connector-j.jar

mysql-connector-j.jar corresponds to the version of MariaDB connector/J3.1.4

When working with guacamole 1.4 :

directory /etc/guacamole/extensions :
-rw-r--r-- 1 guacuser guacuser 6102374 déc.  29  2021 
guacamole-auth-jdbc-mysql-1.4.0.jar
-rw-r--r-- 1 guacuser guacuser 5290215 déc.  29  2021 
guacamole-auth-totp-1.4.0.jar


directory /etc/guacamole/lib :
-rw-r--r-- 1 guacuser guacuser 624101 nov.   8  2020 
mariadb-java-client-2.7.0.jar
lrwxrwxrwx 1 guacuser guacuser 40 oct.   9  2022 
mysql-connector-java.jar-> /usr/share/java/mysql-connector-java.jar


mysql-connector-java.jar comes fromthe following mageia package : 
mysql-connector-java-8.0.22-2.mga8



*While I am writing this email, I wonder if I should not try to install 
a more recent version of **mysql-connector-java 
(**mysql-connector-j-8.0.33 is the latest one) instead of the one coming 
from **MariaDB**connector/J3.1.4**

*
Even though in my guacamole.properties, there is :
mysql-driver: mariadb
mysql-hostname: localhost
...

Regards.

Xuo.


Le 22/06/2023 à 01:42, Michael Jumper a écrit :

On 6/20/23 02:20, Antoine Besnier wrote:
Stupid guess, but can you also check the content of your 
guacamole/extensions directory?


Some extensions (looking at you, TOTP) will make Tomcat crash with 
this exact error if multiple versions are loaded.




We should add an additional sanity check to warn if this condition is 
detected, but FYI:


The reason multiple copies of the same extension cannot be loaded at 
the same time is their namespaces will collide. Every extension 
defines a unique namespace to isolate itself from others. If that 
namespace isn't actually unique, then resources/endpoints declared by 
those extensions will have conflicting paths, causing webapp startup 
to fail.


- Mike

-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org





OpenPGP_0x48255E7CD3CF0C1D.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Error 404 with Guacamole 1.5.2

2023-06-21 Thread Michael Jumper

On 6/20/23 02:20, Antoine Besnier wrote:
Stupid guess, but can you also check the content of your 
guacamole/extensions directory?


Some extensions (looking at you, TOTP) will make Tomcat crash with this 
exact error if multiple versions are loaded.




We should add an additional sanity check to warn if this condition is 
detected, but FYI:


The reason multiple copies of the same extension cannot be loaded at the 
same time is their namespaces will collide. Every extension defines a 
unique namespace to isolate itself from others. If that namespace isn't 
actually unique, then resources/endpoints declared by those extensions 
will have conflicting paths, causing webapp startup to fail.


- Mike

-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org



Re: Error 404 with Guacamole 1.5.2

2023-06-20 Thread Xuo

Hello,

Yes, I have multiple extensions versions, at least 1.4 and 1.5.2 (totp 
and probably another one). I'll check tomorrow hopefully.


Regards.

Xuo.

Le 20/06/2023 à 11:20, Antoine Besnier a écrit :
Stupid guess, but can you also check the content of your 
guacamole/extensions directory?


Some extensions (looking at you, TOTP) will make Tomcat crash with 
this exact error if multiple versions are loaded.


Cheers
Antoine

Le lundi 19 juin 2023 à 20:13:53 UTC+2, Xuo  a écrit :


Hello,

I'll try what you suggest but probably not before 2 or 3 days as my 
Internet connection is down and I'm not at home.

I'll keep you inform of what I could get.

Regards.

Xuo.

Le 18/06/2023 à 21:50, Nick Couchman a écrit :

On Sun, Jun 18, 2023 at 2:28 PM Xuo    wrote:

Hi,

I'm trying to run Guacamole 1.5.2 on Mageia8 but I get the following error 
message :
HTTP Status 404 - not Found
The origin server did not find a current representation for the target resource 
or is not willing to disclose that one exists.

Here are some trials I did to debug :
Guacamole 1.4, Tomcat-9.0.41-1.mga8 => works fine.
Guacamole 1.4, Tomcat-9.0.73-1.1.mga8 => works fine.
Guacamole 1.5.2, Tomcat-9.0.73-1.1.mga8 => when trying to connect to Guacamole, 
I get the following error message in my browser :

What version of Java?


HTTP Status 404 - not Found
The origin server did not find a current representation for the target resource 
or is not willing to disclose that one exists.

and in Tomcat logs :

18-Jun-2023 18:04:10.670 GRAVE [main] 
org.apache.catalina.core.StandardContext.startInternal Un ou plusieurs 
écouteurs n'ont pas pu démarrer, les détails sont dans le fichier de log du 
conteneur
### Translated from French :
### One or more listener could not start, details are in the container logs.

18-Jun-2023 18:04:10.699 GRAVE [main] 
org.apache.catalina.core.StandardContext.startInternal Erreur de démarrage du 
contexte [/guacamole] suite aux erreurs précédentes
### Translated from French :
### Starting error of context [/guacamole] because of previous errors

18-Jun-2023 18:04:10.794 INFOS [14] 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 
Impossible de charger 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], ce 
chargeur de classes a déjà été arrêté
### Translated from French :
### Impossible to load 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], this 
class loader is already stopped.

 java.lang.IllegalStateException: Impossible de charger 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], ce 
chargeur de classes a déjà été arrêté
 at 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1432)
...

You'll probably need to enable additional debugging in the Guacamole
web application and try, again, and see if you get any more useful
messages:
https://guacamole.apache.org/doc/gug/configuring-guacamole.html#logging-within-the-web-application
  



I don't know if this can help but here is my apache guacamole.conf file 
(/etc/httpd/conf/sites.d/guacamole.conf)

I think the error you're seeing indicates it's more basic than this -
this would be the Apache httpd configuration for the proxying
Guacamole, but it seems like Tomcat is failing to load it for some
reason.

-Nick

-
To unsubscribe, e-mail:user-unsubscr...@guacamole.apache.org  

For additional commands, e-mail:user-h...@guacamole.apache.org  






Re: Error 404 with Guacamole 1.5.2

2023-06-20 Thread Antoine Besnier
 Stupid guess, but can you also check the content of your guacamole/extensions 
directory?
Some extensions (looking at you, TOTP) will make Tomcat crash with this exact 
error if multiple versions are loaded.
CheersAntoine

Le lundi 19 juin 2023 à 20:13:53 UTC+2, Xuo  a écrit :  
 
  Hello,
 
 I'll try what you suggest but probably not before 2 or 3 days as my Internet 
connection is down and I'm not at home.
 I'll keep you inform of what I could get.
 
 Regards.
 
 Xuo.
 
 Le 18/06/2023 à 21:50, Nick Couchman a écrit :
  
 On Sun, Jun 18, 2023 at 2:28 PM Xuo  wrote:
 
 Hi,

I'm trying to run Guacamole 1.5.2 on Mageia8 but I get the following error 
message :
HTTP Status 404 - not Found
The origin server did not find a current representation for the target resource 
or is not willing to disclose that one exists.

Here are some trials I did to debug :
Guacamole 1.4, Tomcat-9.0.41-1.mga8 => works fine.
Guacamole 1.4, Tomcat-9.0.73-1.1.mga8 => works fine.
Guacamole 1.5.2, Tomcat-9.0.73-1.1.mga8 => when trying to connect to Guacamole, 
I get the following error message in my browser :
 
 What version of Java?

 
 HTTP Status 404 - not Found
The origin server did not find a current representation for the target resource 
or is not willing to disclose that one exists.

and in Tomcat logs :

18-Jun-2023 18:04:10.670 GRAVE [main] 
org.apache.catalina.core.StandardContext.startInternal Un ou plusieurs 
écouteurs n'ont pas pu démarrer, les détails sont dans le fichier de log du 
conteneur
### Translated from French :
### One or more listener could not start, details are in the container logs.

18-Jun-2023 18:04:10.699 GRAVE [main] 
org.apache.catalina.core.StandardContext.startInternal Erreur de démarrage du 
contexte [/guacamole] suite aux erreurs précédentes
### Translated from French :
### Starting error of context [/guacamole] because of previous errors

18-Jun-2023 18:04:10.794 INFOS [14] 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 
Impossible de charger 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], ce 
chargeur de classes a déjà été arrêté
### Translated from French :
### Impossible to load 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], this 
class loader is already stopped.

java.lang.IllegalStateException: Impossible de charger 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], ce 
chargeur de classes a déjà été arrêté
at 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1432)
...
 
 You'll probably need to enable additional debugging in the Guacamole
web application and try, again, and see if you get any more useful
messages:
https://guacamole.apache.org/doc/gug/configuring-guacamole.html#logging-within-the-web-application

 
 I don't know if this can help but here is my apache guacamole.conf file 
(/etc/httpd/conf/sites.d/guacamole.conf)
 
 I think the error you're seeing indicates it's more basic than this -
this would be the Apache httpd configuration for the proxying
Guacamole, but it seems like Tomcat is failing to load it for some
reason.

-Nick

-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org

 
 


Re: Error 404 with Guacamole 1.5.2

2023-06-19 Thread Xuo

Hello,

I'll try what you suggest but probably not before 2 or 3 days as my 
Internet connection is down and I'm not at home.

I'll keep you inform of what I could get.

Regards.

Xuo.

Le 18/06/2023 à 21:50, Nick Couchman a écrit :

On Sun, Jun 18, 2023 at 2:28 PM Xuo  wrote:

Hi,

I'm trying to run Guacamole 1.5.2 on Mageia8 but I get the following error 
message :
HTTP Status 404 - not Found
The origin server did not find a current representation for the target resource 
or is not willing to disclose that one exists.

Here are some trials I did to debug :
Guacamole 1.4, Tomcat-9.0.41-1.mga8 => works fine.
Guacamole 1.4, Tomcat-9.0.73-1.1.mga8 => works fine.
Guacamole 1.5.2, Tomcat-9.0.73-1.1.mga8 => when trying to connect to Guacamole, 
I get the following error message in my browser :

What version of Java?


HTTP Status 404 - not Found
The origin server did not find a current representation for the target resource 
or is not willing to disclose that one exists.

and in Tomcat logs :

18-Jun-2023 18:04:10.670 GRAVE [main] 
org.apache.catalina.core.StandardContext.startInternal Un ou plusieurs 
écouteurs n'ont pas pu démarrer, les détails sont dans le fichier de log du 
conteneur
### Translated from French :
### One or more listener could not start, details are in the container logs.

18-Jun-2023 18:04:10.699 GRAVE [main] 
org.apache.catalina.core.StandardContext.startInternal Erreur de démarrage du 
contexte [/guacamole] suite aux erreurs précédentes
### Translated from French :
### Starting error of context [/guacamole] because of previous errors

18-Jun-2023 18:04:10.794 INFOS [14] 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 
Impossible de charger 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], ce 
chargeur de classes a déjà été arrêté
### Translated from French :
### Impossible to load 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], this 
class loader is already stopped.

 java.lang.IllegalStateException: Impossible de charger 
[com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], ce 
chargeur de classes a déjà été arrêté
 at 
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1432)
...

You'll probably need to enable additional debugging in the Guacamole
web application and try, again, and see if you get any more useful
messages:
https://guacamole.apache.org/doc/gug/configuring-guacamole.html#logging-within-the-web-application


I don't know if this can help but here is my apache guacamole.conf file 
(/etc/httpd/conf/sites.d/guacamole.conf)

I think the error you're seeing indicates it's more basic than this -
this would be the Apache httpd configuration for the proxying
Guacamole, but it seems like Tomcat is failing to load it for some
reason.

-Nick

-
To unsubscribe, e-mail:user-unsubscr...@guacamole.apache.org
For additional commands, e-mail:user-h...@guacamole.apache.org



Re: Error 404 with Guacamole 1.5.2

2023-06-18 Thread Nick Couchman
On Sun, Jun 18, 2023 at 2:28 PM Xuo  wrote:
>
> Hi,
>
> I'm trying to run Guacamole 1.5.2 on Mageia8 but I get the following error 
> message :
> HTTP Status 404 - not Found
> The origin server did not find a current representation for the target 
> resource or is not willing to disclose that one exists.
>
> Here are some trials I did to debug :
> Guacamole 1.4, Tomcat-9.0.41-1.mga8 => works fine.
> Guacamole 1.4, Tomcat-9.0.73-1.1.mga8 => works fine.
> Guacamole 1.5.2, Tomcat-9.0.73-1.1.mga8 => when trying to connect to 
> Guacamole, I get the following error message in my browser :

What version of Java?

> HTTP Status 404 - not Found
> The origin server did not find a current representation for the target 
> resource or is not willing to disclose that one exists.
>
> and in Tomcat logs :
>
> 18-Jun-2023 18:04:10.670 GRAVE [main] 
> org.apache.catalina.core.StandardContext.startInternal Un ou plusieurs 
> écouteurs n'ont pas pu démarrer, les détails sont dans le fichier de log du 
> conteneur
> ### Translated from French :
> ### One or more listener could not start, details are in the container logs.
>
> 18-Jun-2023 18:04:10.699 GRAVE [main] 
> org.apache.catalina.core.StandardContext.startInternal Erreur de démarrage du 
> contexte [/guacamole] suite aux erreurs précédentes
> ### Translated from French :
> ### Starting error of context [/guacamole] because of previous errors
>
> 18-Jun-2023 18:04:10.794 INFOS [14] 
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 
> Impossible de charger 
> [com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], ce 
> chargeur de classes a déjà été arrêté
> ### Translated from French :
> ### Impossible to load 
> [com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], 
> this class loader is already stopped.
>
> java.lang.IllegalStateException: Impossible de charger 
> [com.google.common.collect.AbstractMapBasedMultimap$AsMap$AsMapIterator], ce 
> chargeur de classes a déjà été arrêté
> at 
> org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1432)
> ...

You'll probably need to enable additional debugging in the Guacamole
web application and try, again, and see if you get any more useful
messages:
https://guacamole.apache.org/doc/gug/configuring-guacamole.html#logging-within-the-web-application

>
> I don't know if this can help but here is my apache guacamole.conf file 
> (/etc/httpd/conf/sites.d/guacamole.conf)

I think the error you're seeing indicates it's more basic than this -
this would be the Apache httpd configuration for the proxying
Guacamole, but it seems like Tomcat is failing to load it for some
reason.

-Nick

-
To unsubscribe, e-mail: user-unsubscr...@guacamole.apache.org
For additional commands, e-mail: user-h...@guacamole.apache.org