Closed
Bug 1420704
Opened 8 years ago
Closed 7 years ago
headless Firefox in Docker Container without root fails to start
Categories
(Firefox :: Headless, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: robert.schoenthal, Unassigned, NeedInfo)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3276.0 Safari/537.36
Steps to reproduce:
I have a Firefox installed in a CentOS Docker Image.
```
FROM centos:7
USER root
#needed for headless browsers
RUN yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 \
cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 \
ipa-gothic-fonts xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc xulrunner.x86_64 wget.x86_64 -y
# firefox
RUN mkdir -p opt/firefox_headless && cd opt/firefox_headless && wget https://ftp.mozilla.org/pub/firefox/releases/57.0/linux-x86_64/en-US/firefox-57.0.tar.bz2 && tar -xjf firefox-57.0.tar.bz2 && rm firefox-57.0.tar.bz2
ENV FIREFOX_BIN=opt/firefox_headless/firefox/firefox
```
When i start the Container with "--user=$UID" and try running KarmaJS inside the Container against the Firefox-Headless
```
// karma.conf.js
...
customLaunchers: {
Chromeless: {
base: "ChromeHeadless",
flags: [
"--disable-web-security",
"--no-sandbox",
"--disable-gpu",
"--headless",
"--disable-setuid-sandbox",
"--remote-debugging-port=9222"
]
},
Firefoxless: {
base: "Firefox",
flags: [
"--headless",
"--g-fatal-warnings",
"--start-debugger-server=ws:6000"
]
}
}
...
```
container$ node_modules/.bin/karma start --browsers Firefoxless
Actual results:
nothing, the test suite wont startup, no error logs, nothing, (but works with the Chromeless Browser)
Expected results:
when i remove "--user=$UID" and start the container as root (inside container), everything works as expected, the test suite runs perfect...
i guess its some permission/sandboxing problem?!
| Reporter | ||
Comment 1•8 years ago
|
||
starting Firefox inside Container "$FIREFOX_BIN --headless" it looks like its up and running, but its somehow not:
*** You are running in headless mode.
nothing more, karma cant connect
Updated•8 years ago
|
Component: Untriaged → Headless
Comment 2•8 years ago
|
||
Would it be possible for you to try with a debug build of Firefox and see if there's any more information in the logs?
Flags: needinfo?(robert.schoenthal)
Comment 3•7 years ago
|
||
2019-03-06
This bug is part of a group of bugs which have had an open needinfo for at least 12 weeks.
The request for information has not been answered, and we can't move forward on the bug so we are closing it.
If the defect is still present, please reopen this bug with an updated report.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•