Firefox tmp profile gets deleted during launch -> ff: Missing Profile -> zap: browser was not found
See original GitHub issueDescribe the bug
fails to launch firefox (snap version on Ubuntu 22.04 LTS)
firefox /tmp/rust* profile gets created, but quickly deleted during startup (I was able to copy out the user.js file in a tight loop during launch)
ZAP_D-2022-04-20 ZAP_2.11.1
Steps to reproduce the behavior
- start zap using zap.sh
- don’t save session
- click manual explore button
- click launch browser with firefox selected
firefox dialog popup: title: Missing Profile warning: Your Firefox profile cannot be loaded. It may be missing or inaccessible.
zap dialog popup title: OWASP ZAP warning: The provided browser was not found.
Expected behavior
firefox launched
Software versions
(K)Ubuntu 22.04 LTS which uses firefox snap release ZAP_D-2022-04-20 ZAP_2.11.1
Screenshots
No response
Errors from the zap.log file
No response
Additional context
1650841816248 geckodriver INFO Listening on 127.0.0.1:6405
1650841816408 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofilehZwiEY"
Gtk-Message: 16:10:16.959: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 16:10:16.959: Failed to load module "colorreload-gtk-module"
1151801 [ZAP-BrowserLauncher] ERROR org.zaproxy.zap.extension.quickstart.launch.ExtensionQuickStartLaunch - Process unexpectedly closed with status 1
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'darkstar', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-25-generic', java.version: '11.0.14.1'
Driver info: driver.version: FirefoxDriver
remote stacktrace:
org.openqa.selenium.WebDriverException: Process unexpectedly closed with status 1
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'darkstar', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-25-generic', java.version: '11.0.14.1'
Driver info: driver.version: FirefoxDriver
remote stacktrace:
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62) ~[?:?]
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30) ~[?:?]
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958) ~[?:?]
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127) ~[?:?]
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543) ~[?:?]
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128) ~[?:?]
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74) ~[?:?]
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136) ~[?:?]
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) ~[?:?]
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) ~[?:?]
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213) ~[?:?]
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131) ~[?:?]
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:147) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getWebDriverImpl(ExtensionSelenium.java:1037) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getWebDriver(ExtensionSelenium.java:881) ~[?:?]
at org.zaproxy.zap.extension.selenium.internal.BuiltInSingleWebDriverProvider.getWebDriver(BuiltInSingleWebDriverProvider.java:63) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getWebDriverImpl(ExtensionSelenium.java:766) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getWebDriver(ExtensionSelenium.java:566) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowser(ExtensionSelenium.java:727) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowserByName(ExtensionSelenium.java:667) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowserByName(ExtensionSelenium.java:643) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowserByName(ExtensionSelenium.java:627) ~[?:?]
at org.zaproxy.zap.extension.selenium.ExtensionSelenium.getProxiedBrowserByName(ExtensionSelenium.java:617) ~[?:?]
at org.zaproxy.zap.extension.quickstart.launch.ExtensionQuickStartLaunch.lambda$launchBrowser$1(ExtensionQuickStartLaunch.java:209) ~[?:?]
at java.lang.Thread.run(Thread.java:829) ~[?:?]
Would you like to help fix this issue?
- Yes
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to run Firefox when your profile is missing or inaccessible
Profile was deleted · Click on the Windows Start button and click on Run... · Type %appdata% in the Run box and click...
Read more >Unable to launch browser from ZAP GUI - Google Groups
I am unable to launch the browser (Firefox as well as Chrome) from ZAP GUI as it gives me the message "The provided...
Read more >Testing Guide - OWASP Foundation
Guide, the Development Guide and tools such as OWASP ZAP, this is a great start ... titude of problems, in reality there is...
Read more >Cannot find firefox binary in PATH. Make sure firefox is installed
install new Firefox under "C:\Program Files (x86)\Mozilla Firefox\" path. It must be under "Program Files (x86)" NOT "Program Files". Hope it can help....
Read more >Firefox now only available via snap : r/Ubuntu - Reddit
/tmp is shadowed in another folder and it's not obvious to the casual ... Firefox snap start up performance immediately after boot (no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, confirmed no repro on regular flavor firefox. Fwiw, snap is the new default firefox for Ubuntu 22.04 LTS, so might be seeing more interest in this when the point release drops and everyone gets the update.
Workaround: manipulate PATH to put working firefox first and/or uninstall snap flavor of firefox
How to Install Latest Firefox as classic Deb in Ubuntu 22.04 https://ubuntuhandbook.org/index.php/2022/04/install-firefox-deb-ubuntu-22-04/
Thanks, that gets us webdriver, quickStart, etc version numbers 😉
I suspect it’s something specific to the snap’d Firefox that’s outside ZAP’s control but we’ll look into it.