Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug images don't support multiple space-separated options in JAVA_OPTS and SE_OPTS #207

Closed
ondrej opened this issue Apr 18, 2016 · 7 comments

Comments

@ondrej
Copy link

ondrej commented Apr 18, 2016

The Chrome and Firefox debug images contain an entry_point.sh with some inline execution code that reads and passes on environment variables to the xvfb-run process. This code breaks when SE_OPTS or JAVA_OPTS contains multiple configuration options separated by spaces.

It looks like this fixes the problem:

<   sudo -E -i -u seluser \
<   $(for E in $(grep -vxFf asseluser asroot); do echo $E=$(eval echo \$$E); done) \

---
>   eval sudo -E -i -u seluser \
>   $(for E in $(grep -vxFf asseluser asroot); do echo $E=\"$(eval echo \$$E)\"; done) \
36c36
<   xvfb-run --server-args="$DISPLAY -screen 0 $GEOMETRY -ac +extension RANDR" \

---
>   xvfb-run --server-args=\"$DISPLAY -screen 0 $GEOMETRY -ac +extension RANDR\" \
@tarantegui
Copy link

It works perfectly @ondrej ¿do you have considered to make a Pull Request to fix that?

@cblakkan
Copy link

cblakkan commented Sep 9, 2016

I've also run into this problem.

appending selenium options: -trustAllSSLCertificates -timeout 180
Waiting xvfb...
-bash: 180: command not found

:(

@stigkj
Copy link
Contributor

stigkj commented Oct 19, 2016

I still got some problems using this patch with the following environment variable:

no_proxy=*.local, 169.254/16

I made a PR (#316) that handles this too.

@allankilpatrick
Copy link

allankilpatrick commented Nov 2, 2016

Seem to have a related problem @stigkj
The PR only appears to have went into the standalone images, is there a reason for that ?

docker run -d -P -p 5900:5900 --expose 5590 -e HUB_PORT_4444_TCP_ADDR=X.X.X.X -e HUB_PORT_4444_TCP_PORT=4444 -e SE_OPTS='-host 1.2.3.4 -port 5590' -e 'SCREEN_WIDTH=1920' -e 'SCREEN_HEIGHT=1080' selenium/node-chrome-debug:3.0.1-aluminum

When I run the above docker logs show:

Waiting xvfb...
-bash: 1.2.3.4: command not found
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...
Waiting xvfb...

After a couple of seconds the container fails and disconnects.

@LaiZhou
Copy link

LaiZhou commented Nov 22, 2016

+1

@diemol
Copy link
Member

diemol commented Apr 22, 2017

This was solved with #459, which was merged and released, this issue can be closed.

@lmtierney
Copy link
Member

@diemol Thanks for following up on these

@lock lock bot locked and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants