[ 
https://issues.apache.org/jira/browse/GUACAMOLE-1978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17875327#comment-17875327
 ] 

Frank The Tank commented on GUACAMOLE-1978:
-------------------------------------------

[~mjumper] 

Guacamole Logs:
{code:java}
21:28:32.798 [main] INFO  o.a.g.t.w.WebSocketTunnelModule - Loading JSR-356 
WebSocket support...
21:28:32.819 [main] DEBUG o.a.guacamole.tunnel.TunnelModule - WebSocket module 
loaded: org.apache.guacamole.tunnel.websocket.WebSocketTunnelModule
21:28:33.016 [main] INFO  o.a.g.event.EventLoggingListener - The Apache 
Guacamole web application has started.
21:28:33.603 [main] WARN  o.g.jersey.server.wadl.WadlFeature - JAXBContext 
implementation could not be found. WADL feature is disabled.
20-Aug-2024 21:28:33.969 INFO [main] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application 
archive [/tmp/catalina-base.UwWs7m1dAH/webapps/guacamole.war] has finished in 
[4,656] ms
20-Aug-2024 21:28:33.973 INFO [main] org.apache.coyote.AbstractProtocol.start 
Starting ProtocolHandler ["http-nio-8080"]
20-Aug-2024 21:28:33.984 INFO [main] org.apache.catalina.startup.Catalina.start 
Server startup in [4743] milliseconds
21:28:53.072 [http-nio-8080-exec-7] DEBUG o.a.g.a.f.FileAuthenticationProvider 
- User mapping file "/tmp/guacamole-home.yz0cKkkzI5/user-mapping.xml" does not 
exist and will not be read.
21:28:53.074 [http-nio-8080-exec-7] DEBUG o.a.g.event.EventLoggingListener - 
Empty authentication attempt (login screen initialization) from 10.0.0.10 
failed: unknown error (no specific failure recorded)
21:28:53.080 [http-nio-8080-exec-7] DEBUG o.a.g.rest.RESTExceptionMapper - 
Client request rejected: Permission Denied.
21:28:59.586 [http-nio-8080-exec-2] DEBUG o.a.g.a.f.FileAuthenticationProvider 
- User mapping file "/tmp/guacamole-home.yz0cKkkzI5/user-mapping.xml" does not 
exist and will not be read.
21:28:59.587 [http-nio-8080-exec-2] WARN  o.a.g.event.EventLoggingListener - 
Authentication attempt from 10.0.0.10 for user "guacadmin" failed: unknown 
error (no specific failure recorded)
21:28:59.588 [http-nio-8080-exec-2] DEBUG o.a.g.rest.RESTExceptionMapper - 
Client request rejected: Permission Denied. {code}


Docker Compose:
(Which works just fine on a standard `guacamole/guacamole` version 1.5.5 on an 
x86_64 host)
(Passwords are dummy passwords for testing)
{code:java}
version: '3.9'services:
  guacd:
    container_name: guacd
    image: donswanson/guacd
    networks:
      - guacnetwork_test
    restart: always
    volumes:
    - /docker/guac_build/drive:/drive:rw
    - /docker/guac_build/record:/record:rw  
  postgres_guac:
    container_name: postgres_guac
    environment:
      PGDATA: /var/lib/postgresql/data/guacamole
      POSTGRES_DB: guac_db
      POSTGRES_PASSWORD: '12qwaszxQWASZX'
      POSTGRES_USER: guac_user
    image: postgres:15.8-alpine
    networks:
      - guacnetwork_test
    restart: always
    volumes:
    - /docker/guac_build/init:/docker-entrypoint-initdb.d:ro
    - /docker/guac_build/data:/var/lib/postgresql/data:rw  
  guacamole:
    container_name: guacamole_test
    depends_on:
    - guacd
    - postgres_guac
    environment:
      GUACD_HOSTNAME: guacd
      POSTGRESQL_DATABASE: guac_db
      POSTGRESQL_HOSTNAME: postgres_guac
      POSTGRESQL_PASSWORD: '12qwaszxQWASZX'
      POSTGRESQL_USER: guac_user
      POSTGRESQL_AUTO_CREATE_ACCOUNTS: true
      LOGBACK_LEVEL: debug
      TZ: America/Chicago
    image: donswanson/guacamole
    networks:
      - guacnetwork_test
    volumes:
      - /docker/guac_build/record:/record:rw
      - /docker/guac_build/extensions:/opt/guacamole/extensions:rw
    ports:
      - 8090:8080
    restart: always
networks:
  guacnetwork_test:
    driver: bridge {code}
If I swap the images to the Apache provided images (guacamole/guacamole) and 
make no other changes to the config I'm able to login just fine with the 
default guacadmin user.

The contents of the extensions directory is the jar copied from 
/opt/guacamole/extensions/guacamole-auth-jdbc/postgresql/guacamole-auth-jdbc-postgresql.jar
 in the container. (Also tried with the 1.5.5 version from the website as 
backwards compatibility is supposed to exist as well.) 

Build steps are:
{code:java}
git clone --branch=staging/1.6.0 "https://github.com/apache/guacamole-client"; .
docker build -t donswanson/guacamole:$TAG . {code}

> Unable to login on build from main branch
> -----------------------------------------
>
>                 Key: GUACAMOLE-1978
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1978
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole
>    Affects Versions: 1.6.0
>            Reporter: Frank The Tank
>            Priority: Major
>
> When building the client from the main branch or the staging/1.6.0 on an 
> arm64 container, it builds just fine, but after launching the containers, I 
> am unable to login with the default guacadmin/guacadmin. Just says login 
> failed. The errors in the logs are:
> {code:java}
> 21:16:06.353 [http-nio-8080-exec-8] DEBUG 
> o.a.g.a.f.FileAuthenticationProvider - User mapping file 
> "/tmp/guacamole-home.Ydf78SGgoV/user-mapping.xml" does not exist and will not 
> be read.14321:16:06.354 [http-nio-8080-exec-8] WARN  
> o.a.g.event.EventLoggingListener - Authentication attempt from [<REDACTED>, 
> 10.10.10.2] for user "guacadmin" failed: unknown error (no specific failure 
> recorded)14421:16:06.355 [http-nio-8080-exec-8] DEBUG 
> o.a.g.rest.RESTExceptionMapper - Client request rejected: Permission Denied. 
> {code}
> I'm using an initialized Postgres DB for the backend, and have made sure the 
> psql extension and lib are available in the container. 
> I would try 1.5.5, but it fails to build on arm64 due to maven issues. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to