-
Notifications
You must be signed in to change notification settings - Fork 64
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
selenium/node-firefox pod error #4
Comments
perhaps it's another edge case when using openshift and docker. OpenShift puts some built-in security measures that the containers have to abide by. in this case, it looks like firefox can't do its thing. more research is required |
Thank you for your comment. Reference: https://docs.openshift.com/enterprise/3.2/creating_images/guidelines.html "Support Arbitrary User IDs" section |
well this particular bit you're probably referring to is SeleniumHQ/docker-selenium#529 which i merged in earlier today. perhaps that would fix it |
Deploying the Openshift templates today has resulted in the same issues. As commit#529 doesn't appear to address the named user issues, this container images still requires the "RunAsAny" policy to be enabled to work.
In OpenShift there is no concept of USERS so the use of SELUSER in the Dockerfile is redundant in this sense. Instead, the PID is being run as uid=1000150000 which as described in OpenShift Documentation has limited access despite being a member of the root group. The following demonstrates that the uid=1000150000 doesn't have a user alias and also doesn't have the rights to write or create '/.cache/dconf'
To fix this issue the following changes are needed.
Output from last run.
|
@moortimis Thanks for your suggestions...and i've made a working solution in OpenShift without changing the original images. Just made a buildconfig + Dockerfile which changed the file and directory permissions, added a WORKDIR...now it's supporting the OpenShift Arbitrary User IDs. |
Changes supplied in #5 |
Hi,
You did a awesome job. I got a problem when I was following your instruction.
Firefox say some messages, after run test from remote via Selenium Hub. And I can see Firefox process in the process list. However, chrome Pod works great.
How can I resolve my problem?
08:01:38.487 INFO - /status: Executing GET on /status (handler: Status)
| (firefox:246): dconf-CRITICAL **: unable to create directory '/.cache/dconf': Permission denied. dconf will not work properly.
| (firefox:246): dconf-CRITICAL **: unable to create directory '/.cache/dconf': Permission denied. dconf will not work properly.
OpenShift Origin:
Selenium:
RemoteProxy v3.5.2
WebDeriver v:55.0.3
The text was updated successfully, but these errors were encountered: