jseifeddine commented on PR #534:
URL: https://github.com/apache/guacamole-server/pull/534#issuecomment-2966503085

   still same behavior with the tunnel connection 
   
   the build succeeds now without warning or error
   
   however the socket dir doesn't exist where you assume it to
   ```
   guacd  | guacd[17]: DEBUG:        SSH tunneling is enabled, connecting via 
SSH.
   guacd  | guacd[17]: INFO: User "@7383745e-ae04-45eb-be42-e22d8e395188" 
joined connection "$ab261a50-41b5-419c-9df1-7eafc790bb7b" (1 users now present)
   guacd  | guacd[17]: DEBUG:        Client is using protocol version 
"VERSION_1_5_0"
   guacd  | guacd[17]: DEBUG:        Authenticating SSH tunnel with private key.
   guacd  | guacd[17]: WARNING:      No known host keys provided, host identity 
will not be verified.
   guacd | guacd[17]: DEBUG:        Supported authentication methods: 
publickey,password
   guacd  | guacd[17]: DEBUG:        SSH session created for tunneling, 
initializing the tunnel.
   guacd  | guacd[17]: DEBUG:        Socket: 
/opt/guacamole/var/run/guacd/$ab261a50-41b5-419c-9df1-7eafc790bb7b/tunnel
   guacd | guacd[17]: ERROR:        Failed to make socket directory 
"/opt/guacamole/var/run/guacd/$ab261a50-41b5-419c-9df1-7eafc790bb7b": No such 
file or directory
   ```
   so I modify the `Dockerfile`  adding this towards the end
   
   ```
   # Create necessary directory structure
   USER root
   RUN mkdir -p /opt/guacamole/var/run/guacd && \
       chown -R guacd:guacd /opt/guacamole/var/run && \
       chmod -R 775 /opt/guacamole/var/run
   USER guacd
   
   # Expose the default listener port
   EXPOSE 4822
   
   COPY ./src/guacd-docker/bin/entrypoint.sh /opt/guacamole/
   ENTRYPOINT [ "/opt/guacamole/entrypoint.sh" ]
   ```
   
   this appears to fix the socket dir not existing error and the ssh tunnel 
seems to be initialized correctly 
   but you can see `connection XXX removed` immediately after `Waiting for data 
on socket.`
   
   Maybe its something to do with the socket dir?
   
   ```
   guacd      | guacd[48]: DEBUG:    Authenticating SSH tunnel with private key.
   guacd      | guacd[48]: WARNING:  No known host keys provided, host identity 
will not be verified.
   guacd      | guacd[48]: DEBUG:    Supported authentication methods: 
publickey,password
   guacd      | guacd[48]: DEBUG:    SSH session created for tunneling, 
initializing the tunnel.
   guacd      | guacd[48]: DEBUG:    Socket: 
/opt/guacamole/var/run/guacd/$0760c98d-7d3f-49fb-b2df-c8ad51d9d650/tunnel
   guacd      | guacd[48]: DEBUG:    Socket created, binding.
   guacd      | guacd[48]: DEBUG:    Listening on socket, creating worker 
thread.
   guacd      | guacd[48]: DEBUG:    Starting tunnel worker - waiting for 
connection.
   guacd      | guacd[48]: DEBUG:    Worker created, return socket path to 
client.
   guacd      | guacd[48]: DEBUG:    SSH tunnel connection succeeded.
   guacd      | guacd[48]: DEBUG:    Connection received, starting libssh2 
channel.
   guacd      | guacd[48]: DEBUG:    Channel started, starting output thread.
   guacd      | guacd[48]: DEBUG:    Processing tunnel data.
   guacd      | guacd[48]: DEBUG:    Waiting for data on socket.
   guacd      | guacd[1]: INFO:      Connection 
"$0760c98d-7d3f-49fb-b2df-c8ad51d9d650" removed.
   guacd      | guacd[1]: DEBUG:     Unable to request termination of client 
process: No such process 
   guacd      | guacd[1]: DEBUG:     All child processes for connection 
"$0760c98d-7d3f-49fb-b2df-c8ad51d9d650" have been terminated.
   guacamole  | 12:20:08.328 [Thread-6] INFO  o.a.g.tunnel.TunnelRequestService 
- User "john-doe" disconnected from connection "3". Duration: 4887 milliseconds
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to