【问题标题】:Guacamole stopped working suddenly; problem from guacamole.properties鳄梨酱突然停止工作; guacamole.properties 的问题
【发布时间】:2022-01-09 03:32:52
【问题描述】:

我们的 Centos 7 AWS Guacamole(版本 1.3.0)服务器完全正常工作,用户使用的是 postgresql 数据库。有一天它决定不工作,我很困惑。我没有设置它,也无法访问设置它的人。

登录 aws.....:8080/guacamole 时,出现 ERROR。如果我将 /etc/guacamole/guacamole.properties 重命名为其他名称,则会出现登录屏幕,因此 postgres 存在一些问题。

screenshot of error message when trying to access guacamole from web browser

这里是 guacamole.properties:

# PostgreSQL properties
postgresql-hostname: localhost
postgresql-port: 5432
postgresql-database: guacamole_db
postgresql-username: guacamole_user
postgresql-password: password
#postgresql-auto-create-accounts: true

#Guac Properties
#skip-if-unavailable: postrgresql

guacamole_user 确实存在,但不在表 guacamole_entity 中,我想知道该用户是否是 postgres 用户而不是 guacamole 用户,但为什么会改变? 我试过取消散列 skip-if-unavailable: postgresql 但这并没有改变任何东西。

还将 postgres java 文件从 postgresql-42.2.23.jar 升级到 postgresql-42.3.1.jar 但这无济于事。

/var/log/messages 与错误没有任何关系。我真的找不到调试它的方法。

完全不知所措,有什么想法吗?

编辑:这是一个 SELinux 问题。禁用 SELinux 解决了它,所以它与 Postgres 无关。感谢您的宝贵时间。

【问题讨论】:

    标签: postgresql guacamole


    【解决方案1】:

    这个问题缺少一些信息。 (例如:鳄梨酱版本,使用的任何其他扩展,错误截图)。如果可能,请尝试发布/etc/guacamole/guacamole.properties 的完整版。

    postgresql-username 中指定的用户是数据库用户(不是 guacamole 用户),因此不会显示在 guacamole_entity 中。

    为了调试 guacamole 应用程序,您必须对其进行配置以显示调试日志。

    1. 创建文件/etc/guacamole/logback.xml
    2. 插入以下内容:
    <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 -->
        <!-- For this part, you can change the log level. Log level available: error, warn, info, debug, trace -->
        <!-- by default the level is error -->
        <root level="debug">
            <appender-ref ref="GUAC-DEBUG"/>
        </root>
    
    </configuration>
    
    1. 重启guacamole服务。

    设置完成后,您可以开始使用 tomcat 日志进行调试。 我之前没有在CentOS中安装过,但是在Debian中,默认的tomcat日志路径是/var/lib/tomcat9/logs

    【讨论】:

      【解决方案2】:

      这是一个 SELinux 问题。禁用 SELinux 解决了它,所以它与 Postgres 无关。感谢您的宝贵时间。

      【讨论】:

        猜你喜欢
        • 2017-04-13
        • 2016-07-10
        • 2017-03-28
        • 2019-04-04
        • 2018-03-05
        • 2015-12-01
        • 2021-09-28
        • 2017-10-17
        • 2015-07-06
        相关资源
        最近更新 更多