jmuehlner commented on PR #826:
URL: https://github.com/apache/guacamole-client/pull/826#issuecomment-1499801871

   > So weirdly, this works fine in docker (where firefox is installed as a deb 
package), but not directly on my ubuntu 22.04 dev machine (where firefox is 
installed as a snap):
   > 
   > ```
   > [INFO] --- frontend-maven-plugin:1.12.1:karma (run tests) @ 
guacamole-common-js ---
   > [INFO] Running 'karma start karma-ci.conf.js' in 
/home/ubuntu/workspace/guacamole-client/guacamole-common-js
   > [INFO] 06 04 2023 23:36:21.243:INFO [karma-server]: Karma v6.4.1 server 
started at http://localhost:9876/
   > [INFO] 06 04 2023 23:36:21.252:INFO [launcher]: Launching browsers 
FirefoxHeadless with concurrency unlimited
   > [INFO] 06 04 2023 23:36:21.263:INFO [launcher]: Starting browser Firefox
   > [INFO] 06 04 2023 23:37:21.316:WARN [launcher]: Firefox has not captured 
in 60000 ms, killing.
   > [INFO] 06 04 2023 23:37:21.339:INFO [launcher]: Trying to start Firefox 
again (1/2).
   > [INFO] 06 04 2023 23:38:21.397:WARN [launcher]: Firefox has not captured 
in 60000 ms, killing.
   > [INFO] 06 04 2023 23:38:21.408:INFO [launcher]: Trying to start Firefox 
again (2/2).
   > [INFO] 06 04 2023 23:39:21.457:WARN [launcher]: Firefox has not captured 
in 60000 ms, killing.
   > [INFO] 06 04 2023 23:39:21.468:ERROR [launcher]: Firefox failed 2 times 
(timeout). Giving up.
   > [INFO] 
------------------------------------------------------------------------
   > [INFO] BUILD FAILURE
   > [INFO] 
------------------------------------------------------------------------
   > [INFO] Total time:  03:12 min
   > [INFO] Finished at: 2023-04-06T23:39:21Z
   > [INFO] 
------------------------------------------------------------------------
   > ```
   > 
   > Karma just can't seem to talk to firefox. Even weirder - if I manually run 
the exact same command in a shell that I see maven running, e.g. 
`/snap/firefox/2487/usr/lib/firefox/firefox 
http://localhost:9876/\?id\=59164204 -profile /tmp/karma-59164204 -no-remote 
-wait-for-browser -headless`, then Karma _can_ connect and the tests proceed as 
normal. If I don't, it just times out as above.
   > 
   > So there must be some interaction between the firefox snap and maven that 
doesn't work right. (Running the test with firefox installed as a deb locally 
does work correctly).
   
   Ok, looks like this was related to permission problems with snaps and 
`/tmp`. Using a temp directory inside the git tree resolves this issue for me.


-- 
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