大网数据广告活动
服务器运维问答

Error with database authentication in Apache Guacamole

· 52CE 我爱测

I'm setup a new Ubuntu Server 22.04 VM and am following the documentation here: https://guacamole.apache.org/doc/gug/jdbc-auth.html Guacamole 1.4 installs fine along with Tomcat9 and Nginx proxy; I can access the site fine with u…

问题原文

原帖链接 · S3rvant · CC BY-SA 4.0

I'm setup a new Ubuntu Server 22.04 VM and am following the documentation here:

https://guacamole.apache.org/doc/gug/jdbc-auth.html

Guacamole 1.4 installs fine along with Tomcat9 and Nginx proxy; I can access the site fine with user-mapping.xml

After installing MariaDB, importing the schema files and placing extensions / lib files I am getting an error on the site:

ERROR
An error has occurred and this action cannot be completed. If the problem persists, please notify your system administrator or check your system logs.

However I am not seeing any errors in Tomcat's catalina log files to further troubleshoot.

Files:
/etc/guacamole/extensions/guacamole-auth-jdbc-mysql-1.4.0.jar
/etc/guacamole/lib/mariadb-java-client-3.0.5.jar
/etc/guacamole/guacamole.properties

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

# Allow 24 hours for sign-ins
api-session-timeout: 1440

# Database authentication
mysql-hostname: localhost
mysql-port: 3306
mysql-database: guacamole
mysql-username: guacamole_user
mysql-password: mZWY********9YoA
mysql-server-timezone: America/New_York

I'd appreciate any help with where I'm going wrong and/or locate the necessary log files to troubleshoot.

已采纳解答

原帖链接 · S3rvant · CC BY-SA 4.0

Switching to MariaDB Java Connector 7 seems to have fixed the error:

/etc/guacamole/lib/mariadb-java-client-1.8.0.jar

# java --version
openjdk 18-ea 2022-03-22
OpenJDK Runtime Environment (build 18-ea+36-Ubuntu-1)
OpenJDK 64-Bit Server VM (build 18-ea+36-Ubuntu-1, mixed mode, sharing)

Never did find any error logs however.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-06-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。